POST api/Medications
API interface handling generic JSON requests for Medications
Request Information
URI Parameters
None.
Body Parameters
MedicationRequest
MedicationRequestName | Description | Type | Additional information |
---|---|---|---|
Id |
Request specified appointment by Id |
integer |
None. |
Limit |
Limit to number of rows returned by request (default is 100) |
integer |
None. |
Skip |
Number of rows to skip (so we can skip 10 get next 10 etc) |
integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": 707, "Limit": 534, "Skip": 581 }
application/xml, text/xml
Sample:
<MedicationRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Turnpoint.Controllers"> <Id>707</Id> <Limit>534</Limit> <Skip>581</Skip> </MedicationRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
MedicationReportDetails()
MedicationReportDetailsName | Description | Type | Additional information |
---|---|---|---|
medicationID | integer |
None. |
|
medicationName | string |
None. |
|
medicationDescription | string |
None. |
|
medicationCost | decimal number |
None. |
|
medicationCostDetails | string |
None. |
|
medicationDuration1 | integer |
None. |
|
medicationDisabled | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{ "medicationID": 291, "medicationName": "sample string 2", "medicationDescription": "sample string 3", "medicationCost": 1.1, "medicationCostDetails": "sample string 4", "medicationDuration1": 303, "medicationDisabled": true }
application/xml, text/xml
Sample:
<MedicationReportDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Turnpoint.Controllers"> <medicationCost>1.1</medicationCost> <medicationCostDetails>sample string 4</medicationCostDetails> <medicationDescription>sample string 3</medicationDescription> <medicationDisabled>true</medicationDisabled> <medicationDuration1>303</medicationDuration1> <medicationID>291</medicationID> <medicationName>sample string 2</medicationName> </MedicationReportDetails>