<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="https://fhir.clevermed.com/StructureDefinition/CarePlan-BNet-Preg-PlannedPlaceOfBirth" />
  <name value="CarePlan-BNet-Preg-PlannedPlaceOfBirth" />
  <status value="active" />
  <date value="2025-03-25T15:48:12.9566795Z" />
  <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 element provides the planned place or facility of birth. The information recorded is the location and location type.&#xA;The facility identifier data element is mandatory upon any response other then 'Home' or 'Other' to the insert request." />
  <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="CarePlan" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/CarePlan" />
  <derivation value="constraint" />
  <differential>
    <element id="CarePlan.category">
      <path value="CarePlan.category" />
      <short value="Fixed code for planned place of Birth." />
      <definition value="Fixed single SNOMED code that identifies this CAREPLAN resource as being for the update of Planned Place Of Birth." />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="CarePlan.category.coding.system">
      <path value="CarePlan.category.coding.system" />
      <fixedUri value="http://snomed.info/sct" />
    </element>
    <element id="CarePlan.category.coding.code">
      <path value="CarePlan.category.coding.code" />
      <fixedString value="310585007" />
    </element>
    <element id="CarePlan.category.coding.display">
      <path value="CarePlan.category.coding.display" />
      <fixedString value="Planned place of birth" />
    </element>
    <element id="CarePlan.created">
      <path value="CarePlan.created" />
      <short value="Date and time for when this information is to be recorded in the patient notes." />
      <definition value="Clients can send multiple separate instances of this resource with a different created datetime stamp in each.  This models to the concept of keeping a time-based record of when the intended place of birth is changed." />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="CarePlan.activity.detail.code">
      <path value="CarePlan.activity.detail.code" />
      <short value="Place or facility where the woman plans to give birth" />
      <definition value="" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="CarePlan.activity.detail.code.coding.system">
      <path value="CarePlan.activity.detail.code.coding.system" />
      <fixedUri value="http://snomed.info/sct" />
    </element>
    <element id="CarePlan.activity.detail.code.coding.code">
      <path value="CarePlan.activity.detail.code.coding.code" />
      <min value="1" />
      <binding>
        <strength value="required" />
        <description value="Place or facility where the woman plans to give birth" />
        <valueSet value="https://simplifier.net/badgernet/ValueSet-BNet-Preg-PlannedPlaceOfBirth" />
      </binding>
    </element>
    <element id="CarePlan.activity.detail.code.text">
      <path value="CarePlan.activity.detail.code.text" />
      <short value="A free text string for when 'other' is used in 'activity.detail.code'" />
      <definition value="" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="CarePlan.activity.detail.performer">
      <path value="CarePlan.activity.detail.performer" />
      <short value="National ID for care location." />
      <definition value="NHS Organisation code or NZ National organisation code provided as an organisation identifier.&#xA;        &#xA;Where the &quot;Facility Type&quot; element is defined as a primary birthing facility, a seconday birthing facility or a tertiary birthing facility, the client must provide the organisation reference as an identifier. Otherwise, it is non-mandatory.&#xA;&#xA;The reference is provided with the reference.identifier element. For this element, the clients operating in New Zealand will send the NZ HPI Facility ID as defined by https://standards.digital.health.nz/ns/hpi-facility-id." />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="CarePlan.activity.detail.status">
      <path value="CarePlan.activity.detail.status" />
      <short value="Fixed code to set this care plan to 'scheduled'" />
      <definition value="" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="CarePlan.status">
      <path value="CarePlan.status" />
      <short value="Indicates that the plan is in force and ready to be acted upon" />
      <definition value="" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="CarePlan.intent">
      <path value="CarePlan.intent" />
      <short value="Indicates the level of authority/intentionality associated with the care plan and where the care plan fits into the workflow chain." />
      <definition value="The fixed value here represents an intention which ensures that the careplan can occur without further authorisation for others to act." />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="CarePlan.subject">
      <path value="CarePlan.subject" />
      <short value="A reference to the patient that this care plan is for" />
      <definition value="" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
  </differential>
</StructureDefinition>