FHIR CI-Build

This is the Continuous Integration Build of FHIR (will be incorrect/inconsistent at times).
See the Directory of published versions

Example CodeSystem/comparison-operation (Turtle)

Responsible Owner: Pharmacy Work GroupStandards Status: Informative

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

Definition for Code SystemComparisonOperationCS

@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

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

<http://hl7.org/fhir/CodeSystem/comparison-operation> a fhir:CodeSystem ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "comparison-operation"] ; # 
  fhir:meta [
     fhir:lastUpdated [ fhir:v "2025-11-13T11:10:33.286+00:00"^^xsd:dateTime ]
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: CodeSystem comparison-operation</b></p><a name=\"comparison-operation\"> </a><a name=\"hccomparison-operation\"> </a><p>This case-sensitive code system <code>http://hl7.org/fhir/CodeSystem/comparison-operation</code> defines the following codes in a Is-A hierarchy:</p><table class=\"codes\"><tr><td style=\"white-space:nowrap\"><b>Code</b></td><td><b>Display</b></td><td><b>Definition</b></td></tr><tr><td style=\"white-space:nowrap\">eq<a name=\"comparison-operation-eq\"> </a></td><td>Equals</td><td>the value for the parameter in the resource is equal to the provided value.</td></tr><tr><td style=\"white-space:nowrap\">ne<a name=\"comparison-operation-ne\"> </a></td><td>Not Equals</td><td>the value for the parameter in the resource is not equal to the provided value.</td></tr><tr><td style=\"white-space:nowrap\">in<a name=\"comparison-operation-in\"> </a></td><td>In</td><td>The value for the parameter in the resource is in the list of codes in the value (comma-separated, and subject to code system logic; the code may be a value set).</td></tr><tr><td style=\"white-space:nowrap\">nin<a name=\"comparison-operation-nin\"> </a></td><td>Not In</td><td>The value for the parameter in the resource is not in the list of codes in the value (comma-separated, and subject to code system logic; the code may be a value set).</td></tr><tr><td style=\"white-space:nowrap\">gt<a name=\"comparison-operation-gt\"> </a></td><td>Greater Than</td><td>the value for the parameter in the resource is greater than the provided value.</td></tr><tr><td style=\"white-space:nowrap\">lt<a name=\"comparison-operation-lt\"> </a></td><td>Less Than</td><td>the value for the parameter in the resource is less than the provided value.</td></tr><tr><td style=\"white-space:nowrap\">ge<a name=\"comparison-operation-ge\"> </a></td><td>Greater or Equals</td><td>the value for the parameter in the resource is greater or equal to the provided value.</td></tr><tr><td style=\"white-space:nowrap\">le<a name=\"comparison-operation-le\"> </a></td><td>Less of Equal</td><td>the value for the parameter in the resource is less or equal to the provided value.</td></tr><tr><td style=\"white-space:nowrap\">sa<a name=\"comparison-operation-sa\"> </a></td><td>Starts After</td><td>the value for the parameter in the resource starts after the provided value.</td></tr><tr><td style=\"white-space:nowrap\">eb<a name=\"comparison-operation-eb\"> </a></td><td>Ends Before</td><td>the value for the parameter in the resource ends before the provided value.</td></tr><tr><td style=\"white-space:nowrap\">ap<a name=\"comparison-operation-ap\"> </a></td><td>Approximately</td><td>the value for the parameter in the resource is approximately the same to the provided value.</td></tr></table></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:extension ( [
     fhir:url [
       fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status>
     ] ;
     fhir:value [
       a fhir:Code ;
       fhir:v "normative"
     ]
  ] [
     fhir:url [
       fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/StructureDefinition/structuredefinition-wg>
     ] ;
     fhir:value [
       a fhir:Code ;
       fhir:v "phx"
     ]
  ] ) ; # 
  fhir:url [
     fhir:v "http://hl7.org/fhir/CodeSystem/comparison-operation"^^xsd:anyURI ;
     fhir:l <http://hl7.org/fhir/CodeSystem/comparison-operation>
  ] ; # 
  fhir:version [ fhir:v "6.0.0-ballot3"] ; # 
  fhir:name [ fhir:v "ComparisonOperationCS"] ; # 
  fhir:title [ fhir:v "Dose Limit Scope CodeSystem"] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:experimental [ fhir:v false] ; # 
  fhir:publisher [ fhir:v "HL7 International / Pharmacy"] ; # 
  fhir:contact ( [
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "http://www.hl7.org/Special/committees/fiwg" ]
     ] )
  ] [
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "http://www.hl7.org/Special/committees/medication" ]
     ] )
  ] ) ; # 
  fhir:description [ fhir:v "Additional Binding Purpose"] ; # 
  fhir:jurisdiction ( [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://unstats.un.org/unsd/methods/m49/m49.htm"^^xsd:anyURI ;
         fhir:l <http://unstats.un.org/unsd/methods/m49/m49.htm>
       ] ;
       fhir:code [ fhir:v "001" ]
     ] )
  ] ) ; # 
  fhir:caseSensitive [ fhir:v true] ; # 
  fhir:valueSet [
     fhir:v "http://hl7.org/fhir/ValueSet/comparison-operation"^^xsd:anyURI ;
     fhir:l <http://hl7.org/fhir/ValueSet/comparison-operation>
  ] ; # 
  fhir:hierarchyMeaning [ fhir:v "is-a"] ; # 
  fhir:content [ fhir:v "complete"] ; # 
  fhir:concept ( [
     fhir:code [ fhir:v "eq" ] ;
     fhir:display [ fhir:v "Equals" ] ;
     fhir:definition [ fhir:v "the value for the parameter in the resource is equal to the provided value." ]
  ] [
     fhir:code [ fhir:v "ne" ] ;
     fhir:display [ fhir:v "Not Equals" ] ;
     fhir:definition [ fhir:v "the value for the parameter in the resource is not equal to the provided value." ]
  ] [
     fhir:code [ fhir:v "in" ] ;
     fhir:display [ fhir:v "In" ] ;
     fhir:definition [ fhir:v "The value for the parameter in the resource is in the list of codes in the value (comma-separated, and subject to code system logic; the code may be a value set)." ]
  ] [
     fhir:code [ fhir:v "nin" ] ;
     fhir:display [ fhir:v "Not In" ] ;
     fhir:definition [ fhir:v "The value for the parameter in the resource is not in the list of codes in the value (comma-separated, and subject to code system logic; the code may be a value set)." ]
  ] [
     fhir:code [ fhir:v "gt" ] ;
     fhir:display [ fhir:v "Greater Than" ] ;
     fhir:definition [ fhir:v "the value for the parameter in the resource is greater than the provided value." ]
  ] [
     fhir:code [ fhir:v "lt" ] ;
     fhir:display [ fhir:v "Less Than" ] ;
     fhir:definition [ fhir:v "the value for the parameter in the resource is less than the provided value." ]
  ] [
     fhir:code [ fhir:v "ge" ] ;
     fhir:display [ fhir:v "Greater or Equals" ] ;
     fhir:definition [ fhir:v "the value for the parameter in the resource is greater or equal to the provided value." ]
  ] [
     fhir:code [ fhir:v "le" ] ;
     fhir:display [ fhir:v "Less of Equal" ] ;
     fhir:definition [ fhir:v "the value for the parameter in the resource is less or equal to the provided value." ]
  ] [
     fhir:code [ fhir:v "sa" ] ;
     fhir:display [ fhir:v "Starts After" ] ;
     fhir:definition [ fhir:v "the value for the parameter in the resource starts after the provided value." ]
  ] [
     fhir:code [ fhir:v "eb" ] ;
     fhir:display [ fhir:v "Ends Before" ] ;
     fhir:definition [ fhir:v "the value for the parameter in the resource ends before the provided value." ]
  ] [
     fhir:code [ fhir:v "ap" ] ;
     fhir:display [ fhir:v "Approximately" ] ;
     fhir:definition [ fhir:v "the value for the parameter in the resource is approximately the same to the provided value." ]
  ] ) . # 

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


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.