You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug:
When using client supplied resource ids, the fullUrl of the resources within a history bundle are not correctly generated. For example, the fullUrl produced when doing a GET {baseUrl}/Patient/clientSuppliedId1234/_history is:
Enable and update the hapi.fhir.client_id_strategy property to ANY.
Start the local server (i.e. mvn clean spring-boot:run -Pboot).
Using a synthetic patient resource produced from synthea, issue a PUT command using the "id" contained in the synthetic patient resource: PUT {baseUrl}/Patient/clientSuppliedId1234
Access the patient resource history: GET {baseUrl}/Patient/clientSuppliedId1234/_history
Note the incorrectly produced fullUrl attribute for the entry within the bundle.
Expected behavior:
The fullUrl should contain a legitimate resource URL which contains the base FHIR URL.
The forced id is qualified with the resource type, however, the remaining logic in fetchEntities doesn't seem to account for that, and thus, the attribute myTransientForcedId is set to this value. That value is later used to create the resource id, and ultimately, the fullUrl seen in the history output.
I'm a little unclear whether there should be logic in fetchEntities to account for that, or whether the method translatePidsToForcedIds in the class IdHelperService should be altered to omit the resource type prefix? Anyone have thoughts on this?
Describe the bug:
When using client supplied resource ids, the fullUrl of the resources within a history bundle are not correctly generated. For example, the fullUrl produced when doing a GET {baseUrl}/Patient/clientSuppliedId1234/_history is:
To Reproduce:
Steps to reproduce the behavior:
Expected behavior:
The fullUrl should contain a legitimate resource URL which contains the base FHIR URL.
i.e. "fullUrl": "http://localhost:8080/fhir/Patient/clientSuppliedId1234"
Environment:
The text was updated successfully, but these errors were encountered: