onc-healthit / inferno-program

Archived source code for the Inferno Testing Tool and the Program Edition set of tests. No longer maintained.
https://inferno.healthit.gov/
Apache License 2.0
38 stars 12 forks source link

FI-1326 Must support for content.attachment.data and content.attachment.url of DocumentReference #377

Closed yunwwang closed 3 years ago

yunwwang commented 3 years ago

Summary

This PR fixes GitHub Issue #316

As the GitHub Issue described, Server implementation only need to support either DocumentReference.content.attachment.data or DocumentReference.content.attachment.url

Because the invariant us-core-6 guarantees that each DocumentReference has either content.attachment.data or content.attachment.url, there is no need to have an explicit Must support check for these two elements.

New behavior

DocumentReference.content.attachment.data or DocumentReference.content.attachment.url are must supports

Code changes

Updated metadata_extractor and uscore_geneator

Testing guidance