api-docs v5.116.0
API Docs
Table of contents
Pharmacy_Medication_Order
Pharmacy Medication Order - Delete
Delete a specific pharmacy medication order
DELETE /pharmacy-medication-orders/:id
Headers - Header
Name | Type | Description |
---|---|---|
Authorization | string |
key to place the API token to using the grant 'Bearer' |
Header examples
Authorization-Example
{
"Authorization": "Bearer <your-api-token>"
}
Examples
Example usage:
curl "https://yourdomain.com/pharmacy-medication-orders/<pharmacy-medication-order-id>" \
-X DELETE \
-H "Authorization: Bearer <your-api-token>"
Success response
Success response - Success 200
Name | Type | Description |
---|---|---|
id | string |
|
createdAt | number |
|
createdBy | string |
|
organization | string |
associated organization's (facility) id |
medicalRecordOrder | string |
reference to a patient's |
inventoryTransaction | string |
reference to origin |
medicine | string |
|
prescribee | string |
patient id or personal details id |
prescribeeType | string |
Allowed values: patient,personal-details |
issuedAt | number |
defaults to creation date |
diagnosis | string |
|
customReferenceId | string |
external prescription no. defaults to #id |
prescriber | string |
uid of prescriber's account |
spfddsn | string |
|
items | object[] |
|
items.id | string |
Default value: auto-generated-id |
items.medicalRecordItemId | string |
reference to |
items.inventoryTransactionItemId | string |
reference to |
items.medicine | string |
reference to |
items.genericName | string |
|
items.brandName | string |
|
items.strength | number |
examples (combined with strengthUnit and dosageForm)
|
items.strengthUnit | string |
examples
|
items.dosageForm | string |
|
items.dosageString | string |
examples
|
items.amount | number |
|
items.route | string |
examples
|
items.formulation | string |
string representation/combinations of
examples
|
items.frequency | string |
examples (combined with dose, doseUnit, optional dosageForm)
|
items.sig | string |
historically
|
items.dispense | number |
|
items.dispenseUnit | string |
|
items.refills | number |
|
items.isDangerous | boolean |
|
Success response example
Success response example - Success-Response:
HTTP/1.1 200 OK
{
"id": "id-1",
"createdAt": 1564661697125,
"createdBy": "some-uid"
}
Pharmacy Medication Order - Find
Get list of pharmacy medication orders
GET /pharmacy-medication-orders
Headers - Header
Name | Type | Description |
---|---|---|
Authorization | string |
key to place the API token to using the grant 'Bearer' |
Header examples
Authorization-Example
{
"Authorization": "Bearer <your-api-token>"
}
Examples
Example usage:
curl "https://yourdomain.com/pharmacy-medication-orders" \
-X GET \
-H "Authorization: Bearer <your-api-token>"
Success response
Success response - Success 200
Name | Type | Description |
---|---|---|
pharmacyMedicationOrders | object[] |
array of pharmacyMedicationOrder |
pharmacyMedicationOrders.id | string |
|
pharmacyMedicationOrders.createdAt | number |
|
pharmacyMedicationOrders.createdBy | string |
|
pharmacyMedicationOrders.organization | string |
associated organization's (facility) id |
pharmacyMedicationOrders.medicalRecordOrder | string |
reference to a patient's |
pharmacyMedicationOrders.inventoryTransaction | string |
reference to origin |
pharmacyMedicationOrders.medicine | string |
|
pharmacyMedicationOrders.prescribee | string |
patient id or personal details id |
pharmacyMedicationOrders.prescribeeType | string |
Allowed values: patient,personal-details |
pharmacyMedicationOrders.issuedAt | number |
defaults to creation date |
pharmacyMedicationOrders.diagnosis | string |
|
pharmacyMedicationOrders.customReferenceId | string |
external prescription no. defaults to #id |
pharmacyMedicationOrders.prescriber | string |
uid of prescriber's account |
pharmacyMedicationOrders.spfddsn | string |
|
pharmacyMedicationOrders.items | object[] |
|
pharmacyMedicationOrders.items.id | string |
Default value: auto-generated-id |
pharmacyMedicationOrders.items.medicalRecordItemId | string |
reference to |
pharmacyMedicationOrders.items.inventoryTransactionItemId | string |
reference to |
pharmacyMedicationOrders.items.medicine | string |
reference to |
pharmacyMedicationOrders.items.genericName | string |
|
pharmacyMedicationOrders.items.brandName | string |
|
pharmacyMedicationOrders.items.strength | number |
examples (combined with strengthUnit and dosageForm)
|
pharmacyMedicationOrders.items.strengthUnit | string |
examples
|
pharmacyMedicationOrders.items.dosageForm | string |
|
pharmacyMedicationOrders.items.dosageString | string |
examples
|
pharmacyMedicationOrders.items.amount | number |
|
pharmacyMedicationOrders.items.route | string |
examples
|
pharmacyMedicationOrders.items.formulation | string |
string representation/combinations of
examples
|
pharmacyMedicationOrders.items.frequency | string |
examples (combined with dose, doseUnit, optional dosageForm)
|
pharmacyMedicationOrders.items.sig | string |
historically
|
pharmacyMedicationOrders.items.dispense | number |
|
pharmacyMedicationOrders.items.dispenseUnit | string |
|
pharmacyMedicationOrders.items.refills | number |
|
pharmacyMedicationOrders.items.isDangerous | boolean |
|
Success response example
Success response example - Success-Response:
HTTP/1.1 200 OK
[
{
"id": "id-1",
"createdAt": 1564661697125,
"createdBy": "some-uid"
},
{
"id": "id-2",
"createdAt": 1564661697125,
"createdBy": "some-uid"
}
]
Pharmacy Medication Order - Get
Get a specific pharmacy medication order
GET /pharmacy-medication-orders/:id
Headers - Header
Name | Type | Description |
---|---|---|
Authorization | string |
key to place the API token to using the grant 'Bearer' |
Header examples
Authorization-Example
{
"Authorization": "Bearer <your-api-token>"
}
Examples
Example usage:
curl "https://yourdomain.com/pharmacy-medication-orders/<pharmacy-medication-order-id>" \
-X GET \
-H "Authorization: Bearer <your-api-token>"
Success response
Success response - Success 200
Name | Type | Description |
---|---|---|
id | string |
|
createdAt | number |
|
createdBy | string |
|
organization | string |
associated organization's (facility) id |
medicalRecordOrder | string |
reference to a patient's |
inventoryTransaction | string |
reference to origin |
medicine | string |
|
prescribee | string |
patient id or personal details id |
prescribeeType | string |
Allowed values: patient,personal-details |
issuedAt | number |
defaults to creation date |
diagnosis | string |
|
customReferenceId | string |
external prescription no. defaults to #id |
prescriber | string |
uid of prescriber's account |
spfddsn | string |
|
items | object[] |
|
items.id | string |
Default value: auto-generated-id |
items.medicalRecordItemId | string |
reference to |
items.inventoryTransactionItemId | string |
reference to |
items.medicine | string |
reference to |
items.genericName | string |
|
items.brandName | string |
|
items.strength | number |
examples (combined with strengthUnit and dosageForm)
|
items.strengthUnit | string |
examples
|
items.dosageForm | string |
|
items.dosageString | string |
examples
|
items.amount | number |
|
items.route | string |
examples
|
items.formulation | string |
string representation/combinations of
examples
|
items.frequency | string |
examples (combined with dose, doseUnit, optional dosageForm)
|
items.sig | string |
historically
|
items.dispense | number |
|
items.dispenseUnit | string |
|
items.refills | number |
|
items.isDangerous | boolean |
|
Success response example
Success response example - Success-Response:
HTTP/1.1 200 OK
{
"id": "id-1",
"createdAt": 1564661697125,
"createdBy": "some-uid"
}
Pharmacy Medication Order - Patch
Update pharmacy medication order
PATCH /pharmacy-medication-orders/:id
Headers - Header
Name | Type | Description |
---|---|---|
Authorization | string |
key to place the API token to using the grant 'Bearer' |
Header examples
Authorization-Example
{
"Authorization": "Bearer <your-api-token>"
}
Parameters - Parameter
Name | Type | Description |
---|---|---|
createdAt | number |
optional |
createdBy | string |
optional |
medicalRecordOrder | string |
optional reference to a patient's |
inventoryTransaction | string |
optional reference to origin |
medicine | string |
optional |
issuedAt | number |
optional defaults to creation date |
diagnosis | string |
optional |
customReferenceId | string |
optional external prescription no. defaults to #id |
spfddsn | string |
optional |
items | object[] |
Size range: 1.. |
items.id | string |
Default value: auto-generated-id |
items.medicalRecordItemId | string |
reference to |
items.inventoryTransactionItemId | string |
reference to |
items.medicine | string |
reference to |
items.genericName | string |
|
items.brandName | string |
|
items.strength | number |
examples (combined with strengthUnit and dosageForm)
|
items.strengthUnit | string |
examples
|
items.dosageForm | string |
|
items.dosageString | string |
examples
|
items.amount | number |
|
items.route | string |
examples
|
items.formulation | string |
string representation/combinations of
examples
|
items.frequency | string |
examples (combined with dose, doseUnit, optional dosageForm)
|
items.sig | string |
historically
|
items.dispense | number |
|
items.dispenseUnit | string |
|
items.refills | number |
|
items.isDangerous | boolean |
|
Examples
Example usage:
curl "https://yourdomain.com/pharmacy-medication-orders/<pharmacy-medication-order-id>" \
-X PATCH \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <your-api-token>" \
-d '{
"createdAt": 1234567890
}'
Parameters examples
json
- Request-Example
{
"createdAt": 1234567890
}
Success response
Success response - Success 200
Name | Type | Description |
---|---|---|
id | string |
|
createdAt | number |
|
createdBy | string |
|
organization | string |
associated organization's (facility) id |
medicalRecordOrder | string |
reference to a patient's |
inventoryTransaction | string |
reference to origin |
medicine | string |
|
prescribee | string |
patient id or personal details id |
prescribeeType | string |
Allowed values: patient,personal-details |
issuedAt | number |
defaults to creation date |
diagnosis | string |
|
customReferenceId | string |
external prescription no. defaults to #id |
prescriber | string |
uid of prescriber's account |
spfddsn | string |
|
items | object[] |
|
items.id | string |
Default value: auto-generated-id |
items.medicalRecordItemId | string |
reference to |
items.inventoryTransactionItemId | string |
reference to |
items.medicine | string |
reference to |
items.genericName | string |
|
items.brandName | string |
|
items.strength | number |
examples (combined with strengthUnit and dosageForm)
|
items.strengthUnit | string |
examples
|
items.dosageForm | string |
|
items.dosageString | string |
examples
|
items.amount | number |
|
items.route | string |
examples
|
items.formulation | string |
string representation/combinations of
examples
|
items.frequency | string |
examples (combined with dose, doseUnit, optional dosageForm)
|
items.sig | string |
historically
|
items.dispense | number |
|
items.dispenseUnit | string |
|
items.refills | number |
|
items.isDangerous | boolean |
|
Success response example
Success response example - Success-Response:
HTTP/1.1 200 OK
{
"id": "id-1",
"createdAt": 1564661697125,
"createdBy": "some-uid"
}
Pharmacy Medication Order - Post
Create pharmacy medication order
POST /pharmacy-medication-orders
Headers - Header
Name | Type | Description |
---|---|---|
Authorization | string |
key to place the API token to using the grant 'Bearer' |
Header examples
Authorization-Example
{
"Authorization": "Bearer <your-api-token>"
}
Parameters - Parameter
Name | Type | Description |
---|---|---|
createdAt | number |
optional |
createdBy | string |
optional |
organization | string |
optional associated organization's (facility) id |
medicalRecordOrder | string |
optional reference to a patient's |
inventoryTransaction | string |
optional reference to origin |
medicine | string |
optional |
prescribee | string |
optional patient id or personal details id |
prescribeeType | string |
optional Allowed values: patient,personal-details |
issuedAt | number |
optional defaults to creation date |
diagnosis | string |
optional |
customReferenceId | string |
optional external prescription no. defaults to #id |
prescriber | string |
optional uid of prescriber's account |
spfddsn | string |
optional |
items | object[] |
Size range: 1.. |
items.id | string |
Default value: auto-generated-id |
items.medicalRecordItemId | string |
reference to |
items.inventoryTransactionItemId | string |
reference to |
items.medicine | string |
reference to |
items.genericName | string |
|
items.brandName | string |
|
items.strength | number |
examples (combined with strengthUnit and dosageForm)
|
items.strengthUnit | string |
examples
|
items.dosageForm | string |
|
items.dosageString | string |
examples
|
items.amount | number |
|
items.route | string |
examples
|
items.formulation | string |
string representation/combinations of
examples
|
items.frequency | string |
examples (combined with dose, doseUnit, optional dosageForm)
|
items.sig | string |
historically
|
items.dispense | number |
|
items.dispenseUnit | string |
|
items.refills | number |
|
items.isDangerous | boolean |
|
Examples
Example usage:
curl "https://yourdomain.com/pharmacy-medication-orders" \
-X POST \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <your-api-token>" \
-d '{
"items": [
{
"medicalRecordItemId": "some-medicalRecordItem-id",
"inventoryTransactionItemId": "some-inventoryTransactionItem-id",
"medicine": "medicine-id"
}
]
}'
Parameters examples
json
- Request-Example
{
"items": [
{
"medicalRecordItemId": "some-medicalRecordItem-id",
"inventoryTransactionItemId": "some-inventoryTransactionItem-id",
"medicine": "medicine-id"
}
]
}
Success response
Success response - Success 200
Name | Type | Description |
---|---|---|
id | string |
|
createdAt | number |
|
createdBy | string |
|
organization | string |
associated organization's (facility) id |
medicalRecordOrder | string |
reference to a patient's |
inventoryTransaction | string |
reference to origin |
medicine | string |
|
prescribee | string |
patient id or personal details id |
prescribeeType | string |
Allowed values: patient,personal-details |
issuedAt | number |
defaults to creation date |
diagnosis | string |
|
customReferenceId | string |
external prescription no. defaults to #id |
prescriber | string |
uid of prescriber's account |
spfddsn | string |
|
items | object[] |
|
items.id | string |
Default value: auto-generated-id |
items.medicalRecordItemId | string |
reference to |
items.inventoryTransactionItemId | string |
reference to |
items.medicine | string |
reference to |
items.genericName | string |
|
items.brandName | string |
|
items.strength | number |
examples (combined with strengthUnit and dosageForm)
|
items.strengthUnit | string |
examples
|
items.dosageForm | string |
|
items.dosageString | string |
examples
|
items.amount | number |
|
items.route | string |
examples
|
items.formulation | string |
string representation/combinations of
examples
|
items.frequency | string |
examples (combined with dose, doseUnit, optional dosageForm)
|
items.sig | string |
historically
|
items.dispense | number |
|
items.dispenseUnit | string |
|
items.refills | number |
|
items.isDangerous | boolean |
|
Success response example
Success response example - Success-Response:
HTTP/1.1 200 OK
{
"id": "id-1",
"createdAt": 1564661697125,
"createdBy": "some-uid"
}