{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://publicschema.org/ServiceCapacityObservation.schema.json",
  "title": "ServiceCapacityObservation",
  "description": "A measurement of how much a service or facility can handle, such as staffed beds or school places, at a given time. Its subject URI names the facility or service observed, and the authority is the organization that made or reported the measurement. Capacity is not a promise of current availability or an accreditation.",
  "type": "object",
  "properties": {
    "identifiers": {
      "type": "array",
      "items": {
        "oneOf": [
          {
            "$ref": "https://publicschema.org/Identifier.schema.json"
          },
          {
            "type": "string",
            "description": "URI or identifier reference"
          }
        ],
        "description": "Identifiers carried by this entity, such as national ID numbers, program IDs, or identifiers asserted by an identity document."
      }
    },
    "subject_uri": {
      "type": "string",
      "format": "uri",
      "description": "The URI of the thing this record or statement is about."
    },
    "authority": {
      "oneOf": [
        {
          "$ref": "https://publicschema.org/Organization.schema.json"
        },
        {
          "type": "string",
          "description": "URI or identifier reference"
        }
      ],
      "description": "The organization responsible for the act or event a record describes, such as the body that receives an application, decides a case, reviews an appeal, inspects a subject or takes a measure. Each class using it states which of these roles applies. It links to an Organization, whereas issuing_authority names the issuer of a document or credential as text."
    },
    "capacity_measure": {
      "$ref": "https://publicschema.org/CodedValue.schema.json",
      "description": "The kind of capacity measured, such as staffed beds rather than building beds."
    },
    "capacity_quantity": {
      "$ref": "https://publicschema.org/QuantityValue.schema.json",
      "description": "The amount measured for the stated capacity kind."
    },
    "capacity_observed_at": {
      "type": "string",
      "format": "date-time",
      "description": "The timestamp to which the capacity observation applies, not the time a record was entered."
    }
  }
}
