GET api/v{version}/laboratory/{laboratoryId}/subject/{subjectId}/medication/{medicationId}
Gets the medication.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
laboratoryId |
The laboratory identifier. |
integer |
Required |
subjectId |
The subject identifier. |
integer |
Required |
medicationId |
The medication identifier. |
integer |
Required |
version | string |
None. |
Body Parameters
None.
Response Information
Resource Description
ResponseOfMedicationListItemName | Description | Type | Additional information |
---|---|---|---|
Data | MedicationListItem |
None. |
|
StatusCode |
Gets or sets the status code. |
HttpStatusCode |
None. |
StatusDescription |
Gets or sets the status description. |
string |
None. |
Errors | Collection of string |
None. |
Response Formats
application/json, text/json
Sample:
{ "data": { "medicationID": 1, "userProfileID": 2, "name": "sample string 3", "medicationStateID": 4, "patientNotes": "sample string 5", "dose": "sample string 6", "frequency": "sample string 7", "route": "sample string 8", "lastTaken": "2024-10-30T08:55:17.6559861-07:00", "medicationOriginID": 10, "medicationOriginDescription": "sample string 11", "medicationStateDescription": "sample string 12", "pictureID": 13, "pictureURL": "sample string 14", "inRescueKit": true, "origOrderDtTm": "2024-10-30T08:55:17.6559861-07:00", "medicationLastObtained": "2024-10-30T08:55:17.6559861-07:00" }, "statusCode": 100, "statusDescription": "sample string 1", "errors": [ "sample string 1", "sample string 2" ] }
application/xml, text/xml
Sample:
<ResponseOfMedicationListItemuFpbgzW1 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CancerBytesAPI.Response"> <Errors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </Errors> <StatusCode>Continue</StatusCode> <StatusDescription>sample string 1</StatusDescription> <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/DomainObjects"> <d2p1:Dose>sample string 6</d2p1:Dose> <d2p1:Frequency>sample string 7</d2p1:Frequency> <d2p1:InRescueKit>true</d2p1:InRescueKit> <d2p1:LastTaken>2024-10-30T08:55:17.6559861-07:00</d2p1:LastTaken> <d2p1:MedicationID>1</d2p1:MedicationID> <d2p1:MedicationLastObtained>2024-10-30T08:55:17.6559861-07:00</d2p1:MedicationLastObtained> <d2p1:MedicationOriginDescription>sample string 11</d2p1:MedicationOriginDescription> <d2p1:MedicationOriginID>10</d2p1:MedicationOriginID> <d2p1:MedicationStateDescription>sample string 12</d2p1:MedicationStateDescription> <d2p1:MedicationStateID>4</d2p1:MedicationStateID> <d2p1:Name>sample string 3</d2p1:Name> <d2p1:OrigOrderDtTm>2024-10-30T08:55:17.6559861-07:00</d2p1:OrigOrderDtTm> <d2p1:PatientNotes>sample string 5</d2p1:PatientNotes> <d2p1:PictureID>13</d2p1:PictureID> <d2p1:PictureURL>sample string 14</d2p1:PictureURL> <d2p1:Route>sample string 8</d2p1:Route> <d2p1:UserProfileID>2</d2p1:UserProfileID> </Data> </ResponseOfMedicationListItemuFpbgzW1>