So excuse my lack of swagger-ui knowledge, but I’ve just been checking out API Documentation (created by Swagger, correct) generated when clicking on the API Documentation link in the REST section of the Admin page.
Pretty cool, thanks to all that set this up!
However, I discovered a slight error… 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:
If you specify just a patient or just an encounter, the query will fail. The documentation isn’t particularly clear. How is Swagger configured to handle this.
(Another side note is do we want to change this to allow specifying just a patient or an encounterType, or was the decision that a single search parameter could bring back too many results?)