{
  "resourceType": "StructureDefinition",
  "id": "0ad4582e-cf90-4070-8e29-ab157bc119da",
  "meta": {
    "lastUpdated": "2024-01-18T03:47:17.060939+00:00"
  },
  "url": "https://simplifier.net/winningtest/outpatient-appointment-profile",
  "name": "OutpatientAppointment",
  "title": "挂号/预约",
  "status": "draft",
  "date": "2024-01-18T03:47:30.2993085+00:00",
  "fhirVersion": "4.0.1",
  "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.extension:serviceCategory",
        "path": "Appointment.extension",
        "sliceName": "serviceCategory",
        "short": "就诊科目服务类别",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://simplifier.net/winningtest/extension-service-category"
            ]
          }
        ]
      },
      {
        "id": "Appointment.extension:serviceSource",
        "path": "Appointment.extension",
        "sliceName": "serviceSource",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://simplifier.net/winningtest/extension-service-source"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Appointment.extension:feeWaived",
        "path": "Appointment.extension",
        "sliceName": "feeWaived",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://simplifier.net/winningtest/extension-fee-waived"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Appointment.extension:referralFlag",
        "path": "Appointment.extension",
        "sliceName": "referralFlag",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://simplifier.net/winningtest/extension-referral-flag"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Appointment.extension:jointClinic",
        "path": "Appointment.extension",
        "sliceName": "jointClinic",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://simplifier.net/winningtest/extension-joint-clinic"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Appointment.identifier",
        "path": "Appointment.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Appointment.identifier:registerSeqNo",
        "path": "Appointment.identifier",
        "sliceName": "registerSeqNo",
        "short": "就诊登记流水号",
        "max": "1"
      },
      {
        "id": "Appointment.identifier:registerSeqNo.use",
        "path": "Appointment.identifier.use",
        "max": "0"
      },
      {
        "id": "Appointment.identifier:registerSeqNo.type",
        "path": "Appointment.identifier.type",
        "max": "0"
      },
      {
        "id": "Appointment.identifier:registerSeqNo.system",
        "path": "Appointment.identifier.system",
        "fixedUri": "urn:oid:1.2.156.112604.1.1.3765"
      },
      {
        "id": "Appointment.identifier:registerSeqNo.period",
        "path": "Appointment.identifier.period",
        "max": "0"
      },
      {
        "id": "Appointment.identifier:registerSeqNo.assigner",
        "path": "Appointment.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Appointment.identifier:appointmentSeqNo",
        "path": "Appointment.identifier",
        "sliceName": "appointmentSeqNo",
        "short": "就诊预约流水号",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Appointment.identifier:appointmentSeqNo.use",
        "path": "Appointment.identifier.use",
        "max": "0"
      },
      {
        "id": "Appointment.identifier:appointmentSeqNo.type",
        "path": "Appointment.identifier.type",
        "max": "0"
      },
      {
        "id": "Appointment.identifier:appointmentSeqNo.system",
        "path": "Appointment.identifier.system",
        "short": "就诊预约流水号",
        "fixedUri": "urn:oid:1.2.156.112604.1.1.4698"
      },
      {
        "id": "Appointment.identifier:appointmentSeqNo.period",
        "path": "Appointment.identifier.period",
        "max": "0"
      },
      {
        "id": "Appointment.identifier:appointmentSeqNo.assigner",
        "path": "Appointment.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Appointment.identifier:patientExternalId",
        "path": "Appointment.identifier",
        "sliceName": "patientExternalId",
        "short": "第三方档案唯一索引",
        "max": "1"
      },
      {
        "id": "Appointment.identifier:patientExternalId.use",
        "path": "Appointment.identifier.use",
        "max": "0"
      },
      {
        "id": "Appointment.identifier:patientExternalId.type",
        "path": "Appointment.identifier.type",
        "max": "0"
      },
      {
        "id": "Appointment.identifier:patientExternalId.system",
        "path": "Appointment.identifier.system",
        "short": "第三方档案唯一索引",
        "fixedUri": "urn:oid:1.2.156.112604.1.2.663.15"
      },
      {
        "id": "Appointment.identifier:patientExternalId.period",
        "path": "Appointment.identifier.period",
        "max": "0"
      },
      {
        "id": "Appointment.identifier:patientExternalId.assigner",
        "path": "Appointment.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Appointment.status",
        "path": "Appointment.status",
        "short": "就诊登记状态",
        "binding": {
          "strength": "required",
          "description": "就诊登记状态代码",
          "valueSet": "urn:oid:1.2.156.112604.1.2.1026"
        }
      },
      {
        "id": "Appointment.cancelationReason",
        "path": "Appointment.cancelationReason",
        "short": "预约取消原因",
        "definition": "可用于门诊挂号退号原因"
      },
      {
        "id": "Appointment.serviceCategory",
        "path": "Appointment.serviceCategory",
        "short": "就诊科目服务类型",
        "max": "1",
        "binding": {
          "strength": "required",
          "description": "就诊科目服务类型代码",
          "valueSet": "urn:oid:1.2.156.112604.1.2.999"
        }
      },
      {
        "id": "Appointment.serviceType",
        "path": "Appointment.serviceType",
        "short": "就诊科目服务",
        "max": "1"
      },
      {
        "id": "Appointment.specialty",
        "path": "Appointment.specialty",
        "max": "0"
      },
      {
        "id": "Appointment.specialty.coding.code",
        "path": "Appointment.specialty.coding.code",
        "short": "专业Id"
      },
      {
        "id": "Appointment.appointmentType",
        "path": "Appointment.appointmentType",
        "short": "预约类型",
        "binding": {
          "strength": "required",
          "description": "预约类型代码",
          "valueSet": "urn:oid:1.2.156.112604.1.2.1725"
        }
      },
      {
        "id": "Appointment.reasonCode",
        "path": "Appointment.reasonCode",
        "short": "原因",
        "max": "1"
      },
      {
        "id": "Appointment.reasonReference",
        "path": "Appointment.reasonReference",
        "short": "病种",
        "definition": "本次挂号患者就诊的病种。",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://simplifier.net/winningtest/diagnosis-profile",
              "https://simplifier.net/winningtest/medical-insurance-specified-disease-profile"
            ],
            "aggregation": [
              "contained"
            ]
          }
        ]
      },
      {
        "id": "Appointment.description",
        "path": "Appointment.description",
        "max": "0"
      },
      {
        "id": "Appointment.supportingInformation",
        "path": "Appointment.supportingInformation",
        "max": "0"
      },
      {
        "id": "Appointment.start",
        "path": "Appointment.start",
        "max": "0"
      },
      {
        "id": "Appointment.end",
        "path": "Appointment.end",
        "max": "0"
      },
      {
        "id": "Appointment.minutesDuration",
        "path": "Appointment.minutesDuration",
        "max": "0"
      },
      {
        "id": "Appointment.slot",
        "path": "Appointment.slot",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://simplifier.net/winningtest/outpatient-slot-profile"
            ],
            "aggregation": [
              "contained"
            ]
          }
        ]
      },
      {
        "id": "Appointment.created",
        "path": "Appointment.created",
        "short": "预约操作时间",
        "min": 1
      },
      {
        "id": "Appointment.comment",
        "path": "Appointment.comment",
        "short": "备注"
      },
      {
        "id": "Appointment.patientInstruction",
        "path": "Appointment.patientInstruction",
        "max": "0"
      },
      {
        "id": "Appointment.basedOn",
        "path": "Appointment.basedOn",
        "max": "0"
      },
      {
        "id": "Appointment.participant",
        "path": "Appointment.participant",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "actor.type"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Appointment.participant:patient",
        "path": "Appointment.participant",
        "sliceName": "patient",
        "short": "患者",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Appointment.participant:patient.type",
        "path": "Appointment.participant.type",
        "max": "0"
      },
      {
        "id": "Appointment.participant:patient.actor",
        "path": "Appointment.participant.actor",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://simplifier.net/winningtest/patient-profile"
            ],
            "aggregation": [
              "contained",
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "Appointment.participant:patient.actor.type",
        "path": "Appointment.participant.actor.type",
        "min": 1,
        "fixedUri": "Patient"
      },
      {
        "id": "Appointment.participant:patient.actor.identifier",
        "path": "Appointment.participant.actor.identifier",
        "short": "患者标识",
        "min": 1
      },
      {
        "id": "Appointment.participant:patient.actor.identifier.use",
        "path": "Appointment.participant.actor.identifier.use",
        "max": "0"
      },
      {
        "id": "Appointment.participant:patient.actor.identifier.type",
        "path": "Appointment.participant.actor.identifier.type",
        "max": "0"
      },
      {
        "id": "Appointment.participant:patient.actor.identifier.period",
        "path": "Appointment.participant.actor.identifier.period",
        "max": "0"
      },
      {
        "id": "Appointment.participant:patient.actor.identifier.assigner",
        "path": "Appointment.participant.actor.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Appointment.participant:patient.required",
        "path": "Appointment.participant.required",
        "fixedCode": "information-only"
      },
      {
        "id": "Appointment.participant:patient.status",
        "path": "Appointment.participant.status",
        "fixedCode": "accepted"
      },
      {
        "id": "Appointment.participant:patient.period",
        "path": "Appointment.participant.period",
        "max": "0"
      },
      {
        "id": "Appointment.participant:healthcareService",
        "path": "Appointment.participant",
        "sliceName": "healthcareService",
        "short": "就诊科目服务",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Appointment.participant:healthcareService.type",
        "path": "Appointment.participant.type",
        "max": "0"
      },
      {
        "id": "Appointment.participant:healthcareService.actor",
        "path": "Appointment.participant.actor",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://simplifier.net/winningtest/outpatient-healthcare-service-profile"
            ],
            "aggregation": [
              "referenced",
              "bundled"
            ]
          }
        ]
      },
      {
        "id": "Appointment.participant:healthcareService.actor.reference",
        "path": "Appointment.participant.actor.reference",
        "max": "0"
      },
      {
        "id": "Appointment.participant:healthcareService.actor.type",
        "path": "Appointment.participant.actor.type",
        "min": 1,
        "fixedUri": "HealthcareService"
      },
      {
        "id": "Appointment.participant:healthcareService.actor.identifier",
        "path": "Appointment.participant.actor.identifier",
        "short": "就诊科目服务标识",
        "min": 1
      },
      {
        "id": "Appointment.participant:healthcareService.actor.identifier.use",
        "path": "Appointment.participant.actor.identifier.use",
        "max": "0"
      },
      {
        "id": "Appointment.participant:healthcareService.actor.identifier.type",
        "path": "Appointment.participant.actor.identifier.type",
        "max": "0"
      },
      {
        "id": "Appointment.participant:healthcareService.actor.identifier.period",
        "path": "Appointment.participant.actor.identifier.period",
        "max": "0"
      },
      {
        "id": "Appointment.participant:healthcareService.actor.identifier.assigner",
        "path": "Appointment.participant.actor.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Appointment.participant:healthcareService.required",
        "path": "Appointment.participant.required",
        "fixedCode": "required"
      },
      {
        "id": "Appointment.participant:healthcareService.status",
        "path": "Appointment.participant.status",
        "fixedCode": "accepted"
      },
      {
        "id": "Appointment.participant:healthcareService.period",
        "path": "Appointment.participant.period",
        "max": "0"
      },
      {
        "id": "Appointment.participant:doctor",
        "path": "Appointment.participant",
        "sliceName": "doctor",
        "short": "医生",
        "min": 1
      },
      {
        "id": "Appointment.participant:doctor.type",
        "path": "Appointment.participant.type",
        "max": "1",
        "fixedCodeableConcept": {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType",
              "version": "4.0.1",
              "code": "PPRF",
              "display": "primary performer"
            }
          ],
          "text": "医生"
        }
      },
      {
        "id": "Appointment.participant:doctor.actor",
        "path": "Appointment.participant.actor",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://simplifier.net/winningtest/practitioner-role-profile"
            ],
            "aggregation": [
              "contained",
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "Appointment.participant:doctor.actor.type",
        "path": "Appointment.participant.actor.type",
        "min": 1,
        "fixedUri": "PractitionerRole"
      },
      {
        "id": "Appointment.participant:doctor.actor.identifier",
        "path": "Appointment.participant.actor.identifier",
        "short": "医生标识",
        "min": 1
      },
      {
        "id": "Appointment.participant:doctor.actor.identifier.use",
        "path": "Appointment.participant.actor.identifier.use",
        "max": "0"
      },
      {
        "id": "Appointment.participant:doctor.actor.identifier.type",
        "path": "Appointment.participant.actor.identifier.type",
        "max": "0"
      },
      {
        "id": "Appointment.participant:doctor.actor.identifier.period",
        "path": "Appointment.participant.actor.identifier.period",
        "max": "0"
      },
      {
        "id": "Appointment.participant:doctor.actor.identifier.assigner",
        "path": "Appointment.participant.actor.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Appointment.participant:doctor.required",
        "path": "Appointment.participant.required",
        "fixedCode": "required"
      },
      {
        "id": "Appointment.participant:doctor.status",
        "path": "Appointment.participant.status",
        "fixedCode": "accepted"
      },
      {
        "id": "Appointment.participant:doctor.period",
        "path": "Appointment.participant.period",
        "max": "0"
      },
      {
        "id": "Appointment.participant:admitter",
        "path": "Appointment.participant",
        "sliceName": "admitter",
        "short": "挂号/预约操作人员",
        "max": "1"
      },
      {
        "id": "Appointment.participant:admitter.type",
        "path": "Appointment.participant.type",
        "max": "1",
        "fixedCodeableConcept": {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType",
              "version": "4.0.1",
              "code": "ADM",
              "display": "admitter"
            }
          ],
          "text": "预约操作人员"
        }
      },
      {
        "id": "Appointment.participant:admitter.actor",
        "path": "Appointment.participant.actor",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://simplifier.net/winningtest/practitioner-profile"
            ],
            "aggregation": [
              "contained",
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "Appointment.participant:admitter.actor.type",
        "path": "Appointment.participant.actor.type",
        "min": 1,
        "fixedUri": "Practitioner"
      },
      {
        "id": "Appointment.participant:admitter.actor.identifier",
        "path": "Appointment.participant.actor.identifier",
        "short": "预约操作人员标识",
        "min": 1
      },
      {
        "id": "Appointment.participant:admitter.actor.identifier.use",
        "path": "Appointment.participant.actor.identifier.use",
        "max": "0"
      },
      {
        "id": "Appointment.participant:admitter.actor.identifier.type",
        "path": "Appointment.participant.actor.identifier.type",
        "max": "0"
      },
      {
        "id": "Appointment.participant:admitter.actor.identifier.period",
        "path": "Appointment.participant.actor.identifier.period",
        "max": "0"
      },
      {
        "id": "Appointment.participant:admitter.actor.identifier.assigner",
        "path": "Appointment.participant.actor.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Appointment.participant:admitter.required",
        "path": "Appointment.participant.required",
        "fixedCode": "information-only"
      },
      {
        "id": "Appointment.participant:admitter.status",
        "path": "Appointment.participant.status",
        "fixedCode": "accepted"
      },
      {
        "id": "Appointment.participant:admitter.period",
        "path": "Appointment.participant.period",
        "max": "0"
      },
      {
        "id": "Appointment.participant:clinicZone",
        "path": "Appointment.participant",
        "sliceName": "clinicZone",
        "short": "诊区",
        "max": "1"
      },
      {
        "id": "Appointment.participant:clinicZone.actor",
        "path": "Appointment.participant.actor",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://simplifier.net/winningtest/clinic-zone-profile"
            ]
          }
        ]
      },
      {
        "id": "Appointment.participant:clinicRoom",
        "path": "Appointment.participant",
        "sliceName": "clinicRoom",
        "short": "诊室",
        "max": "1"
      },
      {
        "id": "Appointment.participant:clinicRoom.actor",
        "path": "Appointment.participant.actor",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://simplifier.net/winningtest/room-profile"
            ],
            "aggregation": [
              "contained",
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "Appointment.requestedPeriod",
        "path": "Appointment.requestedPeriod",
        "short": "预约时间段",
        "max": "1"
      }
    ]
  }
}