{
  "resourceType": "StructureDefinition",
  "id": "6acdfc72-53ed-4b6b-8f5e-fd744a899823",
  "meta": {
    "lastUpdated": "2021-09-28T08:24:30.308+00:00"
  },
  "url": "https://fhir.cambio.se/StructureDefinition/bedOverview-availableBeds/v1",
  "name": "bedOverview-availableBedsPeriod",
  "status": "draft",
  "date": "2021-09-15T08:49:13.7293155+00:00",
  "description": "An available bed is a bed with physical design, equipment and staffing that ensures patient safety and a good work environment. Available beds are the total number of available beds at a unit at any given point of time. The number of Available beds can vary over time and is defined by one or many schedules. Available beds will use the combinations of regular and temporary schedules and provide the number of available beds for the current period and next upcoming period.\r\n\r\nAn available bed period is a cohesive time with a start-date-and-time and an end-date-and-time during which a specified number of available beds is defined. Different periods will not overlap, but gaps between periods can exist.",
  "fhirVersion": "4.0.1",
  "kind": "complex-type",
  "abstract": false,
  "context": [
    {
      "type": "element",
      "expression": "Basic"
    }
  ],
  "type": "Extension",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Extension",
        "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": "Extension",
        "max": "1"
      },
      {
        "id": "Extension.extension",
        "path": "Extension.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 0
      },
      {
        "id": "Extension.extension:availableBeds",
        "path": "Extension.extension",
        "sliceName": "availableBeds",
        "definition": "The number of available beds.",
        "min": 0,
        "max": "1"
      },
      {
        "id": "Extension.extension:availableBeds.url",
        "path": "Extension.extension.url",
        "fixedUri": "availableBeds"
      },
      {
        "id": "Extension.extension:availableBeds.value[x]",
        "path": "Extension.extension.value[x]",
        "type": [
          {
            "code": "integer"
          }
        ]
      },
      {
        "id": "Extension.extension:period",
        "path": "Extension.extension",
        "sliceName": "period",
        "definition": "Start time  and end time of the Available beds period",
        "min": 0
      },
      {
        "id": "Extension.extension:period.url",
        "path": "Extension.extension.url",
        "fixedUri": "period"
      },
      {
        "id": "Extension.extension:period.value[x]",
        "path": "Extension.extension.value[x]",
        "type": [
          {
            "code": "Period"
          }
        ]
      },
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "fixedUri": "https://fhir.cambio.se/StructureDefinition/bedOverview-availableBeds/v1"
      },
      {
        "id": "Extension.value[x]",
        "path": "Extension.value[x]",
        "max": "0"
      }
    ]
  }
}