{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/certifyos/main/json-schema/certifyos-location-response-schema.json",
  "title": "LocationResponse",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/certifyos-locations-api-openapi.yml#/components/schemas/LocationResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "crosswalkId": {
      "type": "string"
    },
    "entityAddressId": {
      "type": "string"
    },
    "tenantId": {
      "type": "string"
    },
    "generalInfo": {
      "$ref": "#/$defs/LocationGeneralInfo"
    },
    "serviceAddress": {
      "$ref": "#/$defs/LocationAddress2"
    },
    "mailingAddress": {
      "$ref": "#/$defs/LocationAddress2"
    },
    "contacts": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/LocationContact2"
      }
    },
    "hoursOfOperation": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": {}
      }
    },
    "languages": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": {}
      }
    },
    "specialities": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": {}
      }
    },
    "certifications": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": {}
      }
    },
    "networkAffiliations": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": {}
      }
    },
    "facilityTypes": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": {}
      }
    },
    "paymentOptions": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": {}
      }
    },
    "accessibilityOptions": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": {}
      }
    },
    "practiceLimitations": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": {}
      }
    },
    "otherAttributes": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": {}
      }
    },
    "identifiers": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": {}
      }
    },
    "notes": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": {}
      }
    },
    "hospitalAdmittingPrivileges": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/HospitalAdmittingPrivilege"
      }
    },
    "billingEffectiveDate": {
      "$ref": "#/$defs/Instant"
    },
    "billingTerminationDate": {
      "$ref": "#/$defs/Instant"
    },
    "effectiveDate": {
      "$ref": "#/$defs/Instant"
    },
    "terminationDate": {
      "$ref": "#/$defs/Instant"
    }
  },
  "$defs": {
    "HospitalAdmittingPrivilege": {
      "type": "object",
      "properties": {
        "privilege": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "effectiveDate": {
          "type": "string"
        },
        "terminationDate": {
          "type": "string"
        }
      }
    },
    "Instant": {
      "type": "string",
      "format": "date-time"
    },
    "LocationAddress2": {
      "type": "object",
      "properties": {
        "addressLine1": {
          "type": "string"
        },
        "addressLine2": {
          "type": "string"
        },
        "city": {
          "type": "string"
        },
        "state": {
          "type": "string"
        },
        "zip": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "county": {
          "type": "string"
        },
        "phone": {
          "type": "string"
        },
        "fax": {
          "type": "string"
        },
        "email": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "use": {
          "type": "string"
        },
        "type": {
          "type": "string"
        }
      }
    },
    "LocationContact2": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "mainPhoneNumber": {
          "type": "string"
        },
        "afterHoursPhoneNumber": {
          "type": "string"
        },
        "email": {
          "type": "string"
        },
        "fax": {
          "type": "string"
        },
        "tty": {
          "type": "string"
        }
      }
    },
    "LocationGeneralInfo": {
      "type": "object",
      "properties": {
        "locationName": {
          "type": "string"
        },
        "mainPhoneNumber": {
          "type": "string"
        },
        "afterHoursPhoneNumber": {
          "type": "string"
        },
        "fax": {
          "type": "string"
        },
        "serviceCategory": {
          "type": "string"
        },
        "specialtyCode": {
          "type": "string"
        },
        "specialtyDescription": {
          "type": "string"
        },
        "contactName": {
          "type": "string"
        },
        "contactType": {
          "type": "string"
        },
        "bedCounts": {
          "type": "integer",
          "format": "int32"
        },
        "tags": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "acceptsNewPatients": {
          "type": "boolean"
        },
        "type": {
          "type": "string"
        },
        "suppressSiteFromDirectory": {
          "type": "boolean"
        },
        "locationType": {
          "type": "string"
        },
        "department": {
          "type": "string"
        },
        "isPrimaryLocation": {
          "type": "boolean"
        },
        "hasAdmittingPrivileges": {
          "type": "boolean"
        },
        "includeLocationForPrivileges": {
          "type": "boolean"
        },
        "tty": {
          "type": "string"
        }
      }
    }
  }
}