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