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 code filter (intensional)
@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-intensional"]; # 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> ] ]; # 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 all the LOINC codes in LOINC Part Concept Cholesterol | Bld-Ser-Plas (LP43571-6), except for 5932-9 Cholesterol [Presence] in Blood by Test strip</p>\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-intensional"]; # 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 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.3145" ] ], [ fhir:index 1; fhir:Identifier.system [ fhir:value "http://acme.com/identifiers/valuesets" ]; fhir:Identifier.value [ fhir:value "loinc-cholesterol-ext" ] ]; # 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.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.include [ fhir:index 0; fhir:ValueSet.compose.include.system [ fhir:value "http://loinc.org" ]; fhir:ValueSet.compose.include.filter [ fhir:index 0; fhir:ValueSet.compose.include.filter.property [ fhir:value "parent" ]; fhir:ValueSet.compose.include.filter.op [ fhir:value "=" ]; fhir:ValueSet.compose.include.filter.value [ fhir:value "LP43571-6" ] ] # \n Instead of listing the codes (see the extensional example)\n we do something else: all codes in LOINC part LP43571-6\n\n Doing it like this means we can't change the displays (per the \n extensional example). \n ]; fhir:ValueSet.compose.exclude [ fhir:index 0; fhir:ValueSet.compose.include.system [ fhir:value "http://loinc.org" ]; fhir:ValueSet.compose.include.concept [ fhir:index 0; fhir:ValueSet.compose.include.concept.code [ fhir:value "5932-9" ]; fhir:ValueSet.compose.include.concept.display [ fhir:value "Cholesterol [Presence] in Blood by Test strip" ] ] ] # \n The part LP43571-6 includes the weird code \n 5932-9 Cholesterol [Presence] in Blood by Test strip \n - we don't want that one. no. \n ]] . # In intensional value sets a locked date or a version of the code system is often not specified. Instead, we're saying, select the right codes in the version you are using based on the filter criteria # - 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