Release 5 Ballot

This page is part of the FHIR Specification (v5.0.0-ballot: FHIR R5 Ballot Preview). 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

Example OperationDefinition/CodeSystem-lookup (Turtle)

Vocabulary 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:Resource.id [ fhir:value "CodeSystem-lookup"];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "extensions" ]
  ];
  fhir:DomainResource.extension [
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm" ];
     fhir:Extension.value [ fhir:value "5" ]
  ], [
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status" ];
     fhir:Extension.value [ fhir:value "normative" ]
  ];
  fhir:CanonicalResource.url [ fhir:value "http://hl7.org/fhir/OperationDefinition/CodeSystem-lookup"];
  fhir:CanonicalResource.version [ fhir:value "5.0.0-ballot"];
  fhir:CanonicalResource.name [ fhir:value "Lookup"];
  fhir:CanonicalResource.title [ fhir:value "Concept Look Up & Decomposition"];
  fhir:CanonicalResource.status [ fhir:value "active"];
  fhir:CanonicalResource.experimental [ fhir:value "false"];
  fhir:CanonicalResource.date [ fhir:value "2022-09-07T10:58:29+10:00"];
  fhir:CanonicalResource.publisher [ fhir:value "HL7 (FHIR Project)"];
  fhir:CanonicalResource.contact [
     fhir:ContactDetail.telecom [
       fhir:ContactPoint.system [ fhir:value "url" ];
       fhir:ContactPoint.value [ fhir:value "http://hl7.org/fhir" ]
     ], [
       fhir:ContactPoint.system [ fhir:value "email" ];
       fhir:ContactPoint.value [ fhir:value "fhir@lists.hl7.org" ]
     ]
  ];
  fhir:CanonicalResource.description [ fhir: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 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:OperationDefinition.url [ fhir:value "http://hl7.org/fhir/OperationDefinition/CodeSystem-lookup"];
  fhir:OperationDefinition.version [ fhir:value "5.0.0-ballot"];
  fhir:OperationDefinition.name [ fhir:value "Lookup"];
  fhir:OperationDefinition.title [ fhir:value "Concept Look Up & Decomposition"];
  fhir:OperationDefinition.status [ fhir:value "active"];
  fhir:OperationDefinition.kind [ fhir:value "operation"];
  fhir:OperationDefinition.experimental [ fhir:value "false"];
  fhir:OperationDefinition.date [ fhir:value "2022-09-07T10:58:29+10:00"];
  fhir:OperationDefinition.publisher [ fhir:value "HL7 (FHIR Project)"];
  fhir:OperationDefinition.contact [
     fhir:ContactDetail.telecom [
       fhir:ContactPoint.system [ fhir:value "url" ];
       fhir:ContactPoint.value [ fhir:value "http://hl7.org/fhir" ]
     ], [
       fhir:ContactPoint.system [ fhir:value "email" ];
       fhir:ContactPoint.value [ fhir:value "fhir@lists.hl7.org" ]
     ]
  ];
  fhir:OperationDefinition.description [ fhir: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 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:OperationDefinition.affectsState [ fhir:value "false"];
  fhir:OperationDefinition.code [ fhir:value "lookup"];
  fhir:OperationDefinition.comment [ fhir: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."];
  fhir:OperationDefinition.resource [ fhir:value "CodeSystem"];
  fhir:OperationDefinition.system [ fhir:value "false"];
  fhir:OperationDefinition.type [ fhir:value "true"];
  fhir:OperationDefinition.instance [ fhir:value "true"];
  fhir:OperationDefinition.parameter [
     fhir:OperationDefinitionParameterComponent.name [ fhir:value "code" ];
     fhir:OperationDefinitionParameterComponent.use [ fhir:value "in" ];
     fhir:OperationDefinitionParameterComponent.min [ fhir:value "0" ];
     fhir:OperationDefinitionParameterComponent.max [ fhir:value "1" ];
     fhir:OperationDefinitionParameterComponent.documentation [ fhir:value "The code that is to be located. If a code is provided, a system must be provided" ];
     fhir:OperationDefinitionParameterComponent.type [ fhir:value "code" ]
  ], [
     fhir:OperationDefinitionParameterComponent.name [ fhir:value "system" ];
     fhir:OperationDefinitionParameterComponent.use [ fhir:value "in" ];
     fhir:OperationDefinitionParameterComponent.min [ fhir:value "0" ];
     fhir:OperationDefinitionParameterComponent.max [ fhir:value "1" ];
     fhir:OperationDefinitionParameterComponent.documentation [ fhir:value "The system for the code that is to be located" ];
     fhir:OperationDefinitionParameterComponent.type [ fhir:value "uri" ]
  ], [
     fhir:OperationDefinitionParameterComponent.name [ fhir:value "version" ];
     fhir:OperationDefinitionParameterComponent.use [ fhir:value "in" ];
     fhir:OperationDefinitionParameterComponent.min [ fhir:value "0" ];
     fhir:OperationDefinitionParameterComponent.max [ fhir:value "1" ];
     fhir:OperationDefinitionParameterComponent.documentation [ fhir:value "The version of the system, if one was provided in the source data" ];
     fhir:OperationDefinitionParameterComponent.type [ fhir:value "string" ]
  ], [
     fhir:OperationDefinitionParameterComponent.name [ fhir:value "coding" ];
     fhir:OperationDefinitionParameterComponent.use [ fhir:value "in" ];
     fhir:OperationDefinitionParameterComponent.min [ fhir:value "0" ];
     fhir:OperationDefinitionParameterComponent.max [ fhir:value "1" ];
     fhir:OperationDefinitionParameterComponent.documentation [ fhir:value "A coding to look up" ];
     fhir:OperationDefinitionParameterComponent.type [ fhir:value "Coding" ]
  ], [
     fhir:OperationDefinitionParameterComponent.name [ fhir:value "date" ];
     fhir:OperationDefinitionParameterComponent.use [ fhir:value "in" ];
     fhir:OperationDefinitionParameterComponent.min [ fhir:value "0" ];
     fhir:OperationDefinitionParameterComponent.max [ fhir:value "1" ];
     fhir:OperationDefinitionParameterComponent.documentation [ fhir: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." ];
     fhir:OperationDefinitionParameterComponent.type [ fhir:value "dateTime" ]
  ], [
     fhir:OperationDefinitionParameterComponent.name [ fhir:value "displayLanguage" ];
     fhir:OperationDefinitionParameterComponent.use [ fhir:value "in" ];
     fhir:OperationDefinitionParameterComponent.min [ fhir:value "0" ];
     fhir:OperationDefinitionParameterComponent.max [ fhir:value "1" ];
     fhir:OperationDefinitionParameterComponent.documentation [ fhir:value "The requested language for display (see CodeSystem.concept.designation.language)" ];
     fhir:OperationDefinitionParameterComponent.type [ fhir:value "code" ]
  ], [
     fhir:OperationDefinitionParameterComponent.name [ fhir:value "property" ];
     fhir:OperationDefinitionParameterComponent.use [ fhir:value "in" ];
     fhir:OperationDefinitionParameterComponent.min [ fhir:value "0" ];
     fhir:OperationDefinitionParameterComponent.max [ fhir:value "*" ];
     fhir:OperationDefinitionParameterComponent.documentation [ fhir: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: url, name, version (code system info) and code information: display, definition, designation, parent and child, and for designations, lang.X where X is a designation language code. Some of the properties are returned explicit in named parameters (when the names match), and the rest (except for lang.X) in the property parameter group" ];
     fhir:OperationDefinitionParameterComponent.type [ fhir:value "code" ]
  ], [
     fhir:OperationDefinitionParameterComponent.name [ fhir:value "useSupplement" ];
     fhir:OperationDefinitionParameterComponent.use [ fhir:value "in" ];
     fhir:OperationDefinitionParameterComponent.min [ fhir:value "0" ];
     fhir:OperationDefinitionParameterComponent.max [ fhir:value "*" ];
     fhir:OperationDefinitionParameterComponent.documentation [ fhir:value "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:OperationDefinitionParameterComponent.type [ fhir:value "canonical" ]
  ], [
     fhir:OperationDefinitionParameterComponent.name [ fhir:value "name" ];
     fhir:OperationDefinitionParameterComponent.use [ fhir:value "out" ];
     fhir:OperationDefinitionParameterComponent.min [ fhir:value "1" ];
     fhir:OperationDefinitionParameterComponent.max [ fhir:value "1" ];
     fhir:OperationDefinitionParameterComponent.documentation [ fhir:value "A display name for the code system" ];
     fhir:OperationDefinitionParameterComponent.type [ fhir:value "string" ]
  ], [
     fhir:OperationDefinitionParameterComponent.name [ fhir:value "version" ];
     fhir:OperationDefinitionParameterComponent.use [ fhir:value "out" ];
     fhir:OperationDefinitionParameterComponent.min [ fhir:value "0" ];
     fhir:OperationDefinitionParameterComponent.max [ fhir:value "1" ];
     fhir:OperationDefinitionParameterComponent.documentation [ fhir:value "The version that these details are based on" ];
     fhir:OperationDefinitionParameterComponent.type [ fhir:value "string" ]
  ], [
     fhir:OperationDefinitionParameterComponent.name [ fhir:value "display" ];
     fhir:OperationDefinitionParameterComponent.use [ fhir:value "out" ];
     fhir:OperationDefinitionParameterComponent.min [ fhir:value "1" ];
     fhir:OperationDefinitionParameterComponent.max [ fhir:value "1" ];
     fhir:OperationDefinitionParameterComponent.documentation [ fhir:value "The preferred display for this concept" ];
     fhir:OperationDefinitionParameterComponent.type [ fhir:value "string" ]
  ], [
     fhir:OperationDefinitionParameterComponent.name [ fhir:value "definition" ];
     fhir:OperationDefinitionParameterComponent.use [ fhir:value "out" ];
     fhir:OperationDefinitionParameterComponent.min [ fhir:value "0" ];
     fhir:OperationDefinitionParameterComponent.max [ fhir:value "1" ];
     fhir:OperationDefinitionParameterComponent.documentation [ fhir:value "A statement of the meaning of the concept from the code system" ];
     fhir:OperationDefinitionParameterComponent.type [ fhir:value "string" ]
  ], [
     fhir:OperationDefinitionParameterComponent.name [ fhir:value "designation" ];
     fhir:OperationDefinitionParameterComponent.use [ fhir:value "out" ];
     fhir:OperationDefinitionParameterComponent.min [ fhir:value "0" ];
     fhir:OperationDefinitionParameterComponent.max [ fhir:value "*" ];
     fhir:OperationDefinitionParameterComponent.documentation [ fhir:value "Additional representations for this concept" ];
     fhir:OperationDefinitionParameterComponent.part [
       fhir:OperationDefinitionParameterComponent.name [ fhir:value "language" ];
       fhir:OperationDefinitionParameterComponent.use [ fhir:value "out" ];
       fhir:OperationDefinitionParameterComponent.min [ fhir:value "0" ];
       fhir:OperationDefinitionParameterComponent.max [ fhir:value "1" ];
       fhir:OperationDefinitionParameterComponent.documentation [ fhir:value "The language this designation is defined for" ];
       fhir:OperationDefinitionParameterComponent.type [ fhir:value "code" ]
     ], [
       fhir:OperationDefinitionParameterComponent.name [ fhir:value "use" ];
       fhir:OperationDefinitionParameterComponent.use [ fhir:value "out" ];
       fhir:OperationDefinitionParameterComponent.min [ fhir:value "0" ];
       fhir:OperationDefinitionParameterComponent.max [ fhir:value "1" ];
       fhir:OperationDefinitionParameterComponent.documentation [ fhir:value "A code that details how this designation would be used" ];
       fhir:OperationDefinitionParameterComponent.type [ fhir:value "Coding" ]
     ], [
       fhir:OperationDefinitionParameterComponent.name [ fhir:value "additionalUse" ];
       fhir:OperationDefinitionParameterComponent.use [ fhir:value "out" ];
       fhir:OperationDefinitionParameterComponent.min [ fhir:value "0" ];
       fhir:OperationDefinitionParameterComponent.max [ fhir:value "*" ];
       fhir:OperationDefinitionParameterComponent.documentation [ fhir:value "Additional codes that detail how this designation would be used (if there is more than one)" ];
       fhir:OperationDefinitionParameterComponent.type [ fhir:value "Coding" ]
     ], [
       fhir:OperationDefinitionParameterComponent.name [ fhir:value "value" ];
       fhir:OperationDefinitionParameterComponent.use [ fhir:value "out" ];
       fhir:OperationDefinitionParameterComponent.min [ fhir:value "1" ];
       fhir:OperationDefinitionParameterComponent.max [ fhir:value "1" ];
       fhir:OperationDefinitionParameterComponent.documentation [ fhir:value "The text value for this designation" ];
       fhir:OperationDefinitionParameterComponent.type [ fhir:value "string" ]
     ]
  ], [
     fhir:OperationDefinitionParameterComponent.name [ fhir:value "property" ];
     fhir:OperationDefinitionParameterComponent.use [ fhir:value "out" ];
     fhir:OperationDefinitionParameterComponent.min [ fhir:value "0" ];
     fhir:OperationDefinitionParameterComponent.max [ fhir:value "*" ];
     fhir:OperationDefinitionParameterComponent.documentation [ fhir: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" ];
     fhir:OperationDefinitionParameterComponent.part [
       fhir:OperationDefinitionParameterComponent.name [ fhir:value "code" ];
       fhir:OperationDefinitionParameterComponent.use [ fhir:value "out" ];
       fhir:OperationDefinitionParameterComponent.min [ fhir:value "1" ];
       fhir:OperationDefinitionParameterComponent.max [ fhir:value "1" ];
       fhir:OperationDefinitionParameterComponent.documentation [ fhir:value "Identifies the property returned" ];
       fhir:OperationDefinitionParameterComponent.type [ fhir:value "code" ]
     ], [
       fhir:Element.extension [
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/operationdefinition-allowed-type" ];
         fhir:Extension.value [ fhir:value "Coding" ]
       ], [
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/operationdefinition-allowed-type" ];
         fhir:Extension.value [ fhir:value "boolean" ]
       ], [
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/operationdefinition-allowed-type" ];
         fhir:Extension.value [ fhir:value "code" ]
       ], [
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/operationdefinition-allowed-type" ];
         fhir:Extension.value [ fhir:value "dateTime" ]
       ], [
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/operationdefinition-allowed-type" ];
         fhir:Extension.value [ fhir:value "decimal" ]
       ], [
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/operationdefinition-allowed-type" ];
         fhir:Extension.value [ fhir:value "integer" ]
       ], [
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/operationdefinition-allowed-type" ];
         fhir:Extension.value [ fhir:value "string" ]
       ];
       fhir:OperationDefinitionParameterComponent.name [ fhir:value "value" ];
       fhir:OperationDefinitionParameterComponent.use [ fhir:value "out" ];
       fhir:OperationDefinitionParameterComponent.min [ fhir:value "0" ];
       fhir:OperationDefinitionParameterComponent.max [ fhir:value "1" ];
       fhir:OperationDefinitionParameterComponent.documentation [ fhir:value "The value of the property returned" ];
       fhir:OperationDefinitionParameterComponent.type [ fhir:value "Element" ]
     ], [
       fhir:OperationDefinitionParameterComponent.name [ fhir:value "description" ];
       fhir:OperationDefinitionParameterComponent.use [ fhir:value "out" ];
       fhir:OperationDefinitionParameterComponent.min [ fhir:value "0" ];
       fhir:OperationDefinitionParameterComponent.max [ fhir:value "1" ];
       fhir:OperationDefinitionParameterComponent.documentation [ fhir:value "Human Readable representation of the property value (e.g. display for a code)" ];
       fhir:OperationDefinitionParameterComponent.type [ fhir:value "string" ]
     ], [
       fhir:OperationDefinitionParameterComponent.name [ fhir:value "source" ];
       fhir:OperationDefinitionParameterComponent.use [ fhir:value "out" ];
       fhir:OperationDefinitionParameterComponent.min [ fhir:value "0" ];
       fhir:OperationDefinitionParameterComponent.max [ fhir:value "1" ];
       fhir:OperationDefinitionParameterComponent.documentation [ fhir:value "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:OperationDefinitionParameterComponent.type [ fhir:value "canonical" ]
     ], [
       fhir:OperationDefinitionParameterComponent.name [ fhir:value "subproperty" ];
       fhir:OperationDefinitionParameterComponent.use [ fhir:value "out" ];
       fhir:OperationDefinitionParameterComponent.min [ fhir:value "0" ];
       fhir:OperationDefinitionParameterComponent.max [ fhir:value "*" ];
       fhir:OperationDefinitionParameterComponent.documentation [ fhir:value "Nested Properties (mainly used for SNOMED CT decomposition, for relationship Groups)" ];
       fhir:OperationDefinitionParameterComponent.part [
         fhir:OperationDefinitionParameterComponent.name [ fhir:value "code" ];
         fhir:OperationDefinitionParameterComponent.use [ fhir:value "out" ];
         fhir:OperationDefinitionParameterComponent.min [ fhir:value "1" ];
         fhir:OperationDefinitionParameterComponent.max [ fhir:value "1" ];
         fhir:OperationDefinitionParameterComponent.documentation [ fhir:value "Identifies the sub-property returned" ];
         fhir:OperationDefinitionParameterComponent.type [ fhir:value "code" ]
       ], [
         fhir:Element.extension [
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/operationdefinition-allowed-type" ];
           fhir:Extension.value [ fhir:value "Coding" ]
         ], [
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/operationdefinition-allowed-type" ];
           fhir:Extension.value [ fhir:value "boolean" ]
         ], [
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/operationdefinition-allowed-type" ];
           fhir:Extension.value [ fhir:value "code" ]
         ], [
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/operationdefinition-allowed-type" ];
           fhir:Extension.value [ fhir:value "dateTime" ]
         ], [
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/operationdefinition-allowed-type" ];
           fhir:Extension.value [ fhir:value "decimal" ]
         ], [
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/operationdefinition-allowed-type" ];
           fhir:Extension.value [ fhir:value "integer" ]
         ], [
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/operationdefinition-allowed-type" ];
           fhir:Extension.value [ fhir:value "string" ]
         ];
         fhir:OperationDefinitionParameterComponent.name [ fhir:value "value" ];
         fhir:OperationDefinitionParameterComponent.use [ fhir:value "out" ];
         fhir:OperationDefinitionParameterComponent.min [ fhir:value "1" ];
         fhir:OperationDefinitionParameterComponent.max [ fhir:value "1" ];
         fhir:OperationDefinitionParameterComponent.documentation [ fhir:value "The value of the sub-property returned" ];
         fhir:OperationDefinitionParameterComponent.type [ fhir:value "Element" ]
       ], [
         fhir:OperationDefinitionParameterComponent.name [ fhir:value "description" ];
         fhir:OperationDefinitionParameterComponent.use [ fhir:value "out" ];
         fhir:OperationDefinitionParameterComponent.min [ fhir:value "0" ];
         fhir:OperationDefinitionParameterComponent.max [ fhir:value "1" ];
         fhir:OperationDefinitionParameterComponent.documentation [ fhir:value "Human Readable representation of the sub-property value (e.g. display for a code)" ];
         fhir:OperationDefinitionParameterComponent.type [ fhir:value "string" ]
       ], [
         fhir:OperationDefinitionParameterComponent.name [ fhir:value "source" ];
         fhir:OperationDefinitionParameterComponent.use [ fhir:value "out" ];
         fhir:OperationDefinitionParameterComponent.min [ fhir:value "0" ];
         fhir:OperationDefinitionParameterComponent.max [ fhir:value "1" ];
         fhir:OperationDefinitionParameterComponent.documentation [ fhir:value "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:OperationDefinitionParameterComponent.type [ fhir:value "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.