API RxPats
See Rx / Prescription for more information.
Anyone using the API should also become very familiar with our schema documentation which contains important details about individual database table columns.
See RxPat Database Schema.
Version Added: 24.2.35
Gets a single rxpat.
RxNum: Required in URL.
Example Request:
GET /rxpats/13
Example Response:
{
"RxNum": 13,
"PatNum": 125,
"RxDate": "2024-09-26",
"Drug": "Amoxicillin 500 mg",
"Sig": "Take 4 caps 1 hour prior to dental appointment.",
"Disp": "4",
"Refills": "0",
"ProvNum": 13,
"Notes": "",
"PharmacyNum": 2,
"IsControlled": "false",
"DateTStamp": "2024-09-26 14:43:42",
"SendStatus": "Unsent",
"IsErxOld": "false",
"ErxPharmacyInfo": "",
"IsProcRequired": "false",
"ProcNum": 0,
"DaysOfSupply": 0.0,
"PatientInstruction": "Take all 4 caps 1 hour prior to dental appointment.",
"ClinicNum": 3
}
200 OK
404 NotFound (with explanation)
Version Added: 24.2.35
Gets a list of rxpats.
PatNum: Optional. FK to patient.PatNum.
Example Requests:
GET /rxpats
GET /rxpats?PatNum=458
Example Response:
[
{
"RxNum": 60,
"PatNum": 458,
"RxDate": "2024-09-26",
"Drug": "Amoxicillin 500 mg",
"Sig": "Take 2 tablets prior to dental appointment.",
"Disp": "2",
"Refills": "0",
"ProvNum": 13,
"Notes": "",
"PharmacyNum": 12,
"IsControlled": "false",
"DateTStamp": "2024-09-26 14:43:42",
"SendStatus": "Unsent",
"IsErxOld": "false",
"ErxPharmacyInfo": "",
"IsProcRequired": "false",
"ProcNum": 0,
"DaysOfSupply": 0.0,
"PatientInstruction": "Take 2 tablets prior to dental appointment.",
"ClinicNum": 10
},
{
"RxNum": 62,
"PatNum": 458,
"RxDate": "2024-09-26",
"Drug": "Percocet 5",
"Sig": "Take 1 tablet every 4 hours as needed for pain.",
"Disp": "24",
"Refills": "0",
"ProvNum": 13,
"Notes": "",
"PharmacyNum": 12,
"IsControlled": "true",
"DateTStamp": "2024-09-26 14:44:12",
"SendStatus": "Unsent",
"IsErxOld": "false",
"ErxPharmacyInfo": "",
"IsProcRequired": "true",
"ProcNum": 1587,
"DaysOfSupply": 7.0,
"PatientInstruction": "Take 1 tablet every 4 hours as needed for pain.",
"ClinicNum": 10
},
etc...
]
200 OK
400 BadRequest (with explanation)
404 NotFound (with explanation)
Version Added: 26.3.14
Creates an rxpat for a patient.
PatNum: Required. FK to patient.PatNum.
ProvNum: Required. FK to provider.ProvNum.
Drug: Required. Optional if rxDefNum is supplied. The name of the drug.
rxDefNum: Optional. FK to rxdef.RxDefNum. Overrides default values for Drug, Sig, Disp, Refills, IsControlled, and PatientInstruction to those found in the RxDef fields of the same names.
RxDate: Optional. String in "yyyy-MM-dd" format. Default "0001-01-01".
Sig: Optional. Directions intended for the pharmacist. Default empty string.
Disp: Optional. Amount to dispense. Default empty string.
Refills: Optional. Amount of refills. Default empty string.
Notes: Optional. Will not show on printouts. For staff use only. Default empty string.
PharmacyNum: Optional. FK to pharmacy.PharmacyNum. Default 0.
IsControlled: Optional, either "true" or "false". If "true", displays DEA Num on the prescription when printed. Default "false".
SendStatus: Optional. Either "Unsent", "SentElect", "Printed", "Faxed", "CalledIn", "GaveScript", or "Pending". Default "Unsent".
PatientInstruction: Optional. Directions intended for the patient. Default empty string.
ClinicNum: Optional. FK to clinic.ClinicNum. Defaults to the patient's clinic.
Example Requests:
POST /rxpats
{
"PatNum": 29,
"ProvNum": 2,
"RxDate": "2026-05-20",
"Drug": "Zovirax 200 mg",
"Sig": "Do not exceed 5 tablets in one day.",
"Disp": "20 (twenty)",
"Refills": "1 (one)",
"PharmacyNum": 1,
"PatientInstruction": "Take one tablet five times a day for cold sores."
}
{
"rxDefNum": 5,
"PatNum": 29,
"ProvNum": 2
}
Example Response:
{
"RxNum": 70,
"PatNum": 29,
"RxDate": "2026-10-20",
"Drug": "Zovirax 200 mg",
"Sig": "Do not exceed 5 tablets in one day.",
"Disp": "20 (twenty)",
"Refills": "1 (one)",
"ProvNum": 2,
"Notes": "",
"PharmacyNum": 1,
"IsControlled": "false",
"DateTStamp": "2026-10-20 14:50:07",
"SendStatus": "Unsent",
"IsErxOld": "false",
"ErxPharmacyInfo": "",
"IsProcRequired": "false",
"ProcNum": 0,
"DaysOfSupply": 0.0,
"PatientInstruction": "Take one tablet five times a day for cold sores.",
"ClinicNum": 0
}
201 Created
400 BadRequest (with explanation)
404 NotFound (with explanation)
Version Added: 26.3.14
Updates an existing rxpat.
RxNum: Required in the URL.
RxDate: String in "yyyy-MM-dd" format.
Drug: Name of the drug.
Sig: Directions intended for the pharmacist.
Disp: Amount to dispense.
Refills: Amount of refills.
ProvNum: FK to provider.ProvNum.
Notes: Overwrites existing note. Will not show on printouts. For staff use only.
PharmacyNum: FK to pharmacy.PharmacyNum. Can be 0.
IsControlled: Either "true" or "false". If "true", marks this as a controlled substance, which affects how it prints.
SendStatus: Either "Unsent", "SentElect", "Printed", "Faxed", "CalledIn", "GaveScript", or "Pending".
PatientInstruction: Directions intended for the patient.
ClinicNum: FK to clinic.ClinicNum. Can be 0.
Example Request:
PUT /rxpats/70
{
"RxDate": "2026-06-20",
"ProvNum": 3,
"Disp": "25 (twenty-five)",
"Refills": "2 (two)",
"PharmacyNum": 2
}
Example Response:
{
"RxNum": 70,
"PatNum": 29,
"RxDate": "2026-06-20",
"Drug": "Zovirax 200 mg",
"Sig": "Do not exceed 5 tablets in one day.",
"Disp": "25 (twenty-five)",
"Refills": "2 (two)",
"ProvNum": 3,
"Notes": "",
"PharmacyNum": 2,
"IsControlled": "false",
"DateTStamp": "2026-10-20 14:55:13",
"SendStatus": "Unsent",
"IsErxOld": "false",
"ErxPharmacyInfo": "",
"IsProcRequired": "false",
"ProcNum": 0,
"DaysOfSupply": 0.0,
"PatientInstruction": "Take one tablet five times a day for cold sores.",
"ClinicNum": 0
}
200 OK
400 BadRequest (with explanation)
404 NotFound (with explanation)
Version Added: 26.3.14
Deletes an existing rxpat.
RxNum: Required in the URL.
Example Request:
DELETE /rxpats/70
200 OK
400 BadRequest (with explanation)
404 NotFound (with explanation)