Availability

Basert på FHIR-modellen for Availability.

Inkluderer disse feltene:

Feltnavn Type Beskrivelse Merknader
availableTime objekt Inneholder informasjon om når tingen er åpen
notAvailableTime objekt Inneholder informasjon om når tingen ikke er åpen, for eksempel helligdager

Struktur:

{
  // from Element: extension
  "availableTime" : [{ // Times the {item} is available
    "daysOfWeek" : ["<code>"], // mon | tue | wed | thu | fri | sat | sun
    "allDay" : <boolean>, // Always available? i.e. 24 hour service
    "availableStartTime" : "<time>", // Opening time of day (ignored if allDay = true)
    "availableEndTime" : "<time>" // Closing time of day (ignored if allDay = true)
  }],
  "notAvailableTime" : [{ // Not available during this time due to provided reason
    "description" : "<string>", // Reason presented to the user explaining why time not available
    "during" : {
      "start" : "<dateTime>", //  Starting time with inclusive boundary
      "end" : "<dateTime>" // End time with inclusive boundary, if not ongoing
    } // Service not available during this period
  }]
}

Eksempel

{
  "availableTime": [
    {
      "daysOfWeek": [
        "wed"
      ],
      "allDay": true
    },
    {
      "daysOfWeek": [
        "mon",
        "tue",
        "thu",
        "fri"
      ],
      "availableStartTime": "08:30:00",
      "availableEndTime": "09:30:00"
    },
    {
      "daysOfWeek": [
        "sat",
        "fri"
      ],
      "availableStartTime": "09:30:00",
      "availableEndTime": "14:30:00"
    }
  ],
  "notAvailableTime": [
    {
      "description": "Christmas/Boxing Day, Reduced capacity is available during the Christmas period",
      "during": {
        "start": "2015-12-25",
        "end": "2015-12-26"
      }
    },
    {
      "description": "New Years Day",
      "during": {
        "start": "2016-01-01",
        "end": "2016-01-01"
      }
    }
  ]
}