num-codex / codex-processes-ap1

Business processes for the NUM CODEX project (AP1) as plugins for the HiGHmed Data Sharing Framework
Apache License 2.0
3 stars 6 forks source link

No reference resolution in provided bundles for CRR #37

Open wetret opened 3 years ago

wetret commented 3 years ago

References in a Bundle, that should be transferred to the CRR, are not resolved and included during Bundle generation. This leads to the fact that resource validation at the CRR can fail. An exception is the Patient resource.

For example if the Bundle contains a Condition resource with the following fields

 "fullUrl":"Condition/urn:uuid:1",
 "resource":{
            "resourceType":"Condition",
            ...        
            "subject":{
                 "reference":"Patient/urn:uuid:2"
            },
            "encounter":{
                  "reference":"Encounter/urn:uuid:3"
            },
            ...
      }

only the referenced Patient resource is included into the Bundle, not the referenced Encounter resource.

hhund commented 2 years ago

With release 0.5.1 unsupported references are removed from the resources prior to sending data to the central research repository. References within the blood-gas-panel Observation are not removed and managed correctly.