Read ServiceRequest
Read a FHIR R4 Service Request resource by logical ID.
Endpoint
GET /api/fhir/r4/ServiceRequest/{rid}
Base URL: https://<ddfs-instance-id>.ddfs.<region>.oci.oraclecloud.com/api/fhir/r4
Example request: GET /api/fhir/r4/ServiceRequest/00000000-0000-4000-8000-000000000015
Example URL: https://<ddfs-instance-id>.ddfs.<region>.oci.oraclecloud.com/api/fhir/r4/ServiceRequest/00000000-0000-4000-8000-000000000015
Headers
{"Accept":"application/fhir+json","Authorization":"Bearer [REDACTED]"}
Parameters
| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
rid |
path | true | uuid | Logical id of the ServiceRequest resource. Use the logical id of the resource. |
Authorization
The supported authorization model uses OAuth 2.0 scopes issued by OCI Identity Domains. Send the access token as a bearer token. Resource-server definitions and issued access-token claims use canonical system/... scopes. Client grants and token requests use the corresponding ddfssystem/... form. For examples, see Reference: Authentication and Scopes.
| Context | Scope form |
|---|---|
| Resource-server definition | system/ServiceRequest.r |
| Client grant/token request | ddfssystem/ServiceRequest.r |
Issued token's scope claim |
system/ServiceRequest.r |
Example Response
{
"resourceType": "ServiceRequest",
"subject": {
"reference": "Patient/00000000-0000-4000-8000-000000000010"
},
"id": "00000000-0000-4000-8000-000000000015",
"meta": {
"versionId": "1",
"lastUpdated": "2020-01-01T00:00:00Z",
"profile": [],
"security": [],
"tag": [
{
"system": "https://example.com/fhir/tag",
"code": "documentation-example",
"display": "Documentation example"
}
]
},
"identifier": [
{
"system": "https://example.com/fhir/identifier/service-request",
"value": "documentation-example"
}
],
"instantiatesCanonical": [],
"instantiatesUri": [],
"basedOn": [],
"replaces": [],
"status": "active",
"intent": "order",
"category": [
{
"coding": [
{
"system": "http://snomed.info/sct",
"code": "108252007",
"display": "Laboratory procedure"
}
]
}
],
"code": {
"coding": [
{
"system": "http://loinc.org",
"code": "24323-8",
"display": "Comprehensive metabolic panel"
}
]
},
"encounter": {
"reference": "Encounter/00000000-0000-4000-8000-000000000004"
},
"authoredOn": "2020-01-01T00:00:00Z",
"note": [],
"relevantHistory": []
}
Behavior
Reads a ServiceRequest resource by logical id.
cURL Example
curl.exe `
-sS `
--connect-timeout 10 `
--max-time 90 `
-X GET `
https://<ddfs-instance-id>.ddfs.<region>.oci.oraclecloud.com/api/fhir/r4/ServiceRequest/00000000-0000-4000-8000-000000000015 `
-H 'Accept: application/fhir+json' `
-H 'Authorization: Bearer [REDACTED]'
Status Codes
| Code | Status |
|---|---|
| 200 | ServiceRequest representation. |
FHIR Definition
Canonical: https://hl7.org/fhir/R4/servicerequest.html