#
readPreferredPharmacy
GET
/api/v1/patients/{patient}/pharmacy
Staff; initial version 0 when unselected.
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
patient
required
|
path |
string (uuid) |
|
Responses
-
200
Success
application/json
-
Fields PreferredPharmacy · 3
| Field |
Type |
Details |
patient_id
required
|
string (uuid) |
|
pharmacy_id
required
|
string or null |
|
version
required
|
integer |
value ≥ 0
|
Example response placeholder values
{
"patient_id": "00000000-0000-4000-8000-000000000000",
"pharmacy_id": "00000000-0000-4000-8000-000000000000",
"version": 0
}
-
400
Invalid or unsupported input
-
401
Authentication required or expired
-
403
Scope, role, Origin or patient access denied
-
404
Record not found in authenticated tenant/patient
-
409
Version, immutable-state or request identity conflict
-
500
Atomic operation or audit failed
Example call
curl "$EHR_URL/api/v1/patients/{patient}/pharmacy" -H "Authorization: Bearer $ACCESS_TOKEN"
#
savePreferredPharmacy
PUT
/api/v1/patients/{patient}/pharmacy
Directory roles. Version is in the body, not If-Match; null pharmacy clears preference.
Access
OAuth 2.0 access tokenclinical.write
Parameters
| Name |
In |
Type |
Details |
patient
required
|
path |
string (uuid) |
|
Request body
application/json · required
Fields PharmacyPreferenceChange · 4
| Field |
Type |
Details |
reason
required
|
string |
length 1–1000
|
request_id
required
|
string (uuid) |
|
version
required
|
integer |
value ≥ 0
|
pharmacy_id
|
string or null |
|
Example request body placeholder values
{
"reason": "string",
"request_id": "00000000-0000-4000-8000-000000000000",
"version": 0,
"pharmacy_id": "00000000-0000-4000-8000-000000000000"
}
Responses
-
200
Success
application/json
-
Fields PreferredPharmacy · 3
| Field |
Type |
Details |
patient_id
required
|
string (uuid) |
|
pharmacy_id
required
|
string or null |
|
version
required
|
integer |
value ≥ 0
|
Example response placeholder values
{
"patient_id": "00000000-0000-4000-8000-000000000000",
"pharmacy_id": "00000000-0000-4000-8000-000000000000",
"version": 0
}
-
400
Invalid or unsupported input
-
401
Authentication required or expired
-
403
Scope, role, Origin or patient access denied
-
404
Record not found in authenticated tenant/patient
-
409
Version, immutable-state or request identity conflict
-
500
Atomic operation or audit failed
Example call
curl -X PUT "$EHR_URL/api/v1/patients/{patient}/pharmacy" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
nativePrescribingReview
GET
/api/v1/patients/{patient}/prescribing-review
Staff; review_token binds current recorded allergy/medication review and active prescription state. No automated drug/dose/interaction/formulary safety checks.
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
patient
required
|
path |
string (uuid) |
|
Responses
-
200
Success
application/json
-
Fields PrescribingReview · 7
| Field |
Type |
Details |
can_authorize
required
|
boolean |
|
limitations
required
|
string |
|
lists
required
|
object |
|
patient_id
required
|
string (uuid) |
|
review_token
required
|
string |
|
active_prescriptions
|
array of object |
items ≤ 500
|
active_prescriptions_truncated
|
boolean |
|
Example response placeholder values
{
"can_authorize": true,
"limitations": "string",
"lists": {},
"patient_id": "00000000-0000-4000-8000-000000000000",
"review_token": "string",
"active_prescriptions": [
{}
],
"active_prescriptions_truncated": true
}
-
400
Invalid or unsupported input
-
401
Authentication required or expired
-
403
Scope, role, Origin or patient access denied
-
404
Record not found in authenticated tenant/patient
-
409
Version, immutable-state or request identity conflict
-
500
Atomic operation or audit failed
Example call
curl "$EHR_URL/api/v1/patients/{patient}/prescribing-review" -H "Authorization: Bearer $ACCESS_TOKEN"
#
listNativePrescriptions
GET
/api/v1/patients/{patient}/prescriptions
Staff; UUID _after keyset cursor, 100 records, next_cursor.
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
patient
required
|
path |
string (uuid) |
|
_after
|
query |
string (uuid) |
|
Responses
-
200
Success
application/json
-
Fields NativePrescriptionPage · 36
| Field |
Type |
Details |
items
required
|
array of NativePrescription |
items ≤ 100
|
content
required
|
PrescriptionContent |
Positive decimal quantity as a string, numeric RxNorm code when supplied. Local authorization blocks all controlled substances. Optional dates must be ordered.
|
controlled_substance
required
|
boolean |
|
dose
required
|
string |
length ≤ 200
|
frequency
required
|
string |
length ≤ 200
|
indication
required
|
string |
length ≤ 1000
|
instructions
required
|
string |
length ≤ 4000
|
medication_name
required
|
string |
length ≤ 200
|
quantity
required
|
string |
pattern ^\d{1,7}(\.\d{1,3})?$
|
quantity_unit
required
|
string |
length ≤ 100
|
refills
required
|
integer |
value 0–99
|
route
required
|
string |
length ≤ 100
|
substitution_allowed
required
|
boolean |
|
days_supply
|
integer or null |
value 1–3660
|
dosage_form
|
string |
length ≤ 120
|
end_date
|
string or null |
|
pharmacy_id
|
string or null |
|
rxnorm_code
|
string |
length ≤ 20pattern ^[0-9]*$
|
start_date
|
string or null |
|
strength
|
string |
length ≤ 120
|
fulfillment_status
required
|
string |
one of not_authorized, local_ready, printed, recorded_local
|
id
required
|
string (uuid) |
|
patient_id
required
|
string (uuid) |
|
status
required
|
string |
one of draft, active, cancelled, stopped, completed
|
version
required
|
integer |
value ≥ 1
|
authored_by
|
string (uuid) |
|
created_at
|
string (date-time) |
|
prior_prescription_id
|
string or null |
|
relationship
|
string or null |
one of renewal, replacement, null
|
signed_at
|
string or null |
|
signed_by
|
string or null |
|
signed_snapshot
|
object or null |
Immutable local authorization snapshot; does not establish transmission or dispensing.
|
updated_at
|
string (date-time) |
|
updated_by
|
string (uuid) |
|
visit_id
|
string or null |
|
next_cursor
required
|
string or null |
|
Example response placeholder values
{
"items": [
{
"content": {
"controlled_substance": true,
"dose": "string",
"frequency": "string",
"indication": "string",
"instructions": "string",
"medication_name": "string",
"quantity": "string",
"quantity_unit": "string",
"refills": 0,
"route": "string",
"substitution_allowed": true
},
"fulfillment_status": "not_authorized",
"id": "00000000-0000-4000-8000-000000000000",
"patient_id": "00000000-0000-4000-8000-000000000000",
"status": "draft",
"version": 1,
"authored_by": "00000000-0000-4000-8000-000000000000",
"created_at": "2026-01-15T15:30:00Z"
}
],
"next_cursor": "00000000-0000-4000-8000-000000000000"
}
-
400
Invalid or unsupported input
-
401
Authentication required or expired
-
403
Scope, role, Origin or patient access denied
-
404
Record not found in authenticated tenant/patient
-
409
Version, immutable-state or request identity conflict
-
500
Atomic operation or audit failed
Example call
curl "$EHR_URL/api/v1/patients/{patient}/prescriptions" -H "Authorization: Bearer $ACCESS_TOKEN"
#
createNativePrescription
POST
/api/v1/patients/{patient}/prescriptions
Owner/clinician/nurse/medical assistant may prepare drafts; this does not authorize medication or transmit it. Request UUID replay bound to actor/content.
Access
OAuth 2.0 access tokenclinical.write
Parameters
| Name |
In |
Type |
Details |
patient
required
|
path |
string (uuid) |
|
Request body
application/json · required
Fields PrescriptionDraft · 24
| Field |
Type |
Details |
content
required
|
PrescriptionContent |
Positive decimal quantity as a string, numeric RxNorm code when supplied. Local authorization blocks all controlled substances. Optional dates must be ordered.
|
controlled_substance
required
|
boolean |
|
dose
required
|
string |
length ≤ 200
|
frequency
required
|
string |
length ≤ 200
|
indication
required
|
string |
length ≤ 1000
|
instructions
required
|
string |
length ≤ 4000
|
medication_name
required
|
string |
length ≤ 200
|
quantity
required
|
string |
pattern ^\d{1,7}(\.\d{1,3})?$
|
quantity_unit
required
|
string |
length ≤ 100
|
refills
required
|
integer |
value 0–99
|
route
required
|
string |
length ≤ 100
|
substitution_allowed
required
|
boolean |
|
days_supply
|
integer or null |
value 1–3660
|
dosage_form
|
string |
length ≤ 120
|
end_date
|
string or null |
|
pharmacy_id
|
string or null |
|
rxnorm_code
|
string |
length ≤ 20pattern ^[0-9]*$
|
start_date
|
string or null |
|
strength
|
string |
length ≤ 120
|
reason
required
|
string |
length 1–1000
|
request_id
required
|
string (uuid) |
|
prior_prescription_id
|
string or null |
|
relationship
|
string or null |
one of renewal, replacement, null
|
visit_id
|
string or null |
|
Example request body placeholder values
{
"content": {
"controlled_substance": true,
"dose": "string",
"frequency": "string",
"indication": "string",
"instructions": "string",
"medication_name": "string",
"quantity": "string",
"quantity_unit": "string",
"refills": 0,
"route": "string",
"substitution_allowed": true
},
"reason": "string",
"request_id": "00000000-0000-4000-8000-000000000000",
"prior_prescription_id": "00000000-0000-4000-8000-000000000000",
"relationship": "renewal",
"visit_id": "00000000-0000-4000-8000-000000000000"
}
Responses
-
200
Success
application/json
-
Fields NativePrescription · 34
| Field |
Type |
Details |
content
required
|
PrescriptionContent |
Positive decimal quantity as a string, numeric RxNorm code when supplied. Local authorization blocks all controlled substances. Optional dates must be ordered.
|
controlled_substance
required
|
boolean |
|
dose
required
|
string |
length ≤ 200
|
frequency
required
|
string |
length ≤ 200
|
indication
required
|
string |
length ≤ 1000
|
instructions
required
|
string |
length ≤ 4000
|
medication_name
required
|
string |
length ≤ 200
|
quantity
required
|
string |
pattern ^\d{1,7}(\.\d{1,3})?$
|
quantity_unit
required
|
string |
length ≤ 100
|
refills
required
|
integer |
value 0–99
|
route
required
|
string |
length ≤ 100
|
substitution_allowed
required
|
boolean |
|
days_supply
|
integer or null |
value 1–3660
|
dosage_form
|
string |
length ≤ 120
|
end_date
|
string or null |
|
pharmacy_id
|
string or null |
|
rxnorm_code
|
string |
length ≤ 20pattern ^[0-9]*$
|
start_date
|
string or null |
|
strength
|
string |
length ≤ 120
|
fulfillment_status
required
|
string |
one of not_authorized, local_ready, printed, recorded_local
|
id
required
|
string (uuid) |
|
patient_id
required
|
string (uuid) |
|
status
required
|
string |
one of draft, active, cancelled, stopped, completed
|
version
required
|
integer |
value ≥ 1
|
authored_by
|
string (uuid) |
|
created_at
|
string (date-time) |
|
prior_prescription_id
|
string or null |
|
relationship
|
string or null |
one of renewal, replacement, null
|
signed_at
|
string or null |
|
signed_by
|
string or null |
|
signed_snapshot
|
object or null |
Immutable local authorization snapshot; does not establish transmission or dispensing.
|
updated_at
|
string (date-time) |
|
updated_by
|
string (uuid) |
|
visit_id
|
string or null |
|
Example response placeholder values
{
"content": {
"controlled_substance": true,
"dose": "string",
"frequency": "string",
"indication": "string",
"instructions": "string",
"medication_name": "string",
"quantity": "string",
"quantity_unit": "string",
"refills": 0,
"route": "string",
"substitution_allowed": true
},
"fulfillment_status": "not_authorized",
"id": "00000000-0000-4000-8000-000000000000",
"patient_id": "00000000-0000-4000-8000-000000000000",
"status": "draft",
"version": 1,
"authored_by": "00000000-0000-4000-8000-000000000000",
"created_at": "2026-01-15T15:30:00Z"
}
-
400
Invalid or unsupported input
-
401
Authentication required or expired
-
403
Scope, role, Origin or patient access denied
-
404
Record not found in authenticated tenant/patient
-
409
Version, immutable-state or request identity conflict
-
500
Atomic operation or audit failed
Example call
curl -X POST "$EHR_URL/api/v1/patients/{patient}/prescriptions" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
readNativePrescription
GET
/api/v1/patients/{patient}/prescriptions/{id}
Staff; current local prescription and signed snapshot when authorized.
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
patient
required
|
path |
string (uuid) |
|
id
required
|
path |
string (uuid) |
|
Responses
-
200
Success
application/json
-
Fields NativePrescription · 34
| Field |
Type |
Details |
content
required
|
PrescriptionContent |
Positive decimal quantity as a string, numeric RxNorm code when supplied. Local authorization blocks all controlled substances. Optional dates must be ordered.
|
controlled_substance
required
|
boolean |
|
dose
required
|
string |
length ≤ 200
|
frequency
required
|
string |
length ≤ 200
|
indication
required
|
string |
length ≤ 1000
|
instructions
required
|
string |
length ≤ 4000
|
medication_name
required
|
string |
length ≤ 200
|
quantity
required
|
string |
pattern ^\d{1,7}(\.\d{1,3})?$
|
quantity_unit
required
|
string |
length ≤ 100
|
refills
required
|
integer |
value 0–99
|
route
required
|
string |
length ≤ 100
|
substitution_allowed
required
|
boolean |
|
days_supply
|
integer or null |
value 1–3660
|
dosage_form
|
string |
length ≤ 120
|
end_date
|
string or null |
|
pharmacy_id
|
string or null |
|
rxnorm_code
|
string |
length ≤ 20pattern ^[0-9]*$
|
start_date
|
string or null |
|
strength
|
string |
length ≤ 120
|
fulfillment_status
required
|
string |
one of not_authorized, local_ready, printed, recorded_local
|
id
required
|
string (uuid) |
|
patient_id
required
|
string (uuid) |
|
status
required
|
string |
one of draft, active, cancelled, stopped, completed
|
version
required
|
integer |
value ≥ 1
|
authored_by
|
string (uuid) |
|
created_at
|
string (date-time) |
|
prior_prescription_id
|
string or null |
|
relationship
|
string or null |
one of renewal, replacement, null
|
signed_at
|
string or null |
|
signed_by
|
string or null |
|
signed_snapshot
|
object or null |
Immutable local authorization snapshot; does not establish transmission or dispensing.
|
updated_at
|
string (date-time) |
|
updated_by
|
string (uuid) |
|
visit_id
|
string or null |
|
Example response placeholder values
{
"content": {
"controlled_substance": true,
"dose": "string",
"frequency": "string",
"indication": "string",
"instructions": "string",
"medication_name": "string",
"quantity": "string",
"quantity_unit": "string",
"refills": 0,
"route": "string",
"substitution_allowed": true
},
"fulfillment_status": "not_authorized",
"id": "00000000-0000-4000-8000-000000000000",
"patient_id": "00000000-0000-4000-8000-000000000000",
"status": "draft",
"version": 1,
"authored_by": "00000000-0000-4000-8000-000000000000",
"created_at": "2026-01-15T15:30:00Z"
}
-
400
Invalid or unsupported input
-
401
Authentication required or expired
-
403
Scope, role, Origin or patient access denied
-
404
Record not found in authenticated tenant/patient
-
409
Version, immutable-state or request identity conflict
-
500
Atomic operation or audit failed
Example call
curl "$EHR_URL/api/v1/patients/{patient}/prescriptions/{id}" -H "Authorization: Bearer $ACCESS_TOKEN"
#
updateNativePrescription
PUT
/api/v1/patients/{patient}/prescriptions/{id}
Draft preparation roles only; authorized content immutable. Provenance cannot change; request UUID replay bound to actor/content.
Access
OAuth 2.0 access tokenclinical.write
Parameters
| Name |
In |
Type |
Details |
patient
required
|
path |
string (uuid) |
|
id
required
|
path |
string (uuid) |
|
If-Match
required
|
header |
string |
Quoted current native version; portal initial account/publication uses "0". FHIR accepts W/"n" or "n"; native headers use "n". |
Request body
application/json · required
Fields PrescriptionDraft · 24
| Field |
Type |
Details |
content
required
|
PrescriptionContent |
Positive decimal quantity as a string, numeric RxNorm code when supplied. Local authorization blocks all controlled substances. Optional dates must be ordered.
|
controlled_substance
required
|
boolean |
|
dose
required
|
string |
length ≤ 200
|
frequency
required
|
string |
length ≤ 200
|
indication
required
|
string |
length ≤ 1000
|
instructions
required
|
string |
length ≤ 4000
|
medication_name
required
|
string |
length ≤ 200
|
quantity
required
|
string |
pattern ^\d{1,7}(\.\d{1,3})?$
|
quantity_unit
required
|
string |
length ≤ 100
|
refills
required
|
integer |
value 0–99
|
route
required
|
string |
length ≤ 100
|
substitution_allowed
required
|
boolean |
|
days_supply
|
integer or null |
value 1–3660
|
dosage_form
|
string |
length ≤ 120
|
end_date
|
string or null |
|
pharmacy_id
|
string or null |
|
rxnorm_code
|
string |
length ≤ 20pattern ^[0-9]*$
|
start_date
|
string or null |
|
strength
|
string |
length ≤ 120
|
reason
required
|
string |
length 1–1000
|
request_id
required
|
string (uuid) |
|
prior_prescription_id
|
string or null |
|
relationship
|
string or null |
one of renewal, replacement, null
|
visit_id
|
string or null |
|
Example request body placeholder values
{
"content": {
"controlled_substance": true,
"dose": "string",
"frequency": "string",
"indication": "string",
"instructions": "string",
"medication_name": "string",
"quantity": "string",
"quantity_unit": "string",
"refills": 0,
"route": "string",
"substitution_allowed": true
},
"reason": "string",
"request_id": "00000000-0000-4000-8000-000000000000",
"prior_prescription_id": "00000000-0000-4000-8000-000000000000",
"relationship": "renewal",
"visit_id": "00000000-0000-4000-8000-000000000000"
}
Responses
-
200
Success
application/json
-
Fields NativePrescription · 34
| Field |
Type |
Details |
content
required
|
PrescriptionContent |
Positive decimal quantity as a string, numeric RxNorm code when supplied. Local authorization blocks all controlled substances. Optional dates must be ordered.
|
controlled_substance
required
|
boolean |
|
dose
required
|
string |
length ≤ 200
|
frequency
required
|
string |
length ≤ 200
|
indication
required
|
string |
length ≤ 1000
|
instructions
required
|
string |
length ≤ 4000
|
medication_name
required
|
string |
length ≤ 200
|
quantity
required
|
string |
pattern ^\d{1,7}(\.\d{1,3})?$
|
quantity_unit
required
|
string |
length ≤ 100
|
refills
required
|
integer |
value 0–99
|
route
required
|
string |
length ≤ 100
|
substitution_allowed
required
|
boolean |
|
days_supply
|
integer or null |
value 1–3660
|
dosage_form
|
string |
length ≤ 120
|
end_date
|
string or null |
|
pharmacy_id
|
string or null |
|
rxnorm_code
|
string |
length ≤ 20pattern ^[0-9]*$
|
start_date
|
string or null |
|
strength
|
string |
length ≤ 120
|
fulfillment_status
required
|
string |
one of not_authorized, local_ready, printed, recorded_local
|
id
required
|
string (uuid) |
|
patient_id
required
|
string (uuid) |
|
status
required
|
string |
one of draft, active, cancelled, stopped, completed
|
version
required
|
integer |
value ≥ 1
|
authored_by
|
string (uuid) |
|
created_at
|
string (date-time) |
|
prior_prescription_id
|
string or null |
|
relationship
|
string or null |
one of renewal, replacement, null
|
signed_at
|
string or null |
|
signed_by
|
string or null |
|
signed_snapshot
|
object or null |
Immutable local authorization snapshot; does not establish transmission or dispensing.
|
updated_at
|
string (date-time) |
|
updated_by
|
string (uuid) |
|
visit_id
|
string or null |
|
Example response placeholder values
{
"content": {
"controlled_substance": true,
"dose": "string",
"frequency": "string",
"indication": "string",
"instructions": "string",
"medication_name": "string",
"quantity": "string",
"quantity_unit": "string",
"refills": 0,
"route": "string",
"substitution_allowed": true
},
"fulfillment_status": "not_authorized",
"id": "00000000-0000-4000-8000-000000000000",
"patient_id": "00000000-0000-4000-8000-000000000000",
"status": "draft",
"version": 1,
"authored_by": "00000000-0000-4000-8000-000000000000",
"created_at": "2026-01-15T15:30:00Z"
}
-
400
Invalid or unsupported input
-
401
Authentication required or expired
-
403
Scope, role, Origin or patient access denied
-
404
Record not found in authenticated tenant/patient
-
409
Version, immutable-state or request identity conflict
-
428
Current If-Match required
-
500
Atomic operation or audit failed
Example call
curl -X PUT "$EHR_URL/api/v1/patients/{patient}/prescriptions/{id}" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
actOnNativePrescription
POST
/api/v1/patients/{patient}/prescriptions/{id}/actions/{action}
Owner/clinician authorize, cancel, stop or complete; authorization requires fresh review_token and attest=true. record_print/fulfill_local require rooming authority and record local evidence only. No electronic transmission or dispensing claim. Renewal/replacement creates a new draft through POST /prescriptions with prior_prescription_id and relationship; these are not action path values.
Access
OAuth 2.0 access tokenclinical.write
Parameters
| Name |
In |
Type |
Details |
patient
required
|
path |
string (uuid) |
|
id
required
|
path |
string (uuid) |
|
action
required
|
path |
string |
|
If-Match
required
|
header |
string |
Quoted current native version; portal initial account/publication uses "0". FHIR accepts W/"n" or "n"; native headers use "n". |
Request body
application/json · required
Fields PrescriptionAction · 4
| Field |
Type |
Details |
reason
required
|
string |
length 1–1000
|
request_id
required
|
string (uuid) |
|
attest
|
boolean |
default false
|
review_token
|
string or null |
|
Example request body placeholder values
{
"reason": "string",
"request_id": "00000000-0000-4000-8000-000000000000",
"attest": false,
"review_token": "string"
}
Responses
-
200
Success
application/json
-
Fields NativePrescription · 34
| Field |
Type |
Details |
content
required
|
PrescriptionContent |
Positive decimal quantity as a string, numeric RxNorm code when supplied. Local authorization blocks all controlled substances. Optional dates must be ordered.
|
controlled_substance
required
|
boolean |
|
dose
required
|
string |
length ≤ 200
|
frequency
required
|
string |
length ≤ 200
|
indication
required
|
string |
length ≤ 1000
|
instructions
required
|
string |
length ≤ 4000
|
medication_name
required
|
string |
length ≤ 200
|
quantity
required
|
string |
pattern ^\d{1,7}(\.\d{1,3})?$
|
quantity_unit
required
|
string |
length ≤ 100
|
refills
required
|
integer |
value 0–99
|
route
required
|
string |
length ≤ 100
|
substitution_allowed
required
|
boolean |
|
days_supply
|
integer or null |
value 1–3660
|
dosage_form
|
string |
length ≤ 120
|
end_date
|
string or null |
|
pharmacy_id
|
string or null |
|
rxnorm_code
|
string |
length ≤ 20pattern ^[0-9]*$
|
start_date
|
string or null |
|
strength
|
string |
length ≤ 120
|
fulfillment_status
required
|
string |
one of not_authorized, local_ready, printed, recorded_local
|
id
required
|
string (uuid) |
|
patient_id
required
|
string (uuid) |
|
status
required
|
string |
one of draft, active, cancelled, stopped, completed
|
version
required
|
integer |
value ≥ 1
|
authored_by
|
string (uuid) |
|
created_at
|
string (date-time) |
|
prior_prescription_id
|
string or null |
|
relationship
|
string or null |
one of renewal, replacement, null
|
signed_at
|
string or null |
|
signed_by
|
string or null |
|
signed_snapshot
|
object or null |
Immutable local authorization snapshot; does not establish transmission or dispensing.
|
updated_at
|
string (date-time) |
|
updated_by
|
string (uuid) |
|
visit_id
|
string or null |
|
Example response placeholder values
{
"content": {
"controlled_substance": true,
"dose": "string",
"frequency": "string",
"indication": "string",
"instructions": "string",
"medication_name": "string",
"quantity": "string",
"quantity_unit": "string",
"refills": 0,
"route": "string",
"substitution_allowed": true
},
"fulfillment_status": "not_authorized",
"id": "00000000-0000-4000-8000-000000000000",
"patient_id": "00000000-0000-4000-8000-000000000000",
"status": "draft",
"version": 1,
"authored_by": "00000000-0000-4000-8000-000000000000",
"created_at": "2026-01-15T15:30:00Z"
}
-
400
Invalid or unsupported input
-
401
Authentication required or expired
-
403
Scope, role, Origin or patient access denied
-
404
Record not found in authenticated tenant/patient
-
409
Version, immutable-state or request identity conflict
-
428
Current If-Match required
-
500
Atomic operation or audit failed
Example call
curl -X POST "$EHR_URL/api/v1/patients/{patient}/prescriptions/{id}/actions/{action}" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
nativePrescriptionHistory
GET
/api/v1/patients/{patient}/prescriptions/{id}/history
Staff; immutable attributed versions, limit 100 and truncated flag.
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
patient
required
|
path |
string (uuid) |
|
id
required
|
path |
string (uuid) |
|
Responses
-
200
Success
application/json
-
Body: object
-
400
Invalid or unsupported input
-
401
Authentication required or expired
-
403
Scope, role, Origin or patient access denied
-
404
Record not found in authenticated tenant/patient
-
409
Version, immutable-state or request identity conflict
-
500
Atomic operation or audit failed
Example call
curl "$EHR_URL/api/v1/patients/{patient}/prescriptions/{id}/history" -H "Authorization: Bearer $ACCESS_TOKEN"
#
printNativePrescription
GET
/api/v1/patients/{patient}/prescriptions/{id}/print
Staff; authorized local record only. Draft returns 409. Rendering does not record printing or dispensing.
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
patient
required
|
path |
string (uuid) |
|
id
required
|
path |
string (uuid) |
|
Responses
-
200
Success
text/html
-
Body: string
Example response placeholder values
"string"
-
400
Invalid or unsupported input
-
401
Authentication required or expired
-
403
Scope, role, Origin or patient access denied
-
404
Record not found in authenticated tenant/patient
-
409
Version, immutable-state or request identity conflict
-
500
Atomic operation or audit failed
Example call
curl "$EHR_URL/api/v1/patients/{patient}/prescriptions/{id}/print" -H "Authorization: Bearer $ACCESS_TOKEN"
#
prescribingCapabilities
GET
/api/v1/prescribing/capabilities
Staff-only truthful capability boundary: local medication orders; network eRx and controlled-substance authorization are unavailable.
Access
OAuth 2.0 access tokenclinical.read
Responses
-
200
Success
application/json
-
Body: object
-
400
Invalid or unsupported input
-
401
Authentication required or expired
-
403
Scope, role, Origin or patient access denied
-
404
Record not found in authenticated tenant/patient
-
409
Version, immutable-state or request identity conflict
-
500
Atomic operation or audit failed
Example call
curl "$EHR_URL/api/v1/prescribing/capabilities" -H "Authorization: Bearer $ACCESS_TOKEN"
#
listPrescribingPharmacies
GET
/api/v1/prescribing/pharmacies
Staff; at most 200 records with truncated flag.
Access
OAuth 2.0 access tokenclinical.read
Responses
-
200
Success
application/json
-
Fields PrescribingPharmacyPage · 15
| Field |
Type |
Details |
items
required
|
array of PrescribingPharmacy |
items ≤ 200
|
active
required
|
boolean |
|
content
required
|
PharmacyContent |
|
address
required
|
string |
length 1–1000
|
name
required
|
string |
length 1–200
|
phone
required
|
string |
length 1–40
|
ncpdp_id
|
string |
pattern ^(\d{7})?$
|
npi
|
string |
pattern ^(\d{10})?$
|
id
required
|
string (uuid) |
|
version
required
|
integer |
value ≥ 1
|
created_at
|
string (date-time) |
|
created_by
|
string (uuid) |
|
updated_at
|
string (date-time) |
|
updated_by
|
string (uuid) |
|
truncated
required
|
boolean |
|
Example response placeholder values
{
"items": [
{
"active": true,
"content": {
"address": "string",
"name": "string",
"phone": "string",
"ncpdp_id": "string",
"npi": "string"
},
"id": "00000000-0000-4000-8000-000000000000",
"version": 1,
"created_at": "2026-01-15T15:30:00Z",
"created_by": "00000000-0000-4000-8000-000000000000",
"updated_at": "2026-01-15T15:30:00Z",
"updated_by": "00000000-0000-4000-8000-000000000000"
}
],
"truncated": true
}
-
400
Invalid or unsupported input
-
401
Authentication required or expired
-
403
Scope, role, Origin or patient access denied
-
404
Record not found in authenticated tenant/patient
-
409
Version, immutable-state or request identity conflict
-
500
Atomic operation or audit failed
Example call
curl "$EHR_URL/api/v1/prescribing/pharmacies" -H "Authorization: Bearer $ACCESS_TOKEN"
#
createPrescribingPharmacy
POST
/api/v1/prescribing/pharmacies
Owner/clinician/nurse/medical assistant/front desk; request UUID replay is actor- and content-bound.
Access
OAuth 2.0 access tokenclinical.write
Request body
application/json · required
Fields PharmacyChange · 9
| Field |
Type |
Details |
active
required
|
boolean |
|
content
required
|
PharmacyContent |
|
address
required
|
string |
length 1–1000
|
name
required
|
string |
length 1–200
|
phone
required
|
string |
length 1–40
|
ncpdp_id
|
string |
pattern ^(\d{7})?$
|
npi
|
string |
pattern ^(\d{10})?$
|
reason
required
|
string |
length 1–1000
|
request_id
required
|
string (uuid) |
|
Example request body placeholder values
{
"active": true,
"content": {
"address": "string",
"name": "string",
"phone": "string",
"ncpdp_id": "string",
"npi": "string"
},
"reason": "string",
"request_id": "00000000-0000-4000-8000-000000000000"
}
Responses
-
200
Success
application/json
-
Fields PrescribingPharmacy · 13
| Field |
Type |
Details |
active
required
|
boolean |
|
content
required
|
PharmacyContent |
|
address
required
|
string |
length 1–1000
|
name
required
|
string |
length 1–200
|
phone
required
|
string |
length 1–40
|
ncpdp_id
|
string |
pattern ^(\d{7})?$
|
npi
|
string |
pattern ^(\d{10})?$
|
id
required
|
string (uuid) |
|
version
required
|
integer |
value ≥ 1
|
created_at
|
string (date-time) |
|
created_by
|
string (uuid) |
|
updated_at
|
string (date-time) |
|
updated_by
|
string (uuid) |
|
Example response placeholder values
{
"active": true,
"content": {
"address": "string",
"name": "string",
"phone": "string",
"ncpdp_id": "string",
"npi": "string"
},
"id": "00000000-0000-4000-8000-000000000000",
"version": 1,
"created_at": "2026-01-15T15:30:00Z",
"created_by": "00000000-0000-4000-8000-000000000000",
"updated_at": "2026-01-15T15:30:00Z",
"updated_by": "00000000-0000-4000-8000-000000000000"
}
-
400
Invalid or unsupported input
-
401
Authentication required or expired
-
403
Scope, role, Origin or patient access denied
-
404
Record not found in authenticated tenant/patient
-
409
Version, immutable-state or request identity conflict
-
500
Atomic operation or audit failed
Example call
curl -X POST "$EHR_URL/api/v1/prescribing/pharmacies" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
readPrescribingPharmacy
GET
/api/v1/prescribing/pharmacies/{id}
Staff; tenant-scoped directory record.
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
Responses
-
200
Success
application/json
-
Fields PrescribingPharmacy · 13
| Field |
Type |
Details |
active
required
|
boolean |
|
content
required
|
PharmacyContent |
|
address
required
|
string |
length 1–1000
|
name
required
|
string |
length 1–200
|
phone
required
|
string |
length 1–40
|
ncpdp_id
|
string |
pattern ^(\d{7})?$
|
npi
|
string |
pattern ^(\d{10})?$
|
id
required
|
string (uuid) |
|
version
required
|
integer |
value ≥ 1
|
created_at
|
string (date-time) |
|
created_by
|
string (uuid) |
|
updated_at
|
string (date-time) |
|
updated_by
|
string (uuid) |
|
Example response placeholder values
{
"active": true,
"content": {
"address": "string",
"name": "string",
"phone": "string",
"ncpdp_id": "string",
"npi": "string"
},
"id": "00000000-0000-4000-8000-000000000000",
"version": 1,
"created_at": "2026-01-15T15:30:00Z",
"created_by": "00000000-0000-4000-8000-000000000000",
"updated_at": "2026-01-15T15:30:00Z",
"updated_by": "00000000-0000-4000-8000-000000000000"
}
-
400
Invalid or unsupported input
-
401
Authentication required or expired
-
403
Scope, role, Origin or patient access denied
-
404
Record not found in authenticated tenant/patient
-
409
Version, immutable-state or request identity conflict
-
500
Atomic operation or audit failed
Example call
curl "$EHR_URL/api/v1/prescribing/pharmacies/{id}" -H "Authorization: Bearer $ACCESS_TOKEN"
#
updatePrescribingPharmacy
PUT
/api/v1/prescribing/pharmacies/{id}
Directory roles; actor-bound request replay and version check.
Access
OAuth 2.0 access tokenclinical.write
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
If-Match
required
|
header |
string |
Quoted current native version; portal initial account/publication uses "0". FHIR accepts W/"n" or "n"; native headers use "n". |
Request body
application/json · required
Fields PharmacyChange · 9
| Field |
Type |
Details |
active
required
|
boolean |
|
content
required
|
PharmacyContent |
|
address
required
|
string |
length 1–1000
|
name
required
|
string |
length 1–200
|
phone
required
|
string |
length 1–40
|
ncpdp_id
|
string |
pattern ^(\d{7})?$
|
npi
|
string |
pattern ^(\d{10})?$
|
reason
required
|
string |
length 1–1000
|
request_id
required
|
string (uuid) |
|
Example request body placeholder values
{
"active": true,
"content": {
"address": "string",
"name": "string",
"phone": "string",
"ncpdp_id": "string",
"npi": "string"
},
"reason": "string",
"request_id": "00000000-0000-4000-8000-000000000000"
}
Responses
-
200
Success
application/json
-
Fields PrescribingPharmacy · 13
| Field |
Type |
Details |
active
required
|
boolean |
|
content
required
|
PharmacyContent |
|
address
required
|
string |
length 1–1000
|
name
required
|
string |
length 1–200
|
phone
required
|
string |
length 1–40
|
ncpdp_id
|
string |
pattern ^(\d{7})?$
|
npi
|
string |
pattern ^(\d{10})?$
|
id
required
|
string (uuid) |
|
version
required
|
integer |
value ≥ 1
|
created_at
|
string (date-time) |
|
created_by
|
string (uuid) |
|
updated_at
|
string (date-time) |
|
updated_by
|
string (uuid) |
|
Example response placeholder values
{
"active": true,
"content": {
"address": "string",
"name": "string",
"phone": "string",
"ncpdp_id": "string",
"npi": "string"
},
"id": "00000000-0000-4000-8000-000000000000",
"version": 1,
"created_at": "2026-01-15T15:30:00Z",
"created_by": "00000000-0000-4000-8000-000000000000",
"updated_at": "2026-01-15T15:30:00Z",
"updated_by": "00000000-0000-4000-8000-000000000000"
}
-
400
Invalid or unsupported input
-
401
Authentication required or expired
-
403
Scope, role, Origin or patient access denied
-
404
Record not found in authenticated tenant/patient
-
409
Version, immutable-state or request identity conflict
-
428
Current If-Match required
-
500
Atomic operation or audit failed
Example call
curl -X PUT "$EHR_URL/api/v1/prescribing/pharmacies/{id}" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
No endpoint matches that filter.