#
Search native AllergyIntolerance
GET
/fhir/AllergyIntolerance
Bounded current native projection, not US Core/SMART/profile conformance. Staff clinical.read; patient roles denied. UUID keyset paging preserves patient filters. Unsupported/repeated parameters return OperationOutcome. MedicationStatement is recorded medication use, not a prescription.
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
_id
|
query |
string (uuid) |
|
patient
|
query |
string |
|
_count
|
query |
integer |
|
_after
|
query |
string (uuid) |
|
Responses
-
200
Success
application/fhir+json
-
Body: object
-
400
Invalid request
-
401
Authentication required
-
403
Scope or role denied
-
404
Not found
application/fhir+json
-
Body: object
-
409
Conflicting state
Example call
curl "$EHR_URL/fhir/AllergyIntolerance" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Create AllergyIntolerance
POST
/fhir/AllergyIntolerance
Owner/clinician and clinical.write required. Ordinary POST creates a new entry and is not replay-safe; conditional and idempotency headers are rejected. PUT updates only an existing resource, requires matching id/version and nonblank X-Change-Reason, and uses the native revision/audit transaction. Unsupported fields fail.
Access
OAuth 2.0 access tokenclinical.write
Request body
application/fhir+json · required
Fields WritableFhirAllergyIntolerance · 29
| Field |
Type |
Details |
code
required
|
FhirWriteConcept |
|
text
required
|
string |
length 1–200
|
coding
|
array of FhirWriteCoding |
items 0–20
|
code
required
|
string |
length 1–120
|
system
required
|
string |
length 1–200
|
display
|
string |
length ≤ 200
|
patient
required
|
FhirWriteReference |
|
reference
required
|
string |
pattern ^Patient/[0-9a-fA-F-]{36}$
|
resourceType
required
|
constant |
always AllergyIntolerance
|
verificationStatus
required
|
object |
|
coding
required
|
array of object |
items 1–1
|
code
required
|
string |
one of unconfirmed, confirmed, refuted, entered-in-error
|
system
required
|
constant |
always http://terminology.hl7.org/CodeSystem/allergyintolerance-verification
|
category
|
array of string |
items 1–1
|
clinicalStatus
|
object |
|
coding
required
|
array of object |
items 1–1
|
code
required
|
string |
one of active, inactive, resolved
|
system
required
|
constant |
always http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical
|
criticality
|
string |
one of low, high, unable-to-assess
|
id
|
string (uuid) |
|
meta
|
FhirWriteMeta |
|
versionId
|
string |
pattern ^[1-9][0-9]*$
|
note
|
array of FhirWriteText |
items 1–1
|
text
required
|
string |
|
onsetDateTime
|
string (date) |
|
reaction
|
array of object |
items 1–1
|
manifestation
required
|
array of FhirWriteText |
items 1–1
|
text
required
|
string |
|
severity
|
string |
one of mild, moderate, severe
|
Example request body placeholder values
{
"code": {
"text": "string",
"coding": [
{
"code": "string",
"system": "string",
"display": "string"
}
]
},
"patient": {
"reference": "string"
},
"resourceType": "AllergyIntolerance",
"verificationStatus": {
"coding": [
{
"code": "unconfirmed",
"system": "http://terminology.hl7.org/CodeSystem/allergyintolerance-verification"
}
]
},
"category": [
"food"
],
"clinicalStatus": {
"coding": [
{
"code": "active",
"system": "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical"
}
]
},
"criticality": "low",
"id": "00000000-0000-4000-8000-000000000000"
}
Responses
-
201
Success
application/fhir+json
-
Body: object
-
400
Invalid or unsupported input
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
401
Authentication required or expired
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
403
Scope, role, Origin or patient access denied
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
404
Record not found in authenticated tenant/patient
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
409
Version, immutable-state or request identity conflict
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
500
Atomic operation or audit failed
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
Example call
curl -X POST "$EHR_URL/fhir/AllergyIntolerance" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
Read native AllergyIntolerance
GET
/fhir/AllergyIntolerance/{id}
Tenant-scoped bounded current resource projection. No history or write operation. Missing/malformed IDs return FHIR404 OperationOutcome.
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
Responses
-
200
Success
application/fhir+json
-
Body: object
-
400
Invalid request
-
401
Authentication required
-
403
Scope or role denied
-
404
Resource not found
application/fhir+json
-
Body: object
-
409
Conflicting state
Example call
curl "$EHR_URL/fhir/AllergyIntolerance/{id}" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Correct AllergyIntolerance
PUT
/fhir/AllergyIntolerance/{id}
Owner/clinician and clinical.write required. Ordinary POST creates a new entry and is not replay-safe; conditional and idempotency headers are rejected. PUT updates only an existing resource, requires matching id/version and nonblank X-Change-Reason, and uses the native revision/audit transaction. Unsupported fields fail.
Access
OAuth 2.0 access tokenclinical.write
Parameters
| Name |
In |
Type |
Details |
id
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". |
X-Change-Reason
required
|
header |
string |
|
Request body
application/fhir+json · required
Fields WritableFhirAllergyIntolerance · 29
| Field |
Type |
Details |
code
required
|
FhirWriteConcept |
|
text
required
|
string |
length 1–200
|
coding
|
array of FhirWriteCoding |
items 0–20
|
code
required
|
string |
length 1–120
|
system
required
|
string |
length 1–200
|
display
|
string |
length ≤ 200
|
patient
required
|
FhirWriteReference |
|
reference
required
|
string |
pattern ^Patient/[0-9a-fA-F-]{36}$
|
resourceType
required
|
constant |
always AllergyIntolerance
|
verificationStatus
required
|
object |
|
coding
required
|
array of object |
items 1–1
|
code
required
|
string |
one of unconfirmed, confirmed, refuted, entered-in-error
|
system
required
|
constant |
always http://terminology.hl7.org/CodeSystem/allergyintolerance-verification
|
category
|
array of string |
items 1–1
|
clinicalStatus
|
object |
|
coding
required
|
array of object |
items 1–1
|
code
required
|
string |
one of active, inactive, resolved
|
system
required
|
constant |
always http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical
|
criticality
|
string |
one of low, high, unable-to-assess
|
id
|
string (uuid) |
|
meta
|
FhirWriteMeta |
|
versionId
|
string |
pattern ^[1-9][0-9]*$
|
note
|
array of FhirWriteText |
items 1–1
|
text
required
|
string |
|
onsetDateTime
|
string (date) |
|
reaction
|
array of object |
items 1–1
|
manifestation
required
|
array of FhirWriteText |
items 1–1
|
text
required
|
string |
|
severity
|
string |
one of mild, moderate, severe
|
Example request body placeholder values
{
"code": {
"text": "string",
"coding": [
{
"code": "string",
"system": "string",
"display": "string"
}
]
},
"patient": {
"reference": "string"
},
"resourceType": "AllergyIntolerance",
"verificationStatus": {
"coding": [
{
"code": "unconfirmed",
"system": "http://terminology.hl7.org/CodeSystem/allergyintolerance-verification"
}
]
},
"category": [
"food"
],
"clinicalStatus": {
"coding": [
{
"code": "active",
"system": "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical"
}
]
},
"criticality": "low",
"id": "00000000-0000-4000-8000-000000000000"
}
Responses
-
200
Success
application/fhir+json
-
Body: object
-
400
Invalid or unsupported input
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
401
Authentication required or expired
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
403
Scope, role, Origin or patient access denied
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
404
Record not found in authenticated tenant/patient
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
409
Version, immutable-state or request identity conflict
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
412
Stale resource version
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
428
Current If-Match required
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
500
Atomic operation or audit failed
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
Example call
curl -X PUT "$EHR_URL/fhir/AllergyIntolerance/{id}" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
Search native Appointment
GET
/fhir/Appointment
Bounded staff-only read/search projection. No US Core, SMART or full conformance claim.
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
_id
|
query |
string (uuid) |
|
patient
|
query |
string |
|
_count
|
query |
integer |
|
_after
|
query |
string (uuid) |
|
Responses
-
200
Success
application/fhir+json
-
Body: object
-
400
Invalid request
-
401
Authentication required
-
403
Scope or role denied
-
404
Not found
application/fhir+json
-
Body: object
-
409
Conflicting state
Example call
curl "$EHR_URL/fhir/Appointment" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Read native Appointment
GET
/fhir/Appointment/{id}
Bounded staff-only read/search projection. No US Core, SMART or full conformance claim.
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
Responses
-
200
Success
application/fhir+json
-
Body: object
-
400
Invalid request
-
401
Authentication required
-
403
Scope or role denied
-
404
Resource not found
application/fhir+json
-
Body: object
-
409
Conflicting state
Example call
curl "$EHR_URL/fhir/Appointment/{id}" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Read immutable patient document original
GET
/fhir/Binary/{id}
Staff clinical.read only. JSON Binary with base64 data and DocumentReference securityContext by default; Accept matching original MIME returns exact original bytes. Binary search and writes are unsupported. no-store, nosniff and attachment disposition. No patient-role access.
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
Accept
|
header |
string |
application/fhir+json or application/json for resource JSON; application/pdf, image/png or image/jpeg only when matching the stored original. |
Responses
-
200
Success
application/fhir+json
-
Body: object
-
400
Invalid or unsupported input
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
401
Authentication required or expired
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
403
Scope, role, Origin or patient access denied
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
404
Record not found in authenticated tenant/patient
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
406
No acceptable supported representation
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
409
Version, immutable-state or request identity conflict
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
500
Atomic operation or audit failed
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
503
File storage is temporarily unavailable; nothing was changed. Retry shortly.
Example call
curl "$EHR_URL/fhir/Binary/{id}" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Search native Condition
GET
/fhir/Condition
Bounded current native projection, not US Core/SMART/profile conformance. Staff clinical.read; patient roles denied. UUID keyset paging preserves patient filters. Unsupported/repeated parameters return OperationOutcome. MedicationStatement is recorded medication use, not a prescription.
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
_id
|
query |
string (uuid) |
|
patient
|
query |
string |
|
_count
|
query |
integer |
|
_after
|
query |
string (uuid) |
|
Responses
-
200
Success
application/fhir+json
-
Body: object
-
400
Invalid request
-
401
Authentication required
-
403
Scope or role denied
-
404
Not found
application/fhir+json
-
Body: object
-
409
Conflicting state
Example call
curl "$EHR_URL/fhir/Condition" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Create Condition
POST
/fhir/Condition
Owner/clinician and clinical.write required. Ordinary POST creates a new entry and is not replay-safe; conditional and idempotency headers are rejected. PUT updates only an existing resource, requires matching id/version and nonblank X-Change-Reason, and uses the native revision/audit transaction. Unsupported fields fail.
Access
OAuth 2.0 access tokenclinical.write
Request body
application/fhir+json · required
Fields WritableFhirCondition · 28
| Field |
Type |
Details |
code
required
|
FhirWriteConcept |
|
text
required
|
string |
length 1–200
|
coding
|
array of FhirWriteCoding |
items 0–20
|
code
required
|
string |
length 1–120
|
system
required
|
string |
length 1–200
|
display
|
string |
length ≤ 200
|
resourceType
required
|
constant |
always Condition
|
subject
required
|
FhirWriteReference |
|
reference
required
|
string |
pattern ^Patient/[0-9a-fA-F-]{36}$
|
verificationStatus
required
|
object |
|
coding
required
|
array of object |
items 1–1
|
code
required
|
string |
one of unconfirmed, confirmed, refuted, entered-in-error
|
system
required
|
constant |
always http://terminology.hl7.org/CodeSystem/condition-ver-status
|
abatementDateTime
|
string (date) |
|
category
|
array of object |
items 1–1
|
coding
required
|
array of object |
items 1–1
|
code
required
|
string |
one of problem-list-item, encounter-diagnosis
|
system
required
|
constant |
always http://terminology.hl7.org/CodeSystem/condition-category
|
clinicalStatus
|
object |
|
coding
required
|
array of object |
items 1–1
|
code
required
|
string |
one of active, inactive, resolved, recurrence, remission
|
system
required
|
constant |
always http://terminology.hl7.org/CodeSystem/condition-clinical
|
id
|
string (uuid) |
|
meta
|
FhirWriteMeta |
|
versionId
|
string |
pattern ^[1-9][0-9]*$
|
note
|
array of FhirWriteText |
items 1–1
|
text
required
|
string |
|
onsetDateTime
|
string (date) |
|
Example request body placeholder values
{
"code": {
"text": "string",
"coding": [
{
"code": "string",
"system": "string",
"display": "string"
}
]
},
"resourceType": "Condition",
"subject": {
"reference": "string"
},
"verificationStatus": {
"coding": [
{
"code": "unconfirmed",
"system": "http://terminology.hl7.org/CodeSystem/condition-ver-status"
}
]
},
"abatementDateTime": "2026-01-15",
"category": [
{
"coding": [
{
"code": "problem-list-item",
"system": "http://terminology.hl7.org/CodeSystem/condition-category"
}
]
}
],
"clinicalStatus": {
"coding": [
{
"code": "active",
"system": "http://terminology.hl7.org/CodeSystem/condition-clinical"
}
]
},
"id": "00000000-0000-4000-8000-000000000000"
}
Responses
-
201
Success
application/fhir+json
-
Body: object
-
400
Invalid or unsupported input
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
401
Authentication required or expired
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
403
Scope, role, Origin or patient access denied
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
404
Record not found in authenticated tenant/patient
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
409
Version, immutable-state or request identity conflict
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
500
Atomic operation or audit failed
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
Example call
curl -X POST "$EHR_URL/fhir/Condition" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
Read native Condition
GET
/fhir/Condition/{id}
Tenant-scoped bounded current resource projection. No history or write operation. Missing/malformed IDs return FHIR404 OperationOutcome.
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
Responses
-
200
Success
application/fhir+json
-
Body: object
-
400
Invalid request
-
401
Authentication required
-
403
Scope or role denied
-
404
Resource not found
application/fhir+json
-
Body: object
-
409
Conflicting state
Example call
curl "$EHR_URL/fhir/Condition/{id}" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Correct Condition
PUT
/fhir/Condition/{id}
Owner/clinician and clinical.write required. Ordinary POST creates a new entry and is not replay-safe; conditional and idempotency headers are rejected. PUT updates only an existing resource, requires matching id/version and nonblank X-Change-Reason, and uses the native revision/audit transaction. Unsupported fields fail.
Access
OAuth 2.0 access tokenclinical.write
Parameters
| Name |
In |
Type |
Details |
id
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". |
X-Change-Reason
required
|
header |
string |
|
Request body
application/fhir+json · required
Fields WritableFhirCondition · 28
| Field |
Type |
Details |
code
required
|
FhirWriteConcept |
|
text
required
|
string |
length 1–200
|
coding
|
array of FhirWriteCoding |
items 0–20
|
code
required
|
string |
length 1–120
|
system
required
|
string |
length 1–200
|
display
|
string |
length ≤ 200
|
resourceType
required
|
constant |
always Condition
|
subject
required
|
FhirWriteReference |
|
reference
required
|
string |
pattern ^Patient/[0-9a-fA-F-]{36}$
|
verificationStatus
required
|
object |
|
coding
required
|
array of object |
items 1–1
|
code
required
|
string |
one of unconfirmed, confirmed, refuted, entered-in-error
|
system
required
|
constant |
always http://terminology.hl7.org/CodeSystem/condition-ver-status
|
abatementDateTime
|
string (date) |
|
category
|
array of object |
items 1–1
|
coding
required
|
array of object |
items 1–1
|
code
required
|
string |
one of problem-list-item, encounter-diagnosis
|
system
required
|
constant |
always http://terminology.hl7.org/CodeSystem/condition-category
|
clinicalStatus
|
object |
|
coding
required
|
array of object |
items 1–1
|
code
required
|
string |
one of active, inactive, resolved, recurrence, remission
|
system
required
|
constant |
always http://terminology.hl7.org/CodeSystem/condition-clinical
|
id
|
string (uuid) |
|
meta
|
FhirWriteMeta |
|
versionId
|
string |
pattern ^[1-9][0-9]*$
|
note
|
array of FhirWriteText |
items 1–1
|
text
required
|
string |
|
onsetDateTime
|
string (date) |
|
Example request body placeholder values
{
"code": {
"text": "string",
"coding": [
{
"code": "string",
"system": "string",
"display": "string"
}
]
},
"resourceType": "Condition",
"subject": {
"reference": "string"
},
"verificationStatus": {
"coding": [
{
"code": "unconfirmed",
"system": "http://terminology.hl7.org/CodeSystem/condition-ver-status"
}
]
},
"abatementDateTime": "2026-01-15",
"category": [
{
"coding": [
{
"code": "problem-list-item",
"system": "http://terminology.hl7.org/CodeSystem/condition-category"
}
]
}
],
"clinicalStatus": {
"coding": [
{
"code": "active",
"system": "http://terminology.hl7.org/CodeSystem/condition-clinical"
}
]
},
"id": "00000000-0000-4000-8000-000000000000"
}
Responses
-
200
Success
application/fhir+json
-
Body: object
-
400
Invalid or unsupported input
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
401
Authentication required or expired
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
403
Scope, role, Origin or patient access denied
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
404
Record not found in authenticated tenant/patient
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
409
Version, immutable-state or request identity conflict
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
412
Stale resource version
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
428
Current If-Match required
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
500
Atomic operation or audit failed
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
Example call
curl -X PUT "$EHR_URL/fhir/Condition/{id}" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
Search native Coverage
GET
/fhir/Coverage
Bounded staff-only read/search projection. No US Core, SMART or full conformance claim. Billing read scope required.
Access
OAuth 2.0 access tokenbilling.read
Parameters
| Name |
In |
Type |
Details |
_id
|
query |
string (uuid) |
|
patient
|
query |
string |
|
_count
|
query |
integer |
|
_after
|
query |
string (uuid) |
|
Responses
-
200
Success
application/fhir+json
-
Body: object
-
400
Invalid request
-
401
Authentication required
-
403
Scope or role denied
-
404
Not found
application/fhir+json
-
Body: object
-
409
Conflicting state
Example call
curl "$EHR_URL/fhir/Coverage" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Read native Coverage
GET
/fhir/Coverage/{id}
Bounded staff-only read/search projection. No US Core, SMART or full conformance claim. Billing read scope required.
Access
OAuth 2.0 access tokenbilling.read
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
Responses
-
200
Success
application/fhir+json
-
Body: object
-
400
Invalid request
-
401
Authentication required
-
403
Scope or role denied
-
404
Resource not found
application/fhir+json
-
Body: object
-
409
Conflicting state
Example call
curl "$EHR_URL/fhir/Coverage/{id}" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Search native DiagnosticReport
GET
/fhir/DiagnosticReport
Read-only tenant-scoped native orders/results projection. Strict bounded search; no external delivery or conformance claim.
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
_id
|
query |
string (uuid) |
|
patient
|
query |
string |
|
_count
|
query |
integer |
|
_after
|
query |
string (uuid) |
|
Responses
-
200
Success
application/fhir+json
-
Body: object
-
400
Invalid request
-
401
Authentication required
-
403
Scope or role denied
-
404
Not found
application/fhir+json
-
Body: object
-
409
Conflicting state
Example call
curl "$EHR_URL/fhir/DiagnosticReport" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Read native DiagnosticReport
GET
/fhir/DiagnosticReport/{id}
Read-only tenant-scoped native orders/results projection. Strict bounded search; no external delivery or conformance claim.
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
Responses
-
200
Success
application/fhir+json
-
Body: object
-
400
Invalid request
-
401
Authentication required
-
403
Scope or role denied
-
404
Resource not found
application/fhir+json
-
Body: object
-
409
Conflicting state
Example call
curl "$EHR_URL/fhir/DiagnosticReport/{id}" -H "Authorization: Bearer $ACCESS_TOKEN"
#
DocumentReference search
GET
/fhir/DocumentReference
Staff clinical.read only; patient-role tokens denied. Native immutable document originals and metadata.
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
_id
|
query |
string |
|
patient
|
query |
string |
|
_after
|
query |
string |
|
_count
|
query |
integer |
|
Responses
-
200
Success
application/fhir+json
-
Body: object
-
400
Invalid or unsupported input
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
401
Authentication required or expired
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
403
Scope, role, Origin or patient access denied
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
404
Record not found in authenticated tenant/patient
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
409
Version, immutable-state or request identity conflict
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
500
Atomic operation or audit failed
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
Example call
curl "$EHR_URL/fhir/DocumentReference" -H "Authorization: Bearer $ACCESS_TOKEN"
#
DocumentReference read
GET
/fhir/DocumentReference/{id}
Staff clinical.read only; patient-role tokens denied. Native immutable document originals and metadata.
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
Responses
-
200
Success
application/fhir+json
-
Body: object
-
400
Invalid or unsupported input
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
401
Authentication required or expired
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
403
Scope, role, Origin or patient access denied
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
404
Record not found in authenticated tenant/patient
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
409
Version, immutable-state or request identity conflict
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
500
Atomic operation or audit failed
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
Example call
curl "$EHR_URL/fhir/DocumentReference/{id}" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Search native Encounter
GET
/fhir/Encounter
Bounded read-only current native projection, not US Core/SMART/profile conformance. Staff clinical.read; patient roles denied. UUID keyset paging preserves patient filters. Unsupported/repeated parameters return OperationOutcome. MedicationStatement is recorded medication use, not a prescription.
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
_id
|
query |
string (uuid) |
|
patient
|
query |
string |
|
_count
|
query |
integer |
|
_after
|
query |
string (uuid) |
|
Responses
-
200
Success
application/fhir+json
-
Body: object
-
400
Invalid request
-
401
Authentication required
-
403
Scope or role denied
-
404
Not found
application/fhir+json
-
Body: object
-
409
Conflicting state
Example call
curl "$EHR_URL/fhir/Encounter" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Read native Encounter
GET
/fhir/Encounter/{id}
Tenant-scoped bounded current resource projection. No history or write operation. Missing/malformed IDs return FHIR404 OperationOutcome.
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
Responses
-
200
Success
application/fhir+json
-
Body: object
-
400
Invalid request
-
401
Authentication required
-
403
Scope or role denied
-
404
Resource not found
application/fhir+json
-
Body: object
-
409
Conflicting state
Example call
curl "$EHR_URL/fhir/Encounter/{id}" -H "Authorization: Bearer $ACCESS_TOKEN"
#
fhirImmunizationSearch
GET
/fhir/Immunization
Staff clinical.read only. Native event projection; exact date matches UTC day for timestamps and excludes historical occurrence strings. No patient-role access. Unsupported/repeated filters fail. Empty Bundle omits entry.
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
_id
|
query |
string (uuid) |
|
patient
|
query |
string |
|
status
|
query |
string |
|
date
|
query |
string (date) |
|
_after
|
query |
string (uuid) |
|
_count
|
query |
integer |
|
Responses
-
200
Success
application/fhir+json
-
Body: object
-
400
Invalid/unsupported content or context
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
401
Authentication required
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
403
Scope or role denied
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
404
Record not found in authenticated tenant/patient
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
409
Version, request identity or immutable-state conflict
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
500
Atomic write/audit failed
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
Example call
curl "$EHR_URL/fhir/Immunization" -H "Authorization: Bearer $ACCESS_TOKEN"
#
createFhirImmunization
POST
/fhir/Immunization
Owner/clinician/nurse clinical.write only. Bounded explicit native provenance and source; ordinary POST creates a new record and is not replay-safe. No forecasting, terminology validation or registry transmission.
Access
OAuth 2.0 access tokenclinical.write
Request body
application/fhir+json · required
Fields WritableFhirImmunization · 43
| Field |
Type |
Details |
extension
required
|
array of object |
items 1–1
|
url
required
|
string |
Exact installation origin + /StructureDefinition/immunization-record-type
|
valueCode
required
|
string |
one of administered, historical, not_given
|
patient
required
|
FhirWriteReference |
|
reference
required
|
string |
pattern ^Patient/[0-9a-fA-F-]{36}$
|
primarySource
required
|
boolean |
|
resourceType
required
|
constant |
always Immunization
|
status
required
|
string |
one of completed, not-done
|
vaccineCode
required
|
object |
|
text
required
|
string |
length 1–200
|
coding
|
array of FhirWriteCoding |
items ≤ 1
|
code
required
|
string |
length 1–120
|
system
required
|
string |
length 1–200
|
display
|
string |
length ≤ 200
|
doseQuantity
|
object |
|
unit
required
|
string |
length 1–80
|
value
required
|
number |
value ≤ 9999999.999
|
encounter
|
object |
|
reference
required
|
string |
pattern ^Encounter/[0-9a-fA-F-]{36}$
|
expirationDate
|
string (date) |
|
id
|
string (uuid) |
|
lotNumber
|
string |
length ≤ 100
|
manufacturer
|
object |
|
display
required
|
string |
length ≤ 200
|
meta
|
FhirWriteMeta |
|
versionId
|
string |
pattern ^[1-9][0-9]*$
|
note
|
array of FhirWriteText |
items 1–1
|
text
required
|
string |
|
occurrenceDateTime
|
string |
Exact YYYY-MM-DD date or full RFC3339 timestamp with offset. Administered requires full timestamp.
|
occurrenceString
|
string |
Historical only; no date is inferred from this text.
length 1–200
|
performer
|
array of object |
items 1–1
|
actor
required
|
object |
|
identifier
required
|
object |
|
system
required
|
string |
Exact installation origin + /identifier/staff
|
value
required
|
string (uuid) |
|
reportOrigin
|
FhirWriteText |
|
text
required
|
string |
|
route
|
FhirWriteText |
|
text
required
|
string |
|
site
|
FhirWriteText |
|
text
required
|
string |
|
statusReason
|
FhirWriteText |
|
text
required
|
string |
|
Example request body placeholder values
{
"extension": [
{
"url": "string",
"valueCode": "administered"
}
],
"patient": {
"reference": "string"
},
"primarySource": true,
"resourceType": "Immunization",
"status": "completed",
"vaccineCode": {
"text": "string",
"coding": [
{
"code": "string",
"system": "string",
"display": "string"
}
]
},
"doseQuantity": {
"unit": "string",
"value": 1
},
"encounter": {
"reference": "string"
}
}
Responses
-
201
Success
application/fhir+json
-
Body: object
-
400
Invalid/unsupported content or context
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
401
Authentication required
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
403
Scope or role denied
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
404
Record not found in authenticated tenant/patient
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
409
Version, request identity or immutable-state conflict
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
500
Atomic write/audit failed
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
Example call
curl -X POST "$EHR_URL/fhir/Immunization" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
fhirImmunizationRead
GET
/fhir/Immunization/{id}
Staff clinical.read only; immutable revisions remain native, no FHIR vread endpoint.
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
Responses
-
200
Success
application/fhir+json
-
Body: object
-
400
Invalid/unsupported content or context
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
401
Authentication required
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
403
Scope or role denied
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
404
Record not found in authenticated tenant/patient
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
409
Version, request identity or immutable-state conflict
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
500
Atomic write/audit failed
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
Example call
curl "$EHR_URL/fhir/Immunization/{id}" -H "Authorization: Bearer $ACCESS_TOKEN"
#
correctFhirImmunization
PUT
/fhir/Immunization/{id}
Owner/clinician/nurse clinical.write. Uses native correction boundary; record type/status cannot change. Entered-in-error uses native reviewed action. Unsupported fields fail rather than being discarded.
Access
OAuth 2.0 access tokenclinical.write
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
If-Match
required
|
header |
string |
Quoted current version; FHIR also accepts W/"n". |
X-Change-Reason
required
|
header |
string |
|
Request body
application/fhir+json · required
Fields WritableFhirImmunization · 43
| Field |
Type |
Details |
extension
required
|
array of object |
items 1–1
|
url
required
|
string |
Exact installation origin + /StructureDefinition/immunization-record-type
|
valueCode
required
|
string |
one of administered, historical, not_given
|
patient
required
|
FhirWriteReference |
|
reference
required
|
string |
pattern ^Patient/[0-9a-fA-F-]{36}$
|
primarySource
required
|
boolean |
|
resourceType
required
|
constant |
always Immunization
|
status
required
|
string |
one of completed, not-done
|
vaccineCode
required
|
object |
|
text
required
|
string |
length 1–200
|
coding
|
array of FhirWriteCoding |
items ≤ 1
|
code
required
|
string |
length 1–120
|
system
required
|
string |
length 1–200
|
display
|
string |
length ≤ 200
|
doseQuantity
|
object |
|
unit
required
|
string |
length 1–80
|
value
required
|
number |
value ≤ 9999999.999
|
encounter
|
object |
|
reference
required
|
string |
pattern ^Encounter/[0-9a-fA-F-]{36}$
|
expirationDate
|
string (date) |
|
id
|
string (uuid) |
|
lotNumber
|
string |
length ≤ 100
|
manufacturer
|
object |
|
display
required
|
string |
length ≤ 200
|
meta
|
FhirWriteMeta |
|
versionId
|
string |
pattern ^[1-9][0-9]*$
|
note
|
array of FhirWriteText |
items 1–1
|
text
required
|
string |
|
occurrenceDateTime
|
string |
Exact YYYY-MM-DD date or full RFC3339 timestamp with offset. Administered requires full timestamp.
|
occurrenceString
|
string |
Historical only; no date is inferred from this text.
length 1–200
|
performer
|
array of object |
items 1–1
|
actor
required
|
object |
|
identifier
required
|
object |
|
system
required
|
string |
Exact installation origin + /identifier/staff
|
value
required
|
string (uuid) |
|
reportOrigin
|
FhirWriteText |
|
text
required
|
string |
|
route
|
FhirWriteText |
|
text
required
|
string |
|
site
|
FhirWriteText |
|
text
required
|
string |
|
statusReason
|
FhirWriteText |
|
text
required
|
string |
|
Example request body placeholder values
{
"extension": [
{
"url": "string",
"valueCode": "administered"
}
],
"patient": {
"reference": "string"
},
"primarySource": true,
"resourceType": "Immunization",
"status": "completed",
"vaccineCode": {
"text": "string",
"coding": [
{
"code": "string",
"system": "string",
"display": "string"
}
]
},
"doseQuantity": {
"unit": "string",
"value": 1
},
"encounter": {
"reference": "string"
}
}
Responses
-
200
Success
application/fhir+json
-
Body: object
-
400
Invalid/unsupported content or context
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
401
Authentication required
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
403
Scope or role denied
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
404
Record not found in authenticated tenant/patient
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
409
Version, request identity or immutable-state conflict
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
412
Stale Immunization version
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
428
Current If-Match required
-
500
Atomic write/audit failed
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
Example call
curl -X PUT "$EHR_URL/fhir/Immunization/{id}" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
Search native Location
GET
/fhir/Location
Bounded staff-only read/search projection. No US Core, SMART or full conformance claim.
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
_id
|
query |
string (uuid) |
|
_count
|
query |
integer |
|
_after
|
query |
string (uuid) |
|
name
|
query |
string |
|
status
|
query |
string |
|
Responses
-
200
Success
application/fhir+json
-
Body: object
-
400
Invalid request
-
401
Authentication required
-
403
Scope or role denied
-
404
Not found
application/fhir+json
-
Body: object
-
409
Conflicting state
Example call
curl "$EHR_URL/fhir/Location" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Read native Location
GET
/fhir/Location/{id}
Bounded staff-only read/search projection. No US Core, SMART or full conformance claim.
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
Responses
-
200
Success
application/fhir+json
-
Body: object
-
400
Invalid request
-
401
Authentication required
-
403
Scope or role denied
-
404
Resource not found
application/fhir+json
-
Body: object
-
409
Conflicting state
Example call
curl "$EHR_URL/fhir/Location/{id}" -H "Authorization: Bearer $ACCESS_TOKEN"
#
MedicationRequest search
GET
/fhir/MedicationRequest
Staff clinical.read only; native_prescriptions projection only. Draft/active/cancelled/stopped/completed retain local status. No MedicationStatement inference, pharmacy transmission, acceptance or dispensing asserted.
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
_id
|
query |
string |
|
patient
|
query |
string |
|
_after
|
query |
string |
|
_count
|
query |
integer |
|
Responses
-
200
Success
application/fhir+json
-
Body: object
-
400
Invalid or unsupported input
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
401
Authentication required or expired
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
403
Scope, role, Origin or patient access denied
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
404
Record not found in authenticated tenant/patient
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
409
Version, immutable-state or request identity conflict
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
500
Atomic operation or audit failed
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
Example call
curl "$EHR_URL/fhir/MedicationRequest" -H "Authorization: Bearer $ACCESS_TOKEN"
#
MedicationRequest read
GET
/fhir/MedicationRequest/{id}
Staff clinical.read only; native_prescriptions projection only. Draft/active/cancelled/stopped/completed retain local status. No MedicationStatement inference, pharmacy transmission, acceptance or dispensing asserted.
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
Responses
-
200
Success
application/fhir+json
-
Body: object
-
400
Invalid or unsupported input
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
401
Authentication required or expired
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
403
Scope, role, Origin or patient access denied
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
404
Record not found in authenticated tenant/patient
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
409
Version, immutable-state or request identity conflict
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
500
Atomic operation or audit failed
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
Example call
curl "$EHR_URL/fhir/MedicationRequest/{id}" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Search native MedicationStatement
GET
/fhir/MedicationStatement
Bounded current native projection, not US Core/SMART/profile conformance. Staff clinical.read; patient roles denied. UUID keyset paging preserves patient filters. Unsupported/repeated parameters return OperationOutcome. MedicationStatement is recorded medication use, not a prescription.
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
_id
|
query |
string (uuid) |
|
patient
|
query |
string |
|
_count
|
query |
integer |
|
_after
|
query |
string (uuid) |
|
Responses
-
200
Success
application/fhir+json
-
Body: object
-
400
Invalid request
-
401
Authentication required
-
403
Scope or role denied
-
404
Not found
application/fhir+json
-
Body: object
-
409
Conflicting state
Example call
curl "$EHR_URL/fhir/MedicationStatement" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Create MedicationStatement
POST
/fhir/MedicationStatement
Owner/clinician and clinical.write required. Ordinary POST creates a new entry and is not replay-safe; conditional and idempotency headers are rejected. PUT updates only an existing resource, requires matching id/version and nonblank X-Change-Reason, and uses the native revision/audit transaction. Unsupported fields fail. Recorded use only, never prescribing. Existing native verification and structured dose/route/frequency are preserved; editing structured dosage requires the native medication workflow.
Access
OAuth 2.0 access tokenclinical.write
Request body
application/fhir+json · required
Fields WritableFhirMedicationStatement · 20
| Field |
Type |
Details |
medicationCodeableConcept
required
|
FhirWriteConcept |
|
text
required
|
string |
length 1–200
|
coding
|
array of FhirWriteCoding |
items 0–20
|
code
required
|
string |
length 1–120
|
system
required
|
string |
length 1–200
|
display
|
string |
length ≤ 200
|
resourceType
required
|
constant |
always MedicationStatement
|
status
required
|
string |
one of active, on-hold, stopped, completed, not-taken, intended, entered-in-error
|
subject
required
|
FhirWriteReference |
|
reference
required
|
string |
pattern ^Patient/[0-9a-fA-F-]{36}$
|
dosage
|
array of FhirWriteText |
items 1–1
|
text
required
|
string |
|
effectivePeriod
|
object |
|
end
|
string (date) |
|
start
|
string (date) |
|
id
|
string (uuid) |
|
meta
|
FhirWriteMeta |
|
versionId
|
string |
pattern ^[1-9][0-9]*$
|
note
|
array of FhirWriteText |
items 1–1
|
text
required
|
string |
|
Example request body placeholder values
{
"medicationCodeableConcept": {
"text": "string",
"coding": [
{
"code": "string",
"system": "string",
"display": "string"
}
]
},
"resourceType": "MedicationStatement",
"status": "active",
"subject": {
"reference": "string"
},
"dosage": [
{
"text": "string"
}
],
"effectivePeriod": {
"end": "2026-01-15",
"start": "2026-01-15"
},
"id": "00000000-0000-4000-8000-000000000000",
"meta": {
"versionId": "string"
}
}
Responses
-
201
Success
application/fhir+json
-
Body: object
-
400
Invalid or unsupported input
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
401
Authentication required or expired
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
403
Scope, role, Origin or patient access denied
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
404
Record not found in authenticated tenant/patient
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
409
Version, immutable-state or request identity conflict
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
500
Atomic operation or audit failed
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
Example call
curl -X POST "$EHR_URL/fhir/MedicationStatement" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
Read native MedicationStatement
GET
/fhir/MedicationStatement/{id}
Tenant-scoped bounded current resource projection. No history or write operation. Missing/malformed IDs return FHIR404 OperationOutcome.
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
Responses
-
200
Success
application/fhir+json
-
Body: object
-
400
Invalid request
-
401
Authentication required
-
403
Scope or role denied
-
404
Resource not found
application/fhir+json
-
Body: object
-
409
Conflicting state
Example call
curl "$EHR_URL/fhir/MedicationStatement/{id}" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Correct MedicationStatement
PUT
/fhir/MedicationStatement/{id}
Owner/clinician and clinical.write required. Ordinary POST creates a new entry and is not replay-safe; conditional and idempotency headers are rejected. PUT updates only an existing resource, requires matching id/version and nonblank X-Change-Reason, and uses the native revision/audit transaction. Unsupported fields fail. Recorded use only, never prescribing. Existing native verification and structured dose/route/frequency are preserved; editing structured dosage requires the native medication workflow.
Access
OAuth 2.0 access tokenclinical.write
Parameters
| Name |
In |
Type |
Details |
id
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". |
X-Change-Reason
required
|
header |
string |
|
Request body
application/fhir+json · required
Fields WritableFhirMedicationStatement · 20
| Field |
Type |
Details |
medicationCodeableConcept
required
|
FhirWriteConcept |
|
text
required
|
string |
length 1–200
|
coding
|
array of FhirWriteCoding |
items 0–20
|
code
required
|
string |
length 1–120
|
system
required
|
string |
length 1–200
|
display
|
string |
length ≤ 200
|
resourceType
required
|
constant |
always MedicationStatement
|
status
required
|
string |
one of active, on-hold, stopped, completed, not-taken, intended, entered-in-error
|
subject
required
|
FhirWriteReference |
|
reference
required
|
string |
pattern ^Patient/[0-9a-fA-F-]{36}$
|
dosage
|
array of FhirWriteText |
items 1–1
|
text
required
|
string |
|
effectivePeriod
|
object |
|
end
|
string (date) |
|
start
|
string (date) |
|
id
|
string (uuid) |
|
meta
|
FhirWriteMeta |
|
versionId
|
string |
pattern ^[1-9][0-9]*$
|
note
|
array of FhirWriteText |
items 1–1
|
text
required
|
string |
|
Example request body placeholder values
{
"medicationCodeableConcept": {
"text": "string",
"coding": [
{
"code": "string",
"system": "string",
"display": "string"
}
]
},
"resourceType": "MedicationStatement",
"status": "active",
"subject": {
"reference": "string"
},
"dosage": [
{
"text": "string"
}
],
"effectivePeriod": {
"end": "2026-01-15",
"start": "2026-01-15"
},
"id": "00000000-0000-4000-8000-000000000000",
"meta": {
"versionId": "string"
}
}
Responses
-
200
Success
application/fhir+json
-
Body: object
-
400
Invalid or unsupported input
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
401
Authentication required or expired
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
403
Scope, role, Origin or patient access denied
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
404
Record not found in authenticated tenant/patient
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
409
Version, immutable-state or request identity conflict
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
412
Stale resource version
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
428
Current If-Match required
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
500
Atomic operation or audit failed
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
Example call
curl -X PUT "$EHR_URL/fhir/MedicationStatement/{id}" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
Search native Observation
GET
/fhir/Observation
Read/search native vitals plus individual laboratory observations. Search returns current report revisions only; version-qualified laboratory Observation IDs resolve immutable report snapshots. No measurement collection time is invented from report publication time.
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
_id
|
query |
string |
|
patient
|
query |
string |
|
_count
|
query |
integer |
|
_after
|
query |
string |
|
Responses
-
200
Success
application/fhir+json
-
Body: object
-
400
Invalid request
-
401
Authentication required
-
403
Scope or role denied
-
404
Not found
application/fhir+json
-
Body: object
-
409
Conflicting state
Example call
curl "$EHR_URL/fhir/Observation" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Read native Observation
GET
/fhir/Observation/{id}
Read/search native vitals plus individual laboratory observations. Search returns current report revisions only; version-qualified laboratory Observation IDs resolve immutable report snapshots. No measurement collection time is invented from report publication time.
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string |
|
Responses
-
200
Success
application/fhir+json
-
Body: object
-
400
Invalid request
-
401
Authentication required
-
403
Scope or role denied
-
404
Resource not found
application/fhir+json
-
Body: object
-
409
Conflicting state
Example call
curl "$EHR_URL/fhir/Observation/{id}" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Fhir patient search
GET
/fhir/Patient
Searchset Bundle with next link. name is case-insensitive given/family prefix; identifier MRN with optional installation system; birthdate exact ISO date. _after is a custom UUID keyset cursor. Rejects unsupported/repeated parameters.
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
_id
|
query |
string |
|
name
|
query |
string |
|
identifier
|
query |
string |
|
birthdate
|
query |
string |
|
_after
|
query |
string |
|
_count
|
query |
integer |
|
Responses
-
200
Success
application/fhir+json
-
Body: object
-
400
Invalid request
-
401
Authentication required
-
403
Scope or role denied
-
409
Conflicting state
Example call
curl "$EHR_URL/fhir/Patient" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Create registration identity through FHIR
POST
/fhir/Patient
Register a native patient from the supported FHIR Patient subset. Omit identifier; the server assigns and returns the MRN. Caller-supplied identifiers are rejected.
Access
OAuth 2.0 access tokenclinical.write
Request body
application/json · required
Fields NewFhirPatient · 6
| Field |
Type |
Details |
birthDate
required
|
string (date) |
|
name
required
|
array of object |
items 1–1
|
family
required
|
string |
length 1–100
|
given
required
|
array of string |
items 1–1
|
use
|
constant |
always official
|
resourceType
required
|
constant |
always Patient
|
Example request body placeholder values
{
"birthDate": "2026-01-15",
"name": [
{
"family": "string",
"given": [
"string"
],
"use": "official"
}
],
"resourceType": "Patient"
}
Responses
-
201
Success
application/fhir+json
-
Body: object
-
400
Invalid input
-
401
Authentication required
-
403
Role or scope denied
-
404
Record not found in tenant
-
409
Stale version or invalid state
-
500
Atomic operation failed
Example call
curl -X POST "$EHR_URL/fhir/Patient" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
Fhir patient read
GET
/fhir/Patient/{id}
Read-only native patient demographics. FHIR OperationOutcome errors; tenant scoped.
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
Responses
-
200
Success
application/fhir+json
-
Body: object
-
400
Invalid request
-
401
Authentication required
-
403
Scope or role denied
-
409
Conflicting state
Example call
curl "$EHR_URL/fhir/Patient/{id}" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Update existing registration identity through FHIR
PUT
/fhir/Patient/{id}
Versioned native identity correction. Supply exactly one unchanged existing MRN identifier; registered names and birth date may change. MRN reassignment is rejected and prior identity revisions are retained.
Access
OAuth 2.0 access tokenclinical.write
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
If-Match
required
|
header |
string |
WeakFHIR W/"n" or quoted identity version; missing428/stale412. |
X-Change-Reason
required
|
header |
string |
|
Request body
application/json · required
Fields WritableFhirPatient · 17
| Field |
Type |
Details |
birthDate
required
|
string (date) |
|
identifier
required
|
array of object |
items 1–1
|
value
required
|
string |
length 1–64
|
system
|
string |
|
type
|
object |
|
coding
required
|
array of object |
items 1–1
|
code
required
|
constant |
always MR
|
system
required
|
constant |
always http://terminology.hl7.org/CodeSystem/v2-0203
|
use
|
string |
one of usual, official
|
name
required
|
array of object |
items 1–1
|
family
required
|
string |
length 1–100
|
given
required
|
array of string |
items 1–1
|
use
|
constant |
always official
|
resourceType
required
|
constant |
always Patient
|
id
|
string (uuid) |
|
meta
|
object |
|
versionId
|
string |
|
Example request body placeholder values
{
"birthDate": "2026-01-15",
"identifier": [
{
"value": "string",
"system": "string",
"type": {
"coding": []
},
"use": "usual"
}
],
"name": [
{
"family": "string",
"given": [
"string"
],
"use": "official"
}
],
"resourceType": "Patient",
"id": "00000000-0000-4000-8000-000000000000",
"meta": {
"versionId": "string"
}
}
Responses
-
200
Success
application/fhir+json
-
Body: object
-
400
Invalid input
-
401
Authentication required
-
403
Role or scope denied
-
404
Record not found in tenant
-
409
Stale version or invalid state
-
412
FHIR identity version changed
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
428
Current version required
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
500
Atomic operation failed
Example call
curl -X PUT "$EHR_URL/fhir/Patient/{id}" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
Search native Practitioner
GET
/fhir/Practitioner
Bounded staff-only read/search projection. No US Core, SMART or full conformance claim.
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
_id
|
query |
string (uuid) |
|
_count
|
query |
integer |
|
_after
|
query |
string (uuid) |
|
name
|
query |
string |
|
active
|
query |
string |
|
Responses
-
200
Success
application/fhir+json
-
Body: object
-
400
Invalid request
-
401
Authentication required
-
403
Scope or role denied
-
404
Not found
application/fhir+json
-
Body: object
-
409
Conflicting state
Example call
curl "$EHR_URL/fhir/Practitioner" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Read native Practitioner
GET
/fhir/Practitioner/{id}
Bounded staff-only read/search projection. No US Core, SMART or full conformance claim.
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
Responses
-
200
Success
application/fhir+json
-
Body: object
-
400
Invalid request
-
401
Authentication required
-
403
Scope or role denied
-
404
Resource not found
application/fhir+json
-
Body: object
-
409
Conflicting state
Example call
curl "$EHR_URL/fhir/Practitioner/{id}" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Search native ServiceRequest
GET
/fhir/ServiceRequest
Read-only tenant-scoped native orders/results projection. Strict bounded search; no external delivery or conformance claim.
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
_id
|
query |
string (uuid) |
|
patient
|
query |
string |
|
_count
|
query |
integer |
|
_after
|
query |
string (uuid) |
|
Responses
-
200
Success
application/fhir+json
-
Body: object
-
400
Invalid request
-
401
Authentication required
-
403
Scope or role denied
-
404
Not found
application/fhir+json
-
Body: object
-
409
Conflicting state
Example call
curl "$EHR_URL/fhir/ServiceRequest" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Create ServiceRequest
POST
/fhir/ServiceRequest
Owner/clinician and clinical.write required. Ordinary POST creates a new entry and is not replay-safe; conditional and idempotency headers are rejected. PUT updates only an existing resource, requires matching id/version and nonblank X-Change-Reason, and uses the native revision/audit transaction. Unsupported fields fail. Only one-test draft with intent=order; placed orders are immutable. Multi-test editing, placement and external execution use native workflows.
Access
OAuth 2.0 access tokenclinical.write
Request body
application/fhir+json · required
Fields WritableFhirServiceRequest · 25
| Field |
Type |
Details |
category
required
|
array of FhirWriteText |
items 1–1
|
text
required
|
string |
|
code
required
|
object |
|
text
required
|
string |
length 1–200
|
coding
|
array of FhirWriteCoding |
items 0–1
|
code
required
|
string |
length 1–120
|
system
required
|
string |
length 1–200
|
display
|
string |
length ≤ 200
|
intent
required
|
constant |
always order
|
performer
required
|
array of object |
items 1–1
|
display
required
|
string |
length 1–200
|
priority
required
|
string |
one of routine, urgent, stat
|
reasonCode
required
|
array of FhirWriteText |
items 1–1
|
text
required
|
string |
|
resourceType
required
|
constant |
always ServiceRequest
|
status
required
|
constant |
always draft
|
subject
required
|
FhirWriteReference |
|
reference
required
|
string |
pattern ^Patient/[0-9a-fA-F-]{36}$
|
encounter
|
object |
|
reference
required
|
string |
pattern ^Encounter/[0-9a-fA-F-]{36}$
|
id
|
string (uuid) |
|
meta
|
FhirWriteMeta |
|
versionId
|
string |
pattern ^[1-9][0-9]*$
|
note
|
array of FhirWriteText |
items 1–1
|
text
required
|
string |
|
Example request body placeholder values
{
"category": [
{
"text": "string"
}
],
"code": {
"text": "string",
"coding": [
{
"code": "string",
"system": "string",
"display": "string"
}
]
},
"intent": "order",
"performer": [
{
"display": "string"
}
],
"priority": "routine",
"reasonCode": [
{
"text": "string"
}
],
"resourceType": "ServiceRequest",
"status": "draft",
"subject": {
"reference": "string"
}
}
Responses
-
201
Success
application/fhir+json
-
Body: object
-
400
Invalid or unsupported input
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
401
Authentication required or expired
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
403
Scope, role, Origin or patient access denied
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
404
Record not found in authenticated tenant/patient
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
409
Version, immutable-state or request identity conflict
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
500
Atomic operation or audit failed
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
Example call
curl -X POST "$EHR_URL/fhir/ServiceRequest" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
Read native ServiceRequest
GET
/fhir/ServiceRequest/{id}
Read-only tenant-scoped native orders/results projection. Strict bounded search; no external delivery or conformance claim.
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
Responses
-
200
Success
application/fhir+json
-
Body: object
-
400
Invalid request
-
401
Authentication required
-
403
Scope or role denied
-
404
Resource not found
application/fhir+json
-
Body: object
-
409
Conflicting state
Example call
curl "$EHR_URL/fhir/ServiceRequest/{id}" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Correct ServiceRequest
PUT
/fhir/ServiceRequest/{id}
Owner/clinician and clinical.write required. Ordinary POST creates a new entry and is not replay-safe; conditional and idempotency headers are rejected. PUT updates only an existing resource, requires matching id/version and nonblank X-Change-Reason, and uses the native revision/audit transaction. Unsupported fields fail. Only one-test draft with intent=order; placed orders are immutable. Multi-test editing, placement and external execution use native workflows.
Access
OAuth 2.0 access tokenclinical.write
Parameters
| Name |
In |
Type |
Details |
id
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". |
X-Change-Reason
required
|
header |
string |
|
Request body
application/fhir+json · required
Fields WritableFhirServiceRequest · 25
| Field |
Type |
Details |
category
required
|
array of FhirWriteText |
items 1–1
|
text
required
|
string |
|
code
required
|
object |
|
text
required
|
string |
length 1–200
|
coding
|
array of FhirWriteCoding |
items 0–1
|
code
required
|
string |
length 1–120
|
system
required
|
string |
length 1–200
|
display
|
string |
length ≤ 200
|
intent
required
|
constant |
always order
|
performer
required
|
array of object |
items 1–1
|
display
required
|
string |
length 1–200
|
priority
required
|
string |
one of routine, urgent, stat
|
reasonCode
required
|
array of FhirWriteText |
items 1–1
|
text
required
|
string |
|
resourceType
required
|
constant |
always ServiceRequest
|
status
required
|
constant |
always draft
|
subject
required
|
FhirWriteReference |
|
reference
required
|
string |
pattern ^Patient/[0-9a-fA-F-]{36}$
|
encounter
|
object |
|
reference
required
|
string |
pattern ^Encounter/[0-9a-fA-F-]{36}$
|
id
|
string (uuid) |
|
meta
|
FhirWriteMeta |
|
versionId
|
string |
pattern ^[1-9][0-9]*$
|
note
|
array of FhirWriteText |
items 1–1
|
text
required
|
string |
|
Example request body placeholder values
{
"category": [
{
"text": "string"
}
],
"code": {
"text": "string",
"coding": [
{
"code": "string",
"system": "string",
"display": "string"
}
]
},
"intent": "order",
"performer": [
{
"display": "string"
}
],
"priority": "routine",
"reasonCode": [
{
"text": "string"
}
],
"resourceType": "ServiceRequest",
"status": "draft",
"subject": {
"reference": "string"
}
}
Responses
-
200
Success
application/fhir+json
-
Body: object
-
400
Invalid or unsupported input
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
401
Authentication required or expired
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
403
Scope, role, Origin or patient access denied
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
404
Record not found in authenticated tenant/patient
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
409
Version, immutable-state or request identity conflict
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
412
Stale resource version
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
428
Current If-Match required
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
-
500
Atomic operation or audit failed
application/fhir+json
-
Fields FhirOperationOutcome · 2
| Field |
Type |
Details |
issue
required
|
array of object |
items ≥ 1
|
resourceType
required
|
constant |
always OperationOutcome
|
Example call
curl -X PUT "$EHR_URL/fhir/ServiceRequest/{id}" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
Search native Specimen
GET
/fhir/Specimen
Read-only tenant-scoped native orders/results projection. Strict bounded search; no external delivery or conformance claim.
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
_id
|
query |
string (uuid) |
|
patient
|
query |
string |
|
_count
|
query |
integer |
|
_after
|
query |
string (uuid) |
|
Responses
-
200
Success
application/fhir+json
-
Body: object
-
400
Invalid request
-
401
Authentication required
-
403
Scope or role denied
-
404
Not found
application/fhir+json
-
Body: object
-
409
Conflicting state
Example call
curl "$EHR_URL/fhir/Specimen" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Read native Specimen
GET
/fhir/Specimen/{id}
Read-only tenant-scoped native orders/results projection. Strict bounded search; no external delivery or conformance claim.
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
Responses
-
200
Success
application/fhir+json
-
Body: object
-
400
Invalid request
-
401
Authentication required
-
403
Scope or role denied
-
404
Resource not found
application/fhir+json
-
Body: object
-
409
Conflicting state
Example call
curl "$EHR_URL/fhir/Specimen/{id}" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Fhir capabilities
GET
/fhir/metadata
Draft instance-level FHIR R4 4.0.1 CapabilityStatement for 17 bounded native projections. Read/search is implemented for the advertised resources (Binary is read-only); bounded create/update is implemented only for Patient, Condition, AllergyIntolerance, MedicationStatement, ServiceRequest and Immunization. No general HL7 v2, US Core, SMART App Launch, Bulk Data or certification assertion.
Access
No credential
Responses
-
200
Success
application/fhir+json
-
Body: object
-
400
Invalid request
-
401
Authentication required
-
403
Scope or role denied
-
409
Conflicting state
Example call
curl -X GET "$EHR_URL/fhir/metadata"
No endpoint matches that filter.