This page is part of the FHIR Specification (v0.4.0: DSTU 2 Draft). 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
As well as the specific example below, there are many value sets published as part of defining other resources. See:
Example Index:
XML
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>
JSON
General ValueSet Example
{ "resourceType": "ValueSet", "id": "101", "text": { "status": "generated", "div": "<div>!-- Snipped for Brevity --></div>" }, "url": "urn:uuid:256a5231-a2bb-49bd-9fea-f349d428b70d", "version": "20120613", "name": "LOINC Codes for Cholesterol", "publisher": "FHIR project team (example)", "contact": [ { "telecom": [ { "system": "url", "value": "http://hl7.org/fhir" } ] } ], "description": "This is an example value set that includes all the LOINC codes for serum cholesterol from v2.36", "copyright": "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": "draft", "experimental": true, "date": "2012-06-13", "compose": { "include": [ { "system": "http://loinc.org", "version": "2.36", "concept": [ { "code": "14647-2" }, { "code": "2093-3" }, { "code": "35200-5" }, { "code": "9342-7" } ] } ] } }
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.