@geoalgeria/sante 2.0.2 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/data/csv/sante.csv +696 -696
- package/data/geojson/sante.geojson +453 -320
- package/data/metadata.json +11 -10
- package/data/sante.json +301 -232
- package/dataset-metadata.json +4 -4
- package/index.js +1 -1
- package/package.json +2 -2
- package/types/index.d.ts +26 -7
package/dataset-metadata.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"name": "Algeria",
|
|
18
18
|
"geo": {
|
|
19
19
|
"@type": "GeoShape",
|
|
20
|
-
"box": "19.573539 -8.140085 37.
|
|
20
|
+
"box": "19.573539 -8.140085 37.065039 9.635"
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
"variableMeasured": "695 records, 58 wilayas",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"url": "https://geoalgeria.com",
|
|
46
46
|
"sameAs": "https://github.com/yasserstudio/geoalgeria",
|
|
47
47
|
"citation": [
|
|
48
|
-
"Ministry of Health (sante.gov.dz)
|
|
49
|
-
"OpenStreetMap
|
|
50
|
-
"Wikidata
|
|
48
|
+
"Ministry of Health (sante.gov.dz): health-establishment registry, Official public registry (Ministry of Health)",
|
|
49
|
+
"OpenStreetMap: geocoding, ODbL 1.0 (© OpenStreetMap contributors)",
|
|
50
|
+
"Wikidata: geocoding, CC0-1.0"
|
|
51
51
|
]
|
|
52
52
|
}
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @geoalgeria/sante
|
|
1
|
+
// @geoalgeria/sante: lightweight loaders for Algeria's public health establishments.
|
|
2
2
|
import { readFileSync } from "node:fs";
|
|
3
3
|
import { fileURLToPath } from "node:url";
|
|
4
4
|
import { dirname, join } from "node:path";
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geoalgeria/sante",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"description": "Public health establishments of Algeria
|
|
5
|
+
"description": "Public health establishments of Algeria: hospitals (EPH), proximity health (EPSP), specialized hospitals (EHS) and university hospitals (CHU) from the Ministry of Health, bilingual FR/AR, geocoded via OpenStreetMap & Wikidata, with commune/wilaya linkage. JSON, CSV, GeoJSON, TypeScript.",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"types": "types/index.d.ts",
|
|
8
8
|
"exports": {
|
package/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Type definitions for @geoalgeria/sante (schema v2).
|
|
2
|
-
// Public health establishments of Algeria
|
|
2
|
+
// Public health establishments of Algeria: the Ministry of Health (MoH)
|
|
3
3
|
// registry, geocoded via OpenStreetMap (ODbL) and Wikidata (CC0).
|
|
4
4
|
// Records follow the canonical GeoRecord contract from @geoalgeria/schema
|
|
5
5
|
// (zero-padded string wilaya_code, string ONS commune_code, geo_precision/
|
|
@@ -15,9 +15,20 @@ export type HealthSector = "public" | "private";
|
|
|
15
15
|
* `null` when the establishment has no coordinate at all. */
|
|
16
16
|
export type GeoPrecision = "exact" | "approximate" | null;
|
|
17
17
|
|
|
18
|
-
/** How the coordinate was obtained. `
|
|
19
|
-
*
|
|
20
|
-
|
|
18
|
+
/** How the coordinate was obtained. `owner_verified` is a building point a
|
|
19
|
+
* maintainer read off the map and recorded in the guarded evidence ledger
|
|
20
|
+
* (quality/overrides/sante.json), which outranks anything the generator derives.
|
|
21
|
+
* `null` on an ungeocoded record: no method produced a point, so none can be
|
|
22
|
+
* named. */
|
|
23
|
+
export type GeoMethod =
|
|
24
|
+
| "osm_point"
|
|
25
|
+
| "wikidata_point"
|
|
26
|
+
| "commune_centroid"
|
|
27
|
+
| "owner_verified"
|
|
28
|
+
| null;
|
|
29
|
+
|
|
30
|
+
/** A human-reviewed correction applied through the guarded evidence ledger. */
|
|
31
|
+
export type ReviewStatus = "corrected";
|
|
21
32
|
|
|
22
33
|
/** External identifiers keyed by source system. */
|
|
23
34
|
export interface Refs {
|
|
@@ -50,11 +61,11 @@ export interface HealthEstablishment {
|
|
|
50
61
|
/** Longitude, or null. Both coordinates are set, or both are null. */
|
|
51
62
|
lng: number | null;
|
|
52
63
|
/** "exact" for an OSM/Wikidata point, "approximate" for a commune centroid,
|
|
53
|
-
* `null` when `lat`/`lng` are null
|
|
64
|
+
* `null` when `lat`/`lng` are null: a record with no point asserts no precision. */
|
|
54
65
|
geo_precision: GeoPrecision;
|
|
55
66
|
/** How `lat`/`lng` were obtained; null when there are none. */
|
|
56
67
|
geo_method: GeoMethod;
|
|
57
|
-
/** Provenance key into `metadata.sources[]
|
|
68
|
+
/** Provenance key into `metadata.sources[]`: always "msp" (the MoH registry).
|
|
58
69
|
* The geocoding sources are named per record in {@link HealthEstablishment.refs}. */
|
|
59
70
|
source: "msp";
|
|
60
71
|
/** External identifiers: always the MoH post id, plus OSM/Wikidata where matched. */
|
|
@@ -69,6 +80,14 @@ export interface HealthEstablishment {
|
|
|
69
80
|
sector: HealthSector;
|
|
70
81
|
/** URL slug of the source post (French post preferred). */
|
|
71
82
|
slug: string;
|
|
83
|
+
/** Present only when a reviewed correction was applied to this record. */
|
|
84
|
+
review_status?: ReviewStatus;
|
|
85
|
+
/** ISO date of the reviewed correction. */
|
|
86
|
+
reviewed_at?: string;
|
|
87
|
+
/** Who recorded the reviewed correction. */
|
|
88
|
+
reviewed_by?: string;
|
|
89
|
+
/** Public evidence URLs the correction was checked against. */
|
|
90
|
+
review_evidence?: string[];
|
|
72
91
|
}
|
|
73
92
|
|
|
74
93
|
/** One provenance entry in `metadata.sources[]`. */
|
|
@@ -81,7 +100,7 @@ export interface SourceRef {
|
|
|
81
100
|
evidence_type?: "official" | "crowdsourced" | "derived";
|
|
82
101
|
}
|
|
83
102
|
|
|
84
|
-
/** Dataset metadata (data/metadata.json)
|
|
103
|
+
/** Dataset metadata (data/metadata.json): canonical fields plus health stats. */
|
|
85
104
|
export interface Metadata {
|
|
86
105
|
package: "@geoalgeria/sante";
|
|
87
106
|
schema_version: string;
|