<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="https://fhir.clevermed.com/StructureDefinition/Observation-BNet-Child-BirthGestation" />
  <name value="Observation-BNet-Child-BirthGestation" />
  <status value="active" />
  <date value="2025-07-01T15:27:17.4569483Z" />
  <publisher value="Clevermed Ltd." />
  <contact>
    <name value="Clevermed BadgerNet Spine FHIR Team" />
    <telecom>
      <system value="email" />
      <value value="support@clevermed.com" />
      <use value="work" />
    </telecom>
  </contact>
  <description value="Gestation of the baby at birth. When sent to the Spine, this item will also determine whether the child is registerable or non-registerable." />
  <copyright value="(c) Clevermed Ltd.  Usage by permission and for BadgerNet Spine Platform integration only." />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Observation" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Observation" />
  <derivation value="constraint" />
  <differential>
    <element id="Observation">
      <path value="Observation" />
      <short value="Gestation at birth" />
      <definition value="Gestation of the baby at birth. When sent to the Spine, this item will also determine whether the child is registerable or non-registerable." />
    </element>
    <element id="Observation.code">
      <path value="Observation.code" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.code.coding.system">
      <path value="Observation.code.coding.system" />
      <fixedUri value="http://snomed.info/sct" />
    </element>
    <element id="Observation.code.coding.code">
      <path value="Observation.code.coding.code" />
      <short value="Required snomed code for - Observation-BNet-Child-BirthGestation" />
      <min value="1" />
      <fixedCode value="412726003" />
    </element>
    <element id="Observation.value[x]">
      <path value="Observation.value[x]" />
      <type>
        <code value="decimal" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Observation.id">
      <path value="Observation.id" />
      <short value="Unique resource identifier" />
      <definition value="" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Observation.status">
      <path value="Observation.status" />
      <short value="Fixed code for status of observation" />
      <definition value="" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.subject">
      <path value="Observation.subject" />
      <short value="Reference to the baby birth care record" />
      <definition value="" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.extension.episodeOfCare">
      <path value="Observation.extension.episodeOfCare" />
      <short value="The episode(s) of care that establishes the context for this resource. In this case, it is a reference to the 'birth episode' episode of care. The extension URL is: http://hl7.org/fhir/StructureDefinition/workflow-episodeOfCare" />
      <definition value="" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Observation.valueQuantity.unit">
      <path value="Observation.valueQuantity.unit" />
      <short value="Unit of quantity in string form. This should be 'day'" />
      <definition value="" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Observation.valueQuantity.system">
      <path value="Observation.valueQuantity.system" />
      <short value="System for quantity. This should be http://unitsofmeasure.org" />
      <definition value="" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Observation.valueQuantity.code">
      <path value="Observation.valueQuantity.code" />
      <short value="Code for quantity" />
      <definition value="" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Observation.note.text">
      <path value="Observation.note.text" />
      <short value="Gestation at onset in the format of 'X weeks, Y days'" />
      <definition value="" />
      <min value="1" />
      <max value="1" />
    </element>
  </differential>
</StructureDefinition>