<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="3252e538-7db4-4be0-82de-837e49cf56d9" />
  <meta>
    <lastUpdated value="2023-03-02T06:49:40.52746+00:00" />
  </meta>
  <url value="https://simplifier.net/winningtest/allergy-profile" />
  <name value="Allergy" />
  <title value="过敏信息" />
  <status value="draft" />
  <date value="2023-03-02T06:51:42.5892433+00:00" />
  <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/StructureDefinition/AllergyIntolerance" />
  <derivation value="constraint" />
  <differential>
    <element id="AllergyIntolerance.extension">
      <path value="AllergyIntolerance.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="0" />
    </element>
    <element id="AllergyIntolerance.extension:source">
      <path value="AllergyIntolerance.extension" />
      <sliceName value="source" />
      <min value="0" />
      <type>
        <code value="Extension" />
        <profile value="https://simplifier.net/winningtest/extension-allergy-source" />
      </type>
      <isModifier value="false" />
    </element>
    <element id="AllergyIntolerance.identifier">
      <path value="AllergyIntolerance.identifier" />
      <max value="0" />
    </element>
    <element id="AllergyIntolerance.verificationStatus">
      <path value="AllergyIntolerance.verificationStatus" />
      <definition value="unconfirmed：不详&#xD;&#xA;confirmed：有过敏" />
    </element>
    <element id="AllergyIntolerance.type">
      <path value="AllergyIntolerance.type" />
      <fixedCode value="allergy" />
    </element>
    <element id="AllergyIntolerance.category">
      <path value="AllergyIntolerance.category" />
      <short value="过敏源分类代码" />
      <definition value="使用过敏原的种类：药物，食物，环境，混合性过敏源，其他过敏源" />
      <binding>
        <strength value="required" />
        <description value="过敏源代码" />
        <valueSet value="urn:oid:1.2.156.112604.1.2.156" />
      </binding>
    </element>
    <element id="AllergyIntolerance.criticality">
      <path value="AllergyIntolerance.criticality" />
      <short value="过敏严重程度代码" />
      <binding>
        <strength value="required" />
        <description value="过敏严重程度代码" />
        <valueSet value="urn:oid:1.2.156.112604.1.2.591" />
      </binding>
    </element>
    <element id="AllergyIntolerance.code">
      <path value="AllergyIntolerance.code" />
      <short value="过敏源代码" />
      <binding>
        <strength value="required" />
        <description value="过敏源代码" />
        <valueSet value="urn:oid:1.2.156.112604.1.2.156" />
      </binding>
    </element>
    <element id="AllergyIntolerance.patient">
      <path value="AllergyIntolerance.patient" />
      <short value="患者" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://simplifier.net/winningtest/patient-profile" />
        <aggregation value="referenced" />
      </type>
    </element>
    <element id="AllergyIntolerance.encounter">
      <path value="AllergyIntolerance.encounter" />
      <short value="就诊" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://simplifier.net/winningtest/outpatient-encounter-profile" />
        <targetProfile value="https://simplifier.net/winningtest/inpatient-encounter-profile" />
        <aggregation value="referenced" />
      </type>
    </element>
    <element id="AllergyIntolerance.onset[x]">
      <path value="AllergyIntolerance.onset[x]" />
      <short value="确诊日期时间" />
      <type>
        <code value="dateTime" />
      </type>
    </element>
    <element id="AllergyIntolerance.recordedDate">
      <path value="AllergyIntolerance.recordedDate" />
      <max value="0" />
    </element>
    <element id="AllergyIntolerance.recorder">
      <path value="AllergyIntolerance.recorder" />
      <max value="0" />
    </element>
    <element id="AllergyIntolerance.asserter">
      <path value="AllergyIntolerance.asserter" />
      <max value="0" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://simplifier.net/winningtest/practitioner-role-profile" />
        <aggregation value="contained" />
        <aggregation value="referenced" />
      </type>
    </element>
    <element id="AllergyIntolerance.lastOccurrence">
      <path value="AllergyIntolerance.lastOccurrence" />
      <max value="0" />
    </element>
    <element id="AllergyIntolerance.note">
      <path value="AllergyIntolerance.note" />
      <max value="0" />
    </element>
    <element id="AllergyIntolerance.reaction">
      <path value="AllergyIntolerance.reaction" />
      <short value="不良反应事件" />
    </element>
    <element id="AllergyIntolerance.reaction.substance">
      <path value="AllergyIntolerance.reaction.substance" />
      <short value="过敏物" />
    </element>
    <element id="AllergyIntolerance.reaction.substance.coding">
      <path value="AllergyIntolerance.reaction.substance.coding" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="system" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <definition value="当是药品过敏史时，此处存在值，且code为药品商品标识或药品商品编号，system为对应数据元OID；当是非药品过敏物过敏史时，此处为空。" />
    </element>
    <element id="AllergyIntolerance.reaction.substance.coding:medicineId">
      <path value="AllergyIntolerance.reaction.substance.coding" />
      <sliceName value="medicineId" />
      <short value="药品商品标识" />
      <max value="1" />
    </element>
    <element id="AllergyIntolerance.reaction.substance.coding:medicineId.system">
      <path value="AllergyIntolerance.reaction.substance.coding.system" />
      <fixedUri value="urn:oid:1.2.156.112604.1.1.4019" />
    </element>
    <element id="AllergyIntolerance.reaction.substance.coding:medicineId.version">
      <path value="AllergyIntolerance.reaction.substance.coding.version" />
      <max value="0" />
    </element>
    <element id="AllergyIntolerance.reaction.substance.coding:medicineId.display">
      <path value="AllergyIntolerance.reaction.substance.coding.display" />
      <max value="0" />
    </element>
    <element id="AllergyIntolerance.reaction.substance.coding:medicineId.userSelected">
      <path value="AllergyIntolerance.reaction.substance.coding.userSelected" />
      <max value="0" />
    </element>
    <element id="AllergyIntolerance.reaction.substance.coding:medicineNo">
      <path value="AllergyIntolerance.reaction.substance.coding" />
      <sliceName value="medicineNo" />
      <short value="药品商品编码" />
      <max value="1" />
    </element>
    <element id="AllergyIntolerance.reaction.substance.coding:medicineNo.system">
      <path value="AllergyIntolerance.reaction.substance.coding.system" />
      <fixedUri value="urn:oid:1.2.156.112604.1.1.5237" />
    </element>
    <element id="AllergyIntolerance.reaction.substance.coding:medicineNo.version">
      <path value="AllergyIntolerance.reaction.substance.coding.version" />
      <max value="0" />
    </element>
    <element id="AllergyIntolerance.reaction.substance.coding:medicineNo.display">
      <path value="AllergyIntolerance.reaction.substance.coding.display" />
      <max value="0" />
    </element>
    <element id="AllergyIntolerance.reaction.substance.coding:medicineNo.userSelected">
      <path value="AllergyIntolerance.reaction.substance.coding.userSelected" />
      <max value="0" />
    </element>
    <element id="AllergyIntolerance.reaction.substance.text">
      <path value="AllergyIntolerance.reaction.substance.text" />
      <short value="过敏物名称" />
      <definition value="当是药品过敏史时，此处为药品商品名；当是非药品过敏物过敏史时，此处为非药品过敏物名称。" />
    </element>
    <element id="AllergyIntolerance.reaction.manifestation">
      <path value="AllergyIntolerance.reaction.manifestation" />
      <short value="过敏症状" />
    </element>
    <element id="AllergyIntolerance.reaction.manifestation.coding">
      <path value="AllergyIntolerance.reaction.manifestation.coding" />
      <max value="0" />
    </element>
    <element id="AllergyIntolerance.reaction.description">
      <path value="AllergyIntolerance.reaction.description" />
      <max value="0" />
    </element>
    <element id="AllergyIntolerance.reaction.onset">
      <path value="AllergyIntolerance.reaction.onset" />
      <max value="0" />
    </element>
    <element id="AllergyIntolerance.reaction.severity">
      <path value="AllergyIntolerance.reaction.severity" />
      <short value="过敏结果代码" />
      <binding>
        <strength value="required" />
        <description value="过敏结果代码" />
        <valueSet value="urn:oid:1.2.156.112604.1.2.1018" />
      </binding>
    </element>
    <element id="AllergyIntolerance.reaction.exposureRoute">
      <path value="AllergyIntolerance.reaction.exposureRoute" />
      <short value="过敏源类型代码" />
      <definition value="暴露途径" />
      <binding>
        <strength value="required" />
        <description value="过敏源类型代码" />
        <valueSet value="urn:oid:1.2.156.112604.1.2.1017" />
      </binding>
    </element>
    <element id="AllergyIntolerance.reaction.note">
      <path value="AllergyIntolerance.reaction.note" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>