I am wondering if it is possible for modules to expose custom REST paths on top of those provided by the web services module and other modules. Some examples below:
- /patient/{parent-uuid}/viralload/{parameters} - exposes values for viral load for example
- current-value not detected or detected with a numeric value
- next-test-date - the date of the next test that is due
-
/patient/{parent-uuid}/dsdm/ - status of the patient in the differentiated models of care program
-
/patient/{parent-uuid/hiv/
-
/patient/{parent-uuid}/mch/
Etc, this will enable the simplification of querying various status values across different program areas of care for the patient. Is there any other approach that abstracts the queries for the status in a consistent way?
UPDATE: Additionally is there a way to build the custom concepts leveraging existing calls from the webservices module - for example #1 is the value from 3 different concepts (in the same encounter)?