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

Example CodeSystem/filter-operator (Turtle)

Vocabulary 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:Resource.id [ fhir:value "filter-operator"];
  fhir:Resource.meta [
     fhir:Meta.lastUpdated [ fhir:value "2022-09-07T11:58:29.429+11:00" ];
     fhir:Meta.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/shareablecodesystem" ]
  ];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "extensions" ]
  ];
  fhir:DomainResource.extension [
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg" ];
     fhir:Extension.value [ fhir:value "vocab" ]
  ], [
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status" ];
     fhir:Extension.value [ fhir:value "normative" ]
  ], [
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version" ];
     fhir:Extension.value [ fhir:value "4.0.0" ]
  ], [
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm" ];
     fhir:Extension.value [ fhir:value "5" ]
  ];
  fhir:CanonicalResource.url [ fhir:value "http://hl7.org/fhir/filter-operator"];
  fhir:CanonicalResource.identifier [
     fhir:Identifier.system [ fhir:value "urn:ietf:rfc:3986" ];
     fhir:Identifier.value [ fhir:value "urn:oid:2.16.840.1.113883.4.642.4.479" ]
  ];
  fhir:CanonicalResource.version [ fhir:value "5.0.0-ballot"];
  fhir:CanonicalResource.name [ fhir:value "FilterOperator"];
  fhir:CanonicalResource.title [ fhir:value "FilterOperator"];
  fhir:CanonicalResource.status [ fhir:value "active"];
  fhir:CanonicalResource.experimental [ fhir:value "false"];
  fhir:CanonicalResource.date [ fhir:value "2021-01-05T10:01:24+11: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 "The kind of operation to perform as a part of a property based filter."];
  fhir:CodeSystem.url [ fhir:value "http://hl7.org/fhir/filter-operator"];
  fhir:CodeSystem.identifier [
     fhir:Identifier.system [ fhir:value "urn:ietf:rfc:3986" ];
     fhir:Identifier.value [ fhir:value "urn:oid:2.16.840.1.113883.4.642.4.479" ]
  ];
  fhir:CodeSystem.version [ fhir:value "5.0.0-ballot"];
  fhir:CodeSystem.name [ fhir:value "FilterOperator"];
  fhir:CodeSystem.title [ fhir:value "FilterOperator"];
  fhir:CodeSystem.status [ fhir:value "active"];
  fhir:CodeSystem.experimental [ fhir:value "false"];
  fhir:CodeSystem.date [ fhir:value "2021-01-05T10:01:24+11:00"];
  fhir:CodeSystem.publisher [ fhir:value "HL7 (FHIR Project)"];
  fhir:CodeSystem.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:CodeSystem.description [ fhir:value "The kind of operation to perform as a part of a property based filter."];
  fhir:CodeSystem.caseSensitive [ fhir:value "true"];
  fhir:CodeSystem.valueSet [ fhir:value "http://hl7.org/fhir/ValueSet/filter-operator"];
  fhir:CodeSystem.content [ fhir:value "complete"];
  fhir:CodeSystem.concept [
     fhir:ConceptDefinitionComponent.code [ fhir:value "=" ];
     fhir:ConceptDefinitionComponent.display [ fhir:value "Equals" ];
     fhir:ConceptDefinitionComponent.definition [ fhir:value "The specified property of the code equals the provided value." ]
  ], [
     fhir:Element.extension [
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/codesystem-concept-comments" ];
       fhir:Extension.value [ fhir:value "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:ConceptDefinitionComponent.code [ fhir:value "is-a" ];
     fhir:ConceptDefinitionComponent.display [ fhir:value "Is A (by subsumption)" ];
     fhir:ConceptDefinitionComponent.definition [ fhir:value "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:Element.extension [
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/codesystem-concept-comments" ];
       fhir:Extension.value [ fhir:value "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:ConceptDefinitionComponent.code [ fhir:value "descendent-of" ];
     fhir:ConceptDefinitionComponent.display [ fhir:value "Descendent Of (by subsumption)" ];
     fhir:ConceptDefinitionComponent.definition [ fhir:value "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:ConceptDefinitionComponent.code [ fhir:value "is-not-a" ];
     fhir:ConceptDefinitionComponent.display [ fhir:value "Not (Is A) (by subsumption)" ];
     fhir:ConceptDefinitionComponent.definition [ fhir:value "The specified property of the code does not have an is-a relationship with the provided value." ]
  ], [
     fhir:ConceptDefinitionComponent.code [ fhir:value "regex" ];
     fhir:ConceptDefinitionComponent.display [ fhir:value "Regular Expression" ];
     fhir:ConceptDefinitionComponent.definition [ fhir:value "The specified property of the code  matches the regex specified in the provided value." ]
  ], [
     fhir:ConceptDefinitionComponent.code [ fhir:value "in" ];
     fhir:ConceptDefinitionComponent.display [ fhir:value "In Set" ];
     fhir:ConceptDefinitionComponent.definition [ fhir:value "The specified property of the code is in the set of codes or concepts specified in the provided value (comma separated list)." ]
  ], [
     fhir:ConceptDefinitionComponent.code [ fhir:value "not-in" ];
     fhir:ConceptDefinitionComponent.display [ fhir:value "Not in Set" ];
     fhir:ConceptDefinitionComponent.definition [ fhir:value "The specified property of the code is not in the set of codes or concepts specified in the provided value (comma separated list)." ]
  ], [
     fhir:Element.extension [
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/codesystem-concept-comments" ];
       fhir:Extension.value [ fhir:value "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:ConceptDefinitionComponent.code [ fhir:value "generalizes" ];
     fhir:ConceptDefinitionComponent.display [ fhir:value "Generalizes (by Subsumption)" ];
     fhir:ConceptDefinitionComponent.definition [ fhir:value "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:ConceptDefinitionComponent.code [ fhir:value "child-of" ];
     fhir:ConceptDefinitionComponent.display [ fhir:value "Child Of" ];
     fhir:ConceptDefinitionComponent.definition [ fhir:value "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:ConceptDefinitionComponent.code [ fhir:value "descendent-leaf" ];
     fhir:ConceptDefinitionComponent.display [ fhir:value "Descendent Leaf" ];
     fhir:ConceptDefinitionComponent.definition [ fhir:value "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:ConceptDefinitionComponent.code [ fhir:value "exists" ];
     fhir:ConceptDefinitionComponent.display [ fhir:value "Exists" ];
     fhir:ConceptDefinitionComponent.definition [ fhir:value "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.