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

R4 Resource doesn't match what is expected #55

Closed Neil-Smile closed 1 year ago

Neil-Smile commented 1 year ago

Current: The R4 Resource type returns a union of string literals. this looked identical to the ResourceList type

Expected Expecting if something is typed as a Resource, at a minimum, the id field is available as per https://www.hl7.org/fhir/resource.html#Resource.