{
  "resourceType": "StructureDefinition",
  "id": "6d0ee2f3-16dd-4d54-a354-ccd1a1273249",
  "meta": {
    "lastUpdated": "2023-03-06T10:59:42.5571786+00:00"
  },
  "url": "https://simplifier.net/winningtest/bed-profile",
  "name": "Bed",
  "title": "病床",
  "status": "draft",
  "date": "2023-03-06T11:13:30.1678081+00:00",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Location",
  "baseDefinition": "https://simplifier.net/winningtest/location-profile",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Location.extension",
        "path": "Location.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 0
      },
      {
        "id": "Location.extension:occupation",
        "path": "Location.extension",
        "sliceName": "occupation",
        "definition": "已废弃。应使用operationalStatus中的O: Occupied和U: Unoccupied来表示是否占用。",
        "min": 0,
        "max": "0",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://simplifier.net/winningtest/extension-bed-occupation"
            ]
          }
        ]
      },
      {
        "id": "Location.extension:reservation",
        "path": "Location.extension",
        "sliceName": "reservation",
        "min": 0,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://simplifier.net/winningtest/extension-bed-reservation"
            ]
          }
        ]
      },
      {
        "id": "Location.extension:applicableGender",
        "path": "Location.extension",
        "sliceName": "applicableGender",
        "short": "适用性别",
        "min": 0,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://simplifier.net/winningtest/extension-applicable-age-group"
            ]
          }
        ]
      },
      {
        "id": "Location.extension:applicableAgeGroup",
        "path": "Location.extension",
        "sliceName": "applicableAgeGroup",
        "short": "适用年龄组别",
        "min": 0,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://simplifier.net/winningtest/extension-applicable-gender"
            ]
          }
        ]
      },
      {
        "id": "Location.extension:adjusted",
        "path": "Location.extension",
        "sliceName": "adjusted",
        "min": 0,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://simplifier.net/winningtest/extension-bed-adjusted"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Location.identifier",
        "path": "Location.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Location.identifier:locationId",
        "path": "Location.identifier",
        "sliceName": "locationId",
        "max": "1"
      },
      {
        "id": "Location.identifier:locationId.use",
        "path": "Location.identifier.use",
        "max": "0"
      },
      {
        "id": "Location.identifier:locationId.type",
        "path": "Location.identifier.type",
        "max": "0"
      },
      {
        "id": "Location.identifier:locationId.system",
        "path": "Location.identifier.system",
        "fixedUri": "urn:oid:1.2.156.112604.1.1.3971"
      },
      {
        "id": "Location.identifier:locationId.period",
        "path": "Location.identifier.period",
        "max": "0"
      },
      {
        "id": "Location.identifier:locationId.assigner",
        "path": "Location.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Location.identifier:bedNo",
        "path": "Location.identifier",
        "sliceName": "bedNo",
        "short": "床位编号",
        "max": "1"
      },
      {
        "id": "Location.identifier:bedNo.use",
        "path": "Location.identifier.use",
        "max": "0"
      },
      {
        "id": "Location.identifier:bedNo.type",
        "path": "Location.identifier.type",
        "max": "0"
      },
      {
        "id": "Location.identifier:bedNo.system",
        "path": "Location.identifier.system",
        "short": "床位编号",
        "fixedUri": "urn:oid:1.2.156.112604.1.1.228"
      },
      {
        "id": "Location.identifier:bedNo.period",
        "path": "Location.identifier.period",
        "max": "0"
      },
      {
        "id": "Location.identifier:bedNo.assigner",
        "path": "Location.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Location.alias",
        "path": "Location.alias",
        "max": "0"
      },
      {
        "id": "Location.description",
        "path": "Location.description",
        "max": "0"
      },
      {
        "id": "Location.mode",
        "path": "Location.mode",
        "fixedCode": "instance"
      },
      {
        "id": "Location.type",
        "path": "Location.type",
        "short": "床位类型",
        "max": "1",
        "binding": {
          "strength": "extensible",
          "description": "床位类型代码",
          "valueSet": "urn:oid:1.2.156.112604.1.2.2909"
        }
      },
      {
        "id": "Location.type.coding",
        "path": "Location.type.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Location.telecom",
        "path": "Location.telecom",
        "max": "0"
      },
      {
        "id": "Location.address",
        "path": "Location.address",
        "max": "0"
      },
      {
        "id": "Location.physicalType",
        "path": "Location.physicalType",
        "min": 1,
        "fixedCodeableConcept": {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/location-physical-type",
              "version": "4.0.1",
              "code": "bd",
              "display": "Bed"
            }
          ],
          "text": "病床"
        }
      },
      {
        "id": "Location.position",
        "path": "Location.position",
        "max": "0"
      },
      {
        "id": "Location.managingOrganization",
        "path": "Location.managingOrganization",
        "short": "责任科室",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://simplifier.net/winningtest/department-profile"
            ]
          }
        ]
      },
      {
        "id": "Location.managingOrganization.extension",
        "path": "Location.managingOrganization.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 0
      },
      {
        "id": "Location.managingOrganization.extension:managingCareTeam",
        "path": "Location.managingOrganization.extension",
        "sliceName": "managingCareTeam",
        "short": "责任诊疗组",
        "min": 0,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://simplifier.net/winningtest/extension-managing-care-team"
            ]
          }
        ]
      },
      {
        "id": "Location.managingOrganization.extension:managingPractitionerRole",
        "path": "Location.managingOrganization.extension",
        "sliceName": "managingPractitionerRole",
        "short": "责任医疗人员",
        "min": 0,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://simplifier.net/winningtest/extension-managing-practitioner-role"
            ]
          }
        ]
      },
      {
        "id": "Location.partOf",
        "path": "Location.partOf",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://simplifier.net/winningtest/room-profile"
            ],
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "Location.hoursOfOperation",
        "path": "Location.hoursOfOperation",
        "max": "0"
      },
      {
        "id": "Location.availabilityExceptions",
        "path": "Location.availabilityExceptions",
        "max": "0"
      },
      {
        "id": "Location.endpoint",
        "path": "Location.endpoint",
        "max": "0"
      }
    ]
  }
}