{
  "resourceType": "StructureDefinition",
  "id": "allergiesandadversereactions",
  "meta": {
    "lastUpdated": "2021-02-19T14:21:55.854+00:00"
  },
  "language": "en-GB",
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/resource-effectivePeriod",
      "valuePeriod": {
        "start": "2021-01-19T15:07:23+00:00"
      }
    }
  ],
  "url": "https://theprsb.org/fhir/StructureDefinition/allergies_and_adverse_reactions_custom",
  "identifier": [
    {
      "use": "official",
      "system": "http://art-decor.org/ns/oids/sd",
      "value": "2.16.840.1.113883.3.1937.777.28.4.211v2"
    }
  ],
  "version": "2021-01-19T16:07:23",
  "name": "PRSBCustomAllergies",
  "status": "draft",
  "date": "2021-02-19T14:05:56.2155013+00:00",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": true,
  "type": "allergies_and_adverse_reactions",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
  "derivation": "specialization",
  "differential": {
    "element": [
      {
        "id": "allergies_and_adverse_reactions",
        "path": "allergies_and_adverse_reactions",
        "short": "Allergies and adverse reactions",
        "definition": "Allergies and adverse reactions",
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry",
        "path": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry",
        "short": "Allergies and adverse reactions record entry",
        "definition": "This is a allergies and adverse reactions record entry. There may be 1 to many record entries under a section. \r\n\r\nEach record entry is made up of a number of elements or data items.",
        "max": "1",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.causative_agent",
        "path": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.causative_agent",
        "short": "Causative agent",
        "definition": "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": "1",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.causative_agent.coded_value",
        "path": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.causative_agent.coded_value",
        "short": "Coded value",
        "definition": "The coded value for causative agent",
        "requirements": "Allergyintolerance.code",
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.causative_agent.free_text",
        "path": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.causative_agent.free_text",
        "short": "Free text",
        "definition": "Free text field to be used if no code is available",
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "maxLength": 150,
        "mustSupport": true
      },
      {
        "id": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.reaction_details_cluster",
        "path": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.reaction_details_cluster",
        "short": "Reaction details cluster",
        "definition": "Details of the reaction.",
        "max": "1",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.date",
        "path": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.date",
        "short": "Date",
        "definition": "The date that the reaction was identified.",
        "requirements": "Allergyintolerance.asserteddate",
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.location",
        "path": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.location",
        "short": "Location",
        "definition": "Details of where the allergy was identified.",
        "max": "1",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.location.coded_value",
        "path": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.location.coded_value",
        "short": "Coded value",
        "definition": "The coded value for location.",
        "requirements": "Location.identifier",
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "maxLength": 5,
        "mustSupport": true
      },
      {
        "id": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.location.free_text",
        "path": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.location.free_text",
        "short": "Free text",
        "definition": "Free text field to be used if no code is available",
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "maxLength": 150,
        "mustSupport": true
      },
      {
        "id": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.substance",
        "path": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.substance",
        "short": "Substance",
        "definition": "The substance, or a class of substances, that is considered to be responsible for the adverse reaction.",
        "max": "1",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.substance.coded_value",
        "path": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.substance.coded_value",
        "short": "Coded value",
        "definition": "The coded value for substance",
        "requirements": "AllergyIntolerance. reaction.substance",
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.substance.free_text",
        "path": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.substance.free_text",
        "short": "Free text",
        "definition": "Free text field to be used if no code is available",
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "maxLength": 150,
        "mustSupport": true
      },
      {
        "id": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.description_of_reaction",
        "path": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.description_of_reaction",
        "short": "Description of reaction",
        "definition": "A description of the manifestation of the allergic or adverse reaction experienced by the person. For example, skin rash.",
        "max": "1",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.description_of_reaction.coded_value",
        "path": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.description_of_reaction.coded_value",
        "short": "Coded value",
        "definition": "The coded value for description of reaction.",
        "requirements": "AllergyIntolerance.reaction.manifestation",
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.description_of_reaction.free_text",
        "path": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.description_of_reaction.free_text",
        "short": "Free text",
        "definition": "Free text field to be used if no code is available",
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "maxLength": 150,
        "mustSupport": true
      },
      {
        "id": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.onset_date",
        "path": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.onset_date",
        "short": "Onset date",
        "definition": "Date and time when manifestations showed",
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.severity",
        "path": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.severity",
        "short": "Severity",
        "definition": "A description of the severity of the reaction.",
        "max": "1",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.severity.coded_value",
        "path": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.severity.coded_value",
        "short": "Coded value",
        "definition": "The coded value for severity",
        "requirements": "AllergyIntolerance.reaction.severity",
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.severity.free_text",
        "path": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.severity.free_text",
        "short": "Free text",
        "definition": "Free text field to be used if no code is available",
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "maxLength": 150,
        "mustSupport": true
      },
      {
        "id": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.certainty",
        "path": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.certainty",
        "short": "Certainty",
        "definition": "A description of the certainty that the stated causative agent caused the allergic or adverse reaction.",
        "max": "1",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.certainty.coded_value",
        "path": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.certainty.coded_value",
        "short": "Coded value",
        "definition": "The coded value for certainty.",
        "requirements": "AllergyIntolerance.verificationStatus",
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.certainty.free_text",
        "path": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.certainty.free_text",
        "short": "Free text",
        "definition": "Free text field to be used if no code is available",
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "maxLength": 150,
        "mustSupport": true
      },
      {
        "id": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.route_of_exposure",
        "path": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.route_of_exposure",
        "short": "Route of exposure",
        "definition": "The route the person was exposed to the substance",
        "max": "1",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.route_of_exposure.coded_value",
        "path": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.route_of_exposure.coded_value",
        "short": "Coded value",
        "definition": "The coded value for route of exposure",
        "requirements": "AllergyIntolerance.exposureroute",
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.route_of_exposure.free_text",
        "path": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.route_of_exposure.free_text",
        "short": "Free text",
        "definition": "Free text field to be used if no coded text available",
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "maxLength": 150,
        "mustSupport": true
      },
      {
        "id": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.comment",
        "path": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.reaction_details_cluster.comment",
        "short": "Comment",
        "definition": "Any additional comment or clarification about the adverse reaction.",
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "maxLength": 150,
        "mustSupport": true
      },
      {
        "id": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.type_of_reaction",
        "path": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.type_of_reaction",
        "short": "Type of reaction",
        "definition": "The type of reaction experienced by the person (allergic, adverse, intolerance)",
        "requirements": "AllergyIntolerance.type",
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.evidence",
        "path": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.evidence",
        "short": "Evidence",
        "definition": "Results of investigations that confirmed the certainty of the diagnosis. Examples might include results of skin prick allergy tests",
        "requirements": "AllergyIntolerance.extension.evidence",
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "maxLength": 150,
        "mustSupport": true
      },
      {
        "id": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.date_first_experienced",
        "path": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.date_first_experienced",
        "short": "Date first experienced",
        "definition": "When the reaction was first experienced. May be a date or partial date (e.g. year) or text (e.g. during childhood)",
        "requirements": "AllergyIntolerance.onset",
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.probability_of_recurrence",
        "path": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.probability_of_recurrence",
        "short": "Probability of recurrence",
        "definition": "Probability of the reaction (allergic, adverse, intolerant) occurring.",
        "requirements": "AllergyIntolerance.extension.ProbabilityOfRecurrence",
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "maxLength": 150,
        "mustSupport": true
      },
      {
        "id": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.performing_professional",
        "path": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.performing_professional",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://theprsb.org/fhir/StructureDefinition/Practitioner",
              "https://theprsb.org/fhir/StructureDefinition/PractitionerRole"
            ]
          }
        ]
      },
      {
        "id": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.person_completing_record",
        "path": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.person_completing_record",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://theprsb.org/fhir/StructureDefinition/Practitioner",
              "https://theprsb.org/fhir/StructureDefinition/PractitionerRole"
            ]
          }
        ]
      },
      {
        "id": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.date_record_completed",
        "path": "allergies_and_adverse_reactions.allergies_and_adverse_reactions_record_entry.date_record_completed",
        "max": "1",
        "type": [
          {
            "code": "dateTime",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/dateTime"
            ]
          }
        ]
      }
    ]
  }
}