{
  "type": "MedicalInstitution",
  "domain": "facility",
  "description": "病院または診療所 1 か所のデータです。自治体が「医療機関一覧」（自治体標準オープンデータセット 10）として公開する一覧の 1 行にあたります。Facility の下位の型で、医療機関の種類、医療機関コード、診療科目、病床数、災害時の医療での役割（災害拠点分類）、時間外の対応を足しています。診療日と診療時間は openingHoursSpecification に入ります。",
  "contextUrl": "https://datamodels.jp/context/facility/v1.jsonld",
  "propertyDetails": {
    "name": {
      "ngsiType": "Property",
      "valueType": "string",
      "example": "三井記念病院",
      "required": true,
      "description": "施設の名称",
      "@context": "https://uri.etsi.org/ngsi-ld/name"
    },
    "nameKana": {
      "ngsiType": "Property",
      "valueType": "string",
      "example": "ミツイキネンビョウイン",
      "required": false,
      "description": "名称のカナ表記（全角カタカナ）",
      "@context": "https://datamodels.jp/ns/disaster/nameKana"
    },
    "nameEn": {
      "ngsiType": "Property",
      "valueType": "string",
      "example": null,
      "required": false,
      "description": "名称の英語表記",
      "@context": "https://datamodels.jp/ns/disaster/nameEn"
    },
    "externalFacilityId": {
      "ngsiType": "Property",
      "valueType": "string",
      "example": "131016M00001",
      "required": true,
      "description": "自治体の一覧での ID（自治体とデータセットの中で一意）。localGovernmentCode と合わせると、全国で一意になります。",
      "@context": "https://datamodels.jp/ns/facility/externalFacilityId"
    },
    "localGovernmentCode": {
      "ngsiType": "Property",
      "valueType": "string",
      "example": "131016",
      "required": true,
      "description": "一覧を公開する自治体の全国地方公共団体コード（検査数字を含む 6 桁）",
      "@context": "https://datamodels.jp/ns/common/localGovernmentCode",
      "validation": {
        "pattern": "^\\d{6}$"
      }
    },
    "address": {
      "ngsiType": "Property",
      "valueType": "object",
      "example": {
        "addressCountry": "JP",
        "addressRegion": "東京都",
        "addressLocality": "千代田区",
        "machiaza": "神田和泉町",
        "banchi": "1",
        "localGovernmentCode": "131016",
        "addressText": "東京都千代田区神田和泉町1番地"
      },
      "required": false,
      "description": "所在地（JapaneseAddress）。その localGovernmentCode は所在地の自治体のもので、公開する自治体とは違うことがあります。",
      "@context": "https://schema.org/address"
    },
    "location": {
      "ngsiType": "GeoProperty",
      "valueType": "geojson",
      "example": {
        "type": "Point",
        "coordinates": [
          139.77597,
          35.699192
        ]
      },
      "required": false,
      "description": "位置（点）",
      "@context": "https://uri.etsi.org/ngsi-ld/location"
    },
    "operatorName": {
      "ngsiType": "Property",
      "valueType": "string",
      "example": "社会福祉法人三井記念病院",
      "required": false,
      "description": "施設を運営する組織の名称。AED のような設備では、設置した組織です（データセットの「団体名」「法人の名称」）。",
      "@context": "https://datamodels.jp/ns/facility/operatorName"
    },
    "corporateNumber": {
      "ngsiType": "Property",
      "valueType": "string",
      "example": "6010005001053",
      "required": false,
      "description": "施設を運営する組織、または設備を設置した組織の法人番号（国税庁、13 桁）",
      "@context": "https://datamodels.jp/ns/facility/corporateNumber",
      "validation": {
        "pattern": "^\\d{13}$"
      }
    },
    "contactPoint": {
      "ngsiType": "Property",
      "valueType": "object",
      "example": {
        "telephone": "03-3862-9111",
        "postalCode": "101-8643"
      },
      "required": false,
      "description": "連絡先（ContactPoint）：電話番号、内線番号、FAX 番号、メールアドレス、問い合わせフォーム、そのほかの連絡手段、郵便番号",
      "@context": "https://schema.org/contactPoint"
    },
    "openingHoursSpecification": {
      "ngsiType": "Property",
      "valueType": "object",
      "example": null,
      "required": false,
      "description": "利用できる時間（OpeningHours）：曜日、開始時刻、終了時刻、特記事項",
      "@context": "https://schema.org/openingHoursSpecification"
    },
    "url": {
      "ngsiType": "Property",
      "valueType": "uri",
      "example": null,
      "required": false,
      "description": "施設についてのウェブページ",
      "@context": "https://schema.org/url"
    },
    "remarks": {
      "ngsiType": "Property",
      "valueType": "string",
      "example": null,
      "required": false,
      "description": "備考",
      "@context": "https://datamodels.jp/ns/facility/remarks"
    },
    "medicalInstitutionType": {
      "ngsiType": "Property",
      "valueType": "string",
      "example": "hospital",
      "required": false,
      "description": "医療機関の種類。hospital（病院、20 床以上）、clinicWithBeds（有床診療所、1〜19 床）、clinicWithoutBeds（無床診療所）、clinic（診療所。一覧の種類の列が有床と無床を分けていないもの。病床数が分かれば numberOfBeds にある）、dentalClinic（歯科診療所）",
      "@context": "https://datamodels.jp/ns/facility/medicalInstitutionType",
      "validation": {
        "enum": [
          "hospital",
          "clinicWithBeds",
          "clinicWithoutBeds",
          "clinic",
          "dentalClinic"
        ]
      }
    },
    "medicalInstitutionCode": {
      "ngsiType": "Property",
      "valueType": "string",
      "example": null,
      "required": false,
      "description": "医療機関コード。データセットのとおりに書きます（定義書の記入例は 10 桁）。",
      "@context": "https://datamodels.jp/ns/facility/medicalInstitutionCode"
    },
    "medicalDepartments": {
      "ngsiType": "Property",
      "valueType": "array",
      "example": [
        "内科",
        "循環器内科",
        "外科",
        "麻酔科"
      ],
      "required": false,
      "description": "診療科目。公開者が書いたとおりの名前です（例：内科、整形外科）。",
      "@context": "https://datamodels.jp/ns/facility/medicalDepartments",
      "validation": {
        "uniqueItems": true
      }
    },
    "numberOfBeds": {
      "ngsiType": "Property",
      "valueType": "integer",
      "example": 482,
      "required": false,
      "description": "病床数",
      "@context": "https://datamodels.jp/ns/facility/numberOfBeds",
      "validation": {
        "minimum": 0
      }
    },
    "disasterBaseClass": {
      "ngsiType": "Property",
      "valueType": "string",
      "example": "regional",
      "required": false,
      "description": "災害時の医療での役割（災害拠点分類）。core（基幹災害医療センター）、regional（地域災害医療センター）、firstAidStation（救護所）",
      "@context": "https://datamodels.jp/ns/facility/disasterBaseClass",
      "validation": {
        "enum": [
          "core",
          "regional",
          "firstAidStation"
        ]
      }
    },
    "afterHoursCare": {
      "ngsiType": "Property",
      "valueType": "string",
      "example": null,
      "required": false,
      "description": "診療時間外の対応（文章）",
      "@context": "https://datamodels.jp/ns/facility/afterHoursCare"
    }
  },
  "additionalProperties": false
}
