CTS2-LE REST API: Requesting Concept Details: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Billig (Diskussion | Beiträge) K |
Billig (Diskussion | Beiträge) K |
||
| Zeile 18: | Zeile 18: | ||
<expansion> | <expansion> | ||
<timestamp/> | <timestamp/> | ||
| − | + | <contains xmlns="http://hl7.org/fhir"> | |
<system value="urn:oid:2.16.840.1.113883.5.1"/> | <system value="urn:oid:2.16.840.1.113883.5.1"/> | ||
<code value="M"/> | <code value="M"/> | ||
Version vom 9. Juni 2015, 16:23 Uhr
Because of CTS2-LE_REST_API:_Resolve_Value_Set is a multi modal operation, the
operation can be used to retrieve single codes with its display name. This functionality requires that parameter
code and codeSystemUri is set.
For instance, the call
http://<host>/WebCts2LE/rest/fhir/ValueSet? _query=expandDefinedCodeSystem &codeSystemUri=urn:oid:2.16.840.1.113883.5.1 &code=M
retrieves only the male code
... <expansion> <timestamp/> <contains xmlns="http://hl7.org/fhir"> <system value="urn:oid:2.16.840.1.113883.5.1"/> <code value="M"/> <display value="Male"/> </contains> </expansion> ...
The same call can be performed to check wether a (code, code system)-pair is contained in a value set. If this pair is not contained the call yields an atom response with an expansion element that does not has any contains-elements as children:
... <expansion> <timestamp /> </expansion> ...