{
  "resourceType": "StructureDefinition",
  "id": "4bb72ebe-eaa0-4af3-b417-8929f422ff5b",
  "meta": {
    "lastUpdated": "2021-01-26T02:40:16.335+00:00"
  },
  "url": "https://simplifier.net/winningtest/outpatient-slot-period-profile",
  "name": "OutpatientSlotPeriod",
  "title": "Outpatient Slot Period",
  "status": "draft",
  "date": "2021-01-26T02:36:56.4117201Z",
  "description": "门诊时间段",
  "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": "Slot",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Slot",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Slot.extension",
        "path": "Slot.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Slot.extension:totalQuantity",
        "path": "Slot.extension",
        "sliceName": "totalQuantity",
        "short": "号源总数",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://simplifier.net/winningtest/extension-quantity"
            ]
          }
        ]
      },
      {
        "id": "Slot.extension:totalQuantity.value[x]:valueQuantity",
        "path": "Slot.extension.value[x]",
        "sliceName": "valueQuantity"
      },
      {
        "id": "Slot.extension:totalQuantity.value[x]:valueQuantity.comparator",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "Slot.extension.value[x].comparator",
        "max": "0"
      },
      {
        "id": "Slot.extension:totalQuantity.value[x]:valueQuantity.unit",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "Slot.extension.value[x].unit",
        "max": "0"
      },
      {
        "id": "Slot.extension:totalQuantity.value[x]:valueQuantity.system",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "Slot.extension.value[x].system",
        "max": "0"
      },
      {
        "id": "Slot.extension:totalQuantity.value[x]:valueQuantity.code",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "Slot.extension.value[x].code",
        "max": "0"
      },
      {
        "id": "Slot.extension:availableQuantity",
        "path": "Slot.extension",
        "sliceName": "availableQuantity",
        "short": "号源可用数",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://simplifier.net/winningtest/extension-available-quantity"
            ]
          }
        ]
      },
      {
        "id": "Slot.extension:price",
        "path": "Slot.extension",
        "sliceName": "price",
        "short": "金额",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://simplifier.net/winningtest/extension-price"
            ]
          }
        ]
      },
      {
        "id": "Slot.extension:price.extension",
        "path": "Slot.extension.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Slot.extension:price.extension:type",
        "path": "Slot.extension.extension",
        "sliceName": "type",
        "max": "0"
      },
      {
        "id": "Slot.extension:appointmentQuantity",
        "path": "Slot.extension",
        "sliceName": "appointmentQuantity",
        "short": "已预约数量",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://simplifier.net/winningtest/extension-appointment-quantity"
            ]
          }
        ]
      },
      {
        "id": "Slot.extension:cancellationQuantity",
        "path": "Slot.extension",
        "sliceName": "cancellationQuantity",
        "short": "取消预约数量",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://simplifier.net/winningtest/extension-cancellation-quantity"
            ]
          }
        ]
      },
      {
        "id": "Slot.extension:appointmentConfirmedQuantity",
        "path": "Slot.extension",
        "sliceName": "appointmentConfirmedQuantity",
        "short": "预约确认数量",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://simplifier.net/winningtest/extension-appointment-confirmed-quantity"
            ]
          }
        ]
      },
      {
        "id": "Slot.extension:regestrationQuantity",
        "path": "Slot.extension",
        "sliceName": "regestrationQuantity",
        "short": "已挂号数量",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://simplifier.net/winningtest/extension-registration-quantity"
            ]
          }
        ]
      },
      {
        "id": "Slot.extension:registrationCancelledQuantity",
        "path": "Slot.extension",
        "sliceName": "registrationCancelledQuantity",
        "short": "取消挂号数量",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://simplifier.net/winningtest/extension-registration-cancelled-quantity"
            ]
          }
        ]
      },
      {
        "id": "Slot.identifier",
        "path": "Slot.identifier",
        "max": "0"
      },
      {
        "id": "Slot.serviceCategory",
        "path": "Slot.serviceCategory",
        "max": "0"
      },
      {
        "id": "Slot.serviceType",
        "path": "Slot.serviceType",
        "max": "0"
      },
      {
        "id": "Slot.specialty",
        "path": "Slot.specialty",
        "max": "0"
      },
      {
        "id": "Slot.appointmentType",
        "path": "Slot.appointmentType",
        "short": "预约类型",
        "binding": {
          "strength": "preferred",
          "description": "预约类型代码",
          "valueSet": "urn:oid:1.2.156.112604.1.2.1725"
        }
      },
      {
        "id": "Slot.schedule",
        "path": "Slot.schedule",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://simplifier.net/winningtest/outpatient-schedule-profile"
            ],
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "Slot.status",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "Slot.status",
        "fixedCode": "free"
      },
      {
        "id": "Slot.start",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "Slot.start",
        "short": "开始时间"
      },
      {
        "id": "Slot.end",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "Slot.end",
        "short": "结束时间"
      },
      {
        "id": "Slot.overbooked",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "Slot.overbooked",
        "short": "是否已经不可预约"
      },
      {
        "id": "Slot.comment",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "Slot.comment",
        "max": "0"
      }
    ]
  }
}