# AGENTS.md — 医療圏データ (A38)
96 files, 3.0 GB, 2014–2020.

## Before you download
| | |
|---|---|
| Files | 96 |
| Measured total | 3.0 GB |
| Years present | 2014, 2020 |
| Newest edition | 2020 |
| Geometry | 面 |
| Formats | GML (96) |

## Licence
Per file, resolved from the file's own year: 再配布できる 96.
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
- **属性情報 （A38_1.shp：一次医療圏） （A38_2.shp：二次医療圏） （A38_3.shp：三次医療圏）** — 18 columns: `A38a_001` 行政区域コード, `A38a_002` 市区町村名, `A38a_003` 二次医療圏コード, `A38a_004` 二次医療圏名, `A38a_005` 設定フラグ, `A38b_001` 行政区域コード …

1 column is 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.

## 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 = 'A38'
 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.
