This page is part of the FHIR Specification (v0.5.0: DSTU 2 Ballot 2). 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 R2
General ValueSet Example (id = "101")
<ValueSet xmlns="http://hl7.org/fhir"> <id value="101"/> <text> <status value="generated"/> <div xmlns="http://www.w3.org/1999/xhtml"><!-- Snipped for brevity --></div> </text><!-- this example, we elected to use a UUID. We could have used an OID, or a URI - depends on how it will be used. --> <url value="urn:uuid:256a5231-a2bb-49bd-9fea-f349d428b70d"/><!-- 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 --> <version value="20120613"/><!-- set of loinc codes for cholesterol for LONC 2.36 --> <name value="LOINC Codes for Cholesterol"/> <publisher value="FHIR project team (example)"/> <contact> <telecom> <system value="url"/> <value value="http://hl7.org/fhir"/> </telecom> </contact> <description value="This is an example value set that includes all the LOINC codes for serum cholesterol from v2.36"/> <copyright 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"/> <status value="draft"/> <experimental value="true"/> <date value="2012-06-13"/> <compose><!-- we claim that this value set is a constraint on this other value set this actual URL is a reference to a fictitious value set definition on a fictitious FHIR value set registry. We claim here, simply for illustrative purposes, that the value set referred to here is all LOINC codes for serum tests, and that this value set is therefor a constraint on that one Currently this is not included in the resource pending further investigation <restricts value="http://test.fhir.org/open/ValueSet/03acace4-5206-4c8f-a8b4-df27a4c18b0 9"/> --><!-- given that this value set is small, it doesn't make sense to import another one - what would it say? But if that made sense, we'd do it like this: <import>http://test.fhir.org/open/ValueSet/f0f65621-ae8c-4c57-9f96-5326c2acefe3</import&g t; --><!-- you could have multiple includes, if you wanted to include codes from more than one code system, or include codes with different modes. we don't, in this case --> <include> <system value="http://loinc.org"/> <version value="2.36"/><!-- for LOINC, we simply include the listed codes - no subsumption in LOINC --><!-- these were selected by hand --> <concept> <code value="14647-2"/> </concept> <concept> <code value="2093-3"/> </concept> <concept> <code value="35200-5"/> </concept> <concept> <code value="9342-7"/> </concept> </include> </compose> </ValueSet>
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.