eReferral Implementation Guide, published by Riziv-Inami Platform. This guide is not an authorized publication; it is the continuous build for version 2.0.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/hl7-be/referral-uhmep/ and changes regularly. See the Directory of published versions
This page describes the read and search operations used to retrieve medical documents and their workflow tasks.
| Item | Value |
|---|---|
| Business operation | Consult a medical document (prescription or proposal) |
| Endpoints | GET /ServiceRequest/{referenceId} |
| Successful response | ServiceRequest |
GET /ServiceRequest/{referenceId}
Authorization: Bearer <exchanged_ehealth_token>
User-Agent: MyCompany/myProduct/1.0
From: support@example.org
| Item | Value |
|---|---|
| Business operation | Search medical documents |
| Endpoints | POST /ServiceRequest/_search |
| Successful response | Bundle |
Use application/x-www-form-urlencoded for search criteria.
POST /ServiceRequest/_search
Content-Type: application/x-www-form-urlencoded
Search filters are submitted as application/x-www-form-urlencoded key-value pairs in POST /ServiceRequest/_search.
| Filter | Purpose | Status |
|---|---|---|
patient |
Filter by patient pseudonym in transit for the eReferral domain. | Active |
status |
Filter by FHIR ServiceRequest.status; translate from business status first. |
Active |
statusReason |
Filter by additional prescription status information. | Active |
_has:Task:focus:status with _profile |
Filter by summary execution/referral-task status. | Active |
requester |
Filter by prescriber. Organization-scoped requester references use PractitionerRole/{SSIN}-{DISCIPLINE}-NIHII-{nihii11Organization}. |
Active |
_has:Task:focus:owner |
Filter by assigned caregiver or assigned organization. | Active |
code |
Filter by template code using {system}|{code}. |
To be replaced by category with system=https://www.ehealth.fgov.be/standards/fhir/terminology/CodeSystem/be-cs-prescription-type |
intent |
Separate prescriptions (order) from proposals (proposal). |
Active |
_count |
Page size. Default and maximum are currently 25. Higher values return an invalid-count error. | Active |
_offset |
Zero-based result offset. Defaults to 0. | Active |
POST /ServiceRequest/_search
Content-Type: application/x-www-form-urlencoded
patient=urn%3Abe%3Afgov%3Apseudo%3Av2%3A%7BSEC1%7D%3A%7BtransitInfo%7D&status=active&_count=25&_offset=0
POST /ServiceRequest/_search
Content-Type: application/x-www-form-urlencoded
identifier={shortCode}&patient=urn%3Abe%3Afgov%3Apseudo%3Av2%3A%7BSEC1%7D%3A%7BtransitInfo%7D
| Item | Value |
|---|---|
| Business operation | Consult tasks linked to a medical document |
| Endpoints | GET /Task?focus={ServiceRequestID} |
| Successful response | Bundle |
To limit the task type, add _profile.
GET /Task?focus={ServiceRequestID}&_profile=Profile/be-referral-task
Other supported task profile filters include:
GET /Task?focus={ServiceRequestID}&_profile=Profile/be-performer-task
| Item | Value |
|---|---|
| Business operation | Consult a medical document and all attached resources |
| Endpoints | GET /ServiceRequest/{id}/$graph?graph={GraphDefinitionURI} |
| URI | https://www.ehealth.fgov.be/standards/fhir/referral/GraphDefinition/full-referral-prescription |
| Successful response | Bundle |
This is useful when the client needs the ServiceRequest, related tasks, practitioner roles, practitioners and organizations in a single response.
Prescriber, Caregiver, Patient, Organization.
referenceId must exist in eReferral.O/o with 0 to prevent
checksum failures.The errors for this operation are listed in the eReferral API Error Codes workbook. Filter the Business Operations or API endpoint(s) sheet for the relevant operation or endpoint. See Error Codes for workbook guidance.