R6 Ballot (1st Draft)

This page is part of the FHIR Specification v6.0.0-ballot1: Release 6 Ballot (1st Draft) (see Ballot Notes). The current version is 5.0.0. For a full list of available versions, see the Directory of published versions

Example OperationDefinition/CodeSystem-lookup (Turtle)

Terminology Infrastructure Work GroupMaturity Level: N/AStandards Status: Informative

Raw Turtle (+ also see Turtle/RDF Format Specification)

Operation Definition

@prefix fhir: <http://hl7.org/fhir/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

# - resource -------------------------------------------------------------------

[] a fhir:OperationDefinition ;
  fhir:id [ fhir:v "CodeSystem-lookup"] ;
  fhir:text [
     fhir:status [ fhir:v "extensions" ]
  ] ;
  fhir:extension ( [
     fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm" ] ;
     fhir:value [ fhir:v "5" ]
  ] [
     fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status" ] ;
     fhir:value [ fhir:v "normative" ]
  ] [
     fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg" ] ;
     fhir:value [ fhir:v "vocab" ]
  ] ) ;
  fhir:url [ fhir:v "http://hl7.org/fhir/OperationDefinition/CodeSystem-lookup"], [ fhir:v "http://hl7.org/fhir/OperationDefinition/CodeSystem-lookup"] ;
  fhir:version [ fhir:v "6.0.0-ballot1"], [ fhir:v "6.0.0-ballot1"] ;
  fhir:name [ fhir:v "Lookup"], [ fhir:v "Lookup"] ;
  fhir:title [ fhir:v "Concept Look Up & Decomposition"], [ fhir:v "Concept Look Up & Decomposition"] ;
  fhir:status [ fhir:v "active"], [ fhir:v "active"] ;
  fhir:experimental [ fhir:v "false"], [ fhir:v "false"] ;
  fhir:date [ fhir:v "2023-12-18T15:12:07+11:00"], [ fhir:v "2023-12-18T15:12:07+11:00"] ;
  fhir:publisher [ fhir:v "HL7 International / Terminology Infrastructure"], [ fhir:v "HL7 International / Terminology Infrastructure"] ;
  fhir:contact ( [
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "http://hl7.org/fhir" ]
     ] [
       fhir:system [ fhir:v "email" ] ;
       fhir:value [ fhir:v "fhir@lists.hl7.org" ]
     ] )
  ] [
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "http://www.hl7.org/Special/committees/Vocab" ]
     ] )
  ] [
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "http://hl7.org/fhir" ]
     ] [
       fhir:system [ fhir:v "email" ] ;
       fhir:value [ fhir:v "fhir@lists.hl7.org" ]
     ] )
  ] [
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "http://www.hl7.org/Special/committees/Vocab" ]
     ] )
  ] ) ;
  fhir:description [ fhir:v "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 structured terminology.\n\nWhen invoking this operation, a client SHALL provide both a system and a code, either using the system+code parameters, or in the coding parameter. Other parameters are optional"], [ fhir:v "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 structured terminology.\n\nWhen invoking this operation, a client SHALL provide both a system and a code, either using the system+code parameters, or in the coding parameter. Other parameters are optional"] ;
  fhir:jurisdiction ( [
     fhir:coding ( [
       fhir:system [ fhir:v "http://unstats.un.org/unsd/methods/m49/m49.htm" ] ;
       fhir:code [ fhir:v "001" ] ;
       fhir:display [ fhir:v "World" ]
     ] )
  ] [
     fhir:coding ( [
       fhir:system [ fhir:v "http://unstats.un.org/unsd/methods/m49/m49.htm" ] ;
       fhir:code [ fhir:v "001" ] ;
       fhir:display [ fhir:v "World" ]
     ] )
  ] ) ;
  fhir:kind [ fhir:v "operation"] ;
  fhir:affectsState [ fhir:v "false"] ;
  fhir:code [ fhir:v "lookup"] ;
  fhir:comment [ fhir:v "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."] ;
  fhir:resource ( [ fhir:v "CodeSystem"] ) ;
  fhir:system [ fhir:v "false"] ;
  fhir:type [ fhir:v "true"] ;
  fhir:instance [ fhir:v "true"] ;
  fhir:parameter ( [
     fhir:name [ fhir:v "code" ] ;
     fhir:use [ fhir:v "in" ] ;
     fhir:min [ fhir:v "0" ] ;
     fhir:max [ fhir:v "1" ] ;
     fhir:documentation [ fhir:v "The code that is to be located. If a code is provided, a system must be provided" ] ;
     fhir:type [ fhir:v "code" ]
  ] [
     fhir:name [ fhir:v "system" ] ;
     fhir:use [ fhir:v "in" ] ;
     fhir:scope ( [ fhir:v "type" ] ) ;
     fhir:min [ fhir:v "0" ] ;
     fhir:max [ fhir:v "1" ] ;
     fhir:documentation [ fhir:v "The system for the code that is to be located" ] ;
     fhir:type [ fhir:v "uri" ]
  ] [
     fhir:name [ fhir:v "version" ] ;
     fhir:use [ fhir:v "in" ] ;
     fhir:scope ( [ fhir:v "type" ] ) ;
     fhir:min [ fhir:v "0" ] ;
     fhir:max [ fhir:v "1" ] ;
     fhir:documentation [ fhir:v "The version of the system, if one was provided in the source data" ] ;
     fhir:type [ fhir:v "string" ]
  ] [
     fhir:name [ fhir:v "coding" ] ;
     fhir:use [ fhir:v "in" ] ;
     fhir:min [ fhir:v "0" ] ;
     fhir:max [ fhir:v "1" ] ;
     fhir:documentation [ fhir:v "A coding to look up" ] ;
     fhir:type [ fhir:v "Coding" ]
  ] [
     fhir:name [ fhir:v "date" ] ;
     fhir:use [ fhir:v "in" ] ;
     fhir:min [ fhir:v "0" ] ;
     fhir:max [ fhir:v "1" ] ;
     fhir:documentation [ fhir:v "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." ] ;
     fhir:type [ fhir:v "dateTime" ]
  ] [
     fhir:name [ fhir:v "displayLanguage" ] ;
     fhir:use [ fhir:v "in" ] ;
     fhir:min [ fhir:v "0" ] ;
     fhir:max [ fhir:v "1" ] ;
     fhir:documentation [ fhir:v "The requested language for display (see CodeSystem.concept.designation.language)" ] ;
     fhir:type [ fhir:v "code" ]
  ] [
     fhir:name [ fhir:v "property" ] ;
     fhir:use [ fhir:v "in" ] ;
     fhir:min [ fhir:v "0" ] ;
     fhir:max [ fhir:v "*" ] ;
     fhir:documentation [ fhir:v "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: name, version (code system info) and code information: display, designation, and lang.X where X is a designation language code. These properties are returned explicitly in named out parameters with matching names, or in designations. In addition, any property codes defined by [this specification](codesystem.html#defined-props) or by the CodeSystem ([CodeSystem.property.code](codesystem-definitions.html#CodeSystem.property)) are allowed, and these are returned in the out parameter ```property```" ] ;
     fhir:type [ fhir:v "code" ]
  ] [
     fhir:name [ fhir:v "useSupplement" ] ;
     fhir:use [ fhir:v "in" ] ;
     fhir:min [ fhir:v "0" ] ;
     fhir:max [ fhir:v "*" ] ;
     fhir:documentation [ fhir:v "Supplements to take into account when performing the $lookup operation. The supplements must be for the same CodeSystem. By default, supplements for the code system are not automatically included except where they provide additional designations that may be indicated by, for example, the displayLanguage parameter" ] ;
     fhir:type [ fhir:v "canonical" ]
  ] [
     fhir:name [ fhir:v "name" ] ;
     fhir:use [ fhir:v "out" ] ;
     fhir:min [ fhir:v "1" ] ;
     fhir:max [ fhir:v "1" ] ;
     fhir:documentation [ fhir:v "A display name for the code system" ] ;
     fhir:type [ fhir:v "string" ]
  ] [
     fhir:name [ fhir:v "version" ] ;
     fhir:use [ fhir:v "out" ] ;
     fhir:min [ fhir:v "0" ] ;
     fhir:max [ fhir:v "1" ] ;
     fhir:documentation [ fhir:v "The version that these details are based on" ] ;
     fhir:type [ fhir:v "string" ]
  ] [
     fhir:name [ fhir:v "display" ] ;
     fhir:use [ fhir:v "out" ] ;
     fhir:min [ fhir:v "1" ] ;
     fhir:max [ fhir:v "1" ] ;
     fhir:documentation [ fhir:v "The preferred display for this concept" ] ;
     fhir:type [ fhir:v "string" ]
  ] [
     fhir:name [ fhir:v "definition" ] ;
     fhir:use [ fhir:v "out" ] ;
     fhir:min [ fhir:v "0" ] ;
     fhir:max [ fhir:v "1" ] ;
     fhir:documentation [ fhir:v "A statement of the meaning of the concept from the code system" ] ;
     fhir:type [ fhir:v "string" ]
  ] [
     fhir:name [ fhir:v "designation" ] ;
     fhir:use [ fhir:v "out" ] ;
     fhir:min [ fhir:v "0" ] ;
     fhir:max [ fhir:v "*" ] ;
     fhir:documentation [ fhir:v "Additional representations for this concept" ] ;
     fhir:part ( [
       fhir:name [ fhir:v "language" ] ;
       fhir:use [ fhir:v "out" ] ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:documentation [ fhir:v "The language this designation is defined for" ] ;
       fhir:type [ fhir:v "code" ]
     ] [
       fhir:name [ fhir:v "use" ] ;
       fhir:use [ fhir:v "out" ] ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:documentation [ fhir:v "A code that details how this designation would be used" ] ;
       fhir:type [ fhir:v "Coding" ]
     ] [
       fhir:name [ fhir:v "additionalUse" ] ;
       fhir:use [ fhir:v "out" ] ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:documentation [ fhir:v "Additional codes that detail how this designation would be used (if there is more than one)" ] ;
       fhir:type [ fhir:v "Coding" ]
     ] [
       fhir:name [ fhir:v "value" ] ;
       fhir:use [ fhir:v "out" ] ;
       fhir:min [ fhir:v "1" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:documentation [ fhir:v "The text value for this designation" ] ;
       fhir:type [ fhir:v "string" ]
     ] )
  ] [
     fhir:name [ fhir:v "property" ] ;
     fhir:use [ fhir:v "out" ] ;
     fhir:min [ fhir:v "0" ] ;
     fhir:max [ fhir:v "*" ] ;
     fhir:documentation [ fhir:v "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" ] ;
     fhir:part ( [
       fhir:name [ fhir:v "code" ] ;
       fhir:use [ fhir:v "out" ] ;
       fhir:min [ fhir:v "1" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:documentation [ fhir:v "Identifies the property returned" ] ;
       fhir:type [ fhir:v "code" ]
     ] [
       fhir:extension ( [
         fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/operationdefinition-allowed-type" ] ;
         fhir:value [ fhir:v "Coding" ]
       ] [
         fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/operationdefinition-allowed-type" ] ;
         fhir:value [ fhir:v "boolean" ]
       ] [
         fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/operationdefinition-allowed-type" ] ;
         fhir:value [ fhir:v "code" ]
       ] [
         fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/operationdefinition-allowed-type" ] ;
         fhir:value [ fhir:v "dateTime" ]
       ] [
         fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/operationdefinition-allowed-type" ] ;
         fhir:value [ fhir:v "decimal" ]
       ] [
         fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/operationdefinition-allowed-type" ] ;
         fhir:value [ fhir:v "integer" ]
       ] [
         fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/operationdefinition-allowed-type" ] ;
         fhir:value [ fhir:v "string" ]
       ] ) ;
       fhir:name [ fhir:v "value" ] ;
       fhir:use [ fhir:v "out" ] ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:documentation [ fhir:v "The value of the property returned" ] ;
       fhir:type [ fhir:v "Element" ]
     ] [
       fhir:name [ fhir:v "description" ] ;
       fhir:use [ fhir:v "out" ] ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:documentation [ fhir:v "Human Readable representation of the property value (e.g. display for a code)" ] ;
       fhir:type [ fhir:v "string" ]
     ] [
       fhir:name [ fhir:v "source" ] ;
       fhir:use [ fhir:v "out" ] ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:documentation [ fhir:v "If information from a supplement is included as a property (e.g. any additional property or property value), then this parameter must assert the url of the supplement." ] ;
       fhir:type [ fhir:v "canonical" ]
     ] [
       fhir:name [ fhir:v "subproperty" ] ;
       fhir:use [ fhir:v "out" ] ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:documentation [ fhir:v "Nested Properties (mainly used for SNOMED CT decomposition, for relationship Groups)" ] ;
       fhir:part ( [
         fhir:name [ fhir:v "code" ] ;
         fhir:use [ fhir:v "out" ] ;
         fhir:min [ fhir:v "1" ] ;
         fhir:max [ fhir:v "1" ] ;
         fhir:documentation [ fhir:v "Identifies the sub-property returned" ] ;
         fhir:type [ fhir:v "code" ]
       ] [
         fhir:extension ( [
           fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/operationdefinition-allowed-type" ] ;
           fhir:value [ fhir:v "Coding" ]
         ] [
           fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/operationdefinition-allowed-type" ] ;
           fhir:value [ fhir:v "boolean" ]
         ] [
           fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/operationdefinition-allowed-type" ] ;
           fhir:value [ fhir:v "code" ]
         ] [
           fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/operationdefinition-allowed-type" ] ;
           fhir:value [ fhir:v "dateTime" ]
         ] [
           fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/operationdefinition-allowed-type" ] ;
           fhir:value [ fhir:v "decimal" ]
         ] [
           fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/operationdefinition-allowed-type" ] ;
           fhir:value [ fhir:v "integer" ]
         ] [
           fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/operationdefinition-allowed-type" ] ;
           fhir:value [ fhir:v "string" ]
         ] ) ;
         fhir:name [ fhir:v "value" ] ;
         fhir:use [ fhir:v "out" ] ;
         fhir:min [ fhir:v "1" ] ;
         fhir:max [ fhir:v "1" ] ;
         fhir:documentation [ fhir:v "The value of the sub-property returned" ] ;
         fhir:type [ fhir:v "Element" ]
       ] [
         fhir:name [ fhir:v "description" ] ;
         fhir:use [ fhir:v "out" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ] ;
         fhir:documentation [ fhir:v "Human Readable representation of the sub-property value (e.g. display for a code)" ] ;
         fhir:type [ fhir:v "string" ]
       ] [
         fhir:name [ fhir:v "source" ] ;
         fhir:use [ fhir:v "out" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ] ;
         fhir:documentation [ fhir:v "If information from a supplement is included as a subproperty (e.g. any additional subproperty or subproperty value), then this parameter must assert the url of the supplement." ] ;
         fhir:type [ fhir:v "canonical" ]
       ] )
     ] )
  ] ) .

# -------------------------------------------------------------------------------------


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.