Encode Resource Activity
Use the Encode Resource activity to encode a FHIR resource against the published FHIR schema for that resource.
General
The General tab contains the following fields:
Field | Literal Value/Module Property/Process Property? | Description |
---|---|---|
Name | No | The name to be displayed as the label for the activity in the process. |
Server Version | The version of the FHIR standard.
The supported FHIR versions are DSTU2, STU3, and R4. |
|
FHIR Resource | No | The FHIR resource type to be encoded.
Depending on the server version you select, different FHIR resources are supported. For more information about the supported FHIR resources, see Supported Resource Types. |
Output Type | No | The type of output.
XML and JSON output formats are supported. |
Input
The Input tab is populated based on the selections made on the General tab.
For example, requests involving the Appointment resource display the FHIR template for that resource.
![](GUID-B67CBC5A-5A97-4F26-8DCC-7A42F7DE1092-display.png)
For more information about the supported resource types, see the FHIR DSTU2, FHIR STU3, or FHIR R4 documentation.
Fault
The Fault tab lists errors that might occur when you use this activity.
Error Schema Element | Datatype | Description |
---|---|---|
msg | string | Error message description. |
msgCode | string | The error code.
It represents ActiveMatrix BusinessWorks Plug-in for HL7 with FHIR errors. For more information about error codes, see FHIR Error Codes. |
OperationOutcome | string | The issue description in case of failure of the activity in a process.
The following OperationOutcome properties can help you diagnose an error. Expand the issue property to view these properties. |