This page is part of the FHIR Specification (v1.8.0: STU 3 Draft). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3
Operation Definition
<OperationDefinition xmlns="http://hl7.org/fhir"> <id value="CodeSystem-lookup"/> <text> <status value="generated"/> <div xmlns="http://www.w3.org/1999/xhtml"> <h2>Concept Look Up & Decomposition</h2> <p>OPERATION: Concept Look Up & Decomposition</p> <div> <p>Given a code/system, or a Coding, get additional details about the concept, including definition, status, designations, and properties. One of the products of this operation is a full decomposition of a code from a structure terminology</p> </div> <p>URL: [base]/CodeSystem/$lookup</p> <p>Parameters</p> <table class="grid"> <tr> <td> <b>Use</b> </td> <td> <b>Name</b> </td> <td> <b>Cardinality</b> </td> <td> <b>Type</b> </td> <td> <b>Binding</b> </td> <td> <b>Documentation</b> </td> </tr> <tr> <td>IN</td> <td>code</td> <td>0..1</td> <td>code</td> <td/> <td> <div> <p>The code that is to be located. If a code is provided, a system must be provided</p> </div> </td> </tr> <tr> <td>IN</td> <td>system</td> <td>0..1</td> <td>uri</td> <td/> <td> <div> <p>The system for the code that is to be located</p> </div> </td> </tr> <tr> <td>IN</td> <td>version</td> <td>0..1</td> <td>string</td> <td/> <td> <div> <p>The version of the system, if one was provided in the source data</p> </div> </td> </tr> <tr> <td>IN</td> <td>coding</td> <td>0..1</td> <td>Coding</td> <td/> <td> <div> <p>A coding to look up</p> </div> </td> </tr> <tr> <td>IN</td> <td>date</td> <td>0..1</td> <td>dateTime</td> <td/> <td> <div> <p>The date for which the information should be returned. Normally, this is the current conditions (which is the default value) but under some circumstances, systems need to acccess this information as it would have been in the past. A typical example of this would be where code selection is constrained to the set of codes that were available when the patient was treated, not when the record is being edited. Note that which date is appropriate is a matter for implementation policy.</p> </div> </td> </tr> <tr> <td>IN</td> <td>displayLanguage</td> <td>0..1</td> <td>code</td> <td/> <td> <div> <p>The requested language for display (see ExpansionProfile.displayLanguage)</p> </div> </td> </tr> <tr> <td>IN</td> <td>property</td> <td>0..*</td> <td>code</td> <td/> <td> <div> <p>A property that the client wishes to be returned in the output. If no properties are specified, the server chooses what to return. The following properties are defined for all code systems: system, version, display, definition, designation, parent, child, and lang.X where X is a language code in a designation. These properties refer to the directly return parameters documented for the operation</p> </div> </td> </tr> <tr> <td>OUT</td> <td>name</td> <td>1..1</td> <td>string</td> <td/> <td> <div> <p>A display name for the code system</p> </div> </td> </tr> <tr> <td>OUT</td> <td>version</td> <td>0..1</td> <td>string</td> <td/> <td> <div> <p>The version that these details are based on</p> </div> </td> </tr> <tr> <td>OUT</td> <td>display</td> <td>1..1</td> <td>string</td> <td/> <td> <div> <p>The preferred display for this concept</p> </div> </td> </tr> <tr> <td>OUT</td> <td>designation</td> <td>0..*</td> <td/> <td/> <td> <div> <p>Additional representations for this concept</p> </div> </td> </tr> <tr> <td>OUT</td> <td>designation.language</td> <td>0..1</td> <td>code</td> <td/> <td> <div> <p>The language this designation is defined for</p> </div> </td> </tr> <tr> <td>OUT</td> <td>designation.use</td> <td>0..1</td> <td>Coding</td> <td/> <td> <div> <p>A code that details how this designation would be used</p> </div> </td> </tr> <tr> <td>OUT</td> <td>designation.value</td> <td>1..1</td> <td>string</td> <td/> <td> <div> <p>The text value for this designation</p> </div> </td> </tr> <tr> <td>OUT</td> <td>property</td> <td>0..*</td> <td/> <td/> <td> <div> <p>One or more properties that contain additional information about the code, including status. For complex terminologies (e.g. SNOMED CT, LOINC, medications), these properties serve to decompose the code</p> </div> </td> </tr> <tr> <td>OUT</td> <td>property.code</td> <td>1..1</td> <td>code</td> <td/> <td> <div> <p>Identifies the property returned</p> </div> </td> </tr> <tr> <td>OUT</td> <td>property.value</td> <td>1..1</td> <td>code</td> <td/> <td> <div> <p>The value of the property returned</p> </div> </td> </tr> <tr> <td>OUT</td> <td>property.description</td> <td>0..1</td> <td>string</td> <td/> <td> <div> <p>Human Readable representation of the property value (e.g. display for a code)</p> </div> </td> </tr> <tr> <td>OUT</td> <td>property.subproperty</td> <td>0..*</td> <td/> <td/> <td> <div> <p>Nested Properties (mainly used for SNOMED CT decomposition, for relationship Groups)</p> </div> </td> </tr> <tr> <td>OUT</td> <td>property.subproperty.code</td> <td>1..1</td> <td>code</td> <td/> <td> <div> <p>Identifies the sub-property returned</p> </div> </td> </tr> <tr> <td>OUT</td> <td>property.subproperty.value</td> <td>1..1</td> <td>code</td> <td/> <td> <div> <p>The value of the sub-property returned</p> </div> </td> </tr> <tr> <td>OUT</td> <td>property.subproperty.description</td> <td>0..1</td> <td>string</td> <td/> <td> <div> <p>Human Readable representation of the property value (e.g. display for a code)</p> </div> </td> </tr> </table> <div> <p>Note that the $lookup operation is more than just a code system search - the server finds the concept, and gathers the return information from the underlying code system definitions.</p> </div> </div> </text> <url value="http://hl7.org/fhir/OperationDefinition/CodeSystem-lookup"/> <name value="Concept Look Up & Decomposition"/> <status value="draft"/> <kind value="operation"/> <date value="2016-12-06T12:22:34+11:00"/> <publisher value="HL7 (FHIR Project)"/> <contact> <telecom> <system value="url"/> <value value="http://hl7.org/fhir"/> </telecom> <telecom> <system value="email"/> <value value="fhir@lists.hl7.org"/> </telecom> </contact> <description value="Given a code/system, or a Coding, get additional details about the concept, including definition, status, designations, and properties. One of the products of this operation is a full decomposition of a code from a structure terminology"/> <code value="lookup"/> <comment value="Note that the $lookup operation is more than just a code system search - the server finds the concept, and gathers the return information from the underlying code system definitions."/> <resource value="CodeSystem"/> <system value="false"/> <type value="true"/> <instance value="false"/> <parameter> <name value="code"/> <use value="in"/> <min value="0"/> <max value="1"/> <documentation value="The code that is to be located. If a code is provided, a system must be provided"/> <type value="code"/> </parameter> <parameter> <name value="system"/> <use value="in"/> <min value="0"/> <max value="1"/> <documentation value="The system for the code that is to be located"/> <type value="uri"/> </parameter> <parameter> <name value="version"/> <use value="in"/> <min value="0"/> <max value="1"/> <documentation value="The version of the system, if one was provided in the source data"/> <type value="string"/> </parameter> <parameter> <name value="coding"/> <use value="in"/> <min value="0"/> <max value="1"/> <documentation value="A coding to look up"/> <type value="Coding"/> </parameter> <parameter> <name value="date"/> <use value="in"/> <min value="0"/> <max value="1"/> <documentation value="The date for which the information should be returned. Normally, this is the current conditions (which is the default value) but under some circumstances, systems need to acccess this information as it would have been in the past. A typical example of this would be where code selection is constrained to the set of codes that were available when the patient was treated, not when the record is being edited. Note that which date is appropriate is a matter for implementation policy."/> <type value="dateTime"/> </parameter> <parameter> <name value="displayLanguage"/> <use value="in"/> <min value="0"/> <max value="1"/> <documentation value="The requested language for display (see ExpansionProfile.displayLanguage)"/> <type value="code"/> </parameter> <parameter> <name value="property"/> <use value="in"/> <min value="0"/> <max value="*"/> <documentation value="A property that the client wishes to be returned in the output. If no properties are specified, the server chooses what to return. The following properties are defined for all code systems: system, version, display, definition, designation, parent, child, and lang.X where X is a language code in a designation. These properties refer to the directly return parameters documented for the operation"/> <type value="code"/> </parameter> <parameter> <name value="name"/> <use value="out"/> <min value="1"/> <max value="1"/> <documentation value="A display name for the code system"/> <type value="string"/> </parameter> <parameter> <name value="version"/> <use value="out"/> <min value="0"/> <max value="1"/> <documentation value="The version that these details are based on"/> <type value="string"/> </parameter> <parameter> <name value="display"/> <use value="out"/> <min value="1"/> <max value="1"/> <documentation value="The preferred display for this concept"/> <type value="string"/> </parameter> <parameter> <name value="designation"/> <use value="out"/> <min value="0"/> <max value="*"/> <documentation value="Additional representations for this concept"/> <part> <name value="language"/> <use value="out"/> <min value="0"/> <max value="1"/> <documentation value="The language this designation is defined for"/> <type value="code"/> </part> <part> <name value="use"/> <use value="out"/> <min value="0"/> <max value="1"/> <documentation value="A code that details how this designation would be used"/> <type value="Coding"/> </part> <part> <name value="value"/> <use value="out"/> <min value="1"/> <max value="1"/> <documentation value="The text value for this designation"/> <type value="string"/> </part> </parameter> <parameter> <name value="property"/> <use value="out"/> <min value="0"/> <max value="*"/> <documentation value="One or more properties that contain additional information about the code, including status. For complex terminologies (e.g. SNOMED CT, LOINC, medications), these properties serve to decompose the code"/> <part> <name value="code"/> <use value="out"/> <min value="1"/> <max value="1"/> <documentation value="Identifies the property returned"/> <type value="code"/> </part> <part> <name value="value"/> <use value="out"/> <min value="1"/> <max value="1"/> <documentation value="The value of the property returned"/> <type value="code"/> </part> <part> <name value="description"/> <use value="out"/> <min value="0"/> <max value="1"/> <documentation value="Human Readable representation of the property value (e.g. display for a code)"/> <type value="string"/> </part> <part> <name value="subproperty"/> <use value="out"/> <min value="0"/> <max value="*"/> <documentation value="Nested Properties (mainly used for SNOMED CT decomposition, for relationship Groups)"/> <part> <name value="code"/> <use value="out"/> <min value="1"/> <max value="1"/> <documentation value="Identifies the sub-property returned"/> <type value="code"/> </part> <part> <name value="value"/> <use value="out"/> <min value="1"/> <max value="1"/> <documentation value="The value of the sub-property returned"/> <type value="code"/> </part> <part> <name value="description"/> <use value="out"/> <min value="0"/> <max value="1"/> <documentation value="Human Readable representation of the property value (e.g. display for a code)"/> <type value="string"/> </part> </part> </parameter> </OperationDefinition>
Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.