View raw Markdown
type: exampleresource: ValueSetexample: valueset-example-filter

ValueSet Example: valueset-example-filter

Example XML

<?xml version="1.0" encoding="UTF-8"?><!-- shows how to use a filter defined in a code system resource --><ValueSet xmlns="http://hl7.org/fhir">
  <id value="example-filter"/>

  <url value="http://hl7.org/fhir/ValueSet/example-filter"/>
  <identifier>
    <system value="urn:ietf:rfc:3986"/>
    <value value="urn:oid:2.16.840.1.113883.4.642.3.3148"/>
  </identifier>
  <name value="ACMECholCodesPlasma"/>
  <title value="ACME Codes for Cholesterol: Plasma only"/>
  <status value="draft"/>
  <experimental value="true"/>
  <date value="2018-11-01"/>
    <publisher value="HL7 International / Terminology Infrastructure"/>
    <contact>
        <telecom>
            <system value="url"/>
            <value value="http://hl7.org/fhir"/>
        </telecom>
    </contact>
    <contact>
        <telecom>
            <system value="url"/>
            <value value="http://www.hl7.org/Special/committees/Vocab/index.cfm"/>
        </telecom>
    </contact>
  <description value="ACME Codes for Cholesterol: Plasma only - demonstrating the use of a filter defined in a CodeSystem"/>

  <compose>
    <include>
      <system value="http://hl7.org/fhir/CodeSystem/example"/>
      <!--  
        Use the filter defined in the code system. Note that filters like
        this need custom code to support them, and are generally only found
        in high value published code systems (e.g. SNOMED CT). Unlike this example.        
          -->
      <filter>
        <property value="acme-plasma"/>
        <op value="="/>
        <value value="true"/>
      </filter>
    </include>
    <property value="status"/>
  </compose>
</ValueSet>