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

Update generateCapabilityStatement permit FHIR v4 formatting #343

Open BenjaminRCope opened 1 year ago

BenjaminRCope commented 1 year ago

Previously, metadata.service.js generated the operation.definition element as a reference. This is consistent with FHIR v3 standards as shown here:

Screen Shot 2023-03-01 at 8 54 15 AM

This causes validation of the generated CapabilityStatement to fail against clients (like HAPI) that check for FHIR compliance.

However, by FHIR v4 standards, operation.definition should now be generated as a canonical, as shown here:

Screen Shot 2023-03-01 at 8 56 33 AM

This change rectifies that difference while keeping the original functionality intact.