Uploaded image for project: 'FHIR module'
  1. FHIR module
  2. FM-265

FHIR module unable to handle patient.identifier parameter for Encounter Resource

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Should
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None

      Description

      According to the docs, you should be able to search for all encounters of a patient with /Encounter?patient.identifier=XYZ. However, when attempting this query https://openmrs-spa.org/openmrs/ws/fhir/Encounter?patient.identifier=8673ee4f-e2ab-4077-ba55-4980f408773e you can an error showing patient.identifier can not be handled. 

       

      On reviewing the code, we have a small bug at https://github.com/openmrs/openmrs-module-fhir/blob/master/omod/src/main/java/org/openmrs/module/fhir/providers/RestfulEncounterResourceProvider.java#L82. The parameter name should be : 

      name=Encounter.SP_PATIENT + "." + Patient.SP_IDENTIFIER
      

       
      Thanks to James Agnew for his assistance with debugging. 

       

       

       

       

        Gliffy Diagrams

          Attachments

          1. Error Message.png
            184 kB
            Jonathan Dick

            Activity

              People

              Assignee:
              corneliouzbett Bett Kipchumba
              Reporter:
              jdick Jonathan Dick
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: