<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="outpatient-registration-source" />
  <meta>
    <lastUpdated value="2020-12-07T02:42:10.696+00:00" />
  </meta>
  <url value="http://fhir.scwjxx.cn/Sichuan/StructureDefinition/outpatient-registration-source" />
  <name value="OutpatientRegistrationSource" />
  <title value="门诊号源信息" />
  <status value="draft" />
  <description value="该资源描述门诊号源信息，包括号源、挂号都是用该资源。" />
  <fhirVersion value="4.0.0" />
  <mapping>
    <identity value="workflow" />
    <uri value="http://hl7.org/fhir/workflow" />
    <name value="Workflow Pattern" />
  </mapping>
  <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>
  <mapping>
    <identity value="v2" />
    <uri value="http://hl7.org/v2" />
    <name value="HL7 v2 Mapping" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="Appointment" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Appointment" />
  <derivation value="constraint" />
  <differential>
    <element id="Appointment.identifier">
      <path value="Appointment.identifier" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="type" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <type>
        <code value="Identifier" />
        <profile value="http://fhir.scwjxx.cn/Sichuan/StructureDefinition/Identifier" />
      </type>
    </element>
    <element id="Appointment.identifier:thirdPartyidentifier">
      <path value="Appointment.identifier" />
      <sliceName value="thirdPartyidentifier" />
      <max value="1" />
    </element>
    <element id="Appointment.identifier:sourceIdentifier">
      <path value="Appointment.identifier" />
      <sliceName value="sourceIdentifier" />
      <max value="1" />
    </element>
    <element id="Appointment.identifier:otherIdentifier">
      <path value="Appointment.identifier" />
      <sliceName value="otherIdentifier" />
    </element>
    <element id="Appointment.status">
      <path value="Appointment.status" />
      <short value="号源和挂号申请状态" />
    </element>
    <element id="Appointment.status.extension">
      <path value="Appointment.status.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Appointment.status.extension:ststus">
      <path value="Appointment.status.extension" />
      <sliceName value="ststus" />
      <short value="号源和挂号申请状态" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://fhir.scwjxx.cn/Sichuan/StructureDefinition/resource-status" />
      </type>
      <binding>
        <strength value="required" />
        <valueSet value="http://fhir.scwjxx.cn/Sichuan/ValueSet/appointment-status-vs" />
      </binding>
    </element>
    <element id="Appointment.cancelationReason">
      <path value="Appointment.cancelationReason" />
      <max value="0" />
    </element>
    <element id="Appointment.serviceCategory">
      <path value="Appointment.serviceCategory" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="coding.system" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <type>
        <code value="CodeableConcept" />
        <profile value="http://fhir.scwjxx.cn/Sichuan/StructureDefinition/CodeableConcept" />
      </type>
    </element>
    <element id="Appointment.serviceCategory:serviceCategory">
      <path value="Appointment.serviceCategory" />
      <sliceName value="serviceCategory" />
      <max value="1" />
      <binding>
        <strength value="example" />
        <valueSet value="http://fhir.scwjxx.cn/Sichuan/ValueSet/service-category-vs" />
      </binding>
    </element>
    <element id="Appointment.serviceCategory:otherCategory">
      <path value="Appointment.serviceCategory" />
      <sliceName value="otherCategory" />
      <short value="其他号源分类" />
      <definition value="描述该号源的其他类别" />
    </element>
    <element id="Appointment.serviceType">
      <path value="Appointment.serviceType" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="coding.system" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <type>
        <code value="CodeableConcept" />
        <profile value="http://fhir.scwjxx.cn/Sichuan/StructureDefinition/CodeableConcept" />
      </type>
    </element>
    <element id="Appointment.serviceType:serviceType">
      <path value="Appointment.serviceType" />
      <sliceName value="serviceType" />
      <max value="1" />
      <binding>
        <strength value="example" />
        <valueSet value="http://fhir.scwjxx.cn/Sichuan/ValueSet/service-type-vs" />
      </binding>
    </element>
    <element id="Appointment.serviceType:otherType">
      <path value="Appointment.serviceType" />
      <sliceName value="otherType" />
      <short value="其他服务项目分类" />
      <definition value="门诊号源的其他服务项目分类" />
    </element>
    <element id="Appointment.specialty">
      <path value="Appointment.specialty" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="coding.system" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <type>
        <code value="CodeableConcept" />
        <profile value="http://fhir.scwjxx.cn/Sichuan/StructureDefinition/CodeableConcept" />
      </type>
    </element>
    <element id="Appointment.specialty:specialty">
      <path value="Appointment.specialty" />
      <sliceName value="specialty" />
      <max value="1" />
      <binding>
        <strength value="preferred" />
        <valueSet value="http://fhir.scwjxx.cn/Sichuan/ValueSet/practice-setting-code-vs" />
      </binding>
    </element>
    <element id="Appointment.specialty:otherSpecialty">
      <path value="Appointment.specialty" />
      <sliceName value="otherSpecialty" />
      <definition value="该门诊号源中执行的医疗服务者的其他专业要求" />
    </element>
    <element id="Appointment.appointmentType">
      <path value="Appointment.appointmentType" />
      <short value="患者预约的类型" />
      <definition value="非服务类型" />
      <type>
        <code value="CodeableConcept" />
        <profile value="http://fhir.scwjxx.cn/Sichuan/StructureDefinition/CodeableConcept" />
      </type>
      <binding>
        <strength value="preferred" />
        <valueSet value="http://fhir.scwjxx.cn/Sichuan/ValueSet/appointment-type-vs" />
      </binding>
    </element>
    <element id="Appointment.reasonCode">
      <path value="Appointment.reasonCode" />
      <max value="0" />
    </element>
    <element id="Appointment.reasonReference">
      <path value="Appointment.reasonReference" />
      <type>
        <code value="Reference" />
        <profile value="http://fhir.scwjxx.cn/Sichuan/StructureDefinition/Reference" />
      </type>
    </element>
    <element id="Appointment.supportingInformation">
      <path value="Appointment.supportingInformation" />
      <short value="其他支持信息" />
      <definition value="在进行预约时提供的支持预约的其他资料。" />
      <type>
        <code value="Reference" />
        <profile value="http://fhir.scwjxx.cn/Sichuan/StructureDefinition/Reference" />
      </type>
    </element>
    <element id="Appointment.start">
      <path value="Appointment.start" />
      <short value="开始时间" />
      <definition value="号源的开始就诊时间" />
    </element>
    <element id="Appointment.end">
      <path value="Appointment.end" />
      <short value="结束时间" />
      <definition value="号源的结束就诊时间" />
    </element>
    <element id="Appointment.minutesDuration">
      <path value="Appointment.minutesDuration" />
      <max value="0" />
    </element>
    <element id="Appointment.slot">
      <path value="Appointment.slot" />
      <short value="时段信息" />
      <definition value="该号源所属的时段信息" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Slot" />
        <targetProfile value="http://fhir.scwjxx.cn/Sichuan/StructureDefinition/outpatient-slot" />
      </type>
    </element>
    <element id="Appointment.basedOn">
      <path value="Appointment.basedOn" />
      <max value="0" />
    </element>
    <element id="Appointment.participant">
      <path value="Appointment.participant" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="type" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Appointment.participant:consultingRoom">
      <path value="Appointment.participant" />
      <sliceName value="consultingRoom" />
      <short value="诊室" />
      <definition value="关联 该排班中的诊室资源，type 中固定为诊室" />
      <max value="1" />
    </element>
    <element id="Appointment.participant:consultingRoom.type">
      <path value="Appointment.participant.type" />
      <binding>
        <strength value="extensible" />
        <valueSet value="http://fhir.scwjxx.cn/Sichuan/ValueSet/encounter-participant-type-vs" />
      </binding>
    </element>
    <element id="Appointment.participant:consultingRoom.actor">
      <path value="Appointment.participant.actor" />
      <type>
        <code value="Reference" />
        <profile value="http://fhir.scwjxx.cn/Sichuan/StructureDefinition/Reference" />
      </type>
    </element>
    <element id="Appointment.participant:doctor">
      <path value="Appointment.participant" />
      <sliceName value="doctor" />
      <short value="门诊医生" />
      <definition value="关联 该排班中的门诊医生信息" />
      <max value="1" />
    </element>
    <element id="Appointment.participant:doctor.type">
      <path value="Appointment.participant.type" />
      <binding>
        <strength value="extensible" />
        <valueSet value="http://fhir.scwjxx.cn/Sichuan/ValueSet/encounter-participant-type-vs" />
      </binding>
    </element>
    <element id="Appointment.participant:doctor.actor">
      <path value="Appointment.participant.actor" />
      <type>
        <code value="Reference" />
        <profile value="http://fhir.scwjxx.cn/Sichuan/StructureDefinition/Reference" />
      </type>
    </element>
    <element id="Appointment.participant:otherParticipant">
      <path value="Appointment.participant" />
      <sliceName value="otherParticipant" />
      <short value="其他参与者" />
      <definition value="关联此班次中包含的号源将拥有此元素指定的其他医疗服务资源，如医生、设备、床位等。" />
    </element>
    <element id="Appointment.participant:otherParticipant.actor">
      <path value="Appointment.participant.actor" />
      <type>
        <code value="Reference" />
        <profile value="http://fhir.scwjxx.cn/Sichuan/StructureDefinition/Reference" />
      </type>
    </element>
    <element id="Appointment.requestedPeriod">
      <path value="Appointment.requestedPeriod" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>