<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="vn-core-allergy-intolerance" />
  <url value="http://moh.gov.vn/fhir/core/StructureDefinition/vn-core-allergy-intolerance" />
  <version value="1.0.0" />
  <name value="VNCoreAllergyIntolerance" />
  <title value="Allergy Intolerance profile - VN Core R4" />
  <status value="draft" />
  <description value="Thông tin mô tả về dị ứng bệnh nhân gặp phải" />
  <copyright value="Bộ Y tế - Việt Nam" />
  <fhirVersion value="4.0.1" />
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <mapping>
    <identity value="w5" />
    <uri value="http://hl7.org/fhir/fivews" />
    <name value="FiveWs Pattern Mapping" />
  </mapping>
  <mapping>
    <identity value="v2" />
    <uri value="http://hl7.org/v2" />
    <name value="HL7 v2 Mapping" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="AllergyIntolerance" />
  <baseDefinition value="http://hl7.org/fhir/uv/ips/StructureDefinition/AllergyIntolerance-uv-ips" />
  <derivation value="constraint" />
  <differential>
    <element id="AllergyIntolerance.clinicalStatus">
      <path value="AllergyIntolerance.clinicalStatus" />
      <type>
        <code value="CodeableConcept" />
        <profile value="http://moh.gov.vn/fhir/core/StructureDefinition/vn-core-codeableconcept" />
      </type>
    </element>
    <element id="AllergyIntolerance.verificationStatus">
      <path value="AllergyIntolerance.verificationStatus" />
      <type>
        <code value="CodeableConcept" />
        <profile value="http://moh.gov.vn/fhir/core/StructureDefinition/vn-core-codeableconcept" />
      </type>
    </element>
    <element id="AllergyIntolerance.category">
      <path value="AllergyIntolerance.category" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.code">
      <path value="AllergyIntolerance.code" />
      <type>
        <code value="CodeableConcept" />
        <profile value="http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips" />
        <profile value="http://moh.gov.vn/fhir/core/StructureDefinition/vn-core-codeableconcept" />
      </type>
    </element>
    <element id="AllergyIntolerance.patient">
      <path value="AllergyIntolerance.patient" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://moh.gov.vn/fhir/core/StructureDefinition/vn-core-patient" />
      </type>
    </element>
    <element id="AllergyIntolerance.encounter">
      <path value="AllergyIntolerance.encounter" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter" />
        <targetProfile value="http://moh.gov.vn/fhir/core/StructureDefinition/vn-core-encounter" />
      </type>
    </element>
    <element id="AllergyIntolerance.asserter">
      <path value="AllergyIntolerance.asserter" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole" />
        <targetProfile value="http://moh.gov.vn/fhir/core/StructureDefinition/vn-core-practitioner" />
      </type>
    </element>
    <element id="AllergyIntolerance.reaction.manifestation:allergyIntoleranceReactionManifestationGPSCode">
      <path value="AllergyIntolerance.reaction.manifestation" />
      <sliceName value="allergyIntoleranceReactionManifestationGPSCode" />
      <type>
        <code value="CodeableConcept" />
        <profile value="http://moh.gov.vn/fhir/core/StructureDefinition/vn-core-codeableconcept" />
      </type>
    </element>
  </differential>
</StructureDefinition>