<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="2be3b8fd-76ff-40ee-b98d-e3d332447d49" />
  <meta>
    <lastUpdated value="2021-02-19T18:46:54.513+00:00" />
  </meta>
  <url value="https://theprsb.org/fhir/StructureDefinition/Allergies" />
  <name value="AllergiesCustomResource" />
  <status value="draft" />
  <date value="2021-02-19T15:20:15.1393827+00:00" />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Allergies" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/DomainResource" />
  <derivation value="specialization" />
  <differential>
    <element id="Allergies">
      <path value="Allergies" />
      <short value="Allergies and adverse reactions" />
      <definition value="Allergies and adverse reactions" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Allergies.allergies_and_adverse_reactions_record_entry">
      <path value="Allergies.allergies_and_adverse_reactions_record_entry" />
      <short value="Allergies and adverse reactions record entry" />
      <definition value="This is a allergies and adverse reactions record entry. There may be 1 to many record entries under a section. &#xD;&#xA;&#xD;&#xA;Each record entry is made up of a number of elements or data items." />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Allergies.allergies_and_adverse_reactions_record_entry.causative_agent">
      <path value="Allergies.allergies_and_adverse_reactions_record_entry.causative_agent" />
      <short value="Causative agent" />
      <definition value="The agent such as food, drug or substances that has caused or may cause an allergy, intolerance or adverse reaction in this person Or “No known drug allergies or adverse reactions” Or “Information not available”" />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Allergies.allergies_and_adverse_reactions_record_entry.causative_agent.coded_value">
      <path value="Allergies.allergies_and_adverse_reactions_record_entry.causative_agent.coded_value" />
      <short value="Coded value" />
      <definition value="The coded value for causative agent" />
      <requirements value="Allergyintolerance.code" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Allergies.allergies_and_adverse_reactions_record_entry.causative_agent.free_text">
      <path value="Allergies.allergies_and_adverse_reactions_record_entry.causative_agent.free_text" />
      <short value="Free text" />
      <definition value="Free text field to be used if no code is available" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <maxLength value="150" />
      <mustSupport value="true" />
    </element>
    <element id="Allergies.allergies_and_adverse_reactions_record_entry.reaction_details_cluster">
      <path value="Allergies.allergies_and_adverse_reactions_record_entry.reaction_details_cluster" />
      <short value="Reaction details cluster" />
      <definition value="Details of the reaction." />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Allergies.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.date">
      <path value="Allergies.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.date" />
      <short value="Date" />
      <definition value="The date that the reaction was identified." />
      <requirements value="Allergyintolerance.asserteddate" />
      <max value="1" />
      <type>
        <code value="dateTime" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Allergies.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.location">
      <path value="Allergies.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.location" />
      <short value="Location" />
      <definition value="Details of where the allergy was identified." />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Allergies.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.location.coded_value">
      <path value="Allergies.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.location.coded_value" />
      <short value="Coded value" />
      <definition value="The coded value for location." />
      <requirements value="Location.identifier" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <maxLength value="5" />
      <mustSupport value="true" />
    </element>
    <element id="Allergies.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.location.free_text">
      <path value="Allergies.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.location.free_text" />
      <short value="Free text" />
      <definition value="Free text field to be used if no code is available" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <maxLength value="150" />
      <mustSupport value="true" />
    </element>
    <element id="Allergies.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.substance">
      <path value="Allergies.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.substance" />
      <short value="Substance" />
      <definition value="The substance, or a class of substances, that is considered to be responsible for the adverse reaction." />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Allergies.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.substance.coded_value">
      <path value="Allergies.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.substance.coded_value" />
      <short value="Coded value" />
      <definition value="The coded value for substance" />
      <requirements value="AllergyIntolerance. reaction.substance" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Allergies.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.substance.free_text">
      <path value="Allergies.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.substance.free_text" />
      <short value="Free text" />
      <definition value="Free text field to be used if no code is available" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <maxLength value="150" />
      <mustSupport value="true" />
    </element>
    <element id="Allergies.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.description_of_reaction">
      <path value="Allergies.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.description_of_reaction" />
      <short value="Description of reaction" />
      <definition value="A description of the manifestation of the allergic or adverse reaction experienced by the person. For example, skin rash." />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Allergies.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.description_of_reaction.coded_value">
      <path value="Allergies.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.description_of_reaction.coded_value" />
      <short value="Coded value" />
      <definition value="The coded value for description of reaction." />
      <requirements value="AllergyIntolerance.reaction.manifestation" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Allergies.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.description_of_reaction.free_text">
      <path value="Allergies.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.description_of_reaction.free_text" />
      <short value="Free text" />
      <definition value="Free text field to be used if no code is available" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <maxLength value="150" />
      <mustSupport value="true" />
    </element>
    <element id="Allergies.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.onset_date">
      <path value="Allergies.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.onset_date" />
      <short value="Onset date" />
      <definition value="Date and time when manifestations showed" />
      <max value="1" />
      <type>
        <code value="dateTime" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Allergies.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.severity">
      <path value="Allergies.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.severity" />
      <short value="Severity" />
      <definition value="A description of the severity of the reaction." />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Allergies.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.severity.coded_value">
      <path value="Allergies.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.severity.coded_value" />
      <short value="Coded value" />
      <definition value="The coded value for severity" />
      <requirements value="AllergyIntolerance.reaction.severity" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Allergies.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.severity.free_text">
      <path value="Allergies.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.severity.free_text" />
      <short value="Free text" />
      <definition value="Free text field to be used if no code is available" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <maxLength value="150" />
      <mustSupport value="true" />
    </element>
    <element id="Allergies.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.certainty">
      <path value="Allergies.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.certainty" />
      <short value="Certainty" />
      <definition value="A description of the certainty that the stated causative agent caused the allergic or adverse reaction." />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Allergies.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.certainty.coded_value">
      <path value="Allergies.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.certainty.coded_value" />
      <short value="Coded value" />
      <definition value="The coded value for certainty." />
      <requirements value="AllergyIntolerance.verificationStatus" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Allergies.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.certainty.free_text">
      <path value="Allergies.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.certainty.free_text" />
      <short value="Free text" />
      <definition value="Free text field to be used if no code is available" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <maxLength value="150" />
      <mustSupport value="true" />
    </element>
    <element id="Allergies.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.route_of_exposure">
      <path value="Allergies.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.route_of_exposure" />
      <short value="Route of exposure" />
      <definition value="The route the person was exposed to the substance" />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Allergies.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.route_of_exposure.coded_value">
      <path value="Allergies.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.route_of_exposure.coded_value" />
      <short value="Coded value" />
      <definition value="The coded value for route of exposure" />
      <requirements value="AllergyIntolerance.exposureroute" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Allergies.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.route_of_exposure.free_text">
      <path value="Allergies.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.route_of_exposure.free_text" />
      <short value="Free text" />
      <definition value="Free text field to be used if no coded text available" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <maxLength value="150" />
      <mustSupport value="true" />
    </element>
    <element id="Allergies.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.comment">
      <path value="Allergies.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.comment" />
      <short value="Comment" />
      <definition value="Any additional comment or clarification about the adverse reaction." />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <maxLength value="150" />
      <mustSupport value="true" />
    </element>
    <element id="Allergies.allergies_and_adverse_reactions_record_entry.type_of_reaction">
      <path value="Allergies.allergies_and_adverse_reactions_record_entry.type_of_reaction" />
      <short value="Type of reaction" />
      <definition value="The type of reaction experienced by the person (allergic, adverse, intolerance)" />
      <requirements value="AllergyIntolerance.type" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Allergies.allergies_and_adverse_reactions_record_entry.evidence">
      <path value="Allergies.allergies_and_adverse_reactions_record_entry.evidence" />
      <short value="Evidence" />
      <definition value="Results of investigations that confirmed the certainty of the diagnosis. Examples might include results of skin prick allergy tests" />
      <requirements value="AllergyIntolerance.extension.evidence" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <maxLength value="150" />
      <mustSupport value="true" />
    </element>
    <element id="Allergies.allergies_and_adverse_reactions_record_entry.date_first_experienced">
      <path value="Allergies.allergies_and_adverse_reactions_record_entry.date_first_experienced" />
      <short value="Date first experienced" />
      <definition value="When the reaction was first experienced. May be a date or partial date (e.g. year) or text (e.g. during childhood)" />
      <requirements value="AllergyIntolerance.onset" />
      <max value="1" />
      <type>
        <code value="dateTime" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Allergies.allergies_and_adverse_reactions_record_entry.probability_of_recurrence">
      <path value="Allergies.allergies_and_adverse_reactions_record_entry.probability_of_recurrence" />
      <short value="Probability of recurrence" />
      <definition value="Probability of the reaction (allergic, adverse, intolerant) occurring." />
      <requirements value="AllergyIntolerance.extension.ProbabilityOfRecurrence" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <maxLength value="150" />
      <mustSupport value="true" />
    </element>
    <element id="Allergies.allergies_and_adverse_reactions_record_entry.performing_professional">
      <path value="Allergies.allergies_and_adverse_reactions_record_entry.performing_professional" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://theprsb.org/fhir/StructureDefinition/Practitioner" />
        <targetProfile value="https://theprsb.org/fhir/StructureDefinition/PractitionerRole" />
      </type>
    </element>
    <element id="Allergies.allergies_and_adverse_reactions_record_entry.person_completing_record">
      <path value="Allergies.allergies_and_adverse_reactions_record_entry.person_completing_record" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://theprsb.org/fhir/StructureDefinition/Practitioner" />
        <targetProfile value="https://theprsb.org/fhir/StructureDefinition/PractitionerRole" />
      </type>
    </element>
    <element id="Allergies.allergies_and_adverse_reactions_record_entry.date_record_completed">
      <path value="Allergies.allergies_and_adverse_reactions_record_entry.date_record_completed" />
      <max value="1" />
      <type>
        <code value="dateTime" />
        <profile value="http://hl7.org/fhir/StructureDefinition/dateTime" />
      </type>
    </element>
  </differential>
</StructureDefinition>