Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
titlePOST URL Example
curl --user user:password "host:8080/openmrs/ws/rest/v1/shr/document?patientId=1&patientIdType=ECID&providerId=1&providerIdType=EPID&encounterType=TestImage&formatCode=Image&isURL=true" -H "Content-Type: image/jpg" -X POST -d "http://imageserver/image.jpg"

 

GET: ws/rest/v1/shr/document (NOT YET IMPLEMENTED)

Parameters:

Either

encounterUUIDThe UUID for the specific encounter that needs to be retrieved

or

uniqueIDThe unique document ID of the encounter that needs to be retrieved

Retrieve a specific encounter.

 

GET: ws/rest/v1/shr/documents

contentTypeThe type of contents to retrieve
patientIdThe patient identifier
patientIdTypeThe type of identifier
dateStart(optional) Format yyyy-MM-dd'T'HH:mm:ss
dateEnd(optional) Format yyyy-MM-dd'T'HH:mm:ss

...