...
Parsing the above message using the directive will generate a record that has flattened HL7 V2 components and all fields converted to JSON. Further parsing can be achieved with the PARSEthe PARSE-AS-JSON directiveJSON directive.
Example
Applying this directive to the above message:
...
Once each segment has been converted into JSON, you can apply PARSEapply PARSE-AS-JSON or JSON-PATH directives JSON or JSON-PATH directives on the record.