Skip to content

Commit d8b1735

Browse files
Seryizagalemsky-hs
authored andcommitted
$add-mapping: add error about multiple matched groups
1 parent 405561a commit d8b1735

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

docs/v2-to-fhir-spec/add-mapping-fhir-operation.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ URL: [base]/ConceptMap/[id]/$add-mapping
2424

2525
The server SHALL add each input mapping that does not already exist. Existing mappings (same match key) are skipped; the server SHOULD report skipped entries in the OperationOutcome. If no `group` exists for the given `source` and `target`, one is created.
2626

27-
It is an error to add a mapping with `target` for a source code that already has `noMap=true`, or to add `noMap=true` for a code that already has target mappings. The server SHALL return an OperationOutcome with `severity=error` and `code=business-rule`.
27+
It is an error to add a mapping with `target` for a source code that already has `noMap=true`, or to add `noMap=true` for a code that already has target mappings.
28+
29+
It is also an error if the ConceptMap contains more than one group with the same `source` and `target` as an input mapping, since the target group is ambiguous.
30+
31+
In either case the server SHALL return an OperationOutcome with `severity=error` and `code=business-rule`.
2832

2933
Clients MAY supply an `If-Match` header; servers SHALL reject the request if the ETag does not match. See [Managing Resource Contention](https://hl7.org/fhir/http.html#concurrency).
3034

0 commit comments

Comments
 (0)