ServiceRequest
A request for a service to be performed for a patient, such as imaging, laboratory testing, or referral.
https://hl7.org/fhir/us/core/STU6.1/StructureDefinition-us-core-servicerequest.html
ServiceRequest represents multiple Canvas services:
- Imaging orders (e.g., CT, MRI, X-ray) - Ordering imaging study - Laboratory orders (e.g., hemoglobin/hematocrit) - Placing a lab order - Referrals (e.g., patient referral to specialist) - Referring a patient The ServiceRequest surface reflects these orders via standardized coding:
categoryuses SNOMED CT to represent the order category (e.g., Imaging, Laboratory procedure, Referral/Evaluation procedure) -codeuses LOINC to represent the requested test/procedure
Endpoints
ServiceRequest read
Read a ServiceRequest resource.
Path Parameters
Response Payload Attributes
The FHIR Resource name.
The identifier of the ServiceRequest.
A code specifying the state of the ServiceRequest.
Indicates the level of authorization/intent for the request. Canvas supports order for orders placed by a practitioner.
Categorical classification of the requested service (SNOMED CT). Common examples include Imaging, Laboratory procedure, and Referral/Evaluation procedure.
Code defined by a terminology system.
The system URL of the coding.
The code value.
The display name of the coding.
What service is being requested in a coded form (typically LOINC).
Code defined by a terminology system.
The system URL of the coding.
The code value that represents the respective Canvas service/order.
The display name of the coding.
Who/what the service request is for.
The reference string of the subject in the format of "Patient/c4ff2ee2e41b4636b7d37ac7f9297d95".
Type the reference refers to (e.g. “Patient”).
The time window during which the service is to occur.
Starting time with inclusive boundary of the requested service period.
End time with inclusive boundary of the requested service period.
When the request was authored in Canvas.
Who/what is requesting the service (a Practitioner reference).
The reference string of the requester in the format of "Practitioner/5eede137ecfe4124b8b773040e33be14".
Type the reference refers to (e.g. “Practitioner”).
Reason for the request. References Conditions from Canvas.
The reference string of the reason in the format of "Condition/6700a428-6387-458d-8134-0702851da23c".
Type the reference refers to (e.g. “Condition”).
Responses
Errors
ServiceRequest search
Search for ServiceRequest resources.
Query Parameters
The identifier of the ServiceRequest.
The patient reference associated to the Service Request in the format Patient/c4ff2ee2e41b4636b7d37ac7f9297d95.
The status of the request. Filters by the status field.
Categorization of the request (SNOMED CT). Filters by category.coding code and/or system. You can search by code alone or system|code.
What is being requested (typically LOINC). Filters by code.coding code and/or system. You can search by code alone or system|code.
Response Payload Attributes
The FHIR Resource name.
This element and value designate that the bundle is a search response. Search result bundles will always have the Bundle.type of searchset .
The number of resources that match the search parameter.
Attributes relevant to pagination, see our Pagination page for more detail.
The relation of the page search
The search url for the specific relation
The results bundle that lists out each object returned in the search
The attributes specific to the resource type, see the Attributes section below
Attributes
The FHIR Resource name.
The identifier of the ServiceRequest.
A code specifying the state of the ServiceRequest.
Indicates the level of authorization/intent for the request. Canvas supports order for orders placed by a practitioner.
Categorical classification of the requested service (SNOMED CT). Common examples include Imaging, Laboratory procedure, and Referral/Evaluation procedure.
Code defined by a terminology system.
The system URL of the coding.
The code value.
The display name of the coding.
What service is being requested in a coded form (typically LOINC).
Code defined by a terminology system.
The system URL of the coding.
The code value that represents the respective Canvas service/order.
The display name of the coding.
Who/what the service request is for.
The reference string of the subject in the format of "Patient/c4ff2ee2e41b4636b7d37ac7f9297d95".
Type the reference refers to (e.g. “Patient”).
The time window during which the service is to occur.
Starting time with inclusive boundary of the requested service period.
End time with inclusive boundary of the requested service period.
When the request was authored in Canvas.
Who/what is requesting the service (a Practitioner reference).
The reference string of the requester in the format of "Practitioner/5eede137ecfe4124b8b773040e33be14".
Type the reference refers to (e.g. “Practitioner”).
Reason for the request. References Conditions from Canvas.
The reference string of the reason in the format of "Condition/6700a428-6387-458d-8134-0702851da23c".
Type the reference refers to (e.g. “Condition”).
Responses
Errors
curl --request GET \ --url 'https://fumage-example.canvasmedical.com/ServiceRequest/<id>' \ --header 'Authorization: Bearer <token>' \ --header 'accept: application/json'import requests url = "https://fumage-example.canvasmedical.com/ServiceRequest/<id>" headers = { "accept": "application/json", "Authorization": "Bearer <token>" } response = requests.get(url, headers=headers) print(response.text)
{ "resourceType": "ServiceRequest", "id": "a47c7b0e-bbb4-42cd-bc4a-df259d148ea1", "status": "active", "intent": "order", "category": [ { "coding": [ { "system": "http://snomed.info/sct", "code": "363679005", "display": "Imaging" } ] } ], "code": { "coding": [ { "system": "http://loinc.org", "code": "24627-2", "display": "CT Chest" } ] }, "subject": { "reference": "Patient/c4ff2ee2e41b4636b7d37ac7f9297d95", "type": "Patient" }, "occurrencePeriod": { "start": "2025-10-01T09:00:00+00:00", "end": "2025-10-01T09:30:00+00:00" }, "authoredOn": "2025-09-30T19:12:25.073749+00:00", "requester": { "reference": "Practitioner/5eede137ecfe4124b8b773040e33be14", "type": "Practitioner" }, "reasonReference": [ { "reference": "Condition/6700a428-6387-458d-8134-0702851da23c" } ] }{ "resourceType": "OperationOutcome", "issue": [ { "severity": "error", "code": "unknown", "details": { "text": "Authentication failed" } } ] }{ "resourceType": "OperationOutcome", "issue": [ { "severity": "error", "code": "forbidden", "details": { "text": "Authorization failed" } } ] }{ "resourceType": "OperationOutcome", "issue": [ { "severity": "error", "code": "not-found", "details": { "text": "Unknown ServiceRequest resource 'a47c7b0e-bbb4-42cd-bc4a-df259d148ea1'" } } ] }
curl --request GET \ --url 'https://fumage-example.canvasmedical.com/ServiceRequest?patient=Patient/c4ff2ee2e41b4636b7d37ac7f9297d95' \ --header 'Authorization: Bearer <token>' \ --header 'accept: application/json'import requests url = "https://fumage-example.canvasmedical.com/ServiceRequest?patient=Patient/c4ff2ee2e41b4636b7d37ac7f9297d95" headers = { "accept": "application/json", "Authorization": "Bearer <token>" } response = requests.get(url, headers=headers) print(response.text)
{ "resourceType": "Bundle", "type": "searchset", "total": 3, "link": [ { "relation": "self", "url": "/ServiceRequest?_count=10&_offset=0" }, { "relation": "first", "url": "/ServiceRequest?_count=10&_offset=0" }, { "relation": "last", "url": "/ServiceRequest?_count=10&_offset=0" } ], "entry": [ { "resource": { "resourceType": "ServiceRequest", "id": "bef0e33b-5008-489b-aa32-873b99e1e523", "status": "active", "intent": "order", "category": [ { "coding": [ { "system": "http://snomed.info/sct", "code": "363679005", "display": "Imaging" } ] } ], "code": { "coding": [ { "system": "http://loinc.org", "code": "24627-2", "display": "CT Chest" } ] }, "subject": { "reference": "Patient/c4ff2ee2e41b4636b7d37ac7f9297d95", "type": "Patient" }, "occurrencePeriod": { "start": "2025-10-01T09:00:00+00:00", "end": "2025-10-01T09:30:00+00:00" }, "authoredOn": "2025-09-30T19:12:25.073749+00:00", "requester": { "reference": "Practitioner/5eede137ecfe4124b8b773040e33be14", "type": "Practitioner" }, "reasonReference": [ { "reference": "Condition/6700a428-6387-458d-8134-0702851da23c" } ] } }, { "resource": { "resourceType": "ServiceRequest", "id": "5938a56b-0239-47c5-ad31-703ca5104bb5", "status": "draft", "intent": "order", "category": [ { "coding": [ { "system": "http://snomed.info/sct", "code": "108252007", "display": "Laboratory procedure" } ] } ], "code": { "coding": [ { "system": "http://loinc.org", "code": "4544-3", "display": "Hematocrit" }, { "system": "http://loinc.org", "code": "718-7", "display": "Hemoglobin" } ] }, "subject": { "reference": "Patient/c4ff2ee2e41b4636b7d37ac7f9297d95", "type": "Patient" }, "occurrencePeriod": { "start": "2025-10-01T09:00:00+00:00", "end": "2025-10-01T09:30:00+00:00" }, "authoredOn": "2025-09-30T19:12:25.100394+00:00", "requester": { "reference": "Practitioner/5eede137ecfe4124b8b773040e33be14", "type": "Practitioner" }, "reasonReference": [ { "reference": "Condition/2db04232-de4f-4d59-8066-2e5cee1c2a1d" } ] } }, { "resource": { "resourceType": "ServiceRequest", "id": "db35b108-a9f3-4d70-bc76-4c4800bce005", "status": "completed", "intent": "order", "category": [ { "coding": [ { "system": "http://snomed.info/sct", "code": "386053000", "display": "Evaluation procedure (procedure)" } ] } ], "code": { "coding": [ { "system": "http://loinc.org", "code": "103696004", "display": "Patient referral to specialist" } ] }, "subject": { "reference": "Patient/c4ff2ee2e41b4636b7d37ac7f9297d95", "type": "Patient" }, "occurrencePeriod": { "start": "2025-10-01T09:00:00+00:00", "end": "2025-10-01T09:30:00+00:00" }, "authoredOn": "2025-09-30T19:12:25.121629+00:00", "requester": { "reference": "Practitioner/5eede137ecfe4124b8b773040e33be14", "type": "Practitioner" }, "reasonReference": [ { "reference": "Condition/691a6afa-a450-425e-a151-26b20f595efb" } ] } } ] }{ "resourceType": "OperationOutcome", "issue": [ { "severity": "error", "code": "invalid", "details": { "text": "Bad request" } } ] }{ "resourceType": "OperationOutcome", "issue": [ { "severity": "error", "code": "unknown", "details": { "text": "Authentication failed" } } ] }{ "resourceType": "OperationOutcome", "issue": [ { "severity": "error", "code": "forbidden", "details": { "text": "Authorization failed" } } ] }