A lightweight REST-based access layer for standard HL7-defined data models. Read the spec
Get FHIR'd up! Epic's Sandbox now supports DSTU2 resources. All resources below are supported in Epic's 2015 release and forward.
New to FHIR? Check out our tutorial to get started!
The FHIR Procedure resource defines an activity performed on or with a patient as part of the provision of care. It corresponds with surgeries and procedures performed, including endoscopies and biopsies, as well as less invasive actions like counseling and physiotherapy. This resource is designed for a high-level summary around the occurrence of a procedure, and not for specific procedure log documentation. The below documentation describes surgical, dental, and diagnostic procedures performed at a particular organization, but does not include historical documentation of procedures on a patient.
using Chrome, Safari, or Firefox ("FHIRFox"??).
Click the button. Go on.
Procedure Search Interaction
|Relative URL||FHIR Interaction||HTTP Method||Action|
||Search||Get||Retrieves Procedure resources that meet the specified search criteria|
The Search interaction enables the client to query for all of a patient's completed procedures by providing the patient's FHIR ID. The client can also look up a list of known Procedure resources with the "_id" parameter. The client, having established the patient in question, now wishes to retrieve all procedure data for the patient. Epic's sandbox currently supports the following query parameters for Procedure queries:
|Parameter Name||Parameter Type||Description|
||Reference||Search for Procedure resources using one or more server ids (equivalent to one or more
||Reference||Search for Procedure resources for a specified patient ID.|
||Date||Further refine a search for a given set of Procedures on a patient by specifying a date or date range in XML format (YYYY-MM-DD) for when the Procedure was resulted.|
||Retrieve all Procedures for Jason Argonaut.|
||Retrieve all Procedures for Jason Argonaut in 2016.|
Procedure Read Interaction
|Relative URL||FHIR Interaction||HTTP Method||Action|
||Read||Get||Retrieve details about Procedure
The read interaction enables the lookup of a Procedure resource by a constant server ID. The read interaction allows clients to store only the server ID, and with a single request, retrieve the most up-to-date information about a procedure. Read interactions typically begin with a client having previously established a relationship, often through querying for Procedures through the search interaction.
When things go wrong, the Epic EMR responds with an error code and a human-readable description to describe the incorrect submission. Currently, the error code is not included in the REST version of the specification, but it is provided here for your reference. These codes are meant for developer use only - they should not be presented to end users. Instead, your application should interpret the codes and provide user-friendly resolution steps when data cannot be filed.
FHIR Errors come in two flavors:
- Fatal Errors cause the response to contain no results and are usually due to requests from the client processed as invalid - missing or invalid data in the request, unauthorized access, or expired content in the system.
- Warning Errors accompany a successful response and are used to indicate that part of a request could not be fulfilled - for example, if a status is unknown, but the request can be fulfilled, the API will return the data and indicate that part of the request couldn't be understood.
FHIR Error Codes
|4100||Fatal||The resource request contained an invalid parameter||Invalid parameter such as a non existent patient ID:
|4101||Warning||Resource request returns no results||A request for data that was otherwise valid but no information was documented or found (i.e. a patient with no pertinent implanted devices, or a demographic search where no patients met the search criteria).|
|4102||Fatal||The read resource request contained an invalid ID||Invalid Resource ID:
|4107||Fatal||The read resource request has been merged||Requesting a Patient which has been merged - in this event, in addition to the error response, we will respond with an HTTP Redirect status. To browsers and many HTTP clients, the redirect will be transparent.|
|4110||Fatal||No parameters are provided in the search request||An invalid search request such as :
|4111||Fatal||Required search parameter missing from request||A request missing a required parameter (such as the patient):
|4112||Fatal||The resource request contained an invalid combination of parameters||A search containing multiple different patient ID:
|4113||Fatal||Session ID for cached search results has expired.||Making a request for previously accessed paginated search results after the search has expired.|
|4115||Fatal||Required search parameter has an invalid value||An invalid parameter required for searching:
|4117||Warning||No CVX code for Immunization resource||Request for an Immunization resource without a documented CVX code.|
|4118||Fatal||User not authorized for request||Request data that the authenticated user is not allowed access to view (i.e. a patient asking for data about a stranger's allergies).|
|4119||Warning||Additional data may be present for patient||Request data while authenticated as an authorized patient or patient proxy. Inidicates that data available to the patient may not be the complete medical record within the system.|