OSCAR EMR REST API Reference

Below you can browse the REST API reference applicable to most OSCAR EMR systems. Some newer versions accept only json (instead of xml) for some endpoints but structure remains largely the same.

Example POST request body for /document/saveDocumentToDemographic (because the definition is not clear/partially wrong):

{
 "fileName": "test_document",
 "fileContents": "<base64_encoded>",
  "demographicNo": 4,
  "type": "consult",
  "creator": "10",
  "description": "Test Document",
  "contentType": "application/pdf"
}