You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Work in progress

 This is a work in progress and may change without notice

The simple SHR REST interface module will mimic the API expected by the content handler module in a RESTful way. This will allow for an easy way to test the system without building a complex interface module.

 

This module will implement a REST controller that extends the BaseRestController of the Webservices REST Module.  

It will support POST and GET requests on the following endpoint:

POST: ws/rest/v2/document?patientId=123

Option for passing a documentId?

GET: ws/rest/v2/documents?patientId=123&idType=ECID

Option for passing dateStart and dateEnd parameters or a documentId?

 

The controller will be responsible for extracting the content type from the MIME type in the HTTP Header and the document from the body of the HTTP request. These will be sent to the ContentHandlerService along with the dereferenced patientId and documentId, if provided.

  • No labels