Release 4B

This page is part of the FHIR Specification (v4.3.0: R4B - STU). 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

Vocabulary Work GroupMaturity Level: N/AStandards Status: InformativeCompartments: Not linked to any defined compartments

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

ValueSet Example using enumeration of codes (extensional)

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

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

[] a fhir:ValueSet;
  fhir:Resource.id [ fhir:value "example-extensional"];
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "http://hl7.org/fhir/StructureDefinition/shareablevalueset";
       fhir:index 0
     ]
  ];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ]
  ];
  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"];
  fhir:ValueSet.date [ fhir:value "2015-06-22"];
  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.value [
       fhir:Quantity.value [ fhir:value "18" ];
       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.lockedDate [ fhir:value "2012-06-13" ];
     fhir:ValueSet.inactive [ fhir:value "true" ];
     fhir:ValueSet.include [
       fhir:index 0;
       fhir:ValueSet.system [ fhir:value "http://loinc.org" ];
       fhir:ValueSet.version [ fhir:value "2.36" ];
       fhir:ValueSet.concept [
         fhir:index 0;
         fhir:ValueSet.code [ fhir:value "14647-2" ];
         fhir:ValueSet.display [ fhir:value "Cholesterol [Moles/Volume]" ]
       ], [
         fhir:index 1;
         fhir:ValueSet.code [ fhir:value "2093-3" ];
         fhir:ValueSet.display [ fhir:value "Cholesterol [Mass/Volume]" ]
       ], [
         fhir:index 2;
         fhir:ValueSet.code [ fhir:value "35200-5" ];
         fhir:ValueSet.display [ fhir:value "Cholesterol [Mass Or Moles/Volume]" ]
       ], [
         fhir:index 3;
         fhir:ValueSet.code [ fhir:value "9342-7" ];
         fhir:ValueSet.display [ fhir:value "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.