POST api/PatientService/AddTreatmentPlan

Add Treatment Plan

Request Information

URI Parameters

None.

Body Parameters

TreatmentPlan
NameDescriptionTypeAdditional information
TreatmentPlanID

Gets or sets the treatment plan ID

globally unique identifier

None.

TreatmentDetails

Treatment Details

Collection of TreatmentInfoViewModel

Required

TreatmentNote

string

None.

ProviderID

globally unique identifier

None.

TreatmentDate

date

None.

Authority

string

None.

PatientID

Patient ID

globally unique identifier

Required

Count

COunt -1 all otherwise above zero

integer

None.

DrugID

Drug ID

globally unique identifier

None.

ApplicationID

Application using Absolute EMR API

globally unique identifier

Required

Request Formats

application/json, text/json

Sample:
{
  "TreatmentPlanID": "0c2f4ea7-0510-4749-8696-bd738f4bc136",
  "TreatmentDetails": [
    {
      "Drug_Id": "da9a739a-7486-4532-ac32-e9134924e4e8",
      "Instructions_Note": "sample string 2",
      "Frequency": 3,
      "FrequencyUnitTypeID": 4,
      "Repeat": "sample string 5",
      "Quantity": 6.0,
      "Start_Date": "2025-06-08T02:43:37.0035727+00:00",
      "End_Date": "2025-06-08T02:43:37.0035727+00:00",
      "DrugName": "sample string 7",
      "PrescriptionDetail_Id": "6e94ebb0-6014-4c5b-b1fa-ebfdd4941f5f",
      "Consult_Date": "2025-06-08T02:43:37.0035727+00:00",
      "Authority": "sample string 8",
      "Is_Current": true,
      "DrugCategory_Id": 1,
      "FrequencyUnitType": "sample string 9",
      "DrugCategoryName": "sample string 10"
    },
    {
      "Drug_Id": "da9a739a-7486-4532-ac32-e9134924e4e8",
      "Instructions_Note": "sample string 2",
      "Frequency": 3,
      "FrequencyUnitTypeID": 4,
      "Repeat": "sample string 5",
      "Quantity": 6.0,
      "Start_Date": "2025-06-08T02:43:37.0035727+00:00",
      "End_Date": "2025-06-08T02:43:37.0035727+00:00",
      "DrugName": "sample string 7",
      "PrescriptionDetail_Id": "6e94ebb0-6014-4c5b-b1fa-ebfdd4941f5f",
      "Consult_Date": "2025-06-08T02:43:37.0035727+00:00",
      "Authority": "sample string 8",
      "Is_Current": true,
      "DrugCategory_Id": 1,
      "FrequencyUnitType": "sample string 9",
      "DrugCategoryName": "sample string 10"
    }
  ],
  "TreatmentNote": "sample string 2",
  "ProviderID": "2a19f721-b32d-4691-ad8c-c59e4804318e",
  "TreatmentDate": "2025-06-08T02:43:37.0035727+00:00",
  "Authority": "sample string 4",
  "PatientID": "3cf55cb8-e950-46a1-9d23-66f7c88097e7",
  "Count": 1,
  "DrugID": "f141fa32-03e8-40d0-90d1-77652be50c21",
  "ApplicationID": "6f0d5d57-7e28-44b8-a7c8-9b49272cf2a7"
}

application/xml, text/xml

Sample:
<TreatmentPlan xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AbsoluteHealth.API.Models">
  <ApplicationID>6f0d5d57-7e28-44b8-a7c8-9b49272cf2a7</ApplicationID>
  <Count>1</Count>
  <DrugID>f141fa32-03e8-40d0-90d1-77652be50c21</DrugID>
  <PatientID>3cf55cb8-e950-46a1-9d23-66f7c88097e7</PatientID>
  <Authority>sample string 4</Authority>
  <TreatmentDate>2025-06-08T02:43:37.0035727+00:00</TreatmentDate>
  <TreatmentDetails>
    <TreatmentInfoViewModel>
      <Authority>sample string 8</Authority>
      <Consult_Date>2025-06-08T02:43:37.0035727+00:00</Consult_Date>
      <DrugCategoryName>sample string 10</DrugCategoryName>
      <DrugCategory_Id>1</DrugCategory_Id>
      <DrugName>sample string 7</DrugName>
      <Drug_Id>da9a739a-7486-4532-ac32-e9134924e4e8</Drug_Id>
      <End_Date>2025-06-08T02:43:37.0035727+00:00</End_Date>
      <Frequency>3</Frequency>
      <FrequencyUnitType>sample string 9</FrequencyUnitType>
      <FrequencyUnitTypeID>4</FrequencyUnitTypeID>
      <Instructions_Note>sample string 2</Instructions_Note>
      <Is_Current>true</Is_Current>
      <PrescriptionDetail_Id>6e94ebb0-6014-4c5b-b1fa-ebfdd4941f5f</PrescriptionDetail_Id>
      <Quantity>6</Quantity>
      <Repeat>sample string 5</Repeat>
      <Start_Date>2025-06-08T02:43:37.0035727+00:00</Start_Date>
    </TreatmentInfoViewModel>
    <TreatmentInfoViewModel>
      <Authority>sample string 8</Authority>
      <Consult_Date>2025-06-08T02:43:37.0035727+00:00</Consult_Date>
      <DrugCategoryName>sample string 10</DrugCategoryName>
      <DrugCategory_Id>1</DrugCategory_Id>
      <DrugName>sample string 7</DrugName>
      <Drug_Id>da9a739a-7486-4532-ac32-e9134924e4e8</Drug_Id>
      <End_Date>2025-06-08T02:43:37.0035727+00:00</End_Date>
      <Frequency>3</Frequency>
      <FrequencyUnitType>sample string 9</FrequencyUnitType>
      <FrequencyUnitTypeID>4</FrequencyUnitTypeID>
      <Instructions_Note>sample string 2</Instructions_Note>
      <Is_Current>true</Is_Current>
      <PrescriptionDetail_Id>6e94ebb0-6014-4c5b-b1fa-ebfdd4941f5f</PrescriptionDetail_Id>
      <Quantity>6</Quantity>
      <Repeat>sample string 5</Repeat>
      <Start_Date>2025-06-08T02:43:37.0035727+00:00</Start_Date>
    </TreatmentInfoViewModel>
  </TreatmentDetails>
  <TreatmentNote>sample string 2</TreatmentNote>
  <TreatmentPlanID>0c2f4ea7-0510-4749-8696-bd738f4bc136</TreatmentPlanID>
</TreatmentPlan>

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 'TreatmentPlan'.

Response Information

Resource Description

Treament Plan ID

globally unique identifier

Response Formats

application/json, text/json

Sample:
"26b12d6e-4f6f-4d62-bd29-7dab6bc03cdd"

application/xml, text/xml

Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">26b12d6e-4f6f-4d62-bd29-7dab6bc03cdd</guid>