smilecdr / FHIR.ts

TypeScript/JavaScript FHIR Library
https://www.npmjs.com/package/@smile-cdr/fhirts
Apache License 2.0
37 stars 10 forks source link

Enhancement: Resource Narrowing #39

Closed TahaAttari closed 1 year ago

TahaAttari commented 1 year ago
image image

Currently when parsing a bundle type assertions are manual, it requires a human to check that entry.resource.resourceType matches the type which is being asserted. If we reorganized the definitions a little we could have this happen automatically. as can be seen in the screenshots and the playground link.

EDIT2: Ok updated the playground link now it works

AD1306 commented 1 year ago

resolved in #40