POST api/ohealth?emailAddress={emailAddress}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
emailAddress

string

Required

Body Parameters

emr_result
NameDescriptionTypeAdditional information
ohealth_emr

boolean

None.

userID

string

None.

doctorID

string

None.

doctorsNote

Doctorsnote

None.

treatmentPlan

Treatmentplan

None.

prescriptions

Prescriptions

None.

labTest

Labtest

None.

Request Formats

application/json, text/json

Sample:
{
  "ohealth_emr": true,
  "userID": "sample string 2",
  "doctorID": "sample string 3",
  "doctorsNote": {
    "complains": "sample string 1",
    "assessment": "sample string 2",
    "doctorID": "sample string 3"
  },
  "treatmentPlan": {
    "treatment_plan": "sample string 1",
    "doctorID": "sample string 2"
  },
  "prescriptions": {
    "prescriptions": "sample string 1",
    "expiry": "sample string 2",
    "doctorID": "sample string 3"
  },
  "labTest": {
    "lab_test": "sample string 1",
    "doctorID": "sample string 2"
  }
}

application/xml, text/xml

Sample:
<ohealthController.emr_result xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/enrrolleeApp.Controllers">
  <doctorID>sample string 3</doctorID>
  <doctorsNote>
    <assessment>sample string 2</assessment>
    <complains>sample string 1</complains>
    <doctorID>sample string 3</doctorID>
  </doctorsNote>
  <labTest>
    <doctorID>sample string 2</doctorID>
    <lab_test>sample string 1</lab_test>
  </labTest>
  <ohealth_emr>true</ohealth_emr>
  <prescriptions>
    <doctorID>sample string 3</doctorID>
    <expiry>sample string 2</expiry>
    <prescriptions>sample string 1</prescriptions>
  </prescriptions>
  <treatmentPlan>
    <doctorID>sample string 2</doctorID>
    <treatment_plan>sample string 1</treatment_plan>
  </treatmentPlan>
  <userID>sample string 2</userID>
</ohealthController.emr_result>

application/x-www-form-urlencoded

Sample:

Sample not available.

text/html

Sample:
{"ohealth_emr":true,"userID":"sample string 2","doctorID":"sample string 3","doctorsNote":{"complains":"sample string 1","assessment":"sample string 2","doctorID":"sample string 3"},"treatmentPlan":{"treatment_plan":"sample string 1","doctorID":"sample string 2"},"prescriptions":{"prescriptions":"sample string 1","expiry":"sample string 2","doctorID":"sample string 3"},"labTest":{"lab_test":"sample string 1","doctorID":"sample string 2"}}

Response Information

Resource Description

emrResult
NameDescriptionTypeAdditional information
errorMsg

string

None.

success

boolean

None.

message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "errorMsg": "sample string 1",
  "success": true,
  "message": "sample string 3"
}

application/xml, text/xml

Sample:
<emrResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/enrrolleeApp.Models.Ohealth.emr">
  <errorMsg>sample string 1</errorMsg>
  <message>sample string 3</message>
  <success>true</success>
</emrResult>

text/html

Sample:
{"errorMsg":"sample string 1","success":true,"message":"sample string 3"}