PackagesCanonicalsLogsProblems
    Packages
    NHSD.Assets.STU3@1.0.0
    https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-DCH-AllergyIntolerance-1
description: This AllergyIntolerance Resource records Risk of harmful or undesirable, physiological response which is unique to an individual and associated with exposure to a substance, with further constraints applied to support the Digital Child Health project.
package_name: NHSD.Assets.STU3
derivation: constraint
name: CareConnect-DCH-AllergyIntolerance-1
type: AllergyIntolerance
elements:
  patient:
    type: Reference
    refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-DCH-Patient-1']
    index: 27
    elements:
      reference: {index: 28}
    required: [reference]
  onset:
    mustSupport: true
    choices: [onsetDateTime, onsetString]
    index: 30
  category: {index: 14}
  criticality: {index: 15}
  asserter:
    type: Reference
    refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-DCH-Patient-1', 'https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-DCH-Practitioner-1']
    index: 35
  note:
    index: 37
    elements:
      author:
        choices: [authorReference, authorString, authorReference, authorReference]
        index: 39
      authorReference:
        type: Reference
        choiceOf: author
        refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-DCH-Patient-1']
        index: 42
      authorString: {type: string, choiceOf: author, index: 41}
  extension:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        encounter:
          match: {url: null}
          schema: {type: Extension, url: h, index: 1}
          max: 0
        allergyEnd:
          match: {url: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-AllergyIntoleranceEnd-1'}
          schema:
            type: Extension
            url: h
            index: 2
            elements:
              url:
                pattern: {type: Uri, value: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-AllergyIntoleranceEnd-1'}
                index: 3
        evidence:
          match: {url: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-Evidence-1'}
          schema:
            type: Extension
            url: h
            index: 4
            elements:
              url:
                pattern: {type: Uri, value: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-Evidence-1'}
                index: 5
  assertedDate: {index: 33}
  onsetString: {type: string, mustSupport: true, choiceOf: onset, index: 32}
  recorder:
    type: Reference
    refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-DCH-Patient-1', 'https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-DCH-Practitioner-1']
    index: 34
  code:
    index: 16
    elements:
      coding:
        index: 17
        extensions:
          snomedCTDescriptionID:
            url: h
            type: Extension
            index: 19
            elements:
              url:
                pattern: {type: Uri, value: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid'}
                index: 20
        elements:
          extension:
            index: 18
            slicing:
              rules: open
              discriminator:
              - {path: url, type: value}
              min: null
              slices:
                snomedCTDescriptionID:
                  match: {url: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid'}
                  schema:
                    type: Extension
                    url: h
                    index: 19
                    elements:
                      url:
                        pattern: {type: Uri, value: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid'}
                        index: 20
          system: {index: 21}
          version: {index: 22}
          code: {index: 23}
          display: {index: 24}
          userSelected: {index: 25}
        required: [display, system, code]
      text: {index: 26}
    required: [coding]
  identifier:
    index: 6
    elements:
      use: {index: 7}
      type: {index: 8}
      system: {index: 9}
      value: {index: 10}
      period: {index: 11}
      assigner:
        type: Reference
        refers: ['https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Organization-1']
        index: 12
    required: [value, system]
  onsetDateTime: {type: dateTime, mustSupport: true, choiceOf: onset, index: 31}
  lastOccurrence: {index: 36}
  verificationStatus: {short: unconfirmed | confirmed, index: 13}
  reaction:
    elements:
      substance:
        index: 44
        elements:
          coding:
            index: 45
            elements:
              system:
                pattern: {type: Uri, value: 'http://snomed.info/sct'}
                index: 46
          text: {index: 47}
        required: [coding]
      manifestation: {index: 48}
      onset: {index: 49}
      severity: {index: 50}
      exposureRoute:
        index: 51
        elements:
          coding:
            index: 52
            slicing:
              rules: open
              ordered: false
              discriminator:
              - {path: system, type: value}
              min: null
              slices:
                snomedCT:
                  match: {system: 'http://snomed.info/sct'}
                  schema:
                    index: 53
                    extensions:
                      snomedCTDescriptionID:
                        url: h
                        type: Extension
                        index: 55
                        elements:
                          url:
                            pattern: {type: Uri, value: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid'}
                            index: 56
                    elements:
                      extension:
                        index: 54
                        slicing:
                          rules: open
                          discriminator:
                          - {path: url, type: value}
                          min: null
                          slices:
                            snomedCTDescriptionID:
                              match: {url: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid'}
                              schema:
                                type: Extension
                                url: h
                                index: 55
                                elements:
                                  url:
                                    pattern: {type: Uri, value: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid'}
                                    index: 56
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        index: 57
                      version: {index: 58}
                      code: {index: 59}
                      display: {index: 60}
                    required: [display, system, code]
      note:
        short: Text about event not captured in other fields, such as probability of recurrence or evidence
        index: 61
        elements:
          author:
            choices: [authorReference, authorString, authorReference, authorReference]
            index: 63
          authorReference:
            type: Reference
            choiceOf: author
            refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-DCH-Patient-1']
            index: 66
          authorString: {type: string, choiceOf: author, index: 65}
package_version: 1.0.0
extensions:
  encounter: {url: h, max: 0, type: Extension, index: 1}
  allergyEnd:
    url: h
    type: Extension
    index: 2
    elements:
      url:
        pattern: {type: Uri, value: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-AllergyIntoleranceEnd-1'}
        index: 3
  evidence:
    url: h
    type: Extension
    index: 4
    elements:
      url:
        pattern: {type: Uri, value: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-Evidence-1'}
        index: 5
class: profile
kind: resource
url: https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-DCH-AllergyIntolerance-1
base: http://hl7.org/fhir/StructureDefinition/AllergyIntolerance
version: 1.1.0
required: [assertedDate, code]