<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="https://fhir.clevermed.com/StructureDefinition/EpisodeOfCare-BNet-Child-PaediatricEpisode" />
  <name value="EpisodeOfCare-BNet-Child-PaediatricEpisode" />
  <status value="active" />
  <date value="2025-03-25T15:48:12.9860598Z" />
  <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="For neonatal summary, full EPR, neoatal transport, or PHDU, or PICU, or FollowUp" />
  <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.type">
      <path value="EpisodeOfCare.type" />
      <short value="Paediatric care episode type" />
      <definition value="The BadgerNet Care Episode type code." />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <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.period.start">
      <path value="EpisodeOfCare.period.start" />
      <short value="Admission date and time for this care episode" />
      <definition value="The admission date and time for this single BadgerNet Paediatric Care Episode type.&#xA;        For transport episodes, this represents the transport request time.&#xA;        This should never be NULL as all BadgerNet Paediatric episodes MUST have a start time." />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="EpisodeOfCare.identifier[use='secondary'].value">
      <path value="EpisodeOfCare.identifier[use='secondary'].value" />
      <short value="BadgerID for this single care episode" />
      <definition value="Use System = &quot;https://fhir.clevermed.com/Identifier/BadgerNet/EpisodicBadgerID&quot;" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="EpisodeOfCare.identifier[use='official'].value">
      <path value="EpisodeOfCare.identifier[use='official'].value" />
      <short value="Local Hospital ID for this single care episode" />
      <definition value="For local hospital ID.  Also set TYPE = 'MR' (Medical Record ID)" />
      <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 cab 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>