<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="https://fhir.clevermed.com/StructureDefinition/EpisodeOfCare-BNet-Child-BirthEpisode" />
  <name value="EpisodeOfCare-BNet-Child-BirthEpisode" />
  <status value="active" />
  <date value="2025-03-25T15:48:12.9677493Z" />
  <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="Care episode created following the birth of a baby." />
  <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="Episode current status" />
      <definition value="Represents the child episode current status. (active | finished)" />
      <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.type">
      <path value="EpisodeOfCare.type" />
      <short value="Type or class of episode" />
      <definition value="" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="EpisodeOfCare.type.coding.system">
      <path value="EpisodeOfCare.type.coding.system" />
      <fixedUri value="https://fhir.clevermed.com/codesystem" />
    </element>
    <element id="EpisodeOfCare.type.coding.code">
      <path value="EpisodeOfCare.type.coding.code" />
      <fixedString value="birth" />
    </element>
    <element id="EpisodeOfCare.type.coding.display">
      <path value="EpisodeOfCare.type.coding.display" />
      <fixedString value="Birth episode" />
    </element>
    <element id="EpisodeOfCare.period.start">
      <path value="EpisodeOfCare.period.start" />
      <short value="Date at which the baby was born and care began" />
      <definition value="" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="EpisodeOfCare.period.end">
      <path value="EpisodeOfCare.period.end" />
      <short value="Discharge date and time for this care episode" />
      <definition value="The discharge date and time for this single BadgerNet Paediatric Care Episode type.&#xA;        This can be NULL. NULL represent an active care episode where the baby is still admitted." />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="EpisodeOfCare.patient">
      <path value="EpisodeOfCare.patient" />
      <short value="Reference back to root child 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.managingOrganization">
      <path value="EpisodeOfCare.managingOrganization" />
      <short value="Reference to the associated single BadgerNet Care Location for this care episode" />
      <definition value="" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
  </differential>
</StructureDefinition>