-------- Forwarded Message --------
Subject:        Example value sets
Date:   Tue, 22 Sep 2015 19:07:18 -0600
From:   Lloyd McKenzie <ll...@lmckenzie.com>
Reply-To:       Lloyd McKenzie <ll...@lmckenzie.com>
To:     Anthony Mallia <amal...@edmondsci.com>
CC:     HL7 ITS <i...@lists.hl7.org>

Hi Tony,

Here are some value sets to work with while testing.  They cover the
majority of the scenarios you could encounter and all but one are real
(one has a tweak to make it a bit more painful - you're welcome :>).
And the invented one is at least realistic.


Lloyd

*Lloyd McKenzie*, P.Eng.
Senior Consultant, Information Technology Services
Gevity Consulting Inc.

E: lmcken...@gevityinc.com <mailto:lmcken...@gevityinc.com>
M: +1 587-334-1110 <tel:1-587-334-1110>
W: gevityinc.com <http://gevityinc.com/>

*GEVITY
**/Informatics for a healthier world /*

CONFIDENTIALITY – This communication is confidential and for the
exclusive use of its intended recipients. If you have received this
communication by error, please notify the sender and delete the message
without copying or disclosing it*.*

NOTE: Unless explicitly stated otherwise, the opinions and positions
expressed in this e-mail do not necessarily reflect those of my
employer, my clients nor the organizations with whom I hold governance
positions

***********************************************************************************
Manage your subscriptions <http://www.HL7.org/listservice> | View the
archives <http://lists.HL7.org/read/?forum=its> | Unsubscribe
<http://www.HL7.org/tools/unsubscribe.cfm?email=da...@dbooth.org&list=its>
| Terms of use
<http://www.HL7.org/myhl7/managelistservs.cfm?ref=nav#listrules>



<?xml version="1.0" encoding="UTF-8"?>
<Bundle xmlns="http://hl7.org/fhir"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://hl7.org/fhir file:///C:/Users/Lloyd/Documents/SVN/FHIR/build/schema/valueset.xsd">
  <id value="valuesets"/>
  <meta>
    <lastUpdated value="2015-09-18T15:56:00.105-06:00"/>
  </meta>
  <type value="collection"/>
  <entry>
    <!-- sample with both code system definition and references to an external code system -->
    <fullUrl value="http://hl7.org/fhir/ValueSet/identifier-type"/>
    <resource>
      <ValueSet>
        <id value="identifier-type"/>
        <meta>
          <lastUpdated value="2015-09-18T15:56:00.105-06:00"/>
          <profile value="http://hl7.org/fhir/StructureDefinition/valueset-shareable-definition"/>
        </meta>
        <text>
          <status value="empty"/>
          <div xmlns="http://www.w3.org/1999/xhtml";>Narrative stripped</div>
        </text>
        <extension url="http://hl7.org/fhir/StructureDefinition/valueset-warning";>
          <valueMarkdown value="Types are for general categories of identifiers. See [the identifier registry](identifier-registry.html) for a list of common identifier systems"/>
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/valueset-oid";>
          <valueUri value="urn:oid:2.16.840.1.113883.4.642.2.30"/>
        </extension>
        <url value="http://hl7.org/fhir/ValueSet/identifier-type"/>
        <version value="1.0.0"/>
        <name value="Identifier Type Codes"/>
        <status value="draft"/>
        <experimental value="true"/>
        <publisher value="HL7 (FHIR Project)"/>
        <contact>
          <telecom>
            <system value="other"/>
            <value value="http://hl7.org/fhir"/>
          </telecom>
        </contact>
        <date value="2015-09-18T15:56:00-06:00"/>
        <description value="A coded type for an identifier that can be used to determine which identifier to use for a specific purpose."/>
        <codeSystem>
          <extension url="http://hl7.org/fhir/StructureDefinition/valueset-oid";>
            <valueUri value="urn:oid:2.16.840.1.113883.4.642.1.30"/>
          </extension>
          <!--    these are defined until they move properly into v2 able 0203    -->
          <system value="http://hl7.org/fhir/identifier-type"/>
          <caseSensitive value="true"/>
          <concept>
            <code value="UDI"/>
            <display value="Universal Device Identifier"/>
            <definition value="A identifier assigned to a device using the Universal Device Identifier framework as defined by FDA (http://www.fda.gov/MedicalDevices/DeviceRegulationandGuidance/UniqueDeviceIdentification/)."/>
          </concept>
          <concept>
            <code value="SNO"/>
            <display value="Serial Number"/>
            <definition value="An identifier affixed to an item by the manufacturer when it is first made, where each item has a different identifier."/>
          </concept>
          <concept>
            <code value="SB"/>
            <display value="Social Beneficiary Identifier"/>
            <definition value="An identifier issued by a governmental organization to an individual for the purpose of the receipt of social services and benefits."/>
          </concept>
          <concept>
            <code value="PLAC"/>
            <display value="Placer Identifier"/>
            <definition value="The identifier associated with the person or service that requests or places an order."/>
          </concept>
          <concept>
            <code value="FILL"/>
            <display value="Filler Identifier"/>
            <definition value="The Identifier associated with the person, or service, who produces the observations or fulfills the order requested by the requestor."/>
          </concept>
        </codeSystem>
        <compose>
          <include>
            <system value="http://hl7.org/fhir/v2/0203"/>
            <concept>
              <code value="DL"/>
            </concept>
            <concept>
              <code value="PPN"/>
            </concept>
            <concept>
              <code value="BRN"/>
            </concept>
            <concept>
              <code value="MR"/>
            </concept>
            <concept>
              <code value="MCN"/>
            </concept>
            <concept>
              <code value="EN"/>
            </concept>
            <concept>
              <code value="TAX"/>
            </concept>
            <concept>
              <code value="NIIP"/>
            </concept>
            <concept>
              <code value="PRN"/>
            </concept>
            <concept>
              <code value="MD"/>
            </concept>
            <concept>
              <code value="DR"/>
            </concept>
          </include>
        </compose>
      </ValueSet>
    </resource>
  </entry>
  <entry>
    <!-- Just a code system definition - with hierarchy -->
    <fullUrl value="http://hl7.org/fhir/ValueSet/restful-interaction"/>
    <resource>
      <ValueSet>
        <id value="restful-interaction"/>
        <meta>
          <lastUpdated value="2015-09-18T15:56:00.105-06:00"/>
        </meta>
        <text>
          <status value="empty"/>
          <div xmlns="http://www.w3.org/1999/xhtml";>Narrative stripped</div>
        </text>
        <url value="http://hl7.org/fhir/ValueSet/restful-interaction"/>
        <name value="FHIR Restful Interactions"/>
        <status value="draft"/>
        <publisher value="FHIR Project"/>
        <description value="The set of interactions defined by the RESTful part of the FHIR specification."/>
        <codeSystem>
          <system value="http://hl7.org/fhir/restful-interaction"/>
          <caseSensitive value="true"/>
          <concept>
            <code value="read"/>
            <display value="read"/>
            <definition value="Read the current state of the resource."/>
          </concept>
          <concept>
            <code value="vread"/>
            <display value="vread"/>
            <definition value="Read the state of a specific version of the resource."/>
          </concept>
          <concept>
            <code value="update"/>
            <display value="update"/>
            <definition value="Update an existing resource by its id (or create it if it is new)."/>
          </concept>
          <concept>
            <code value="delete"/>
            <display value="delete"/>
            <definition value="Delete a resource."/>
          </concept>
          <concept>
            <code value="history"/>
            <abstract value="false"/>
            <display value="history"/>
            <definition value="Retrieve the update history for a particular resource, type of resource, or the entire system."/>
            <concept>
              <code value="history-instance"/>
              <display value="history-instance"/>
              <definition value="Retrieve the update history for a particular resource."/>
            </concept>
            <concept>
              <code value="history-type"/>
              <display value="history-type"/>
              <definition value="Retrieve the update history for a all resources of a particular type."/>
            </concept>
            <concept>
              <code value="history-system"/>
              <display value="history-system"/>
              <definition value="Retrieve the update history for all resources on a system."/>
            </concept>
          </concept>
          <concept>
            <code value="create"/>
            <display value="create"/>
            <definition value="Create a new resource with a server assigned id."/>
          </concept>
          <concept>
            <code value="search"/>
            <abstract value="false"/>
            <display value="search"/>
            <definition value="Search a resource type or all resources based on some filter criteria."/>
            <concept>
              <code value="search-type"/>
              <display value="search-type"/>
              <definition value="Search all resources of the specified type based on some filter criteria."/>
            </concept>
            <concept>
              <code value="search-system"/>
              <display value="search-system"/>
              <definition value="Search all resources based on some filter criteria."/>
            </concept>
          </concept>
          <concept>
            <code value="validate"/>
            <display value="validate"/>
            <definition value="Check that the content would be acceptable as an update."/>
          </concept>
          <concept>
            <code value="conformance"/>
            <display value="conformance"/>
            <definition value="Get a conformance statement for the system."/>
          </concept>
          <concept>
            <code value="transaction"/>
            <display value="transaction"/>
            <definition value="Update, create or delete a set of resources as a single transaction."/>
          </concept>
          <concept>
            <code value="operation"/>
            <display value="operation"/>
            <definition value="Perform an operation as defined by an OperationDefinition."/>
          </concept>
        </codeSystem>
      </ValueSet>
    </resource>
  </entry>
  <entry>
    <!-- Includes from different code systems, is-a filter -->
    <fullUrl value="http://hl7.org/fhir/ValueSet/observation-methods"/>
    <resource>
      <ValueSet>
        <id value="observation-methods"/>
        <meta>
          <lastUpdated value="2015-09-18T15:56:00.105-06:00"/>
          <profile value="http://hl7.org/fhir/StructureDefinition/valueset-shareable-definition"/>
        </meta>
        <text>
          <status value="empty"/>
          <div xmlns="http://www.w3.org/1999/xhtml";>Narrative stripped</div>
        </text>
        <extension url="http://hl7.org/fhir/StructureDefinition/valueset-oid";>
          <valueUri value="urn:oid:2.16.840.1.113883.4.642.2.215"/>
        </extension>
        <url value="http://hl7.org/fhir/ValueSet/observation-methods"/>
        <version value="1.0.0"/>
        <name value="Observation Methods"/>
        <status value="draft"/>
        <experimental value="true"/>
        <publisher value="FHIR Project team"/>
        <contact>
          <telecom>
            <system value="other"/>
            <value value="http://hl7.org/fhir"/>
          </telecom>
        </contact>
        <date value="2015-09-18T15:56:00-06:00"/>
        <description value="Observation Method codes from SNOMED CT (codes subsumed by 272394005 &quot;Technique&quot;, and the v3 Code System &quot;ObservationMethod&quot; (which is no longer actively maintained)."/>
        <copyright value="This value set includes content from SNOMED CT, which is copyright © 2002+ International Health Terminology Standards Development Organisation (IHTSDO), and distributed by agreement between IHTSDO and HL7. Implementer use of SNOMED CT is not covered by this agreement."/>
        <compose>
          <include>
            <system value="http://hl7.org/fhir/v3/ObservationMethod"/>
          </include>
          <include>
            <system value="http://snomed.info/sct"/>
            <filter>
              <property value="concept"/>
              <op value="is-a"/>
              <value value="272394005"/>
            </filter>
          </include>
        </compose>
      </ValueSet>
    </resource>
  </entry>
  <entry>
    <!-- Include plus exclude, use of a lOINC property, inclusion of version -->
    <fullUrl value="http://hl7.org/fhir/ValueSet/example-intensional"/>
    <resource>
      <ValueSet>
        <id value="example-intensional"/>
        <meta>
          <lastUpdated value="2015-09-18T15:56:00.105-06:00"/>
          <profile value="http://hl7.org/fhir/StructureDefinition/valueset-shareable-definition"/>
        </meta>
        <text>
          <status value="empty"/>
          <div xmlns="http://www.w3.org/1999/xhtml";>Narrative stripped</div>
        </text>
        <url value="http://hl7.org/fhir/ValueSet/example-intensional"/>
        <identifier>
          <system value="http://acme.com/identifiers/valuesets"/>
          <value value="loinc-cholesterol-ext"/>
        </identifier>
        <version value="20150622"/>
        <name value="LOINC Codes for Cholesterol in Serum/Plasma"/>
        <status value="draft"/>
        <experimental value="true"/>
        <publisher value="HL7 International"/>
        <contact>
          <name value="FHIR project team"/>
          <telecom>
            <system value="other"/>
            <value value="http://hl7.org/fhir"/>
          </telecom>
        </contact>
        <date value="2015-06-22"/>
        <description value="This is an example value set that includes all the LOINC codes for serum/plasma 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"/>
        <compose>
          <include>
            <system value="http://loinc.org"/>
            <version value="2015-01-01"/>
            <filter>
              <property value="parent"/>
              <op value="="/>
              <value value="LP43571-6"/>
            </filter>
          </include>
          <exclude>
            <system value="http://loinc.org"/>
            <concept>
              <code value="5932-9"/>
              <display value="Cholesterol [Presence] in Blood by Test strip"/>
            </concept>
          </exclude>
        </compose>
      </ValueSet>
    </resource>
  </entry>
  <entry>
    <!-- importing a value set -->
    <fullUrl value="http://hl7.org/fhir/ValueSet/yesnodontknow"/>
    <resource>
      <ValueSet>
        <id value="yesnodontknow"/>
        <meta>
          <lastUpdated value="2015-09-18T15:56:00.105-06:00"/>
        </meta>
        <text>
          <status value="empty"/>
          <div xmlns="http://www.w3.org/1999/xhtml";>Narrative stripped</div>
        </text>
        <url value="http://hl7.org/fhir/ValueSet/yesnodontknow"/>
        <name value="Yes/No/Don&#39;t Know"/>
        <status value="draft"/>
        <description value="For Capturing simple yes-no-don&#39;t know answers"/>
        <compose>
          <import value="http://hl7.org/fhir/ValueSet/v2-0136"/>
          <!-- Yes, I know this value set isn't included in the file.  Conversion process needs to deal with that -->
          <include>
            <system value="http://hl7.org/fhir/data-absent-reason"/>
            <concept>
              <code value="asked"/>
              <display value="Don&#39;t know"/>
            </concept>
          </include>
        </compose>
        <expansion>
          <identifier value="urn:uuid:bf99fe50-2c2b-41ad-bd63-bee6919810b4"/>
          <timestamp value="2015-07-14T10:00:00Z"/>
          <contains>
            <system value="http://hl7.org/fhir/v2/0136"/>
            <code value="Y"/>
            <display value="Yes"/>
          </contains>
          <contains>
            <system value="http://hl7.org/fhir/v2/0136"/>
            <code value="N"/>
            <display value="No"/>
          </contains>
          <contains>
            <system value="http://hl7.org/fhir/data-absent-reason"/>
            <code value="asked"/>
            <display value="Don&#39;t know"/>
          </contains>
        </expansion>
      </ValueSet>
    </resource>
  </entry>
  <entry>
    <!-- Using 'in' with property -->
    <fullUrl value="http://hl7.org/fhir/ValueSet/substance-rxnorm"/>
    <resource>
      <ValueSet>
        <id value="substance-rxnorm"/>
        <meta>
          <lastUpdated value="2015-09-18T15:56:00.105-06:00"/>
        </meta>
        <text>
          <status value="empty"/>
          <div xmlns="http://www.w3.org/1999/xhtml";>Narrative stripped</div>
        </text>
        <extension url="http://hl7.org/fhir/StructureDefinition/valueset-oid";>
          <valueUri value="urn:oid:2.16.840.1.113762.1.4.1010.7"/>
        </extension>
        <url value="http://hl7.org/fhir/ValueSet/substance-rxnorm"/>
        <name value="DAF Substance RxNorm Codes"/>
        <status value="draft"/>
        <publisher value="FHIR Project team"/>
        <contact>
          <telecom>
            <system value="other"/>
            <value value="http://hl7.org/fhir"/>
          </telecom>
        </contact>
        <description value="All RxNorm codes that have TTY = IN,PIN,MIN,BN, but TTY != OCD."/>
        <compose>
          <include>
            <system value="http://www.nlm.nih.gov/research/umls/rxnorm"/>
            <filter>
              <property value="TTY"/>
              <op value="in"/>
              <value value="IN,PIN,MIN,BN"/>
            </filter>
          </include>
          <exclude>
            <system value="http://www.nlm.nih.gov/research/umls/rxnorm"/>
            <filter>
              <property value="TTY"/>
              <op value="="/>
              <value value="OCD"/>
            </filter>
          </exclude>
        </compose>
      </ValueSet>
    </resource>
  </entry>
  <entry>
    <!-- Using a regex -->
    <fullUrl value="http://hl7.org/fhir/ValueSet/icd-tbpneumonia"/>
    <resource>
      <ValueSet>
        <id value="icd-tbpneumonia"/>
        <meta>
          <lastUpdated value="2015-09-18T15:56:00.105-06:00"/>
        </meta>
        <text>
          <status value="empty"/>
          <div xmlns="http://www.w3.org/1999/xhtml";>Narrative stripped</div>
        </text>
        <url value="http://hl7.org/fhir/ValueSet/icd-tbpneumonia"/>
        <name value="Sample ICD9 tuberculous pneumonia codes"/>
        <status value="draft"/>
        <publisher value="Lloyd"/>
        <description value="All ICD 9 codes starting with '011.6'"/>
        <compose>
          <include>
            <system value="http://hl7.org/fhir/sid/icd-9-cm"/>
            <filter>
              <property value="code"/>
              <op value="regex"/>
              <value value="011\.6."/>
            </filter>
          </include>
        </compose>
        <expansion>
          <identifier value="urn:uuid:bf99fe50-2c2b-41ad-bd63-ffffffffffff"/>
          <timestamp value="2015-09-18T15:56:00.105-06:00"/>
          <contains>
            <code value="011.60"/>
            <display value="TUBERCULOUS PNEUMONIA (ANY FORM) UNSPECIFIED EXAMINATION"/>
          </contains>
          <contains>
            <code value="011.61"/>
            <display value="TUBERCULOUS PNEUMONIA (ANY FORM) BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION NOT DONE"/>
          </contains>
          <contains>
            <code value="011.62"/>
            <display value="TUBERCULOUS PNEUMONIA (ANY FORM) BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION RESULTS UNKNOWN (AT PRESENT)"/>
          </contains>
          <contains>
            <code value="011.63"/>
            <display value="TUBERCULOUS PNEUMONIA (ANY FORM) TUBERCLE BACILLI FOUND (IN SPUTUM) BY MICROSCOPY"/>
          </contains>
          <contains>
            <code value="011.64"/>
            <display value="TUBERCULOUS PNEUMONIA (ANY FORM) TUBERCLE BACILLI NOT FOUND (IN SPUTUM) BY MICROSCOPY BUT FOUND BY BACTERIAL CULTURE"/>
          </contains>
          <contains>
            <code value="011.65"/>
            <display value="TUBERCULOUS PNEUMONIA (ANY FORM) TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL EXAMINATION BUT TUBERCULOSIS CONFIRMED HISTOLOGICALLY"/>
          </contains>
          <contains>
            <code value="011.66"/>
            <display value="TUBERCULOUS PNEUMONIA (ANY FORM) TUBERCLE BACILLI NOT FOUND BY BACTERIOLOGICAL OR HISTOLOGICAL EXAMINATION BUT TUBERCULOSIS CONFIRMED BY OTHER METHODS (INOCULATION OF ANIMALS)"/>
          </contains>
        </expansion>
      </ValueSet>
    </resource>
  </entry>
</Bundle>

Reply via email to