<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="1b7310eb-6245-49c2-b14d-c7c025150893" />
  <meta>
    <lastUpdated value="2024-01-26T06:04:24.4134847+00:00" />
  </meta>
  <url value="https://simplifier.net/winningtest/outpatient-schedule-profile" />
  <name value="OutpatientSchedule" />
  <title value="门诊排班" />
  <status value="draft" />
  <date value="2024-01-26T06:04:34.8126014+00:00" />
  <fhirVersion value="4.0.1" />
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <mapping>
    <identity value="ical" />
    <uri value="http://ietf.org/rfc/2445" />
    <name value="iCalendar" />
  </mapping>
  <mapping>
    <identity value="w5" />
    <uri value="http://hl7.org/fhir/fivews" />
    <name value="FiveWs Pattern Mapping" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="Schedule" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Schedule" />
  <derivation value="constraint" />
  <differential>
    <element id="Schedule.extension:slotInformation">
      <path value="Schedule.extension" />
      <sliceName value="slotInformation" />
      <type>
        <code value="Extension" />
        <profile value="https://simplifier.net/winningtest/extension-slot-information" />
      </type>
    </element>
    <element id="Schedule.identifier">
      <path value="Schedule.identifier" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="system" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Schedule.identifier:scheduleId">
      <path value="Schedule.identifier" />
      <sliceName value="scheduleId" />
      <max value="1" />
    </element>
    <element id="Schedule.identifier:scheduleId.use">
      <path value="Schedule.identifier.use" />
      <max value="0" />
    </element>
    <element id="Schedule.identifier:scheduleId.type">
      <path value="Schedule.identifier.type" />
      <max value="0" />
    </element>
    <element id="Schedule.identifier:scheduleId.system">
      <path value="Schedule.identifier.system" />
      <short value="排班标识" />
      <definition value="此数据元的OID可能会发生变更，请予以标记。" />
      <fixedUri value="urn:oid:1.2.156.112604.1.1.3335" />
    </element>
    <element id="Schedule.identifier:scheduleId.period">
      <path value="Schedule.identifier.period" />
      <max value="0" />
    </element>
    <element id="Schedule.identifier:scheduleId.assigner">
      <path value="Schedule.identifier.assigner" />
      <max value="0" />
    </element>
    <element id="Schedule.active">
      <path value="Schedule.active" />
      <short value="启用标志" />
    </element>
    <element id="Schedule.serviceCategory">
      <path value="Schedule.serviceCategory" />
      <short value="就诊科目服务类别/号别" />
    </element>
    <element id="Schedule.serviceCategory.coding">
      <path value="Schedule.serviceCategory.coding" />
      <short value="就诊科目服务类别编码" />
    </element>
    <element id="Schedule.serviceCategory.text">
      <path value="Schedule.serviceCategory.text" />
      <short value="就诊科目服务类别名称" />
    </element>
    <element id="Schedule.serviceType">
      <path value="Schedule.serviceType" />
      <max value="0" />
    </element>
    <element id="Schedule.specialty">
      <path value="Schedule.specialty" />
      <max value="0" />
    </element>
    <element id="Schedule.actor">
      <path value="Schedule.actor" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="type" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <short value="就诊科目服务" />
      <type>
        <code value="Reference" />
        <aggregation value="contained" />
      </type>
    </element>
    <element id="Schedule.actor:healthcareService">
      <path value="Schedule.actor" />
      <sliceName value="healthcareService" />
      <short value="门诊就诊科目服务" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://simplifier.net/winningtest/outpatient-healthcare-service-profile" />
        <aggregation value="contained" />
      </type>
    </element>
    <element id="Schedule.actor:healthcareService.identifier">
      <path value="Schedule.actor.identifier" />
      <short value="就诊科目服务标识" />
    </element>
    <element id="Schedule.actor:department">
      <path value="Schedule.actor" />
      <sliceName value="department" />
      <short value="科室" />
      <definition value="科室是必需的" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://simplifier.net/winningtest/department-profile" />
        <aggregation value="contained" />
      </type>
    </element>
    <element id="Schedule.actor:clinicZone">
      <path value="Schedule.actor" />
      <sliceName value="clinicZone" />
      <short value="诊区" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://simplifier.net/winningtest/clinic-zone-profile" />
        <aggregation value="contained" />
      </type>
    </element>
    <element id="Schedule.actor:doctor">
      <path value="Schedule.actor" />
      <sliceName value="doctor" />
      <short value="医生" />
      <definition value="医生是可选的。当仅存在科室时，意为此科室下任何一位医生都可以被预约或挂号。" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://simplifier.net/winningtest/practitioner-profile" />
        <aggregation value="contained" />
      </type>
    </element>
    <element id="Schedule.actor:room">
      <path value="Schedule.actor" />
      <sliceName value="room" />
      <short value="房间" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://simplifier.net/winningtest/room-profile" />
        <aggregation value="contained" />
      </type>
    </element>
    <element id="Schedule.planningHorizon">
      <path value="Schedule.planningHorizon" />
      <short value="排班时间跨度" />
      <definition value="根据门诊排班时间段的总和，取其上下限得到。" />
      <min value="1" />
    </element>
    <element id="Schedule.planningHorizon.extension">
      <path value="Schedule.planningHorizon.extension" />
      <min value="1" />
    </element>
    <element id="Schedule.planningHorizon.extension:dayPeriod">
      <path value="Schedule.planningHorizon.extension" />
      <sliceName value="dayPeriod" />
      <min value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://simplifier.net/winningtest/extension-day-period" />
      </type>
    </element>
    <element id="Schedule.comment">
      <path value="Schedule.comment" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>