Skip to content

Get medication by ID

Request

Retrieve detailed information about a specific medication. Scoped by account.

Security
PartnerApiKey and PartnerOAuth
Path
accountIdinteger, (int64)required

Account identifier

medicationIdinteger, (int64)required

Medication ID

accountIdinteger, (int64)required

Account identifier

curl -i -X GET \
  'https://api-docs.lobbie.com/_mock/openapi/partner/v2/account/{accountId}/health-profile/medications/{medicationId}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'x-api-key: YOUR_API_KEY_HERE'

Responses

Medication found and returned successfully

Bodyapplication/json
activeboolean

Whether this record is active

Example:true
createdAtstring, (date-time)

Creation timestamp (UTC)

Example:"2025-01-15T14:00:00Z"
createdBystring

Created by (staff name)

Example:"Dr. Jane Smith"
diagnosesArray of objects(MedicationDiagnosisDTO)

Related diagnoses

directionsstring

Dosage/usage instructions

Example:"Take 1 tablet by mouth daily"
endDatestring, (date)

End date

Example:"2023-03-01"
idinteger, (int64)

Unique medication identifier

Example:12345
namestring

Medication name

Example:"Lisinopril 10mg"
patientIdinteger, (int64)

Patient ID

Example:67890
referenceIdstring

Drug code identifier (NDC, RxNorm)

Example:"68180-513-01"
startDatestring, (date)

Start date

Example:"2022-03-01"
statusstring

Medication status

Enum:"ACTIVE""ON_HOLD""DISCONTINUED""COMPLETED""UNKNOWN"
Example:"ACTIVE"
updatedAtstring, (date-time)

Last update timestamp (UTC)

Example:"2025-01-15T14:00:00Z"
updatedBystring

Last updated by (staff name)

Example:"Dr. Jane Smith"
Response
{ "active": true, "createdAt": "2025-01-15T14:00:00Z", "createdBy": "Dr. Jane Smith", "diagnoses": [ {} ], "directions": "Take 1 tablet by mouth daily", "endDate": "2023-03-01", "id": 12345, "name": "Lisinopril 10mg", "patientId": 67890, "referenceId": "68180-513-01", "startDate": "2022-03-01", "status": "ACTIVE", "updatedAt": "2025-01-15T14:00:00Z", "updatedBy": "Dr. Jane Smith" }