Interweave Implementation Guide
0.1.0 - ci-build United Kingdom flag

Interweave Implementation Guide - Local Development build (v0.1.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the STU3 profiles here.

Extension: Extension UK Core Legal Status

Official URL: https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-LegalStatus Version: 1.2.0
Active as of 2023-12-12 Computable Name: ExtensionUKCoreLegalStatus

Copyright/Legal: Copyright © 2021+ HL7 UK Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. HL7® FHIR® standard Copyright © 2011+ HL7 The HL7® FHIR® standard is used under the FHIR license. You may obtain a copy of the FHIR license at https://www.hl7.org/fhir/license.html.

Information relating to a patient's legal status on admission or discharge.

This extension extends the Encounter Resource to support the exchange of information relating to a patient's legal status on admission or discharge.

Context of Use

This extension may be used on the following element(s):

  • Element ID Encounter

Usage info

Usage:

Formal Views of Extension Content

Description of Profiles, Differentials, Snapshots, and how the XML and JSON presentations work.

This structure is derived from Extension

Summary

Complex Extension: Information relating to a patient's legal status on admission or discharge.

  • legalStatusContext: CodeableConcept: The context of the legal status in which a mental health legal status is being used.
  • legalStatusClassification: CodeableConcept: The classification of a patient's legal status, which is either informal or as designated in the Mental Health Act 1983 or other acts.

This structure is derived from Extension

NameFlagsCard.TypeDescription & Constraintsdoco
.. Extension 0..* Extension Extension UK Core Legal Status
... extension 2..* Extension Extension
... Slices for extension Content/Rules for all slices
.... extension:legalStatusContext 1..1 Extension The context of the legal status.
..... extension 0..0
..... url 1..1 uri "legalStatusContext"
..... value[x] 1..1 CodeableConcept The context in which a mental health legal status is being used.
Binding: UK Core Legal Status Context (extensible): A set of codes that define the context in which a mental health legal status is being used.

... Slices for extension Content/Rules for all slices
.... extension:legalStatusClassification 1..1 Extension The classification of a patient's legal status.
..... extension 0..0
..... url 1..1 uri "legalStatusClassification"
..... value[x] 1..1 CodeableConcept Codes that define the classification of a patient's legal status
Binding: UK Core Legal Status Classification (extensible): A set of codes that define the classification of a patient's legal status which is either informal or as designated in the Mental Health Act 1983 or other acts.

... value[x] 0..0

doco Documentation for this format
NameFlagsCard.TypeDescription & Constraintsdoco
.. Extension 0..* Extension Extension UK Core Legal Status
... id 0..1 string Unique id for inter-element referencing
... Slices for extension 2..* Extension Extension
Slice: Unordered, Open by value:url
.... extension:legalStatusContext 1..1 Extension The context of the legal status.
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..0
..... url 1..1 uri "legalStatusContext"
..... value[x] 1..1 CodeableConcept The context in which a mental health legal status is being used.
Binding: UK Core Legal Status Context (extensible): A set of codes that define the context in which a mental health legal status is being used.

.... extension:legalStatusClassification 1..1 Extension The classification of a patient's legal status.
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..0
..... url 1..1 uri "legalStatusClassification"
..... value[x] 1..1 CodeableConcept Codes that define the classification of a patient's legal status
Binding: UK Core Legal Status Classification (extensible): A set of codes that define the classification of a patient's legal status which is either informal or as designated in the Mental Health Act 1983 or other acts.

... url 1..1 uri "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-LegalStatus"

doco Documentation for this format

This structure is derived from Extension

Summary

Complex Extension: Information relating to a patient's legal status on admission or discharge.

  • legalStatusContext: CodeableConcept: The context of the legal status in which a mental health legal status is being used.
  • legalStatusClassification: CodeableConcept: The classification of a patient's legal status, which is either informal or as designated in the Mental Health Act 1983 or other acts.

Differential View

This structure is derived from Extension

NameFlagsCard.TypeDescription & Constraintsdoco
.. Extension 0..* Extension Extension UK Core Legal Status
... extension 2..* Extension Extension
... Slices for extension Content/Rules for all slices
.... extension:legalStatusContext 1..1 Extension The context of the legal status.
..... extension 0..0
..... url 1..1 uri "legalStatusContext"
..... value[x] 1..1 CodeableConcept The context in which a mental health legal status is being used.
Binding: UK Core Legal Status Context (extensible): A set of codes that define the context in which a mental health legal status is being used.

... Slices for extension Content/Rules for all slices
.... extension:legalStatusClassification 1..1 Extension The classification of a patient's legal status.
..... extension 0..0
..... url 1..1 uri "legalStatusClassification"
..... value[x] 1..1 CodeableConcept Codes that define the classification of a patient's legal status
Binding: UK Core Legal Status Classification (extensible): A set of codes that define the classification of a patient's legal status which is either informal or as designated in the Mental Health Act 1983 or other acts.

... value[x] 0..0

doco Documentation for this format

Snapshot View

NameFlagsCard.TypeDescription & Constraintsdoco
.. Extension 0..* Extension Extension UK Core Legal Status
... id 0..1 string Unique id for inter-element referencing
... Slices for extension 2..* Extension Extension
Slice: Unordered, Open by value:url
.... extension:legalStatusContext 1..1 Extension The context of the legal status.
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..0
..... url 1..1 uri "legalStatusContext"
..... value[x] 1..1 CodeableConcept The context in which a mental health legal status is being used.
Binding: UK Core Legal Status Context (extensible): A set of codes that define the context in which a mental health legal status is being used.

.... extension:legalStatusClassification 1..1 Extension The classification of a patient's legal status.
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..0
..... url 1..1 uri "legalStatusClassification"
..... value[x] 1..1 CodeableConcept Codes that define the classification of a patient's legal status
Binding: UK Core Legal Status Classification (extensible): A set of codes that define the classification of a patient's legal status which is either informal or as designated in the Mental Health Act 1983 or other acts.

... url 1..1 uri "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-LegalStatus"

doco Documentation for this format

 

Other representations of profile: CSV, Excel, Schematron

Terminology Bindings

PathConformanceValueSetURI
Extension.extension:legalStatusContext.value[x]extensibleUKCoreLegalStatusContext (a valid code from https://fhir.hl7.org.uk/CodeSystem/UKCore-LegalStatusContext)
https://fhir.hl7.org.uk/ValueSet/UKCore-LegalStatusContext
from this IG
Extension.extension:legalStatusClassification.value[x]extensibleUKCoreLegalStatusClassification
https://fhir.hl7.org.uk/ValueSet/UKCore-LegalStatusClassification
from this IG

Constraints

IdGradePath(s)DetailsRequirements
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()