Procedure
An action that is or was performed on or for a patient. This can be a physical intervention like an operation, or less invasive like long term services, counseling, or hypnotherapy.
http://hl7.org/fhir/us/core/STU3.1.1/StructureDefinition-us-core-procedure.html
See this Zendesk article for information on creating procedures with the Perform
command.
Endpoints
Attributes
id
string
The identifier of the Procedure
status
string
A code specifying the state of the procedure
code
json
Identification of the procedure
subject
json
Who the procedure was performed on
performedDateTime
datetime
When the procedure was performed
get
/Procedure/{id}
Procedure read
Read an Procedure resource.
Path Parameters
id required
string
The unique identifier for the Procedure
Responses
200 OK
Request was successful.
Errors
401 Unauthorized
The request requires user authentication.
403 Forbidden
The request requires user authorization.
404 Not Found
The requested resource was not found.
get
/Procedure
Procedure search
Search for Procedure resources.
Query Parameters
_id
string
The identifier of the Procedure
patient
string
Who the procedure was performed on
Responses
200 OK
Request was successful.
Errors
400 Bad Request
The request was invalid or cannot be otherwise served. An accompanying error message will explain further.
401 Unauthorized
The request requires user authentication.
403 Forbidden
The request requires user authorization.
curl --request GET \ --url 'https://fumage-example.canvasmedical.com/Procedure/<id>' \ --header 'Authorization: Bearer <token>' \ --header 'accept: application/json'
import requests url = "https://fumage-example.canvasmedical.com/Procedure/<id>" headers = { "accept": "application/json", "Authorization": "Bearer <token>" } response = requests.get(url, headers=headers) print(response.text)
{ "resourceType": "Procedure", "id": "2dd9a3bc-a3bb-472b-aaef-c57be394de39", "status": "unknown", "code": { "coding": [ { "system": "http://www.ama-assn.org/go/cpt", "code": "23066", "display": "Biopsy soft tissue shoulder deep" } ] }, "subject": { "reference": "Patient/b8dfa97bdcdf4754bcd8197ca78ef0f0", "type": "Patient" }, "performedDateTime": "2023-09-20T21:18:54.263690+00:00" }
{ "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 Procedure resource 'a47c7b0e-bbb4-42cd-bc4a-df259d148ea1'" } } ] }
curl --request GET \ --url 'https://fumage-example.canvasmedical.com/Procedure?patient=Patient%2Fb8dfa97bdcdf4754bcd8197ca78ef0f0' \ --header 'Authorization: Bearer <token>' \ --header 'accept: application/json'
import requests url = "https://fumage-example.canvasmedical.com/Procedure?patient=Patient%2Fb8dfa97bdcdf4754bcd8197ca78ef0f0" headers = { "accept": "application/json", "Authorization": "Bearer <token>" } response = requests.get(url, headers=headers) print(response.text)
{ "resourceType": "Bundle", "type": "searchset", "total": 1, "link": [ { "relation": "self", "url": "/Procedure?patient=Patient%2Fb8dfa97bdcdf4754bcd8197ca78ef0f0&_count=10&_offset=0" }, { "relation": "first", "url": "/Procedure?patient=Patient%2Fb8dfa97bdcdf4754bcd8197ca78ef0f0&_count=10&_offset=0" }, { "relation": "last", "url": "/Procedure?patient=Patient%2Fb8dfa97bdcdf4754bcd8197ca78ef0f0&_count=10&_offset=0" } ], "entry": [ { "resource": { "resourceType": "Procedure", "id": "2dd9a3bc-a3bb-472b-aaef-c57be394de39", "status": "unknown", "code": { "coding": [ { "system": "http://www.ama-assn.org/go/cpt", "code": "23066", "display": "Biopsy soft tissue shoulder deep" } ] }, "subject": { "reference": "Patient/b8dfa97bdcdf4754bcd8197ca78ef0f0", "type": "Patient" }, "performedDateTime": "2023-09-20T21:18:54.263690+00:00" } } ] }
{ "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" } } ] }