<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="https://fhir.synapxe.sg/StructureDefinition/profile-allergyintolerance" />
  <name value="AllergyIntolerance" />
  <status value="active" />
  <fhirVersion value="5.0.0" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="AllergyIntolerance" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/AllergyIntolerance" />
  <derivation value="constraint" />
  <differential>
    <element id="AllergyIntolerance.identifier">
      <path value="AllergyIntolerance.identifier" />
      <max value="0" />
    </element>
    <element id="AllergyIntolerance.clinicalStatus">
      <path value="AllergyIntolerance.clinicalStatus" />
      <max value="0" />
    </element>
    <element id="AllergyIntolerance.verificationStatus">
      <path value="AllergyIntolerance.verificationStatus" />
      <max value="0" />
    </element>
    <element id="AllergyIntolerance.type">
      <path value="AllergyIntolerance.type" />
      <type>
        <code value="CodeableConcept" />
        <profile value="https://fhir.synapxe.sg/StructureDefinition/profile-codeableconcept" />
      </type>
    </element>
    <element id="AllergyIntolerance.code">
      <path value="AllergyIntolerance.code" />
      <min value="1" />
      <type>
        <code value="CodeableConcept" />
        <profile value="https://fhir.synapxe.sg/StructureDefinition/profile-codeableconcept" />
      </type>
    </element>
    <element id="AllergyIntolerance.code.extension">
      <path value="AllergyIntolerance.code.extension" />
      <max value="0" />
    </element>
    <element id="AllergyIntolerance.code.coding.version">
      <path value="AllergyIntolerance.code.coding.version" />
      <max value="0" />
    </element>
    <element id="AllergyIntolerance.patient">
      <path value="AllergyIntolerance.patient" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.synapxe.sg/StructureDefinition/profile-patient" />
      </type>
    </element>
    <element id="AllergyIntolerance.patient.reference">
      <path value="AllergyIntolerance.patient.reference" />
      <max value="0" />
    </element>
    <element id="AllergyIntolerance.patient.type">
      <path value="AllergyIntolerance.patient.type" />
      <min value="1" />
      <fixedUri value="Patient" />
    </element>
    <element id="AllergyIntolerance.patient.identifier">
      <path value="AllergyIntolerance.patient.identifier" />
      <min value="1" />
      <type>
        <code value="Identifier" />
        <profile value="https://fhir.synapxe.sg/StructureDefinition/profile-identifier" />
      </type>
    </element>
    <element id="AllergyIntolerance.patient.identifier.system">
      <path value="AllergyIntolerance.patient.identifier.system" />
      <fixedUri value="https://fhir.synapxe.sg/NamingSystem/nric" />
    </element>
    <element id="AllergyIntolerance.encounter">
      <path value="AllergyIntolerance.encounter" />
      <max value="0" />
    </element>
    <element id="AllergyIntolerance.onset[x]">
      <path value="AllergyIntolerance.onset[x]" />
      <type>
        <code value="dateTime" />
      </type>
      <type>
        <code value="Age" />
      </type>
      <type>
        <code value="Period" />
      </type>
      <type>
        <code value="string" />
      </type>
    </element>
    <element id="AllergyIntolerance.participant.id">
      <path value="AllergyIntolerance.participant.id" />
      <max value="0" />
    </element>
    <element id="AllergyIntolerance.participant.extension">
      <path value="AllergyIntolerance.participant.extension" />
      <max value="0" />
    </element>
    <element id="AllergyIntolerance.participant.modifierExtension">
      <path value="AllergyIntolerance.participant.modifierExtension" />
      <max value="0" />
    </element>
    <element id="AllergyIntolerance.participant.function">
      <path value="AllergyIntolerance.participant.function" />
      <min value="1" />
      <type>
        <code value="CodeableConcept" />
        <profile value="https://fhir.synapxe.sg/StructureDefinition/profile-codeableconcept" />
      </type>
      <binding>
        <strength value="required" />
      </binding>
    </element>
    <element id="AllergyIntolerance.participant.function.extension">
      <path value="AllergyIntolerance.participant.function.extension" />
      <max value="0" />
    </element>
    <element id="AllergyIntolerance.participant.function.coding.version">
      <path value="AllergyIntolerance.participant.function.coding.version" />
      <max value="0" />
    </element>
    <element id="AllergyIntolerance.participant.actor">
      <path value="AllergyIntolerance.participant.actor" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.synapxe.sg/StructureDefinition/profile-practitioner" />
      </type>
    </element>
    <element id="AllergyIntolerance.participant.actor.id">
      <path value="AllergyIntolerance.participant.actor.id" />
      <max value="0" />
    </element>
    <element id="AllergyIntolerance.participant.actor.extension">
      <path value="AllergyIntolerance.participant.actor.extension" />
      <max value="0" />
    </element>
    <element id="AllergyIntolerance.participant.actor.reference">
      <path value="AllergyIntolerance.participant.actor.reference" />
      <max value="0" />
    </element>
    <element id="AllergyIntolerance.participant.actor.type">
      <path value="AllergyIntolerance.participant.actor.type" />
      <min value="1" />
      <fixedUri value="Practitioner" />
    </element>
    <element id="AllergyIntolerance.participant.actor.identifier">
      <path value="AllergyIntolerance.participant.actor.identifier" />
      <min value="1" />
      <type>
        <code value="Identifier" />
        <profile value="https://fhir.synapxe.sg/StructureDefinition/profile-identifier" />
      </type>
    </element>
    <element id="AllergyIntolerance.participant.actor.identifier.system">
      <path value="AllergyIntolerance.participant.actor.identifier.system" />
      <fixedUri value="https://fhir.synapxe.sg/NamingSystem/mcr" />
    </element>
    <element id="AllergyIntolerance.note">
      <path value="AllergyIntolerance.note" />
      <max value="0" />
    </element>
    <element id="AllergyIntolerance.reaction">
      <path value="AllergyIntolerance.reaction" />
      <max value="1" />
    </element>
    <element id="AllergyIntolerance.reaction.id">
      <path value="AllergyIntolerance.reaction.id" />
      <max value="0" />
    </element>
    <element id="AllergyIntolerance.reaction.extension">
      <path value="AllergyIntolerance.reaction.extension" />
      <max value="0" />
    </element>
    <element id="AllergyIntolerance.reaction.modifierExtension">
      <path value="AllergyIntolerance.reaction.modifierExtension" />
      <max value="0" />
    </element>
    <element id="AllergyIntolerance.reaction.substance">
      <path value="AllergyIntolerance.reaction.substance" />
      <max value="0" />
    </element>
    <element id="AllergyIntolerance.reaction.manifestation.id">
      <path value="AllergyIntolerance.reaction.manifestation.id" />
      <max value="0" />
    </element>
    <element id="AllergyIntolerance.reaction.manifestation.extension">
      <path value="AllergyIntolerance.reaction.manifestation.extension" />
      <max value="0" />
    </element>
    <element id="AllergyIntolerance.reaction.manifestation.concept">
      <path value="AllergyIntolerance.reaction.manifestation.concept" />
      <short value="Concept - reference to a terminology or just  text" />
      <definition value="A concept that may be defined by a formal reference to a terminology or ontology or may be provided by text." />
      <min value="1" />
    </element>
    <element id="AllergyIntolerance.reaction.manifestation.concept.extension">
      <path value="AllergyIntolerance.reaction.manifestation.concept.extension" />
      <max value="0" />
    </element>
    <element id="AllergyIntolerance.reaction.manifestation.concept.text">
      <path value="AllergyIntolerance.reaction.manifestation.concept.text" />
      <min value="1" />
    </element>
    <element id="AllergyIntolerance.reaction.manifestation.reference">
      <path value="AllergyIntolerance.reaction.manifestation.reference" />
      <max value="0" />
    </element>
    <element id="AllergyIntolerance.reaction.severity">
      <path value="AllergyIntolerance.reaction.severity" />
      <min value="1" />
    </element>
    <element id="AllergyIntolerance.reaction.exposureRoute">
      <path value="AllergyIntolerance.reaction.exposureRoute" />
      <type>
        <code value="CodeableConcept" />
        <profile value="https://fhir.synapxe.sg/StructureDefinition/profile-codeableconcept" />
      </type>
    </element>
    <element id="AllergyIntolerance.reaction.exposureRoute.extension">
      <path value="AllergyIntolerance.reaction.exposureRoute.extension" />
      <max value="0" />
    </element>
    <element id="AllergyIntolerance.reaction.note">
      <path value="AllergyIntolerance.reaction.note" />
      <type>
        <code value="Annotation" />
        <profile value="https://fhir.synapxe.sg/StructureDefinition/profile-annotation" />
      </type>
    </element>
  </differential>
</StructureDefinition>