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