ValidateResource Example
The ValidateResource process validates a Patient FHIR resource, and provides an example of validation that has an Object, XML, or JSON input formats and Schema and Schematron, Structure Definition, and Strict Parser as validation types..
For more information about the FHIR palette Validate Resource activity, see Validate Resource.
Process Definition
The process performs the following operations:
- The Timer activity starts the process.
- The ParsePatient activity parses the input, which is in XML format and creates a Patient object to be validated.
- The Patient object generated as the output of ParsePatient activity is provided as input to the ValidateObject activity. The Patient object is validated against SchemaAndSchematron validation type. The resource is validated.
- The validated Patient object is taken as input by the EncodeToXML activity and an XML output is returned.
- The XML output from EncodeToXML activity is passed as input to ValidateXML and is validated against StructureDefinition validation type. The resource is validated.
- The output of EncodeToXML activity is passed as input to the ParseResource and a Patient object is generated as output.
- The output of ParseResource activity is passed as input by the EncodeToJSON activity and returns a JSON string as output.
- The output of EncodeToJSON activity is passed as input to ValidateJSON activity with Strict Parser as validation type. The resource is validated.
- After the process executes successfully, a Success message is written to the Console. Select in TIBCO Business Studio to view the log messages.
Copyright © Cloud Software Group, Inc. All rights reserved.