<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="Extension-UKCore-PatientFetalStatus" />
  <url value="http://hl7.org/fhir/6.0/StructureDefinition/extension-Patient.fetalStatus" />
  <version value="0.0.1" />
  <name value="ExtensionUKCorePatientFetalStatus" />
  <title value="Extension UK Core Patient Fetal Status" />
  <status value="draft" />
  <date value="2024-07-23" />
  <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="An extension to replicate the changes within R5 to record the born status of fetus (Patient)" />
  <purpose value="This is a Genomics use case to support the backporting of R5 functionality to record the born status of fetus (Patient)" />
  <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." />
  <fhirVersion value="4.0.1" />
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <kind value="complex-type" />
  <abstract value="false" />
  <context>
    <type value="element" />
    <expression value="Patient" />
  </context>
  <type value="Extension" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
  <derivation value="constraint" />
  <differential>
    <element id="Extension">
      <path value="Extension" />
      <short value="An indicator on the fetal status of a baby." />
      <definition value="Typically used in maternity where the patient record may be created before the birth of the baby." />
      <max value="1" />
    </element>
    <element id="Extension.url">
      <path value="Extension.url" />
      <fixedUri value="http://hl7.org/fhir/6.0/StructureDefinition/extension-Patient.fetalStatus" />
    </element>
    <element id="Extension.value[x]">
      <path value="Extension.value[x]" />
      <min value="1" />
      <type>
        <code value="code" />
      </type>
      <binding>
        <strength value="required" />
        <valueSet value="http://hl7.org/fhir/ValueSet/patient-fetalstatus" />
      </binding>
    </element>
  </differential>
</StructureDefinition>