FHIR Create
Creates a new FHIR resource on the server.
Inputs
Outputs
Details
This node performs a FHIR create operation to add a new resource to the server.
The node requires an access token to be provided in msg.payload.access_token.
This token should have appropriate permissions to create the requested resource type.
The FHIR resource can be provided in the node configuration or via msg.payload.resource.
Message values take precedence over node configuration.
The resource must be a valid FHIR resource object with at minimum a resourceType field.
The server will validate the complete resource structure.
The created resource with its server-assigned ID will be returned in the payload.
Scope Validation
The node checks if the selected resource type is included in the integration's scopes. Create operations require write or create permissions.
Scopes follow the format: [user|patient|system]/[ResourceType|*].[permissions]
For create operations, valid permissions include:
c- Create permissionworwrite- Write permission (includes create)*- All permissions- Combined permissions like
crud,cw, etc.
Examples:
patient/*.c- Can create all resource types in patient contextuser/Patient.write- Can write/create Patient resources in user contextsystem/Observation.*- Can perform all operations on Observations
Best Practices
- Validate resource structure before submitting to server
- Always include required FHIR fields (
resourceType) - Use server-assigned IDs rather than client-assigned when possible
- Handle duplicate creation errors gracefully
- Store returned resource ID for future reference operations
- Validate against FHIR profiles when required by integration