<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="https://fhir.clevermed.com/StructureDefinition/EpisodeOfCare-BNet-Preg-Active" />
  <name value="EpisodeOfCare-BNet-Preg-Active" />
  <status value="active" />
  <date value="2025-03-25T15:48:13.0361011Z" />
  <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="All of the [observation]-based FHIR Profiles have a fixed code (SNOMED or LOINC) and also have an added extension called [pregnancyEpisode] which is used when the Spine creates the read-only output version of this resource for each patient record.  It links this resource to a single “parent” pregnancy care episode resource instance.&lt;br /&gt; &lt;br /&gt;&#xA;&#xA;When writing these data items to the Spine, the sending Spine Client System needs only to send the basic FHIR resource information.  Elements that reference the patient or EpisodeOfCare do not need to be included as these will then be populated in the read-only full FHIR record that can be queried by the Clients.&lt;br /&gt; &lt;br /&gt;&#xA;&#xA;When reading from the BadgerNet Spine all these parent/child resources and all associated resource reference link elements will be included to reflect the source BadgerNet pregnancy care record structure." />
  <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="EpisodeOfCare" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/EpisodeOfCare" />
  <derivation value="constraint" />
  <differential>
    <element id="EpisodeOfCare.status">
      <path value="EpisodeOfCare.status" />
      <short value="Represents the current open/closed status of the BadgerNet Pregnancy record and can be either active or finished." />
      <definition value="The value for this item is dependent on the EDD for the pregnancy.&#xA;&#xA;Where the EDD is older than 56 days, the status of this episode of care will be set to 'finished'.&#xA;&#xA;When the EDD is sooner than 56 days, the status of this episode of care will be set to 'active'.&#xA;&#xA;This status will dynamically change when updating a pregnancy." />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="EpisodeOfCare.id">
      <path value="EpisodeOfCare.id" />
      <short value="Identifier for the episode of care" />
      <definition value="" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="EpisodeOfCare.patient">
      <path value="EpisodeOfCare.patient" />
      <short value="Reference back to root patient resource. The root patient resource should have an ID of $“Patient/{LogicalID}”" />
      <definition value="" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="EpisodeOfCare.period">
      <path value="EpisodeOfCare.period" />
      <short value="Refers to the overall time period of care of this BadgerNet Pregnancy record" />
      <definition value="" />
      <min value="1" />
      <max value="1" />
    </element>
  </differential>
</StructureDefinition>