Release 5

This page is part of the FHIR Specification (v5.0.0: R5 - STU). This is the current published version. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4

Example CodeSystem/filter-operator (Turtle)

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

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

Definition for Code SystemFilterOperator

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

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

[] a fhir:CodeSystem ;
  fhir:id [ fhir:v "filter-operator"] ;
  fhir:meta [
     fhir:lastUpdated [ fhir:v "2023-03-26T15:21:02.749+11:00" ] ;
     fhir:profile ( [ fhir:v "http://hl7.org/fhir/StructureDefinition/shareablecodesystem" ] )
  ] ;
  fhir:text [
     fhir:status [ fhir:v "extensions" ]
  ] ;
  fhir:extension ( [
     fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg" ] ;
     fhir:value [ fhir:v "vocab" ]
  ] [
     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-normative-version" ] ;
     fhir:value [ fhir:v "4.0.0" ]
  ] [
     fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm" ] ;
     fhir:value [ fhir:v "5" ]
  ] ) ;
  fhir:url [ fhir:v "http://hl7.org/fhir/filter-operator"], [ fhir:v "http://hl7.org/fhir/filter-operator"] ;
  fhir:identifier ( [
     fhir:system [ fhir:v "urn:ietf:rfc:3986" ] ;
     fhir:value [ fhir:v "urn:oid:2.16.840.1.113883.4.642.4.479" ]
  ] [
     fhir:use [ fhir:v "old" ] ;
     fhir:system [ fhir:v "urn:ietf:rfc:3986" ] ;
     fhir:value [ fhir:v "urn:oid:2.16.840.1.113883.4.642.1.472" ]
  ] [
     fhir:use [ fhir:v "old" ] ;
     fhir:system [ fhir:v "urn:ietf:rfc:3986" ] ;
     fhir:value [ fhir:v "urn:oid:2.16.840.1.113883.4.642.2.280" ]
  ] [
     fhir:system [ fhir:v "urn:ietf:rfc:3986" ] ;
     fhir:value [ fhir:v "urn:oid:2.16.840.1.113883.4.642.4.479" ]
  ] [
     fhir:use [ fhir:v "old" ] ;
     fhir:system [ fhir:v "urn:ietf:rfc:3986" ] ;
     fhir:value [ fhir:v "urn:oid:2.16.840.1.113883.4.642.1.472" ]
  ] [
     fhir:use [ fhir:v "old" ] ;
     fhir:system [ fhir:v "urn:ietf:rfc:3986" ] ;
     fhir:value [ fhir:v "urn:oid:2.16.840.1.113883.4.642.2.280" ]
  ] ) ;
  fhir:version [ fhir:v "5.0.0"], [ fhir:v "5.0.0"] ;
  fhir:name [ fhir:v "FilterOperator"], [ fhir:v "FilterOperator"] ;
  fhir:title [ fhir:v "Filter Operator"], [ fhir:v "Filter Operator"] ;
  fhir:status [ fhir:v "active"], [ fhir:v "active"] ;
  fhir:experimental [ fhir:v "false"], [ fhir:v "false"] ;
  fhir:date [ fhir:v "2021-01-05T10:01:24+11:00"], [ fhir:v "2021-01-05T10:01:24+11:00"] ;
  fhir:publisher [ fhir:v "HL7 (FHIR Project)"], [ fhir:v "HL7 (FHIR Project)"] ;
  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://hl7.org/fhir" ]
     ] [
       fhir:system [ fhir:v "email" ] ;
       fhir:value [ fhir:v "fhir@lists.hl7.org" ]
     ] )
  ] ) ;
  fhir:description [ fhir:v "The kind of operation to perform as a part of a property based filter."], [ fhir:v "The kind of operation to perform as a part of a property based filter."] ;
  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:caseSensitive [ fhir:v "true"] ;
  fhir:valueSet [ fhir:v "http://hl7.org/fhir/ValueSet/filter-operator"] ;
  fhir:content [ fhir:v "complete"] ;
  fhir:concept ( [
     fhir:code [ fhir:v "=" ] ;
     fhir:display [ fhir:v "Equals" ] ;
     fhir:definition [ fhir:v "The specified property of the code equals the provided value." ]
  ] [
     fhir:extension ( [
       fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/codesystem-concept-comments" ] ;
       fhir:value [ fhir:v "The definition of is-a is that all the properties of the value are true for the specified property of the code, which means that a code has an is-a relationship with itself. To exclude the root code, use descendent-of" ]
     ] ) ;
     fhir:code [ fhir:v "is-a" ] ;
     fhir:display [ fhir:v "Is A (by subsumption)" ] ;
     fhir:definition [ fhir:v "Includes all concept ids that have a transitive is-a relationship with the concept Id provided as the value, including the provided concept itself (include descendant codes and self)." ]
  ] [
     fhir:extension ( [
       fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/codesystem-concept-comments" ] ;
       fhir:value [ fhir:v "The definition of is-a is that all the properties of the value are true for the specified property of the code. \n\nSpelling note: \"descendant\" is a more correct spelling, but the spelling \"descendent\" is maintained in the code for backwards compatibility reasons" ]
     ] ) ;
     fhir:code [ fhir:v "descendent-of" ] ;
     fhir:display [ fhir:v "Descendent Of (by subsumption)" ] ;
     fhir:definition [ fhir:v "Includes all concept ids that have a transitive is-a relationship with the concept Id provided as the value, excluding the provided concept itself (i.e. include descendant codes only)." ]
  ] [
     fhir:code [ fhir:v "is-not-a" ] ;
     fhir:display [ fhir:v "Not (Is A) (by subsumption)" ] ;
     fhir:definition [ fhir:v "The specified property of the code does not have an is-a relationship with the provided value." ]
  ] [
     fhir:code [ fhir:v "regex" ] ;
     fhir:display [ fhir:v "Regular Expression" ] ;
     fhir:definition [ fhir:v "The specified property of the code  matches the regex specified in the provided value." ]
  ] [
     fhir:code [ fhir:v "in" ] ;
     fhir:display [ fhir:v "In Set" ] ;
     fhir:definition [ fhir:v "The specified property of the code is in the set of codes or concepts specified in the provided value (comma-separated list)." ]
  ] [
     fhir:code [ fhir:v "not-in" ] ;
     fhir:display [ fhir:v "Not in Set" ] ;
     fhir:definition [ fhir:v "The specified property of the code is not in the set of codes or concepts specified in the provided value (comma-separated list)." ]
  ] [
     fhir:extension ( [
       fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/codesystem-concept-comments" ] ;
       fhir:value [ fhir:v "The definition of is-a is that all the properties of the value are true for the specified property of the code, which means that a code has an is-a relationship with itself. To exclude the root code, add it explicitly to as an exclude" ]
     ] ) ;
     fhir:code [ fhir:v "generalizes" ] ;
     fhir:display [ fhir:v "Generalizes (by Subsumption)" ] ;
     fhir:definition [ fhir:v "Includes all concept ids that have a transitive is-a relationship from the concept Id provided as the value, including the provided concept itself (i.e. include ancestor codes and self)." ]
  ] [
     fhir:code [ fhir:v "child-of" ] ;
     fhir:display [ fhir:v "Child Of" ] ;
     fhir:definition [ fhir:v "Only concepts with a direct hierarchical relationship to the index code and no other concepts. This does not include the index code in the output." ]
  ] [
     fhir:code [ fhir:v "descendent-leaf" ] ;
     fhir:display [ fhir:v "Descendent Leaf" ] ;
     fhir:definition [ fhir:v "Includes concept ids that have a transitive is-a relationship with the concept Id provided as the value, but which do not have any concept ids with transitive is-a relationships with themselves." ]
  ] [
     fhir:code [ fhir:v "exists" ] ;
     fhir:display [ fhir:v "Exists" ] ;
     fhir:definition [ fhir:v "The specified property of the code has at least one value (if the specified value is true; if the specified value is false, then matches when the specified property of the code has no values)." ]
  ] ) .

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


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.