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.

30-second curl
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"
→ 6 canonical fields · 2 validated · low risk

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 columnTypeRequiredValidatorsHeader hints the cascade matches
organization_idstringyes—organisations-idid organisationid organizzazioneorg idid organización
namestringyes—namefirmaraison socialeragione socialeorganization namenombre
organization_typeenumhospitalpracticelaboratorypharmacypayerother——typarttypetipoorganization type
glnstring—glngln
npistring—npinpi
activeboolean——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.

  1. 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}.

  2. L2Heuristicno LLM

    Normalises accents, punctuation and whitespace, then compares against the column name, the label, and every registered hint (DE / FR / IT / EN / ES).

  3. L3Fuzzyno LLM

    Token-set ratio plus Levenshtein over the normalised strings. Auto-accepts at 0.80 — it absorbs typos and reordered words.

  4. L4Semanticcheap, cached

    Embedding cosine between the header and the field’s label + hints. Catches the long tail of paraphrases.

  5. 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.

bash
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"
→ upload created · mappings ready · confirm before commit

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.

mcp
// 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"]
})
schema-only · column names and a few examples only
MCP install instructions

Questions

Healthcare organizations CSV import — FAQ

Is an organization NPI the same as a practitioner NPI?
Same format and check digit, different entity: Type 2 NPIs identify organizations, Type 1 identify individual providers. The validator checks the number, not its type, so a Type 1 NPI in this file passes — keep individual NPIs in the provider directory.
Why is the organization type text rather than a code?
The six values are more specific than the codes in R4's example organization-type value set, so the emitter writes your value as Organization.type text instead of forcing it into a coarser coding. A consumer that needs codes can map the six values once on its side.
How does this relate to Care facilities?
Organizations are the legal entities; facilities are the places. A care_facilities_v1 row's organization_id becomes a managingOrganization reference to Organization/<id>, so load both files with matching ids.
Does an organizations import need approval before commit?
No. It is a low-risk template — reference data with no patient in it — so a commit goes straight through. Medium- and high-risk templates are the ones that wait for a dashboard approval.

Map healthcare organizations in production — without shipping raw records.

Minimal data mode sends only column names and a few example values — never the full file. Add full-data when you need row-level AI, routed in-region under a BAA.