• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

medplum / medplum / 31055104190
92%

Build:
DEFAULT BRANCH: main
Ran 05 Aug 2026 11:10PM UTC
Jobs 1
Files 860
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

05 Aug 2026 10:53PM UTC coverage: 92.069% (+0.001%) from 92.068%
31055104190

push

github

web-flow
Order meds by GCN and ROUTED MED ID (without RxNorm or NDC number present) (#10104)

* DAW: let a drug line be ordered on GCN when it has no NDC

Some drug products have no dose-level formulation to resolve an NDC from — OTC,
topical, and multi-strength generics whose vendor formulation lookup returns
nothing. The vendor accepts an order for these keyed on routedMedId + GCN and
resolves the dose itself, but `drugLineToParameter` encodes drug fields from an
explicit whitelist, so the fields needed to express that were dropped silently.
Adds `gcnSeqno`, `drugName`, and `line1` to `MedicationOrderDrugInput` and the
encoder. The hooks pass requests through untouched and need no change.

Guards the ambiguous case: a drug-name search hit for a multi-strength product
carries one GCN identifier per available GCN, and nothing on the resource says
which strength the prescriber meant. Since GCN is what the vendor resolves the
dose from, promoting the first of several onto the draft — which
`medicationToCodeableConcept` already did for reconciliation — would silently
prescribe an arbitrary strength once GCN became a prescribing key. Both that
promotion and the new order-line fields now go through
`getUnambiguousGcnSeqnoFromMedication`, which yields nothing when the Medication
carries more than one.

* DAW: let a drug search ask for specific formulation keys

Products with no dose-level formulations (over-the-counter, topical, and
multi-strength generics) return nothing from a routedMedId search, even
though each of the drug's formulation keys identifies a real strength.
Passing the keys lets the vendor resolve them individually, so callers
get selectable formulations instead of an empty result.

The keys are repeating, so they encode as one parameter each.

* DAW: offer strengths for drugs with no formulations

A drug whose formulation lookup returns nothing used to drop the
prescriber onto the name-search hit, which carries no strength and no
NDC. Such a hit doe... (continued)

22971 of 26065 branches covered (88.13%)

Branch coverage included in aggregate %.

8 of 8 new or added lines in 1 file covered. (100.0%)

40753 of 43148 relevant lines covered (94.45%)

12213.16 hits per line

Jobs
ID Job ID Ran Files Coverage
1 31055104190.1 05 Aug 2026 11:10PM UTC 860
92.07
GitHub Action Run
Source Files on build 31055104190
  • Tree
  • List 860
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #31055104190
  • 93088f7f on github
  • Prev Build on gh-readonly-queue/main/pr-10101-211e44f9a13d180f03532cdc319739ee8833cd33 (#31027790032)
  • Next Build on main (#31056524040)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc