<ValueSet xmlns="http://hl7.org/fhir">
  <id value="UKCore-AllergySubstance" />
  <url value="https://fhir.hl7.org.uk/ValueSet/UKCore-AllergySubstance" />
  <version value="2.2.0" />
  <name value="UKCoreAllergySubstance" />
  <title value="UK Core Allergy Substance" />
  <status value="active" />
  <date value="2022-08-26" />
  <publisher value="HL7 UK" />
  <contact>
    <name value="HL7 UK" />
    <telecom>
      <system value="email" />
      <value value="ukcore@hl7.org.uk" />
      <use value="work" />
      <rank value="1" />
    </telecom>
  </contact>
  <description value="A set of codes from the following dm+d (dictionary of medicines and devices) concept classes that define a medication or medication ingredient that the patient has an allergy or intolerance to:    &#xD; - VTM – Virtual Therapeutic Moiety &#xD; - VMP – Virtual Medicinal Product &#xD; - AMP – Actual Medicinal Product &#xD; - Ingredient &#xD;&#xD;  A set of codes from the SNOMED CT UK coding system that:   &#xD; - identify a substance or pharmaceutical or biologic product that the patient has an allergy or intolerance to  &#xD; - provide a degrade of information about a drug or non-drug allergy  &#xD;&#xD;  Where no dm+d or SNOMED CT coded information is available, a specific code from the nullFlavor Code System can be used instead to indicate this." />
  <copyright value="Copyright © 2021+ HL7 UK Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); you may not use this file except in compliance with the License. You may obtain a copy of the License at  http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an &quot;AS IS&quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. HL7® FHIR® standard Copyright © 2011+ HL7 The HL7® FHIR® standard is used under the FHIR license. You may obtain a copy of the FHIR license at  https://www.hl7.org/fhir/license.html.&lt;br$gt;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="https://dmd.nhs.uk" />
      <filter>
        <property value="parent" />
        <op value="=" />
        <value value="VTM" />
      </filter>
    </include>
    <include>
      <system value="https://dmd.nhs.uk" />
      <filter>
        <property value="parent" />
        <op value="=" />
        <value value="VMP" />
      </filter>
    </include>
    <include>
      <system value="https://dmd.nhs.uk" />
      <filter>
        <property value="parent" />
        <op value="=" />
        <value value="AMP" />
      </filter>
    </include>
    <include>
      <system value="https://dmd.nhs.uk" />
      <filter>
        <property value="parent" />
        <op value="=" />
        <value value="INGREDIENT" />
      </filter>
    </include>
    <include>
      <system value="http://snomed.info/sct" />
      <filter>
        <property value="constraint" />
        <op value="=" />
        <value value="descendantOf 105590001 OR descendantOf 373873005 OR 196461000000101 OR 196471000000108" />
      </filter>
    </include>
    <include>
      <system value="http://terminology.hl7.org/CodeSystem/v3-NullFlavor" />
      <concept>
        <code value="NI" />
        <display value="NoInformation" />
      </concept>
    </include>
  </compose>
</ValueSet>