YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

fhir4px associations

App-facing clinical association data for the fhir4px patient app (Pipeline 4).

Deterministic CID-keyed graph: anchor CID β†’ associated concepts per bucket. No embeddings in this bundle β€” matching is pure dict/set lookup once items are resolved to anchor CIDs. Text-only fallback uses the embedding bundle in joelmontavon/fhir4px-embeddings-onnx (p4_centroids/) or the model server's /api/associations.

Files

File Size Purpose
associations.json.gz ~0.9MB Deterministic CID bundle (gzip). Load once at app start.
associations.json ~10MB Same, uncompressed (for tooling/debug).
associations.meta.json small Version, counts, checksums-of-record.
centroids/associations.json.gz ~5.9MB Member-name embeddings (q8 ONNX PubMedBERT, 768-dim) for text-only fallback. Same model as joelmontavon/fhir4px-embeddings-onnx.
centroids/associations.json ~26MB Same, uncompressed.
centroids/associations_resolver.js ~14KB ESM resolver module (text-only fallback). Default centroidsUrl points at this repo's centroids bundle; inject your own transformers.js extractor to reuse an already-loaded model.
crosswalks/loinc_test_to_part.json(.gz) ~1MB Patient lab test codes β†’ LP part CID sets. Apply at intake so orderable codes (4548-4) match LP-keyed members (LP16413-4).
crosswalks/icd10_to_snomed.json(.gz) small Patient ICD-10 condition codes β†’ SNOMED anchor CIDs (CUI-bridged + category fallback). ICD codes also work directly in by_cid.

Format: fhir4px_associations_v1

{
  "format": "fhir4px_associations_v1",
  "version": "2026-08-17",
  "by_cid":   { "<CID>": "<conceptKey>" },
  "by_name":  { "<lowercase name>": "<CID>" },
  "concepts": { "<conceptKey>": { "name": "...", "buckets": { ... } } }
}

CID forms in by_cid

  • Anchor CIDs β€” VAL-MED-RXNORM-6809 (metformin), VAL-COND-SNOMED-*, VAL-LAB-LOINC-*, VAL-VIT-*, VAL-PROC-* from the medterm4ds canonical value sets.
  • Product CIDs β€” RXNORM:<code> for SCD/SBD/MIN product variants; each maps to its ingredient's concept record, so coded FHIR medications hit directly (e.g. RXNORM:860975 β†’ metformin record).

Buckets

lab, vital, procedure, medication, condition (adverse events), treats (conditions the drug treats). Each member is {"cid": "...", "name": "..."}.

Runtime flow

Intake:  FHIR code β†’ anchor CID (canonical value sets / P1)
         lab test codes: apply crosswalks/loinc_test_to_part first (4548-4 β†’ LP parts)
         ICD-10 conditions: crosswalks/icd10_to_snomed, or use by_cid directly
Click:   CID β†’ by_cid β†’ concepts[key].buckets[...] β†’ member CID set
Match:   patient item CID ∈ member CID set β†’ hit (similarity 1.0)
Text-only items (no CID): embedding fallback (centroids bundle or server)

Drug-class (ATC) members in medication/vaccine buckets are pre-expanded with their ingredient anchor CIDs, so a specific drug matches its class directly.

Source

Built from the structured-data team's resolved clinical pairs corpus (28,550 pairs, 95.7% canonical resolution) by scripts/embedding_eval/build_association_centroids_v2.py + export_associations_hf.py in the fhir4px-model repo.

Version note: treats buckets may contain residual adverse-event bleed in early versions (flagged in associations.meta.json); deterministic buckets (lab/vital/procedure/medication/condition) are unaffected.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support