This page is part of the FHIR Specification (v0.06: DSTU 1 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
Example of valueset
Example of valueset (id = "example")
<ValueSet xmlns="http://hl7.org/fhir"> <!-- set of loinc codes for cholesterol for LONC 2.36 --> <name>Loinc Codes for Cholesterol</name> <author> <name>FHIR project team (example)</name> <reference>http://hl7.org/fhir</reference> </author> <description>This is an example value set that includes all the LOINC codes for serum cholesterol from v2.36</description> <status>testing</status> <date>2012-06-13</date> <!-- this example, we elected to use a UUID. We could have used an OID, or a URI - depends on how it will be used. --> <identifier>256a5231-a2bb-49bd-9fea-f349d428b70d</identifier> <!-- 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>20120613</version> <!-- 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 --> <restricts>http://hl7.org/svc/fhir/valueset/@03acace4-5206-4c8f-a8b4-df27a4c18b09</restricts> <!-- 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:http://hl7.org/svc/fhir/valueset/@f0f65621-ae8c-4c57-9f96-5326c2acefe3 --> <!-- 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>http://loinc.org</system> <version>2.36</version> <!-- for LOINC, we simply include the listed codes - no subsumption in LOINC --> <mode>code</mode> <!-- these were selected by hand --> <code>14647-2</code> <code>2093-3</code> <code>35200-5</code> <code>9342-7</code> </include> <text> <status>generated</status> <div xmlns="http://www.w3.org/1999/xhtml"> <p>Value set "Loinc Codes for Cholesterol": This is an example value set that includes all the LOINC codes for serum cholesterol from v2.36. Developed by: FHIR project team (example)</p> <p>Published for testing on 13-June 2012</p> <p>This is a restriction on <a href="http://hl7.org/svc/fhir/valueset/@03acace4-5206-4c8f-a8b4-df27a4c18b09?format=text/html"> the value set "all serum test codes"</a>, and contains the following LOINC codes:</p> <ul> <li>14647-2</li> <li>2093-3</li> <li>35200-5</li> <li>9342-7</li> </ul> </div> </text> </ValueSet>
JSON Equivalent
Example of valueset
{"ValueSet": { "author": { "name": {"value": "FHIR project team (example)"}, "reference": {"value": "http://hl7.org/fhir"} }, "text": { "status": "generated", "div": "<div>\n <p>Value set "Loinc Codes for Cholesterol": This is an example value set that includes \n all the LOINC codes for serum cholesterol from v2.36. \n Developed by: FHIR project team (example)<\/p>\n <p>Published for testing on 13-June 2012<\/p>\n <p>This is a restriction on\n<a href=\"http://hl7.org/svc/fhir/valueset/@03acace4-5206-4c8f-a8b4-df27a4c18b09?format=text/html\">\n the value set "all serum test codes"<\/a>, and contains the following LOINC codes:<\/p>\n <ul>\n <li>14647-2<\/li>\n <li>2093-3<\/li>\n <li>35200-5<\/li>\n <li>9342-7<\/li> \n <\/ul>\n <\/div>" }, "status": "testing", "description": {"value": "This is an example value set that includes \n all the LOINC codes for serum cholesterol from v2.36"}, "restricts": [{"value": "http://hl7.org/svc/fhir/valueset/@03acace4-5206-4c8f-a8b4-df27a4c18b09"}], "name": {"value": "Loinc Codes for Cholesterol"}, "date": {"value": "2012-06-13"}, "identifier": {"value": "256a5231-a2bb-49bd-9fea-f349d428b70d"}, "include": [{ "system": {"value": "http://loinc.org"}, "code": [ {"value": "14647-2"}, {"value": "2093-3"}, {"value": "35200-5"}, {"value": "9342-7"} ], "mode": "code", "version": {"value": "2.36"} }], "version": {"value": "20120613"} }}
This is an old version of FHIR retained for archive purposes. Do not use for anything else
Implementers are welcome to experiment with the content defined here, but should note that the contents are subject to change without prior notice.
© HL7.org 2011 - 2012. FHIR v0.06 generated on Tue, Dec 4, 2012 00:03+1100. License