bluehalo / node-fhir-server-core

An Open Source secure REST implementation for the HL7 FHIR Specification. For API documentation, please see https://github.com/Asymmetrik/node-fhir-server-core/wiki.
https://asymmetrik.com/healthcare
MIT License
389 stars 120 forks source link

Unable to require the reference schema #347

Open availity-droo opened 1 year ago

availity-droo commented 1 year ago

Do you want to request a feature, report a bug, or improve documentation?

bug

If you are reporting a bug?

What is the current behavior? After upgrading from 2.0.10 to 2.2.5 we're unable to resolve the Reference object in the Schema.

const Reference = FHIRServer.resolveSchema('4_0_0', 'reference');

What is the expected behavior? Class is exported from the index.js file in the resources directory

What are the steps to reproduce? Try to resolve the reference schema as shown

What OS are you using and what version of node.js and @asymmetrik/node-fhir-server-core are you running? N/A

We are using the Reference class to explode/rebuild a bundle containing only a composition resource with full URLs to references