<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="https://fhir.clevermed.com/StructureDefinition/CareTeam-BNet-Preg" />
  <name value="CareTeam-BNet-Preg" />
  <status value="active" />
  <date value="2025-03-25T15:48:12.9586792Z" />
  <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 updating the BadgerNet pregnancy “Care Plan” in the raw pregnancy record.&#xA;    Initially, this is to assign a “Named Midwife” only, from a MAT Spine Client System update." />
  <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="CareTeam" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/CareTeam" />
  <derivation value="constraint" />
  <differential>
    <element id="CareTeam.period.start">
      <path value="CareTeam.period.start" />
      <short value="Care team start period" />
      <definition value="" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="CareTeam.participant[x].role.coding[0]">
      <path value="CareTeam.participant[x].role.coding[0]" />
      <short value="Team Participant Type" />
      <definition value="&lt;p&gt;This data item is now a legacy option. Thus, for a short period, clients are able to send both this option and the newer role code option below.&lt;/p&gt;&lt;p&gt;NZ clients are must send &quot;LeadMidwife&quot;. UK clients must send 'leadprofessional'.&lt;/p&gt;" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="CareTeam.participant[x].role.coding[0].coding.system">
      <path value="CareTeam.participant[x].role.coding[0].coding.system" />
      <fixedUri value="https://clevermed.com/fhir/CareTeamRolesForPregCarePlan" />
    </element>
    <element id="CareTeam.participant[x].role.coding[0].coding.code">
      <path value="CareTeam.participant[x].role.coding[0].coding.code" />
      <min value="1" />
      <binding>
        <strength value="required" />
        <description value="Participant type" />
        <valueSet value="https://simplifier.net/badgernet/ValueSet-BNet-Preg-ParticipantType" />
      </binding>
    </element>
    <element id="CareTeam.participant[x].role.coding[1]">
      <path value="CareTeam.participant[x].role.coding[1]" />
      <short value="Team Participant Type" />
      <definition value="This is the new valueset, which will supersede the valueset ValueSet-BNet-Preg-ParticipantType." />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="CareTeam.participant[x].role.coding[1].coding.system">
      <path value="CareTeam.participant[x].role.coding[1].coding.system" />
      <fixedUri value="https://fhir.clevermed.com/ValueSet/LMCType" />
    </element>
    <element id="CareTeam.participant[x].role.coding[1].coding.code">
      <path value="CareTeam.participant[x].role.coding[1].coding.code" />
      <min value="1" />
      <binding>
        <strength value="required" />
        <description value="Registration type of the LMC with the Medical Council or the Midwifery Council" />
        <valueSet value="https://simplifier.net/badgernet/ValueSet-BNet-Preg-LMCType" />
      </binding>
    </element>
    <element id="CareTeam.participant[x].member.reference">
      <path value="CareTeam.participant[x].member.reference" />
      <short value="Reference for the professional or organisation" />
      <definition value="This reference's logical ID must match the &quot;ID&quot; element from a practitioner resource (https://docs.badger.link/cdl/practitioner-bnet-preg) in the same bundle.&#xA;&#xA;Where the participant type is a GP, this should use reference(organisation)" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
  </differential>
</StructureDefinition>