Healthcare pack
Healthcare organizations CSV import API
Map hospital, practice, lab, pharmacy and payer lists to FHIR R4 Organization with GLN and NPI identifiers, each check-digit validated.
curl -X POST https://api.adaptivmapr.com/v1/uploads \
-H "Authorization: Bearer $ADAPTIVMAPR_API_KEY" \
-F "template=healthcare_organizations_v1" \
-F "file=@your_data.csv"Canonical columns
The whole schema, printed as it ships.
Every canonical column, the type each row carries, whether it is required, the field-level validators that fire on commit, and the multilingual header hints the cascade resolves against. This is the shipped definition, not a summary of it.
healthcare_organizations_v1FHIR · Organization- fields
- 6
- required
- 2
- validated
- 2
- hints
- 23
| Canonical column | Type | Required | Validators | Header hints the cascade matches |
|---|---|---|---|---|
organization_id | string | yes | — | organisations-idid organisationid organizzazioneorg idid organización |
name | string | yes | — | namefirmaraison socialeragione socialeorganization namenombre |
organization_type | enumhospitalpracticelaboratorypharmacypayerother | — | — | typarttypetipoorganization type |
gln | string | — | gln | gln |
npi | string | — | npi | npi |
active | boolean | — | — | aktivactifattivoactiveactivo |
Read the same definition as JSON at GET /v1/templates/healthcare_organizations_v1. A hint match resolves on layer 2 — no LLM call, no token spend, just the flat per-map fee. Hover a validator id to see what it checks.
- 6 canonical fields
- 2 required
- 2 validated
- 23 header hints, 5 languages
- FHIR Organization
Why it exists
Written for the file you actually receive.
The Healthcare organizations template is the directory of legal entities in a care network: the hospitals, group practices, laboratories, pharmacies and payers that employ practitioners, run facilities and exchange claims. organization_id and name are required; type, GLN, NPI and an active flag are optional. Each row emits an R4 Organization whose identifier list can hold three entries at once — the GLN under the GS1 GLN OID (urn:oid:2.51.1.3), the NPI under the US NPI system, and your own organization_id as a plain value — so the same record resolves in a Swiss and a US context. name and the active flag carry over, and organization_type is written as Organization.type text. Like Care facilities, it is `low` risk: no patient appears in it, and a commit proceeds without a dashboard approval step.
Both identifiers are checked before commit: the GLN with the GS1 mod-10 digit, the NPI with the Luhn check on the 80840-prefixed number, the way CMS defines it. A row may carry either, both or neither. organization_type is a six-value enum (hospital, practice, laboratory, pharmacy, payer, other), but in the FHIR output it is text in Organization.type rather than a coding. For the active flag the emitter reads ja, oui, si, yes and true as active.
Migration scenarios & the foreign headers they ship
Organization lists appear whenever a network has to agree who is who: a payer loading its contracted hospitals and practices, a laboratory onboarding the practices that send it samples, a health-information exchange building its participant directory, and an acquiring group reconciling two partner lists into one. Swiss lists lead with the GLN, US lists with the NPI, and cross-border networks carry both. Headers we see: "Organisations-ID / Org ID / ID organisation / Name / Firma / Raison sociale / Ragione sociale / Organization name / Typ / Art / Type / Tipo / GLN / NPI / Aktiv / Actif / Attivo / Active". "Art" — German for kind — is one of the short headers registered on organization_type, and the kind of three-letter column that defeats fuzzy matching on its own.
The cascade
Six layers, and the cheapest one wins.
Layers run in order and stop the moment a column resolves. That is the single biggest cost lever in the system: a column caught on layer 2 never reaches the metered layer 5.
- L1Statisticsno LLM
Auto-accepts a header that past confirmations already resolved the same way, at {minN:100, minRatio:0.95} or {minN:20, minRatio:1.00}.
- L2Heuristicno LLM
Normalises accents, punctuation and whitespace, then compares against the column name, the label, and every registered hint (DE / FR / IT / EN / ES).
- L3Fuzzyno LLM
Token-set ratio plus Levenshtein over the normalised strings. Auto-accepts at 0.80 — it absorbs typos and reordered words.
- L4Semanticcheap, cached
Embedding cosine between the header and the field’s label + hints. Catches the long tail of paraphrases.
- L5LLMmetered
Everything still unresolved goes up in ONE batched, collision-aware call, constrained to this template’s column set so it cannot invent a field.
Try it
One template id, two ways in.
REST for your import pipeline, MCP for your editor. Both run the same cascade and both honour the same schema-only clamp.
REST · POST /v1/uploads
Name the template; the cascade picks up the rest. The canonical definition is read-only at GET /v1/templates/healthcare_organizations_v1.
curl -X POST https://api.adaptivmapr.com/v1/uploads \
-H "Authorization: Bearer $ADAPTIVMAPR_API_KEY" \
-F "template=healthcare_organizations_v1" \
-F "file=@your_data.csv"MCP · Cursor / Claude Desktop
Drop AdaptivMapr into your editor and call the same cascade as a tool. Schema-only calls leave only column names and a few example values.
// In Cursor or Claude Desktop with the AdaptivMapr MCP server installed:
adaptivmapr.match_headers({
template_id: "healthcare_organizations_v1",
headers: ["organization_id", "name", "organization_type", "gln"]
})Questions








