Location of the FHIR Validation example files
For design studio installs, the fhir_val.mms map is found at:
<install_dir>\packs\healthcare_vn.n.n.n\hl7\examples\fhirValidation
Where <install_dir> indicates the installed location of the Transformation Extender base product, and n.n.n.n is the version number of the pack
When this map is ran standalone, it invokes the FHIR test server to validate the input observation resource. Two outputs are produced if the test server is accessible, and the input can be validated as an FHIR observation resource. One output (Card 2) is validation_results.json, which is the parsed Outcome resource returned by the test server. The other output (Card3) is simply the original input passed through, with a flow variable set. However, when running this map standalone, the flow variable is extraneous – it is only in the map for its use within the flow.
The sample flow is only supported on the Design Server and is available as a project hl7fhirValidationExample.
This flow invokes HL7 Validation for a single JSON formatted FHIR Observation resource and returns Validation results as an Operation Outcome resource on one of the flow endpoints. If the validation outcome contains no warnings or errors, the map will set a flow variable valid to true. If this variable is set to true, a decision node in the flow will then route the original resource to be converted to XML. Select file observation_valid to run the flow for valid data and see if the data as been transformed to XML. Select file observation_invalid to run flow for invalid data.
If the test server is not accessible, the map, fhir_val, that invokes the FHIR test server to validate the input observation resource will fail. The remaining nodes in the flow will not execute, and no data is returned in the endpoints. View the map log to see any details on the failure.