{
  "resourceType": "StructureDefinition",
  "id": "1b7310eb-6245-49c2-b14d-c7c025150893",
  "meta": {
    "lastUpdated": "2024-01-26T06:04:24.4134847+00:00"
  },
  "url": "https://simplifier.net/winningtest/outpatient-schedule-profile",
  "name": "OutpatientSchedule",
  "title": "门诊排班",
  "status": "draft",
  "date": "2024-01-26T06:04:34.8126014+00:00",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "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"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Schedule",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Schedule",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Schedule.extension:slotInformation",
        "path": "Schedule.extension",
        "sliceName": "slotInformation",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://simplifier.net/winningtest/extension-slot-information"
            ]
          }
        ]
      },
      {
        "id": "Schedule.identifier",
        "path": "Schedule.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Schedule.identifier:scheduleId",
        "path": "Schedule.identifier",
        "sliceName": "scheduleId",
        "max": "1"
      },
      {
        "id": "Schedule.identifier:scheduleId.use",
        "path": "Schedule.identifier.use",
        "max": "0"
      },
      {
        "id": "Schedule.identifier:scheduleId.type",
        "path": "Schedule.identifier.type",
        "max": "0"
      },
      {
        "id": "Schedule.identifier:scheduleId.system",
        "path": "Schedule.identifier.system",
        "short": "排班标识",
        "definition": "此数据元的OID可能会发生变更，请予以标记。",
        "fixedUri": "urn:oid:1.2.156.112604.1.1.3335"
      },
      {
        "id": "Schedule.identifier:scheduleId.period",
        "path": "Schedule.identifier.period",
        "max": "0"
      },
      {
        "id": "Schedule.identifier:scheduleId.assigner",
        "path": "Schedule.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Schedule.active",
        "path": "Schedule.active",
        "short": "启用标志"
      },
      {
        "id": "Schedule.serviceCategory",
        "path": "Schedule.serviceCategory",
        "short": "就诊科目服务类别/号别"
      },
      {
        "id": "Schedule.serviceCategory.coding",
        "path": "Schedule.serviceCategory.coding",
        "short": "就诊科目服务类别编码"
      },
      {
        "id": "Schedule.serviceCategory.text",
        "path": "Schedule.serviceCategory.text",
        "short": "就诊科目服务类别名称"
      },
      {
        "id": "Schedule.serviceType",
        "path": "Schedule.serviceType",
        "max": "0"
      },
      {
        "id": "Schedule.specialty",
        "path": "Schedule.specialty",
        "max": "0"
      },
      {
        "id": "Schedule.actor",
        "path": "Schedule.actor",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "type"
            }
          ],
          "rules": "open"
        },
        "short": "就诊科目服务",
        "type": [
          {
            "code": "Reference",
            "aggregation": [
              "contained"
            ]
          }
        ]
      },
      {
        "id": "Schedule.actor:healthcareService",
        "path": "Schedule.actor",
        "sliceName": "healthcareService",
        "short": "门诊就诊科目服务",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://simplifier.net/winningtest/outpatient-healthcare-service-profile"
            ],
            "aggregation": [
              "contained"
            ]
          }
        ]
      },
      {
        "id": "Schedule.actor:healthcareService.identifier",
        "path": "Schedule.actor.identifier",
        "short": "就诊科目服务标识"
      },
      {
        "id": "Schedule.actor:department",
        "path": "Schedule.actor",
        "sliceName": "department",
        "short": "科室",
        "definition": "科室是必需的",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://simplifier.net/winningtest/department-profile"
            ],
            "aggregation": [
              "contained"
            ]
          }
        ]
      },
      {
        "id": "Schedule.actor:clinicZone",
        "path": "Schedule.actor",
        "sliceName": "clinicZone",
        "short": "诊区",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://simplifier.net/winningtest/clinic-zone-profile"
            ],
            "aggregation": [
              "contained"
            ]
          }
        ]
      },
      {
        "id": "Schedule.actor:doctor",
        "path": "Schedule.actor",
        "sliceName": "doctor",
        "short": "医生",
        "definition": "医生是可选的。当仅存在科室时，意为此科室下任何一位医生都可以被预约或挂号。",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://simplifier.net/winningtest/practitioner-profile"
            ],
            "aggregation": [
              "contained"
            ]
          }
        ]
      },
      {
        "id": "Schedule.actor:room",
        "path": "Schedule.actor",
        "sliceName": "room",
        "short": "房间",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://simplifier.net/winningtest/room-profile"
            ],
            "aggregation": [
              "contained"
            ]
          }
        ]
      },
      {
        "id": "Schedule.planningHorizon",
        "path": "Schedule.planningHorizon",
        "short": "排班时间跨度",
        "definition": "根据门诊排班时间段的总和，取其上下限得到。",
        "min": 1
      },
      {
        "id": "Schedule.planningHorizon.extension",
        "path": "Schedule.planningHorizon.extension",
        "min": 1
      },
      {
        "id": "Schedule.planningHorizon.extension:dayPeriod",
        "path": "Schedule.planningHorizon.extension",
        "sliceName": "dayPeriod",
        "min": 1,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://simplifier.net/winningtest/extension-day-period"
            ]
          }
        ]
      },
      {
        "id": "Schedule.comment",
        "path": "Schedule.comment",
        "max": "0"
      }
    ]
  }
}