<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="https://fhir.clevermed.com/StructureDefinition/Encounter-BNet-Child-NeonatalUnitAdmission" />
  <name value="Encounter-BNet-Child-NeonatalUnitAdmission" />
  <status value="draft" />
  <date value="2025-11-21T15:01:45.9772013Z" />
  <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="This encounter resource encaspulates the details collected at admission to any neonatal unit.  It has a parent relationshop to a generic Paediatric Episode resource of type=neonatal." />
  <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="Encounter" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Encounter" />
  <derivation value="constraint" />
  <differential>
    <element id="Encounter.subject">
      <path value="Encounter.subject" />
      <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" />
      <mustSupport value="true" />
    </element>
    <element id="Encounter.period.start">
      <path value="Encounter.period.start" />
      <short value="Date and time of the AdmissionTime to the neonatal unit" />
      <definition value="" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Encounter.period.end">
      <path value="Encounter.period.end" />
      <short value="Date and time of the discharge or death from the neonatal unit" />
      <definition value="" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Encounter.serviceProvider">
      <path value="Encounter.serviceProvider" />
      <short value="Reference to the BadgerNet care location for the Neonatal Unit" />
      <definition value="" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Encounter.hospitalization.origin">
      <path value="Encounter.hospitalization.origin" />
      <short value="The BadgerNet Care Location, if known, where the baby was admitted from" />
      <definition value="" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Encounter.hospitalization.dischargeDisposition">
      <path value="Encounter.hospitalization.dischargeDisposition" />
      <short value="Category or kind of location after discharge" />
      <definition value="" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Encounter.hospitalization.dischargeDisposition.coding.system">
      <path value="Encounter.hospitalization.dischargeDisposition.coding.system" />
      <fixedUri value="snomed" />
    </element>
    <element id="Encounter.hospitalization.dischargeDisposition.coding.code">
      <path value="Encounter.hospitalization.dischargeDisposition.coding.code" />
      <min value="1" />
      <binding>
        <strength value="required" />
        <description value="Available codes for type of discharge" />
        <valueSet value="https://simplifier.net/badgernet/ValueSet-BNet-Child-NNDischargeDisposition" />
      </binding>
    </element>
    <element id="Encounter.hospitalization.destination">
      <path value="Encounter.hospitalization.destination" />
      <short value="Where the patient is discharged to" />
      <definition value="This element is only required when the element hospitalization.dischargeDisposition is set to 306699001." />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Encounter.status">
      <path value="Encounter.status" />
      <short value="Status of the encounter" />
      <definition value="" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Encounter.class">
      <path value="Encounter.class" />
      <short value="Classification of patient encounter" />
      <definition value="" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Encounter.episodeOfCare">
      <path value="Encounter.episodeOfCare" />
      <short value="Reference to the episode of care" />
      <definition value="" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://clevermed.com/fhir/" />
      </type>
      <mustSupport value="true" />
    </element>
  </differential>
</StructureDefinition>