This PR adds support for accepting multiple prefetch inputs from the request generator. It now meets the spec requirement of prefetch with the format: [{deviceRequestBundle: ...},{coverageBundle: ...}, ...]
This PR also adds support for multiple prefetch templates and requests in the Prefetch Hydrator. The necessity for this PR arose from adding a separate Coverage prefetch template outside of the main templates so that coverage can be pulled for all types.
The templates can be viewed at:
https://build.fhir.org/ig/HL7/davinci-crd/hooks.html#prefetch
This PR must be used with the crd-request-generator branch prefetch-tempates. Note the misspelled 'L' in 'tempates'... sorry.
This PR is in conjunction with https://github.com/HL7-DaVinci/crd-request-generator/pull/62 and both must be merged at the same time.
A few notes:
Had to change Coverage?member={{context.patient}} to Coverage?_member={{context.patientId}}
There is a duplicate MedicationRequest template. I assume one should be MedicationDispense, but we need to confirm this with Lloyd.
Some of the templates do not have the coverage as a template element even though in the old version it did. Is this intentional?
-- OLD Use https://github.com/HL7-DaVinci/CRD/pull/276 --
This PR adds support for accepting multiple prefetch inputs from the request generator. It now meets the spec requirement of prefetch with the format:
[{deviceRequestBundle: ...},{coverageBundle: ...}, ...]
This PR also adds support for multiple prefetch templates and requests in the Prefetch Hydrator. The necessity for this PR arose from adding a separate Coverage prefetch template outside of the main templates so that coverage can be pulled for all types. The templates can be viewed at: https://build.fhir.org/ig/HL7/davinci-crd/hooks.html#prefetch
This PR must be used with the
crd-request-generator
branchprefetch-tempates
. Note the misspelled 'L' in 'tempates'... sorry. This PR is in conjunction with https://github.com/HL7-DaVinci/crd-request-generator/pull/62 and both must be merged at the same time.A few notes: Had to change
Coverage?member={{context.patient}}
toCoverage?_member={{context.patientId}}
There is a duplicate MedicationRequest template. I assume one should be MedicationDispense, but we need to confirm this with Lloyd. Some of the templates do not have the coverage as a template element even though in the old version it did. Is this intentional?