This is Snapshot #3 for FHIR R5, released to support Connectathon 32. For a full list of available versions, see the Directory of published versions.
Vocabulary Work Group | Maturity Level: N/A | Standards Status: Informative | Compartments: 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 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 ------------------------------------------------------------------- [a fhir:ValueSet; fhir:nodeRole fhir:treeRoot; fhir:Resource.id [ fhir:value "example"]; # fhir:Resource.meta [ fhir:Meta.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/shareablevalueset"; fhir:index 0; fhir:link <http://hl7.org/fhir/StructureDefinition/shareablevalueset> ] # shareable value sets are fully described, and can be put in the HL7 registry ]; # fhir:DomainResource.text [ fhir:Narrative.status [ fhir:value "additional" ]; fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n <p>Value set "LOINC Codes for Cholesterol": 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"]; # for this example, we use a real URI, since this example does have a canonical address at which it's posted. Alternatively, We could have used an OID, or a UUID. Mote that this isn't the identifier for the LOINC codes themeselves - they belong to LOINC, and it has its own identifier. This is the identifier for this set of codes, and that doesn't change the codes. fhir:ValueSet.identifier [ fhir:index 0; fhir:Identifier.system [ fhir:value "urn:ietf:rfc:3986" ]; fhir:Identifier.value [ fhir:value "urn:oid:2.16.840.1.113883.4.642.3.3292" ] ], [ fhir:index 1; fhir:Identifier.system [ fhir:value "http://acme.com/identifiers/valuesets" ]; fhir:Identifier.value [ fhir:value "loinc-cholesterol-int" ] ]; # an imaginary identifier. This is a non FHIR identifier - might be used in a v2 context (though you always need to translate namespaces for v2) fhir:ValueSet.version [ fhir:value "20150622"]; # for version, we are going to simply use the day of publication. This is also arbitrary - whatever is here is what people use to refer to the version. Could also be a UUID too fhir:ValueSet.name [ fhir:value "LOINCCodesForCholesterolInSerumPlasma"]; # set of loinc codes for cholesterol for LONC 2.36 fhir:ValueSet.title [ 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 ]; # \n if we didn't specify the version of LOINC on the include, then\n we could specify it implicitly by specifying the locked date for the value set\n \n So we show this example here, but it's not actually necessary since we also \n have LOINC version. Note: if you do what this example does, and specify both,\n you better get it right, and specify the current version of LOINC at the time\n fhir:ValueSet.compose.inactive [ fhir:value "true"^^xsd:boolean ]; # \n Including inactive codes means that retired and deprecated codes may still be used in the\n value set. Note that not all retired or deprecated codes are explicitly marked 'inactive' - this \n is a matter of code system policy\n 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]" ] # \n In this value set, we provide our own displays. \n \n You have to be very careful doing this; it's all too \n easy to specify a different or lesser meaning, and then\n people use codes wrongly ()with obvious consequences for clinical safety)\n \n You're allowed to do this in a value set for 2 reasons:\n - people do it anyway\n - it does make sense to remove common text that's fixed in the context\n \n In this case, that's what we're doing here - removing\n 'serum\/plasma' from the names, since that's specified in the\n value set name ], [ 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]" ] ] # for LOINC, we simply include the listed codes - no subsumption in LOINC , these were selected by hand ] # you could have multiple includes, if you wanted to include codes from more than\n one code system, or include codes with different modes. we don't, in this case ]] . # # - ontology header ------------------------------------------------------------ [a owl:Ontology; owl:imports fhir:fhir.ttl] . # -------------------------------------------------------------------------------------
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.
FHIR ®© HL7.org 2011+. FHIR R5 Ballot hl7.fhir.core#5.0.0-snapshot3 generated on Wed, Dec 14, 2022 07:13+1100.
Links: Search |
Version History |
Contents |
Glossary |
QA |
Compare to R4B |
Compare to R5 Draft |
|
Propose a change