Uploaded image for project: 'Webservices REST Module'
  1. Webservices REST Module
  2. RESTWS-664

Custom representation of a visit should not include voided encounters

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Should
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.25.0
    • Labels:
      None
    • Complexity:
      Low

      Description

      This bug looks very similar to RESTWS-506.

      When fetching a custom representation of a visit resource with property "encounters" the web service returns voided encounters too:

      https://ami.pih-emr.org/openmrs/ws/rest/v1/visit/135e2a3a-c356-4d36-a021-bbffc4b33f56?v=custom:(uuid,encounters:(uuid,voided,voidReason))

      {
        "uuid": "135e2a3a-c356-4d36-a021-bbffc4b33f56",
        "encounters": [
          {
            "uuid": "a474fb72-1f29-4c00-a161-7837342570e4",
            "voided": false,
            "voidReason": null
          },
          {
            "uuid": "ae115333-7517-4497-ae4b-6cb8e69e4112",
            "voided": false,
            "voidReason": null
          },
          {
            "uuid": "e6ab70e0-5c32-48ed-84d7-ead41916bc53",
            "voided": true,
            "voidReason": "web service call"
          }
        ]
      }
      

        Attachments

          Activity

            People

            • Assignee:
              cioan Cosmin Ioan
              Reporter:
              cioan Cosmin Ioan
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: