STU3 Candidate

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

This resource has 3 operations associated with it:

$lookup Concept Look Up & Decomposition
$subsumes Subsumption Testing
$compose Code Composition based on supplied properties

For more information about operations, including how they are invoked, see Operations .

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

Formal Definition (as a OperationDefinition ).

URL: [base]/CodeSystem/$lookup

In Parameters:
Name Cardinality Type Binding Profile Documentation
code 0..1 code

The code that is to be located. If a code is provided, a system must be provided

system 0..1 uri

The system for the code that is to be located

version 0..1 string

The version of the system, if one was provided in the source data

coding 0..1 Coding

A coding to look up

date 0..1 dateTime

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.

displayLanguage 0..1 code

The requested language for display (see ExpansionProfile.displayLanguage)

property 0..* code

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

Out Parameters:
Name Cardinality Type Binding Profile Documentation
name 1..1 string

A display name for the code system

version 0..1 string

The version that these details are based on

display 1..1 string

The preferred display for this concept

designation 0..*

Additional representations for this concept

designation.language 0..1 code

The language this designation is defined for

designation.use 0..1 Coding

A code that details how this designation would be used

designation.value 1..1 string

The text value for this designation

property 0..*

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

property.code 1..1 code

Identifies the property returned

property.value 1..1 code | Coding | string | integer | boolean | dateTime

The value of the property returned

property.description 0..1 string

Human Readable representation of the property value (e.g. display for a code)

property.subproperty 0..*

Nested Properties (mainly used for SNOMED CT decomposition, for relationship Groups)

property.subproperty.code 1..1 code

Identifies the sub-property returned

property.subproperty.value 1..1 code | Coding | string | integer | boolean | dateTime

The value of the sub-property returned

property.subproperty.description 0..1 string

Human Readable representation of the property value (e.g. display for a code)

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.

Looking up a code/system (Request):

GET [base]/CodeSystem/$lookup?system=http://loinc.org&code=1963-8

Lookup using a Coding (Request):

POST [base]/CodeSystem/$lookup
[other headers]

<Parameters xmlns="http://hl7.org/fhir">
  <parameter>
    <name value="coding"/>
  <valueCoding>
    <system value="http://loinc.org"/>
    <code value="1963-8"/>
  </valueCoding>
  </parameter>
</Parameters>

Response:

HTTP/1.1 200 OK
[other headers]

{
  "resourceType" : "Parameters",
  "parameter" : [
    {
    "name" : "name",
    "valueString" : "LOINC"
  },
  {
    "name" : "version",
    "valueString" : "2.48"
  },
  {
    "name" : "designation",
    "valueString" : "Bicarbonate [Moles/volume] in Serum"
  },
  {
    "name" : "abstract",
    "valueString" : "false"
  },
  {
      "name" : "designation",
    "part" : [
    {
      "name" : "value",
      "valueString" : "Bicarbonate [Moles/volume] in Serum "
    }
    ]
  }
  ]
}

 

Test whether code "sub" is subsumed by code "super" given the semantics of subsumption in the underlying code system (see hierarchyMeaning)

Formal Definition (as a OperationDefinition ).

URL: [base]/CodeSystem/$subsumes

URL: [base]/CodeSystem/[id]/$subsumes

In Parameters:
Name Cardinality Type Binding Profile Documentation
codeA 0..1 code

The "sub" code that is to be tested. If a code is provided, a system must be provided

codeB 0..1 code

The "super" code that is to be validated. If a code is provided, a system must be provided

system 0..1 uri

The system in which subsumption testing is to be performed. This must be provided unless the operation is invoked on a code system instance

version 0..1 string

The version of the system, if one was provided in the source data

codingA 0..1 Coding

The "sub" coding to test. The coding system does not have to match the specified subsumption system, but the relationships between the systems must be well established

codingB 0..1 Coding

The "super" coding to test. The coding system does not have to match the specified subsumption system, but the relationships between the systems must be well established

Out Parameters:
Name Cardinality Type Binding Profile Documentation
outcome 1..1 code

Whether "sub" is subsumed by "super". There are 4 possible codes to be returned: equivalent, subsumes, subsumed-by, and not-subsumed. If the server is unable to determine the relationship between the codes, then it returns an error (i.e. an OperationOutcome)

Using simple parameters: is viral hepatitis a disorder of the liver? (Request):

GET [base]/CodeSystem/$subsumes?system=http://snomed.info/sct&codeA=3738000&codeB=235856003

Using Codings (Request):

POST [base]/CodeSystem/$subsumes
[other headers]

<Parameters xmlns="http://hl7.org/fhir">
  <!-- Subsumption testing - use SNOMED CT rules -->
  <parameter>
    <name value="system"/>
    <valuUri value="http://snomed.info/sct"/>
  </parameter>
  <!-- Australian distribution -->
  <parameter>
    <name value="version"/>
    <valuString value="http://snomed.info/sct/32506021000036107/version/20160430"/>
  </parameter>
  <parameter>
    <name value="codingA"/>
    <valueCoding>
      <system value="http://snomed.info/sct"/>
      <code value="3738000"/>
    </valueCoding>
  </parameter>
  <parameter>
    <name value="codingB"/>
    <valueCoding>
      <system value="http://snomed.info/sct"/>
      <code value="235856003"/>
    </valueCoding>
  </parameter>
</Parameters>

Response:

HTTP/1.1 200 OK
[other headers]

{
  "resourceType" : "Parameters",
  "parameter" : [
    {
    "name" : "outcome",
    "valueCode" : "subsumes"
  }
}

 

Given a set of properties, return one or more possible matching codes

This operation takes a set of properties, and examines the code system looking for codes in the code system that match a set of known properties.

When looking for matches, there are 3 possible types of match: * a complete match - a code that represents all the provided properties correctly * a partial match - a code that represents some of the provided properties correctly, and not others * a possible match - a code that may represent the provided properties closely, but may capture less or more precise informationfor some of the properties

The $compose operation can be called in one of 2 modes: * By a human, looking for the best match for a set of properties. In this mode, the server returns a list of complete, possible or partial matches (possibly with comments), so that the user can choose (or not) the most appropriate code * By a machine (typically in a system interface performing a transformation). In this mode, the server returns only a list of complete and partial matches, but no possible matches. The machine can choose a code from the list (or not) based on what properties are not coded

The compose operation is still preliminary. The interface can be expected to change as more experience is gained from implementations.

Formal Definition (as a OperationDefinition ).

URL: [base]/CodeSystem/$compose

URL: [base]/CodeSystem/[id]/$compose

In Parameters:
Name Cardinality Type Binding Profile Documentation
system 0..1 uri

The system in which composition is to be performed. This must be provided unless the operation is invoked on a code system instance

version 0..1 string

The version of the system for the inferencing to be performed

property 0..*

One or more properties that contain information to be composed into the code

property.code 1..1 code

Identifies the property provided

property.value 1..1 code | Coding | string | integer | boolean | dateTime

The value of the property provided

property.subproperty 0..*

Nested Properties (mainly used for SNOMED CT composition, for relationship Groups)

property.subproperty.code 1..1 code

Identifies the sub-property provided

property.subproperty.value 1..1 code | Coding | string | integer | boolean | dateTime

The value of the sub-property provided

mode 1..1 code

Whether the operation is being used by a human, or a machine. If the operation is being used by a human, the terminology server can return a list of possible matches, with commentary. For a machine, the server returns sure matches, or none at all

compositional 0..1 boolean

Post-coordinated expressions are allowed to be returned in the matching codes (mainly for SNOMED CT). Default = false

Out Parameters:
Name Cardinality Type Binding Profile Documentation
match 0..*

Concepts returned by the server as a result of the inferencing operation

match.code 1..1 Coding

A code that matches the properties provided

match.unmatched 1..1

One or more properties that contain properties that could not be matched into the code

match.unmatched.code 1..1 code

Identifies the property provided

match.unmatched.value 1..1 code | Coding | string | integer | boolean | dateTime

The value of the property provided

match.unmatched.property 0..*

Nested Properties (mainly used for SNOMED CT composition, for relationship Groups)

match.unmatched.property.code 1..1 code

Identifies the sub-property provided

match.unmatched.property.value 1..1 code | Coding | string | integer | boolean | dateTime

The value of the sub-property provided

match.comment 0..1 string

Information about the quality of the match, if operation is for a human

SNOMED Composition - provide 3 properties, and ask for a single code for the whole: 417163006 (Traumatic AND/OR non-traumatic injury) + 246112005 (Severity) = 24484000 (Severe)+ 363698007 (Finding site) = 40983000 (Upper arm structure) (Request):

--------------------------------------

POST [base]/CodeSystem/$compose
[other headers]

<Parameters xmlns="http://hl7.org/fhir">
  <!-- use SNOMED CT rules -->
  <parameter>
    <name value="system"/>
    <valuUri value="http://snomed.info/sct"/>
  </parameter>
  <!-- Traumatic injury -->
  <parameter>
    <name value="property"/>
    <part>
      <name value="code"/>
      <valueCode value="focus"/>
    <part>
    <part>
      <name value="value"/>
      <valueCode value="417163006"/>
    <part>
  </parameter>
  <!-- Finding site: upper arm -->
  <parameter>
    <name value="property"/>
    <part>
      <name value="code"/>
      <valueCode value="363698007"/>
    <part>
    <part>
      <name value="value"/>
      <valueCode value="40983000"/>
    <part>
  </parameter>
  <!-- Severity = severe -->
  <parameter>
    <name value="property"/>
    <part>
      <name value="code"/>
      <valueCode value="246112005"/>
    <part>
    <part>
      <name value="value"/>
      <valueCode value="24484000"/>
    <part>
  </parameter>
  <!-- machine rules - complete and partial matches only -->
  <parameter>
    <name value="mode"/>
    <valueCode value="machine"/>
  </parameter>
</Parameters>

SNOMED Composition - provide 3 properties, and ask for a single code for the whole (210528007: Severe multi tissue damage upper arm) (Response):



HTTP/1.1 200 OK
[other headers]

<Parameters xmlns="http://hl7.org/fhir">
  <parameter>
    <name value="match"/>
    <part>
      <name value="code"/>
      <valueCoding>
        <system value="http://snomed.info/sct"/>
        <code value="210528007"/>
        <display value="Severe multi tissue damage upper arm">
      </valueCoding>
    <part>
    <part>
      <name value="comment"/>
      <valueCode value="Complete Match"/>
    <part>
  </parameter>
</Parameters>