<ValueSet xmlns="http://hl7.org/fhir">
  <id value="UKCore-LegalStatusContext" />
  <url value="https://fhir.hl7.org.uk/ValueSet/UKCore-LegalStatusContext" />
  <version value="1.0.0" />
  <name value="UKCoreLegalStatusContext" />
  <title value="UK Core Legal Status Context" />
  <status value="active" />
  <date value="2022-01-07" />
  <publisher value="HL7 UK" />
  <contact>
    <name value="HL7 UK" />
    <telecom>
      <system value="email" />
      <value value="ukcore@hl7.org.uk" />
      <use value="work" />
      <rank value="1" />
    </telecom>
  </contact>
  <description value="A set of codes that define the context in which a mental health legal status is being used." />
  <copyright value="Copyright © 2021+ HL7 UK Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); 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 &quot;AS IS&quot; 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." />
  <compose>
    <include>
      <system value="https://fhir.hl7.org.uk/CodeSystem/UKCore-LegalStatusContext" />
    </include>
  </compose>
  <expansion>
    <identifier value="dbfa87bc-78e2-4d76-8753-571ed1a3c9bf" />
    <timestamp value="2022-01-07T13:33:42+00:00" />
    <total value="2" />
    <offset value="0" />
    <parameter>
      <name value="version" />
      <valueUri value="https://fhir.hl7.org.uk/CodeSystem/UKCore-LegalStatusContext|1.0.0" />
    </parameter>
    <parameter>
      <name value="count" />
      <valueInteger value="2147483647" />
    </parameter>
    <parameter>
      <name value="offset" />
      <valueInteger value="0" />
    </parameter>
    <contains>
      <system value="https://fhir.hl7.org.uk/CodeSystem/UKCore-LegalStatusContext" />
      <code value="admission" />
      <display value="Admission" />
    </contains>
    <contains>
      <system value="https://fhir.hl7.org.uk/CodeSystem/UKCore-LegalStatusContext" />
      <code value="discharge" />
      <display value="Discharge" />
    </contains>
  </expansion>
</ValueSet>