<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="https://fhir.clevermed.com/StructureDefinition/Observation-BNet-Preg-EDDAgreed" />
  <name value="Observation-BNet-Preg-EDDAgreed" />
  <status value="active" />
  <date value="2025-03-25T15:48:13.1394239Z" />
  <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="&lt;p&gt;Agreed EDD for single pregnancy episode. The format of this data item is 'YYYY-MM-DD'.&lt;/p&gt;&#xA;    &lt;p&gt;The following rules should be observed where the EDD is updated:&lt;/p&gt;&#xA;&lt;ul&gt;&lt;li&gt;if a closed record receives an EDD update in the future, the episode of care will be updated&lt;/li&gt;&#xA;&lt;li&gt;if an open record receives an EDD update with date 52 days in the past, the episode of care will be closed&lt;/li&gt;&lt;/ul&gt;" />
  <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="Estimated Date of Delivery." />
      <definition value="&lt;p&gt;Agreed EDD for single pregnancy episode. The format of this data item is 'YYYY-MM-DD'.&lt;/p&gt;&#xA;    &lt;p&gt;The following rules should be observed where the EDD is updated:&lt;/p&gt;&#xA;&lt;ul&gt;&lt;li&gt;if a closed record receives an EDD update in the future, the episode of care will be updated&lt;/li&gt;&#xA;&lt;li&gt;if an open record receives an EDD update with date 52 days in the past, the episode of care will be closed&lt;/li&gt;&lt;/ul&gt;" />
    </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-Preg-EDDAgreed" />
      <min value="1" />
      <fixedCode value="161714006" />
    </element>
    <element id="Observation.value[x]">
      <path value="Observation.value[x]" />
      <type>
        <code value="dateTime" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Observation.subject">
      <path value="Observation.subject" />
      <short value="Reference to the mother/pregnant person" />
      <definition value="" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </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>
  </differential>
</StructureDefinition>