# AGENTS.md — 医療機関データ (P04)
143 files, 0.1 GB, 2010–2020.

## Before you download
| | |
|---|---|
| Files | 143 |
| Measured total | 0.1 GB |
| Years present | 2010, 2014, 2020 |
| Newest edition | 2020 |
| Geometry | 点 |
| Formats | GML (143) |

## Licence
Per file, resolved from the file's own year: 再配布できる 143.
The Collection's own `license` is `CC-BY-4.0`; it falls back to `other` whenever any single year in the dataset does. Read the Item's `license` and its `ksj:terms_applied`, the sentence that decided it.

## Columns
- **属性情報** — 10 columns: `P04_001` 医療機関分類, `P04_002` 施設名称, `P04_003` 所在地, `P04_004` 診療科目1, `P04_005` 診療科目2, `P04_006` 診療科目3 …

2 columns are coded, carrying a `ksj:codelist_href` into `../../codelists/`, where every value has a label.

Column names are what a query has to spell; the readable name is beside it. These come from the dataset page, which keeps superseded schemas as HTML comments -- those are stripped, so what is listed here is the current edition's.

## Often used with
- `../A31a/collection.json` — 洪水浸水想定区域の中にある医療機関を数える
- `../A40/collection.json` — 津波浸水想定域にある医療機関を数える
- `../A51/collection.json` — 内水浸水想定区域にある医療機関を数える
- `../mesh500r6/collection.json` — 医療機関からの距離圏に将来どれだけ人が住むか

These pairs are an editorial judgement, not upstream metadata: they carry `ksj:editorial: true`. The list is not exhaustive, and a combination missing from it is not a combination that was rejected.

## Count it, do not trust this file
Every number above is generated from the catalog, but a fact stated in prose goes stale silently. The Items are the record:

```sql
select year, region, redistribution, file_size
  from 'https://stac.yuiseki.net/mlit-nlftp/items.parquet'
 where collection = 'P04'
 order by year desc;
```

`ksj:is_latest` on an Item is computed per region, so the newest year for the country is not the newest year everywhere.
