{
  "resourceType": "StructureDefinition",
  "meta": {
    "lastUpdated": "2018-01-30T20:22:27.369+00:00"
  },
  "url": "http://helse-nord.no/fhir/StructureDefinition/AllergyIntolerance_HN",
  "version": "1.0",
  "name": "AllergyIntolerance Helse Nord",
  "title": "AllergyIntolerance HelseNord",
  "status": "draft",
  "date": "2017-09-22T07:22:24.395+00:00",
  "publisher": "Helse Nord IKT",
  "description": "Structure definition for the AllergyIntolerance resource used by the Clinical.AllergyIntolerance service.",
  "purpose": "Provides information about patients allergy and/or intolerance to substances, registered in the patients journal EHR.",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "AllergyIntolerance",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/AllergyIntolerance",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "AllergyIntolerance.meta",
        "path": "AllergyIntolerance.meta",
        "comment": "<sdf-20 validation error placeholder>"
      },
      {
        "id": "AllergyIntolerance.implicitRules",
        "path": "AllergyIntolerance.implicitRules",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.language",
        "path": "AllergyIntolerance.language",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.text",
        "path": "AllergyIntolerance.text",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.identifier",
        "path": "AllergyIntolerance.identifier",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.type",
        "path": "AllergyIntolerance.type",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.category",
        "path": "AllergyIntolerance.category",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.criticality.extension",
        "path": "AllergyIntolerance.criticality.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "AllergyIntolerance.criticality.extension:AllergyIntoleranceCriticality",
        "path": "AllergyIntolerance.criticality.extension",
        "sliceName": "AllergyIntoleranceCriticality",
        "comment": "<sdf-20 validator placeholder>",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://helse-nord.no/fhir/StructureDefinition/AllergyIntoleranceCriticality_HN"
          }
        ]
      },
      {
        "id": "AllergyIntolerance.patient",
        "path": "AllergyIntolerance.patient",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://helse-nord.no/fhir/StructureDefinition/Clinical.Patient/Patient_HN"
          }
        ]
      },
      {
        "id": "AllergyIntolerance.onsetDateTime:onsetDateTime",
        "path": "AllergyIntolerance.onsetDateTime",
        "sliceName": "onsetDateTime",
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "AllergyIntolerance.assertedDate",
        "path": "AllergyIntolerance.assertedDate",
        "comment": "Replacing recordedDate (DSTU2)."
      },
      {
        "id": "AllergyIntolerance.recorder.extension",
        "path": "AllergyIntolerance.recorder.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "AllergyIntolerance.recorder.extension:AllergyIntoleranceRecordedDate",
        "path": "AllergyIntolerance.recorder.extension",
        "sliceName": "AllergyIntoleranceRecordedDate",
        "type": [
          {
            "code": "Extension",
            "profile": "http://helse-nord.no/fhir/StructureDefinition/AllergyIntoleranceRecordedDate_HN"
          }
        ]
      },
      {
        "id": "AllergyIntolerance.asserter.extension",
        "path": "AllergyIntolerance.asserter.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "AllergyIntolerance.asserter.extension:AllergyIntoleranceSource",
        "path": "AllergyIntolerance.asserter.extension",
        "sliceName": "AllergyIntoleranceSource",
        "type": [
          {
            "code": "Extension",
            "profile": "http://helse-nord.no/fhir/StructureDefinition/AllergyIntoleranceSource_HN"
          }
        ]
      },
      {
        "id": "AllergyIntolerance.lastOccurrence",
        "path": "AllergyIntolerance.lastOccurrence",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.reaction",
        "path": "AllergyIntolerance.reaction",
        "max": "1"
      },
      {
        "id": "AllergyIntolerance.reaction.manifestation.coding.system",
        "path": "AllergyIntolerance.reaction.manifestation.coding.system",
        "definition": "Kodeverk volven (Reaksjonstyper, OID=7497).\r\nhttps://volven.no/produkt.asp?id=317787&catID=3&subID=8",
        "fixedUri": "urn:oid:2.16.578.1.12.4.1.1.7497"
      }
    ]
  }
}