Release 4 5

This page is part of the FHIR Specification (v4.0.1: R4 (v5.0.0: R5 - Mixed Normative and STU ) ). This is the current published version in it's permanent home (it will always be available at this URL). 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

Valueset-example.ttl

Example ValueSet/example (Turtle)

Vocabulary Terminology Infrastructure Work Group Maturity Level : N/A Standards Status : Informative Compartments : Not linked to any No defined compartments

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

ValueSet Example using enumeration of codes (extensional)

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

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

<http://hl7.org/fhir/ValueSet/example-extensional> a fhir:ValueSet;
  fhir:nodeRole fhir:treeRoot;
  fhir:Resource.id [ fhir:value "example-extensional"];
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "http://hl7.org/fhir/StructureDefinition/shareablevalueset";
       fhir:index 0;

[a fhir:ValueSet ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "example"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "http://hl7.org/fhir/StructureDefinition/shareablevalueset"^^xsd:anyURI ;

       fhir:link <http://hl7.org/fhir/StructureDefinition/shareablevalueset>
     ] )
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "additional" ] ;
     fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n			\n      <p>Value set &quot;LOINC Codes for Cholesterol&quot;: This is an example value set that includes \n        all the  codes for serum cholesterol from LOINC v2.36.</p>\n			\n      <p>Developed by: FHIR project team (example)</p>\n			\n      <p>Published for testing on 13-June 2012</p>\n			\n      <p>This value set includes the following LOINC codes:</p>\n			\n      <ul>\n				\n        <li>14647-2: Cholesterol [Moles/Volume]</li>\n				\n        <li>2093-3: Cholesterol [Mass/Volume]</li>\n				\n        <li>35200-5: Cholesterol [Mass Or Moles/Volume] </li>\n				\n        <li>9342-7: Cholesterol [Percentile]</li>\n			\n      </ul>\n			\n      <p>This content from LOINC® is copyright © 1995 Regenstrief Institute, Inc. and the LOINC Committee, and available at no cost under the license at http://loinc.org/terms-of-use.</p>\n		\n    </div>"
  ] ; # 
  fhir:url [ fhir:v "http://hl7.org/fhir/ValueSet/example"^^xsd:anyURI] ; # 
  fhir:identifier ( [
     fhir:system [ fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ] ;
     fhir:value [ fhir:v "urn:oid:2.16.840.1.113883.4.642.3.3292" ]
  ] [
     fhir:system [ fhir:v "http://acme.com/identifiers/valuesets"^^xsd:anyURI ] ;
     fhir:value [ fhir:v "loinc-cholesterol-int" ]
  ] ) ; # 
  fhir:version [ fhir:v "5.0.0"] ; # 
  fhir:name [ fhir:v "LOINCCodesForCholesterolInSerumPlasma"] ; # 
  fhir:title [ fhir:v "LOINC Codes for Cholesterol in Serum/Plasma"] ; # 
  fhir:status [ fhir:v "draft"] ; # 
  fhir:experimental [ fhir:v "true"^^xsd:boolean] ; # 
  fhir:date [ fhir:v "2015-06-22"^^xsd:date] ; # 
  fhir:publisher [ fhir:v "HL7 International"] ; # 
  fhir:contact ( [
     fhir:name [ fhir:v "FHIR project team" ] ;
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "http://hl7.org/fhir" ]
     ] )
  ] ) ; # 
  fhir:description [ fhir:v "This is an example value set that includes all the LOINC codes for serum/plasma cholesterol from v2.36."] ; # 
  fhir:useContext ( [
     fhir:code [
       fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/usage-context-type"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "age" ]
     ] ;
     fhir:value [
       a fhir:Quantity ;
       fhir:value [ fhir:v "18"^^xsd:decimal ] ;
       fhir:comparator [ fhir:v ">" ] ;
       fhir:unit [ fhir:v "yrs" ] ;
       fhir:system [ fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "a" ]

     ]
  ];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n			<p>Value set &quot;LOINC Codes for Cholesterol&quot;: This is an example value set that includes \n        all the  codes for serum cholesterol from LOINC v2.36.</p>\n			<p>Developed by: FHIR project team (example)</p>\n			<p>Published for testing on 13-June 2012</p>\n			<p>This value set includes the following LOINC codes:</p>\n			<ul>\n				<li>14647-2: Cholesterol [Moles/Volume]</li>\n				<li>2093-3: Cholesterol [Mass/Volume]</li>\n				<li>35200-5: Cholesterol [Mass Or Moles/Volume] </li>\n				<li>9342-7: Cholesterol [Percentile]</li>\n			</ul>\n			<p>This content from LOINC® is copyright © 1995 Regenstrief Institute, Inc. and the LOINC Committee, and available at no cost under the license at http://loinc.org/terms-of-use.</p>\n		</div>"
  ];
  fhir:ValueSet.url [ fhir:value "http://hl7.org/fhir/ValueSet/example-extensional"];
  fhir:ValueSet.identifier [
     fhir:index 0;
     fhir:Identifier.system [ fhir:value "http://acme.com/identifiers/valuesets" ];
     fhir:Identifier.value [ fhir:value "loinc-cholesterol-int" ]
  ];
  fhir:ValueSet.version [ fhir:value "20150622"];
  fhir:ValueSet.name [ fhir:value "LOINC Codes for Cholesterol in Serum/Plasma"];
  fhir:ValueSet.status [ fhir:value "draft"];
  fhir:ValueSet.experimental [ fhir:value "true"^^xsd:boolean];
  fhir:ValueSet.date [ fhir:value "2015-06-22"^^xsd:date];
  fhir:ValueSet.publisher [ fhir:value "HL7 International"];
  fhir:ValueSet.contact [
     fhir:index 0;
     fhir:ContactDetail.name [ fhir:value "FHIR project team" ];
     fhir:ContactDetail.telecom [
       fhir:index 0;
       fhir:ContactPoint.system [ fhir:value "url" ];
       fhir:ContactPoint.value [ fhir:value "http://hl7.org/fhir" ]
     ]
  ];
  fhir:ValueSet.description [ fhir:value "This is an example value set that includes all the LOINC codes for serum/plasma cholesterol from v2.36."];
  fhir:ValueSet.useContext [
     fhir:index 0;
     fhir:UsageContext.code [
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/usage-context-type" ];
       fhir:Coding.code [ fhir:value "age" ]
     ];
     fhir:UsageContext.valueQuantity [
       fhir:Quantity.value [ fhir:value "18"^^xsd:decimal ];
       fhir:Quantity.comparator [ fhir:value ">" ];
       fhir:Quantity.unit [ fhir:value "yrs" ];
       fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ];
       fhir:Quantity.code [ fhir:value "a" ]
     ]
  ];
  fhir:ValueSet.jurisdiction [
     fhir:index 0;
     fhir:CodeableConcept.coding [
       fhir:index 0;
       fhir:Coding.system [ fhir:value "urn:iso:std:iso:3166" ];
       fhir:Coding.code [ fhir:value "US" ]
     ]
  ];
  fhir:ValueSet.purpose [ fhir:value "This value set was published by ACME Inc in order to make clear which codes are used for Cholesterol by AcmeClinicals (Adult Ambulatory care support in USA)"];
  fhir:ValueSet.copyright [ fhir:value "This content from LOINC ® is copyright © 1995 Regenstrief Institute, Inc. and the LOINC Committee, and available at no cost under the license at http://loinc.org/terms-of-use."];
  fhir:ValueSet.compose [
     fhir:ValueSet.compose.lockedDate [ fhir:value "2012-06-13"^^xsd:date ];
     fhir:ValueSet.compose.inactive [ fhir:value "true"^^xsd:boolean ];
     fhir:ValueSet.compose.include [
       fhir:index 0;
       fhir:ValueSet.compose.include.system [ fhir:value "http://loinc.org" ];
       fhir:ValueSet.compose.include.version [ fhir:value "2.36" ];
       fhir:ValueSet.compose.include.concept [
         fhir:index 0;
         fhir:ValueSet.compose.include.concept.code [ fhir:value "14647-2" ];
         fhir:ValueSet.compose.include.concept.display [ fhir:value "Cholesterol [Moles/Volume]" ]
       ], [
         fhir:index 1;
         fhir:ValueSet.compose.include.concept.code [ fhir:value "2093-3" ];
         fhir:ValueSet.compose.include.concept.display [ fhir:value "Cholesterol [Mass/Volume]" ]
       ], [
         fhir:index 2;
         fhir:ValueSet.compose.include.concept.code [ fhir:value "35200-5" ];
         fhir:ValueSet.compose.include.concept.display [ fhir:value "Cholesterol [Mass Or Moles/Volume]" ]
       ], [
         fhir:index 3;
         fhir:ValueSet.compose.include.concept.code [ fhir:value "9342-7" ];
         fhir:ValueSet.compose.include.concept.display [ fhir:value "Cholesterol [Percentile]" ]
       ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<http://hl7.org/fhir/ValueSet/example-extensional.ttl> a owl:Ontology;
  owl:imports fhir:fhir.ttl;
  owl:versionIRI <http://build.fhir.org/ValueSet/example-extensional.ttl> .

  ] ) ; # 
  fhir:jurisdiction ( [
     fhir:coding ( [
       fhir:system [ fhir:v "urn:iso:std:iso:3166"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "US" ]
     ] )
  ] ) ; # 
  fhir:purpose [ fhir:v "This value set was published by ACME Inc in order to make clear which codes are used for Cholesterol by AcmeClinicals (Adult Ambulatory care support in USA)"] ; # 
  fhir:copyright [ fhir:v "This content from LOINC ® is copyright © 1995 Regenstrief Institute, Inc. and the LOINC Committee, and available at no cost under the license at http://loinc.org/terms-of-use."] ; # 
  fhir:compose [
     fhir:lockedDate [ fhir:v "2012-06-13"^^xsd:date ] ;
     fhir:inactive [ fhir:v "true"^^xsd:boolean ] ;
     fhir:include ( [
       fhir:system [ fhir:v "http://loinc.org"^^xsd:anyURI ] ;
       fhir:version [ fhir:v "2.36" ] ;
       fhir:concept ( [
         fhir:code [ fhir:v "14647-2" ] ;
         fhir:display [ fhir:v "Cholesterol [Moles/Volume]" ]
       ] [
         fhir:code [ fhir:v "2093-3" ] ;
         fhir:display [ fhir:v "Cholesterol [Mass/Volume]" ]
       ] [
         fhir:code [ fhir:v "35200-5" ] ;
         fhir:display [ fhir:v "Cholesterol [Mass Or Moles/Volume]" ]
       ] [
         fhir:code [ fhir:v "9342-7" ] ;
         fhir:display [ fhir:v "Cholesterol [Percentile]" ]
       ] )
     ] )
  ]] . # 


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


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.