PackagesCanonicalsLogsProblems
    Packages
    NHSD.Assets.STU3@1.0.0
    https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-AllergyIntoleranceEnd-1
description: Supports the date and reason that the allergy was no longer valid.
package_name: NHSD.Assets.STU3
derivation: constraint
name: Extension-CareConnect-GPC-AllergyIntoleranceEnd-1
type: Extension
elements:
  valueBase64Binary: {type: base64Binary, choiceOf: value, index: 10}
  valueAge: {type: Age, choiceOf: value, index: 27}
  valueTiming: {type: Timing, choiceOf: value, index: 46}
  valueCode: {type: code, choiceOf: value, index: 12}
  valueReference: {type: Reference, choiceOf: value, index: 43}
  valueUri: {type: uri, choiceOf: value, index: 25}
  valueTime: {type: time, choiceOf: value, index: 23}
  valueDecimal: {type: decimal, choiceOf: value, index: 15}
  valueMarkdown: {type: markdown, choiceOf: value, index: 19}
  valueIdentifier: {type: Identifier, choiceOf: value, index: 37}
  valueQuantity: {type: Quantity, choiceOf: value, index: 40}
  value:
    choices: [valueBase64Binary, valueBoolean, valueCode, valueDate, valueDateTime, valueDecimal, valueId, valueInstant, valueInteger, valueMarkdown, valueOid, valuePositiveInt, valueString, valueTime, valueUnsignedInt, valueUri, valueAddress, valueAge, valueAnnotation, valueAttachment, valueCodeableConcept, valueCoding, valueContactPoint, valueCount, valueDistance, valueDuration, valueHumanName, valueIdentifier, valueMoney, valuePeriod, valueQuantity, valueRange, valueRatio, valueReference, valueSampledData, valueSignature, valueTiming]
    index: 9
  valueCount: {type: Count, choiceOf: value, index: 33}
  valueString: {type: string, choiceOf: value, index: 22}
  valueRatio: {type: Ratio, choiceOf: value, index: 42}
  valueBoolean: {type: boolean, choiceOf: value, index: 11}
  valueInstant: {type: instant, choiceOf: value, index: 17}
  valueDateTime: {type: dateTime, choiceOf: value, index: 14}
  valueDate: {type: date, choiceOf: value, index: 13}
  valueDuration: {type: Duration, choiceOf: value, index: 35}
  valueMoney: {type: Money, choiceOf: value, index: 38}
  valueCoding: {type: Coding, choiceOf: value, index: 31}
  extension:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        endDate:
          match: {url: endDate}
          schema:
            short: The date the allergy or intolerance was recorded as no longer valid.
            _required: true
            index: 1
            elements:
              url:
                pattern: {type: Uri, value: endDate}
                index: 2
              valueDateTime:
                type: dateTime
                short: The date the allergy was recorded as no longer valid
                index: 3
                slicing:
                  slices:
                    valueDateTime:
                      match: {}
                      schema: {type: dateTime, short: The date the allergy was recorded as no longer valid, index: 3}
        reasonEnded:
          match: {url: reasonEnded}
          schema:
            short: The reason why the allergy or intolerance has been resolved.
            _required: true
            index: 4
            elements:
              url:
                pattern: {type: Uri, value: reasonEnded}
                index: 5
              valueString:
                type: string
                short: The reason why the allergy or intolerance has been resolved
                index: 6
                slicing:
                  slices:
                    valueString:
                      match: {}
                      schema: {type: string, short: The reason why the allergy or intolerance has been resolved, index: 6}
  valueSampledData: {type: SampledData, choiceOf: value, index: 44}
  valueContactPoint: {type: ContactPoint, choiceOf: value, index: 32}
  url:
    pattern: {type: Uri, value: 'https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-AllergyIntoleranceEnd-1'}
    index: 7
  valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 30}
  valueAnnotation: {type: Annotation, choiceOf: value, index: 28}
  valuePeriod: {type: Period, choiceOf: value, index: 39}
  valueDistance: {type: Distance, choiceOf: value, index: 34}
  valueRange: {type: Range, choiceOf: value, index: 41}
  valueSignature: {type: Signature, choiceOf: value, index: 45}
  valueInteger: {type: integer, choiceOf: value, index: 18}
  valueHumanName: {type: HumanName, choiceOf: value, index: 36}
  valueUnsignedInt: {type: unsignedInt, choiceOf: value, index: 24}
  valueAttachment: {type: Attachment, choiceOf: value, index: 29}
  valueOid: {type: oid, choiceOf: value, index: 20}
  valueAddress: {type: Address, choiceOf: value, index: 26}
  valuePositiveInt: {type: positiveInt, choiceOf: value, index: 21}
  valueId: {type: id, choiceOf: value, index: 16}
package_version: 1.0.0
extensions:
  endDate:
    url: endDate
    short: The date the allergy or intolerance was recorded as no longer valid.
    _required: true
    index: 1
    elements:
      url:
        pattern: {type: Uri, value: endDate}
        index: 2
      valueDateTime:
        type: dateTime
        short: The date the allergy was recorded as no longer valid
        index: 3
        slicing:
          slices:
            valueDateTime:
              match: {}
              schema: {type: dateTime, short: The date the allergy was recorded as no longer valid, index: 3}
  reasonEnded:
    url: reasonEnded
    short: The reason why the allergy or intolerance has been resolved.
    _required: true
    index: 4
    elements:
      url:
        pattern: {type: Uri, value: reasonEnded}
        index: 5
      valueString:
        type: string
        short: The reason why the allergy or intolerance has been resolved
        index: 6
        slicing:
          slices:
            valueString:
              match: {}
              schema: {type: string, short: The reason why the allergy or intolerance has been resolved, index: 6}
class: extension
kind: complex-type
url: https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-AllergyIntoleranceEnd-1
base: http://hl7.org/fhir/StructureDefinition/Extension
version: 1.0.0