$collect-data measureUrl#68
Conversation
Coverage report
Show files with reduced coverage 🔻
Test suite run success110 tests passing in 8 suites. Report generated by 🧪jest coverage report action from 29cf066 |
lmd59
left a comment
There was a problem hiding this comment.
I'm having some trouble testing which seems unrelated to your code, but this is looking great! The one recommendation I have: it looks like this doesn't enforce the inclusion of at least one measureUrl parameter (cardinality 1..*), which we should probably include at this time.
| try { | ||
| if (!searchPattern) { | ||
| searchPattern = /.json$/; | ||
| searchPattern = /-bundle.json$/; |
There was a problem hiding this comment.
Just since this wasn't described - looks like this change might have been updated to prevent group json (or any other non-measure, non-patient json files) from being identified?
There was a problem hiding this comment.
Yep... this was an accidental change as I was trying to get things to load. Will remove this.
| // set bodyLimit to 50mb | ||
| function build(opts) { | ||
| const app = fastify({ ...opts, bodyLimit: 50 * 1024 * 1024 }); | ||
| app.addContentTypeParser( |
Summary
Replaces measureId parameter with canonical measureUrl parameter for $collect-data.
New behavior
measureUrlis now expected to be used to reference measures. Different versions of a measure with the same url can exist and must be specified with the version in the canonical.Code changes
mongo.controller.js- Added findResourceByCanonical to search for resources by canonical.Testing guidance