Oviyam viewer launched does not show the correct study for patient and accession
Description
Activity

Angshuman Sarkar September 23, 2021 at 1:16 PM
PR for default config:

Angshuman Sarkar September 23, 2021 at 1:16 PM
Test scenarios on http://product-qa04.mybahmni.org
Setup
Follow WIKI doc and setup Modality and Order type in “bahmni_pacs” database
Mapped procedure codes following WIKI - mapped for - Chest PA, Chest AP, and Neck Soft tissue XRays
Set up DCM4CHEE modality worklist by updating HL7Service ORM through JMX-Console, following WIKI
Steps
Create a patient “Suzie Q” and order the 3 radilogy tests above
Check in DCM4CHEEE modality worklist and verified 3 accessions created
Upload image
Followed WIKI to download DCM4CHEE binaries (mainly to get DCMSND command)
Downloaded “pacssimulator-1.0.0-jar-with-dependencies.jar” from source mentioned in WIKI
Followed instructions of “upload dicom file directly to DCM4CHEE” and generated 2 dicom files for ORD-308 and ORD-310 (Chest PA & Soft tissue neck).
Followed instructions in the WIKI above and used DCMSND command to upload 2 dicom files generated in the above process for accessions for Chest PA and Soft Tissue neck. No dicom uploaded for “Chest AP”
Verified images from oviyam viewer directly - https://product-qa04.mybahmni.org/oviyam2/
Oviyam renders the 2 studies and images correctly. Clicking on the image opens up detailed view of the studies.
Verified on DCM4CHEE “Folder” tab to list the 2 studies
Verified Oviyam upgraded to 2.8.1 (Earlier 2.1.x)
Verified integration from patient dashboard
Clicking on a specific order on PACS display control - still shows up an incorrect image
opens up URL - /oviyam2/viewer.html?patientID=GAN203006&accessionNumber=ORD-308
The above is a bug thats fixed in the upcoming OVIYAM 2.8.2+
Modify app config
edited /var/www/bahmni_config/openmrs/apps/clinical/dashboard.json and edited control “pacs” and changed config param “pacsImageUrl” to "/oviyam2/oviyam?patientID={{patientID}}&accessionNumber={{orderNumber}}". Note this is the new URL thats supported in the upcoming fix and also in Oviyam2.8.x
Clicked on the the order that has no study - it correctly opened up the URL https://product-qa04.mybahmni.org/oviyam2/oviyam?patientID=GAN203006&accessionNumber=ORD-309 .. matching the configuration set above. No image is displayed - correct behavior as image was uploaded. Note, in case a study was found with the above URL and parameters, new oviyam (upcoming version with the OV-241 fix) will redirect to URL with studyUID, otherwise it will show a blank screen.
the above no-study order, shows a message on screen “Unable to identify study for the order..”
Test with new configuration on OMRS to use pacsquery module:
In OMRS Settings, update Pasquery.”Pacs Config” to DCM4CHEE@localhost:11112
Reload the patient dashboad, clicking on ORD-308 (Chest PA) and ORD-310 (Neck Soft tissue) shows the right images. Verified the studyUID matching with the link opened up directly from oviyam viewer.
Clicking the ORD-309 (Chest AP) for non-existent study showed a blank page (courtesy changed “pacsImageUrl” config in app config)
Conclusion:
Worked as expected with the “PacsQuery.Pacs Config” settings, barring the non-existent study case.
Expectations:
The default “pacsImageUrl” in app config should reflect the new URL pattern. A blank screen is better than invalid study being shown.

Angshuman Sarkar September 17, 2021 at 7:15 AM
PR:
The above PR is for the case when oviyam sends a redirect URL (in case of searching by accessionNumber) and because oviyam sees the connection coming as over http (apache acting as reverse proxy). This results in browser throwing up error because of same origin policy for ajax request

Angshuman Sarkar September 14, 2021 at 6:27 PM
Bahmni Package PR:

Angshuman Sarkar September 9, 2021 at 6:59 AMEdited
openmrs-distro dependency PR:
(should be cherry-picked onto master). - DONE.
Details
Assignee
Angshuman SarkarAngshuman SarkarReporter
Angshuman SarkarAngshuman SarkarLabels
Components
Sprint
NoneFix versions
Priority
Major
Details
Details
Assignee

Reporter

Bahmni upgraded to Oviyam2.8.1 as older version was not working on all browsers.
However the newer upgraded oviyam2.8 has a bug which can not identify the study with accessionNumber.
Oviyam bug: https://dcm4che.atlassian.net/browse/OV-241
Discussion thread: https://groups.google.com/g/dcm4che/c/4shTD-WzdEo
In view of the above, the following option
1. Create an omod which can connect to DCM4che (EJB service) for the patient, expose an api to get studies for a patient
2. Update bahmni pacs order component to correlate the studies and launch oviyam with studyinstanceid parameter.