Details
-
Bug
-
Status: Closed
-
Should
-
Resolution: Fixed
-
None
-
None
-
None
Description
In the Swagger docs, for the GET /encounter function to Search for Encounter, certain parameters like fromdate and todate are labelled with the comment "Must be used with patient or encounterType" when in reality it appears that they must be used with "Must be used with patient AND encounterType".
In fact, you always must specify Patient AND EncounterType for the EncounterSearchHandler to work, as seen here:
openmrs/openmrs-module-webservices.rest/blob/master/omod-1.8/src/main/java/org/openmrs/module/webservices/rest/web/v1_0/search/openmrs1_8/EncounterSearchHandler1_8.java
If you specify just a patient or just an encounter, the query will fail. The documentation isn't particularly clear.
Talk thread here:
https://talk.openmrs.org/t/swagger-docs-for-encountersearch/6653
Gliffy Diagrams
Attachments
Issue Links
- mentioned in
-
Page Loading...