drajer-health / eCRNow

Repository for eCRNow app.
Apache License 2.0
37 stars 46 forks source link

Issue with correctly populating address in eICR #553

Closed bhuvansalanke closed 3 months ago

bhuvansalanke commented 9 months ago

The assignedCustodian, representedOrganization, and serviceProviderOrganization are pulling back the incorrect address.

The problem is that the Organization resource returns multiple addresses for an organization and in the code we only pick the first one in the order. This is an issue, as the first address in the list is not always the business address of the organization.

Please consider using the work address from the list of addresses. https://hl7.org/fhir/r4/valueset-address-use.html

https://github.cerner.com/ipaas/eCRNow/blob/master/src/main/java/com/drajer/cdafromr4/CdaFhirUtilities.java#L270

nbashyam commented 9 months ago

Data Quality team is investigating the issue.

nbashyam commented 9 months ago

This is for 2.0 and 3.0 version, where the queries will have to be modified.

Pramodshetty04 commented 8 months ago

Fix is added with unit test, this can be closed

mmatiasalt commented 4 months ago

This defect/request has been fixed in the 3.1.2 release.