<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="https://fhir.clevermed.com/StructureDefinition/Appointment-BNet-Preg-UpcomingAppointment" />
  <name value="Appointment-BNet-Preg-UpcomingAppointment" />
  <status value="active" />
  <date value="2025-03-25T15:48:12.2043691Z" />
  <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="Upcoming appointments for pregnant person" />
  <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="Appointment" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Appointment" />
  <derivation value="constraint" />
  <differential>
    <element id="Appointment.status">
      <path value="Appointment.status" />
      <short value="Status to determine whether this appointment is booked or cancelled. This item should be 'booked' or 'cancelled' or 'pending' (for null values)" />
      <definition value="" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Appointment.reasonCode.codeableConcept">
      <path value="Appointment.reasonCode.codeableConcept" />
      <short value="Reason for appointment" />
      <definition value="" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Appointment.reasonCode.codeableConcept.coding.system">
      <path value="Appointment.reasonCode.codeableConcept.coding.system" />
      <fixedUri value="https://fhir.clevermed.com/codesystem" />
    </element>
    <element id="Appointment.reasonCode.codeableConcept.coding.code">
      <path value="Appointment.reasonCode.codeableConcept.coding.code" />
      <min value="1" />
      <binding>
        <strength value="required" />
        <description value="Reason for appointments" />
        <valueSet value="https://simplifier.net/badgernet/ValueSet-BNet-Preg-AppointmentReason" />
      </binding>
    </element>
    <element id="Appointment.reasonCode.codeableConcept.text">
      <path value="Appointment.reasonCode.codeableConcept.text" />
      <short value="String for when reason for appointment is 'other' or 'USS'" />
      <definition value="" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Appointment.start">
      <path value="Appointment.start" />
      <short value="Date and time for when the appointment is to take place" />
      <definition value="" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Appointment.appointmentType">
      <path value="Appointment.appointmentType" />
      <short value="Type of appointment held" />
      <definition value="" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Appointment.appointmentType.coding.system">
      <path value="Appointment.appointmentType.coding.system" />
      <fixedUri value="https://fhir.clevermed.com/codesystem" />
    </element>
    <element id="Appointment.appointmentType.coding.code">
      <path value="Appointment.appointmentType.coding.code" />
      <min value="1" />
      <binding>
        <strength value="required" />
        <description value="Types of appointments" />
        <valueSet value="https://simplifier.net/badgernet/ValueSet-BNet-Preg-AppointmentType" />
      </binding>
    </element>
    <element id="Appointment.participant.actor">
      <path value="Appointment.participant.actor" />
      <short value="Reference to pregnant person" />
      <definition value="" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Appointment.participant.status">
      <path value="Appointment.participant.status" />
      <short value="Participation status of the actor" />
      <definition value="" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Appointment.description">
      <path value="Appointment.description" />
      <short value="String detailing appointment information" />
      <definition value="" />
      <min value="1" />
      <max value="1" />
    </element>
  </differential>
</StructureDefinition>