<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="Appointment" />
  <meta>
    <lastUpdated value="2021-08-27T10:28:25.150+00:00" />
  </meta>
  <url value="http://StructureDefinition.hl7fhir.cn/Appointment" />
  <name value="Appointment" />
  <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">
      <path value="Appointment" />
      <short value="用于预约某个时候的医疗服务活动" />
      <definition value="用于预约某个时候的医疗服务活动，包括对患者、医护人员、相关人员、设备等的预约。此资源可能引出一次或多次医疗活动" />
      <comment value="此资源的每个实例只能表示单次预约，一组周期性的重复性预约需创建多个预约资源实例来表示。例如，择期手术、临床随访、远程会诊预约、预约检查等等" />
    </element>
    <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://StructureDefinition.hl7fhir.cn/Identifier" />
      </type>
    </element>
    <element id="Appointment.identifier:thirdPartyidentifier">
      <path value="Appointment.identifier" />
      <sliceName value="thirdPartyidentifier" />
      <short value="第三方订单号" />
      <definition value="第三方订单的编号" />
      <max value="1" />
    </element>
    <element id="Appointment.identifier:sourceIdentifier">
      <path value="Appointment.identifier" />
      <sliceName value="sourceIdentifier" />
      <short value="预约号源编码" />
      <definition value="预约与号源的编码" />
      <max value="1" />
    </element>
    <element id="Appointment.identifier:otherIdentifier">
      <path value="Appointment.identifier" />
      <sliceName value="otherIdentifier" />
      <short value="其他编码" />
      <definition value="预约与号源的其他业务编码" />
    </element>
    <element id="Appointment.status">
      <path value="Appointment.status" />
      <label value="预约状态" />
      <definition value="预约的整体状态。每个此预约相关的人或物都有参与此预约流程相关的自己的状态。但整体状态表示每个参与者可用的共享状态。&#xD;&#xA;这些状态包括：开放中|预约中|已预定|已签到|已完成|已取消|未到场|误录入|已就绪|候补中" />
      <comment value="当预约的状态标记为“取消”时，所有的参与者应该释放此预约时段的占用的资源，即相关的预约时段资源（Slot）的状态都应由“忙碌”重置为“空闲”。" />
      <isModifierReason value="当此元素值为&quot;entered-in-error&quot;时，整个资源将视为无效资源" />
      <binding>
        <strength value="required" />
        <description value="预约的整体状态" />
        <valueSet value="http://ValueSet.hl7fhir.cn/appointment-status" />
      </binding>
    </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:status">
      <path value="Appointment.status.extension" />
      <sliceName value="status" />
      <type>
        <code value="Extension" />
        <profile value="http://StructureDefinition.hl7fhir.cn/resource-status" />
      </type>
    </element>
    <element id="Appointment.cancelationReason">
      <path value="Appointment.cancelationReason" />
      <label value="取消原因" />
      <short value="预约取消的原因编码" />
      <definition value="当状态为已取消，此元素用编码形式说明此预约取消的原因。这常用于后续的统计报告或取消后有后续流程的情况，如：取消预约会产生扣费等情况。" />
      <type>
        <code value="CodeableConcept" />
        <profile value="http://StructureDefinition.hl7fhir.cn/CodeableConcept" />
      </type>
      <binding>
        <strength value="example" />
        <description value="预约取消原因" />
        <valueSet value="http://ValueSet.hl7fhir.cn/appointment-cancellation-reason" />
      </binding>
    </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://StructureDefinition.hl7fhir.cn/CodeableConcept" />
      </type>
    </element>
    <element id="Appointment.serviceCategory:serviceCategory">
      <path value="Appointment.serviceCategory" />
      <sliceName value="serviceCategory" />
      <short value="号源分类" />
      <definition value="该号源的分类" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
        <profile value="http://StructureDefinition.hl7fhir.cn/CodeableConcept" />
      </type>
      <binding>
        <strength value="example" />
        <valueSet value="http://ValueSet.hl7fhir.cn/service-category-vs" />
      </binding>
    </element>
    <element id="Appointment.serviceCategory:otherCategory">
      <path value="Appointment.serviceCategory" />
      <sliceName value="otherCategory" />
      <short value="其他号源分类" />
      <definition value="描述该号源的其他类别" />
      <type>
        <code value="CodeableConcept" />
        <profile value="http://StructureDefinition.hl7fhir.cn/CodeableConcept" />
      </type>
    </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://StructureDefinition.hl7fhir.cn/CodeableConcept" />
      </type>
    </element>
    <element id="Appointment.serviceType:serviceType">
      <path value="Appointment.serviceType" />
      <sliceName value="serviceType" />
      <short value="服务项目分类" />
      <definition value="该号源的服务项目分类" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
        <profile value="http://StructureDefinition.hl7fhir.cn/CodeableConcept" />
      </type>
      <binding>
        <strength value="example" />
        <valueSet value="http://ValueSet.hl7fhir.cn/service-type-vs" />
      </binding>
    </element>
    <element id="Appointment.serviceType:otherType">
      <path value="Appointment.serviceType" />
      <sliceName value="otherType" />
      <short value="其他服务项目分类" />
      <definition value="门诊号源的其他服务项目分类" />
      <type>
        <code value="CodeableConcept" />
        <profile value="http://StructureDefinition.hl7fhir.cn/CodeableConcept" />
      </type>
    </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://StructureDefinition.hl7fhir.cn/CodeableConcept" />
      </type>
    </element>
    <element id="Appointment.specialty:specialty">
      <path value="Appointment.specialty" />
      <sliceName value="specialty" />
      <short value="专业要求" />
      <definition value="该号源的专业要求" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
        <profile value="http://StructureDefinition.hl7fhir.cn/CodeableConcept" />
      </type>
      <binding>
        <strength value="preferred" />
        <valueSet value="http://ValueSet.hl7fhir.cn/practice-setting-code-vs" />
      </binding>
    </element>
    <element id="Appointment.specialty:otherSpecialty">
      <path value="Appointment.specialty" />
      <sliceName value="otherSpecialty" />
      <definition value="该门诊号源中执行的医疗服务者的其他专业要求" />
      <type>
        <code value="CodeableConcept" />
        <profile value="http://StructureDefinition.hl7fhir.cn/CodeableConcept" />
      </type>
    </element>
    <element id="Appointment.appointmentType">
      <path value="Appointment.appointmentType" />
      <short value="预约患者的类型" />
      <definition value="预约或预约病人的方式(不是服务类型)。&#xD;&#xA;描述该医疗服务提供的预约的方式，如：如：检查预约、随访预约、紧急预约、常规预约、例行约会（值集）,和预约的号源保持一致" />
      <type>
        <code value="CodeableConcept" />
        <profile value="http://StructureDefinition.hl7fhir.cn/CodeableConcept" />
      </type>
    </element>
    <element id="Appointment.reasonCode">
      <path value="Appointment.reasonCode" />
      <short value="预约原因代码" />
      <definition value="这个约会被安排的编码原因。这更像是临床治疗，而非行政管理。&#xD;&#xA;描述预约的原因编码（值集）" />
      <type>
        <code value="CodeableConcept" />
        <profile value="http://StructureDefinition.hl7fhir.cn/CodeableConcept" />
      </type>
    </element>
    <element id="Appointment.reasonReference">
      <path value="Appointment.reasonReference" />
      <short value="预约原因信息" />
      <definition value="根据另外一个资源来确定预约的原因，&#xD;&#xA;例如：门诊可以关联 主诉Condition ，手术预约可以使用Procedure 等。&#xD;&#xA;这里对描述这次预约的原因的资源的一个引用。" />
      <type>
        <code value="Reference" />
        <profile value="http://StructureDefinition.hl7fhir.cn/Reference" />
        <targetProfile value="http://StructureDefinition.hl7fhir.cn/Condition" />
        <targetProfile value="http://StructureDefinition.hl7fhir.cn/Procedure" />
        <targetProfile value="http://StructureDefinition.hl7fhir.cn/Observation" />
        <targetProfile value="http://StructureDefinition.hl7fhir.cn/ImmunizationRecommendation" />
      </type>
    </element>
    <element id="Appointment.priority">
      <path value="Appointment.priority" />
      <short value="优先级" />
      <definition value="描述该次预约的优先级。（iCal标准将0定义为未定义，将1定义为最高，将9定义为最低优先级）。" />
    </element>
    <element id="Appointment.description">
      <path value="Appointment.description" />
      <short value="简介" />
      <definition value="在会议请求或约会列表的主题栏中显示的约会的简短描述。详细或扩展的信息应该放在评论栏中。&#xD;&#xA;描述该次约会的简要介绍信息" />
    </element>
    <element id="Appointment.supportingInformation">
      <path value="Appointment.supportingInformation" />
      <short value="附加信息" />
      <definition value="在预约时提供的支持预约的附加信息。&#xD;&#xA;该出可以用于利用其它资源对该次预约进行补充，本地化后可以用于关联多个和这个资源相关的资源描述。" />
      <type>
        <code value="Reference" />
        <profile value="http://StructureDefinition.hl7fhir.cn/Reference" />
        <targetProfile value="http://StructureDefinition.hl7fhir.cn/Resource" />
      </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" />
      <short value="约会时间" />
      <definition value="描述整个约会完成的真实时间长度，可以和开始时间和结束时间不一致，该处为真实发生的时间。" />
    </element>
    <element id="Appointment.slot">
      <path value="Appointment.slot" />
      <short value="号源时段信息" />
      <definition value="描述该预约的号源时段信息的引用，如果该预约已经选定了号源时段，关联号源信息。" />
      <type>
        <code value="Reference" />
        <profile value="http://StructureDefinition.hl7fhir.cn/Reference" />
      </type>
    </element>
    <element id="Appointment.created">
      <path value="Appointment.created" />
      <short value="创建时间" />
      <definition value="此约会最初创建的日期。该时间不是数据的创建时间，而是业务发生的真实时间，并且在约会的生命周期内应该保持不变。" />
    </element>
    <element id="Appointment.comment">
      <path value="Appointment.comment" />
      <short value="约会评论" />
      <definition value="关于预约的补充意见。" />
      <comment value="附加文本，以记录预约信息。例如，一个注释可能是，“病人一到输液室就应立即进入”&#xD;&#xA;如果这是一个计划的约会，并且没有设置开始/结束日期，那么这个字段可以用来提供关于约会请求细节的额外指导，包括关于何时预订的任何限制。" />
    </element>
    <element id="Appointment.patientInstruction">
      <path value="Appointment.patientInstruction" />
      <short value="注意事项" />
      <definition value="给患者的详细信息和说明，本地化后，可以作为预约的事件的一些注意事项。字符串小于1M" />
    </element>
    <element id="Appointment.basedOn">
      <path value="Appointment.basedOn" />
      <short value="服务请求" />
      <definition value="分配此约会的服务请求以进行评估&#xD;&#xA;描述该预约是基于哪一些服务来预约的，比如检查申请单等。" />
      <type>
        <code value="Reference" />
        <profile value="http://StructureDefinition.hl7fhir.cn/Reference" />
        <targetProfile value="http://StructureDefinition.hl7fhir.cn/ServiceRequest" />
      </type>
    </element>
    <element id="Appointment.participant">
      <path value="Appointment.participant" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="type" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <short value="参与者" />
      <definition value="参与预约的人士名单。&#xD;&#xA;这里用1..*的关系明确了参与该次预约的所有元素，包括患者、医生、设备、诊室/检查室/手术室、相关的人员等。&#xD;&#xA;在这里可切片定义不同的参与元素，建议患者必填。" />
    </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://ValueSet.hl7fhir.cn/encounter-participant-type-vs" />
      </binding>
    </element>
    <element id="Appointment.participant:consultingRoom.actor">
      <path value="Appointment.participant.actor" />
      <type>
        <code value="Reference" />
        <profile value="http://StructureDefinition.hl7fhir.cn/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" />
      <type>
        <code value="CodeableConcept" />
        <profile value="http://StructureDefinition.hl7fhir.cn/CodeableConcept" />
      </type>
      <binding>
        <strength value="extensible" />
        <valueSet value="http://ValueSet.hl7fhir.cn/encounter-participant-type-vs" />
      </binding>
    </element>
    <element id="Appointment.participant:doctor.actor">
      <path value="Appointment.participant.actor" />
      <type>
        <code value="Reference" />
        <profile value="http://StructureDefinition.hl7fhir.cn/Reference" />
      </type>
    </element>
    <element id="Appointment.participant:SpecialistClinic">
      <path value="Appointment.participant" />
      <sliceName value="SpecialistClinic" />
      <max value="1" />
    </element>
    <element id="Appointment.participant:SpecialistClinic.type">
      <path value="Appointment.participant.type" />
      <type>
        <code value="CodeableConcept" />
        <profile value="http://StructureDefinition.hl7fhir.cn/CodeableConcept" />
      </type>
    </element>
    <element id="Appointment.participant:SpecialistClinic.actor">
      <path value="Appointment.participant.actor" />
      <type>
        <code value="Reference" />
        <profile value="http://StructureDefinition.hl7fhir.cn/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.type">
      <path value="Appointment.participant.type" />
      <type>
        <code value="CodeableConcept" />
        <profile value="http://StructureDefinition.hl7fhir.cn/CodeableConcept" />
      </type>
    </element>
    <element id="Appointment.participant:otherParticipant.actor">
      <path value="Appointment.participant.actor" />
      <type>
        <code value="Reference" />
        <profile value="http://StructureDefinition.hl7fhir.cn/Reference" />
      </type>
    </element>
    <element id="Appointment.requestedPeriod">
      <path value="Appointment.requestedPeriod" />
      <short value="预约希望日期" />
      <definition value="一组日期范围(可能包括时间)，最好将约会安排在其中。&#xD;&#xA;还可以提供持续时间(通常以分钟为单位)，以指示要填充和填充实际分配时间的开始/结束时间的约会的长度。但是，在其他情况下，时间可以由调度系统计算。&#xD;&#xA;&#xD;&#xA;描述预约被安排的日期，这里是建议日期，不是实际日期，通常可以用来描述在预约申请发起的时候，患者希望被预约到的时间段，&#xD;&#xA;但是不等于真实预约到的时间段，可作为预约的查询条件（辅助预约用）" />
      <type>
        <code value="Period" />
        <profile value="http://StructureDefinition.hl7fhir.cn/Period" />
      </type>
    </element>
  </differential>
</StructureDefinition>