{
  "resourceType": "StructureDefinition",
  "id": "af4c2cd9-4058-4912-a8d9-de446a81f58f",
  "meta": {
    "lastUpdated": "2023-01-30T06:35:40.9212976+00:00"
  },
  "url": "https://simplifier.net/winningtest/inpatient-appointment-profile",
  "name": "InpatientAppointment",
  "title": "入院预约",
  "status": "draft",
  "date": "2023-01-30T06:38:15.962957+00:00",
  "description": "床位预约/无床预约",
  "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.identifier",
        "path": "Appointment.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "assigner.identifier.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:admissionSeqNo",
        "path": "Appointment.identifier",
        "sliceName": "admissionSeqNo",
        "short": "入院申请单号",
        "max": "1"
      },
      {
        "id": "Appointment.identifier:admissionSeqNo.use",
        "path": "Appointment.identifier.use",
        "max": "0"
      },
      {
        "id": "Appointment.identifier:admissionSeqNo.type",
        "path": "Appointment.identifier.type",
        "max": "0"
      },
      {
        "id": "Appointment.identifier:admissionSeqNo.system",
        "path": "Appointment.identifier.system",
        "fixedUri": "urn:oid:1.2.156.112604.1.1.284"
      },
      {
        "id": "Appointment.identifier:admissionSeqNo.period",
        "path": "Appointment.identifier.period",
        "max": "0"
      },
      {
        "id": "Appointment.identifier:admissionSeqNo.assigner",
        "path": "Appointment.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Appointment.cancelationReason",
        "path": "Appointment.cancelationReason",
        "max": "0"
      },
      {
        "id": "Appointment.serviceCategory",
        "path": "Appointment.serviceCategory",
        "max": "0"
      },
      {
        "id": "Appointment.serviceType",
        "path": "Appointment.serviceType",
        "max": "1",
        "fixedCodeableConcept": {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/service-type",
              "code": "557",
              "display": "Inpatients"
            }
          ]
        }
      },
      {
        "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",
        "max": "0"
      },
      {
        "id": "Appointment.reasonCode",
        "path": "Appointment.reasonCode",
        "max": "0"
      },
      {
        "id": "Appointment.reasonReference",
        "path": "Appointment.reasonReference",
        "max": "0"
      },
      {
        "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",
        "max": "0"
      },
      {
        "id": "Appointment.slot.identifier",
        "path": "Appointment.slot.identifier",
        "short": "排班Id"
      },
      {
        "id": "Appointment.created",
        "path": "Appointment.created",
        "short": "开单时间"
      },
      {
        "id": "Appointment.comment",
        "path": "Appointment.comment",
        "short": "情况说明"
      },
      {
        "id": "Appointment.patientInstruction",
        "path": "Appointment.patientInstruction",
        "max": "0"
      },
      {
        "id": "Appointment.basedOn",
        "path": "Appointment.basedOn",
        "short": "入院申请",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://simplifier.net/winningtest/hospital-admission-request-profile"
            ],
            "aggregation": [
              "referenced",
              "bundled"
            ]
          }
        ]
      },
      {
        "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",
        "fixedCodeableConcept": {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType",
              "version": "4.0.1",
              "code": "PART",
              "display": "Participation"
            }
          ],
          "text": "患者"
        }
      },
      {
        "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",
        "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.start",
        "path": "Appointment.participant.period.start",
        "short": "预计报到日期",
        "definition": "指该名住院患者报到住院的计划日期"
      },
      {
        "id": "Appointment.participant:patient.period.end",
        "path": "Appointment.participant.period.end",
        "max": "0"
      },
      {
        "id": "Appointment.participant:ward",
        "path": "Appointment.participant",
        "sliceName": "ward",
        "short": "入院病区",
        "max": "1"
      },
      {
        "id": "Appointment.participant:ward.type",
        "path": "Appointment.participant.type",
        "fixedCodeableConcept": {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType",
              "version": "4.0.1",
              "code": "PART",
              "display": "Participation"
            }
          ],
          "text": "入院病区"
        }
      },
      {
        "id": "Appointment.participant:ward.actor",
        "path": "Appointment.participant.actor",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://simplifier.net/winningtest/ward-profile"
            ],
            "aggregation": [
              "contained"
            ]
          }
        ]
      },
      {
        "id": "Appointment.participant:ward.required",
        "path": "Appointment.participant.required",
        "fixedCode": "information-only"
      },
      {
        "id": "Appointment.participant:ward.status",
        "path": "Appointment.participant.status",
        "fixedCode": "accepted"
      },
      {
        "id": "Appointment.participant:ward.period",
        "path": "Appointment.participant.period",
        "max": "0"
      },
      {
        "id": "Appointment.participant:roomClass",
        "path": "Appointment.participant",
        "sliceName": "roomClass",
        "short": "预约房型",
        "definition": "无床预约时，可以选择期望预约的房型。",
        "max": "1"
      },
      {
        "id": "Appointment.participant:roomClass.type",
        "path": "Appointment.participant.type",
        "fixedCodeableConcept": {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType",
              "version": "4.0.1",
              "code": "PART",
              "display": "Participation"
            }
          ],
          "text": "预约房型"
        }
      },
      {
        "id": "Appointment.participant:roomClass.actor",
        "path": "Appointment.participant.actor",
        "short": "房型",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://simplifier.net/winningtest/room-profile"
            ],
            "aggregation": [
              "contained"
            ]
          }
        ]
      },
      {
        "id": "Appointment.participant:roomClass.required",
        "path": "Appointment.participant.required",
        "fixedCode": "information-only"
      },
      {
        "id": "Appointment.participant:roomClass.status",
        "path": "Appointment.participant.status",
        "fixedCode": "accepted"
      },
      {
        "id": "Appointment.participant:roomClass.period",
        "path": "Appointment.participant.period",
        "max": "0"
      },
      {
        "id": "Appointment.participant:bed",
        "path": "Appointment.participant",
        "sliceName": "bed",
        "short": "预约床位",
        "definition": "有床预约时，所预约的实际床位。",
        "max": "1"
      },
      {
        "id": "Appointment.participant:bed.extension",
        "path": "Appointment.participant.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 0
      },
      {
        "id": "Appointment.participant:bed.extension:coordinated",
        "path": "Appointment.participant.extension",
        "sliceName": "coordinated",
        "short": "支持科室间协调",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://simplifier.net/winningtest/extension-resource-coordinated"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Appointment.participant:bed.type",
        "path": "Appointment.participant.type",
        "fixedCodeableConcept": {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType",
              "version": "4.0.1",
              "code": "PART",
              "display": "Participation"
            }
          ],
          "text": "预约床位"
        }
      },
      {
        "id": "Appointment.participant:bed.actor",
        "path": "Appointment.participant.actor",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://simplifier.net/winningtest/bed-profile"
            ],
            "aggregation": [
              "contained"
            ]
          }
        ]
      },
      {
        "id": "Appointment.participant:bed.actor.type",
        "path": "Appointment.participant.actor.type",
        "fixedUri": "Location"
      },
      {
        "id": "Appointment.participant:bed.actor.identifier.use",
        "path": "Appointment.participant.actor.identifier.use",
        "max": "0"
      },
      {
        "id": "Appointment.participant:bed.actor.identifier.type",
        "path": "Appointment.participant.actor.identifier.type",
        "max": "0"
      },
      {
        "id": "Appointment.participant:bed.actor.identifier.period",
        "path": "Appointment.participant.actor.identifier.period",
        "max": "0"
      },
      {
        "id": "Appointment.participant:bed.actor.identifier.assigner",
        "path": "Appointment.participant.actor.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Appointment.participant:bed.required",
        "path": "Appointment.participant.required",
        "fixedCode": "optional"
      },
      {
        "id": "Appointment.participant:bed.status",
        "path": "Appointment.participant.status",
        "fixedCode": "accepted"
      },
      {
        "id": "Appointment.participant:bed.period",
        "path": "Appointment.participant.period",
        "max": "0"
      },
      {
        "id": "Appointment.requestedPeriod",
        "path": "Appointment.requestedPeriod",
        "short": "拟入院时间",
        "max": "1"
      },
      {
        "id": "Appointment.requestedPeriod.extension",
        "path": "Appointment.requestedPeriod.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 0
      },
      {
        "id": "Appointment.requestedPeriod.extension:dayPeriod",
        "path": "Appointment.requestedPeriod.extension",
        "sliceName": "dayPeriod",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://simplifier.net/winningtest/extension-day-period"
            ]
          }
        ],
        "isModifier": false
      }
    ]
  }
}