{
  "resourceType": "StructureDefinition",
  "id": "7a91c8e3-27d2-4636-a5e6-2ce08688d85e",
  "meta": {
    "lastUpdated": "2022-02-15T06:39:28.617+00:00"
  },
  "url": "https://example.org/fhir/StructureDefinition/KHISCDSAllergyIntolerance",
  "name": "KHISCDSAllergyIntolerance",
  "status": "draft",
  "date": "2021-11-26T04:49:11.5426834+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://example.org/fhir/StructureDefinition/crs-allergyIntolerance",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "AllergyIntolerance.identifier",
        "path": "AllergyIntolerance.identifier",
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.clinicalStatus.coding.code",
        "path": "AllergyIntolerance.clinicalStatus.coding.code",
        "fixedCode": "active"
      },
      {
        "id": "AllergyIntolerance.category",
        "path": "AllergyIntolerance.category",
        "fixedCode": "medication",
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.code",
        "path": "AllergyIntolerance.code",
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.code.coding",
        "path": "AllergyIntolerance.code.coding",
        "min": 1,
        "max": "1",
        "mustSupport": false
      },
      {
        "id": "AllergyIntolerance.code.text",
        "path": "AllergyIntolerance.code.text",
        "mustSupport": false
      },
      {
        "id": "AllergyIntolerance.patient.reference",
        "path": "AllergyIntolerance.patient.reference",
        "min": 1
      },
      {
        "id": "AllergyIntolerance.reaction.substance.coding.system",
        "path": "AllergyIntolerance.reaction.substance.coding.system",
        "min": 1
      },
      {
        "id": "AllergyIntolerance.reaction.substance.coding.code",
        "path": "AllergyIntolerance.reaction.substance.coding.code",
        "min": 1
      }
    ]
  }
}