POST api/PHR/GetPrescriptionDetails

Request Information

URI Parameters

None.

Body Parameters

CommonRequest
NameDescriptionTypeAdditional information
Request

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Request": "sample string 1"
}

application/xml, text/xml

Sample:
<CommonRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ETelMed.Entity.Models.Common">
  <Request>sample string 1</Request>
</CommonRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'CommonRequest'.

Response Information

Resource Description

ResponseOfPrescriptionModel
NameDescriptionTypeAdditional information
IsSuccess

boolean

None.

Message

string

None.

Status

integer

None.

Result

PrescriptionModel

None.

Response Formats

application/json, text/json

Sample:
{
  "IsSuccess": true,
  "Message": "sample string 2",
  "Status": 3,
  "Result": {
    "HealthRecordId": 1,
    "PhrId": 2,
    "DiseaseDescription": "sample string 3",
    "Notes": "sample string 4",
    "Name": "sample string 5",
    "Gender": 6,
    "DOB": "sample string 7",
    "Age": 8,
    "AlergyDescriptionList": [
      {
        "AlergyId": 1,
        "PrescriptionId": 2,
        "Alergy": "sample string 3",
        "CounterMedication": "sample string 4"
      },
      {
        "AlergyId": 1,
        "PrescriptionId": 2,
        "Alergy": "sample string 3",
        "CounterMedication": "sample string 4"
      }
    ],
    "DrugDetailList": [
      {
        "DrugId": 1,
        "PrescriptionId": 2,
        "DrugName": "sample string 3",
        "Dosage": "sample string 4",
        "Duration": "sample string 5",
        "Instruction": "sample string 6",
        "Frequency": "sample string 7"
      },
      {
        "DrugId": 1,
        "PrescriptionId": 2,
        "DrugName": "sample string 3",
        "Dosage": "sample string 4",
        "Duration": "sample string 5",
        "Instruction": "sample string 6",
        "Frequency": "sample string 7"
      }
    ],
    "TestDetailList": [
      {
        "TestId": 1,
        "PrescriptionId": 2,
        "TestInformation": "sample string 3"
      },
      {
        "TestId": 1,
        "PrescriptionId": 2,
        "TestInformation": "sample string 3"
      }
    ],
    "PrescriptionId": 9
  }
}

application/xml, text/xml

Sample:
<ResponseOfPrescriptionModelQLZlyOoP xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ETelMed.Entity.Models.Common">
  <IsSuccess>true</IsSuccess>
  <Message>sample string 2</Message>
  <Result xmlns:d2p1="http://schemas.datacontract.org/2004/07/ETelMed.Entity.Models.PHRDetails">
    <d2p1:PrescriptionId>9</d2p1:PrescriptionId>
    <d2p1:Age>8</d2p1:Age>
    <d2p1:AlergyDescriptionList>
      <d2p1:AlergyDetail>
        <d2p1:Alergy>sample string 3</d2p1:Alergy>
        <d2p1:AlergyId>1</d2p1:AlergyId>
        <d2p1:CounterMedication>sample string 4</d2p1:CounterMedication>
        <d2p1:PrescriptionId>2</d2p1:PrescriptionId>
      </d2p1:AlergyDetail>
      <d2p1:AlergyDetail>
        <d2p1:Alergy>sample string 3</d2p1:Alergy>
        <d2p1:AlergyId>1</d2p1:AlergyId>
        <d2p1:CounterMedication>sample string 4</d2p1:CounterMedication>
        <d2p1:PrescriptionId>2</d2p1:PrescriptionId>
      </d2p1:AlergyDetail>
    </d2p1:AlergyDescriptionList>
    <d2p1:DOB>sample string 7</d2p1:DOB>
    <d2p1:DiseaseDescription>sample string 3</d2p1:DiseaseDescription>
    <d2p1:DrugDetailList>
      <d2p1:DrugDetail>
        <d2p1:Dosage>sample string 4</d2p1:Dosage>
        <d2p1:DrugId>1</d2p1:DrugId>
        <d2p1:DrugName>sample string 3</d2p1:DrugName>
        <d2p1:Duration>sample string 5</d2p1:Duration>
        <d2p1:Frequency>sample string 7</d2p1:Frequency>
        <d2p1:Instruction>sample string 6</d2p1:Instruction>
        <d2p1:PrescriptionId>2</d2p1:PrescriptionId>
      </d2p1:DrugDetail>
      <d2p1:DrugDetail>
        <d2p1:Dosage>sample string 4</d2p1:Dosage>
        <d2p1:DrugId>1</d2p1:DrugId>
        <d2p1:DrugName>sample string 3</d2p1:DrugName>
        <d2p1:Duration>sample string 5</d2p1:Duration>
        <d2p1:Frequency>sample string 7</d2p1:Frequency>
        <d2p1:Instruction>sample string 6</d2p1:Instruction>
        <d2p1:PrescriptionId>2</d2p1:PrescriptionId>
      </d2p1:DrugDetail>
    </d2p1:DrugDetailList>
    <d2p1:Gender>6</d2p1:Gender>
    <d2p1:HealthRecordId>1</d2p1:HealthRecordId>
    <d2p1:Name>sample string 5</d2p1:Name>
    <d2p1:Notes>sample string 4</d2p1:Notes>
    <d2p1:PhrId>2</d2p1:PhrId>
    <d2p1:TestDetailList>
      <d2p1:TestDetail>
        <d2p1:PrescriptionId>2</d2p1:PrescriptionId>
        <d2p1:TestId>1</d2p1:TestId>
        <d2p1:TestInformation>sample string 3</d2p1:TestInformation>
      </d2p1:TestDetail>
      <d2p1:TestDetail>
        <d2p1:PrescriptionId>2</d2p1:PrescriptionId>
        <d2p1:TestId>1</d2p1:TestId>
        <d2p1:TestInformation>sample string 3</d2p1:TestInformation>
      </d2p1:TestDetail>
    </d2p1:TestDetailList>
  </Result>
  <Status>3</Status>
</ResponseOfPrescriptionModelQLZlyOoP>