Medical-Event-Data-Standard / Medical-Event-Data-Standard/medical-event-data-standard.github.io

Bug: `MEDS_DEV_name` field in ecosystem.yaml is never read; MEDS-DEV models don't link

Open Beginner friendly
#82 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Jupyter Notebook
Stars
4
Forks
2
PR merge metrics
No merged PRs in 30d

Description

Summary

The ecosystem YAML uses an underscored, top-level field name for MEDS-DEV linkage but the parser reads a hyphenated, nested key — so the linkage silently never populates.

Code pointers

  • YAML side — uses `MEDS_DEV_name` as a flat string field:
    • `static/data/ecosystem.yaml` line 143 (`cehrbert`)
    • `static/data/ecosystem.yaml` line 148 (`meds_tab`)
    • `static/data/ecosystem.yaml` line 153 (`genhpf`)
  • Parser side — reads `rawPkg['MEDS-DEV']` as a nested object with `entity_type` and `name`:
    • `src/lib/ecosystem/utils.ts` lines 92–97

```ts
medsDev: rawPkg['MEDS-DEV']
? {
entityType: rawPkg['MEDS-DEV'].entity_type as MedsEntityType,
name: rawPkg['MEDS-DEV'].name,
}
: undefined,
```

Symptom

`Package.medsDev` ends up `undefined` for cehrbert, meds_tab, and genhpf, so any UI affordance that uses `medsDev` to cross-link from an ecosystem package card to its MEDS-DEV registry entry silently has nothing to link.

Suggested fix

Pick one canonical shape and update both sides. Either:

  • Switch the parser to read `rawPkg.MEDS_DEV_name` (and infer `entity_type` from context — these are all in the `models:` subcategory), or
  • Switch the YAML entries to the nested `MEDS-DEV: { entity_type: model, name: cehrbert }` form the parser already expects.

Found while doing a repo health pass; verified by reading both files.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read static/data/ecosystem.yaml at the cehrbert, meds_tab, and genhpf entries, then inspect the MEDS-DEV parsing in src/lib/ecosystem/utils.ts around lines 92–97. Choose and confirm one canonical shape, update the YAML and parser consistently, and verify that Package.medsDev is populated so the package cards can link to MEDS-DEV entries.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, yaml
Domain
data
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.