PackagesCanonicalsLogsProblems
    Packages
    fhir.r4.ukcore.stu3.currentbuild@0.0.8-pre-release
    https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-LegalStatus
description: Information relating to a patient's legal status on admission or discharge.
package_name: fhir.r4.ukcore.stu3.currentbuild
derivation: constraint
name: ExtensionUKCoreLegalStatus
type: Extension
elements:
  extension:
    array: true
    min: 2
    index: 0
    slicing:
      slices:
        legalStatusContext:
          match: {}
          schema:
            short: The context of the legal status.
            _required: true
            index: 1
            elements:
              url:
                pattern: {type: uri, value: legalStatusContext}
                type: uri
                index: 2
              value:
                short: The context in which a mental health legal status is being used.
                choices: [valueCodeableConcept]
                index: 4
              valueCodeableConcept: {type: CodeableConcept, short: The context in which a mental health legal status is being used., choiceOf: value, index: 5}
            required: [value, valueCodeableConcept]
        legalStatusClassification:
          match: {}
          schema:
            short: The classification of a patient's legal status.
            _required: true
            index: 6
            elements:
              url:
                pattern: {type: uri, value: legalStatusClassification}
                type: uri
                index: 7
              value:
                short: Codes that define the classification of a patient's legal status
                choices: [valueCodeableConcept]
                index: 9
              valueCodeableConcept: {type: CodeableConcept, short: Codes that define the classification of a patient's legal status, choiceOf: value, index: 10}
            required: [value, valueCodeableConcept]
  url:
    pattern: {type: uri, value: 'https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-LegalStatus'}
    type: uri
    index: 11
  value:
    choices: []
    index: 13
package_version: 0.0.8-pre-release
extensions:
  legalStatusContext:
    url: null
    short: The context of the legal status.
    _required: true
    index: 1
    elements:
      url:
        pattern: {type: uri, value: legalStatusContext}
        type: uri
        index: 2
      value:
        short: The context in which a mental health legal status is being used.
        choices: [valueCodeableConcept]
        index: 4
      valueCodeableConcept: {type: CodeableConcept, short: The context in which a mental health legal status is being used., choiceOf: value, index: 5}
    required: [value, valueCodeableConcept]
  legalStatusClassification:
    url: null
    short: The classification of a patient's legal status.
    _required: true
    index: 6
    elements:
      url:
        pattern: {type: uri, value: legalStatusClassification}
        type: uri
        index: 7
      value:
        short: Codes that define the classification of a patient's legal status
        choices: [valueCodeableConcept]
        index: 9
      valueCodeableConcept: {type: CodeableConcept, short: Codes that define the classification of a patient's legal status, choiceOf: value, index: 10}
    required: [value, valueCodeableConcept]
class: extension
kind: complex-type
url: https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-LegalStatus
base: http://hl7.org/fhir/StructureDefinition/Extension
version: 1.2.0