The PARSE-AS-HL7 directive is for parsing Health Level 7 Version 2 (HL7 V2) messages. HL7 is a messaging standard used in the healthcare industry to exchange data between systems.
Syntax
Code Block |
---|
parse-as-hl7 :column [depth] |
The column
contains HL7 V2 messages, v2.1 through v2.6.
depth
indicates the depth at which JSON object enumeration terminates.
Usage Notes
This is an example of an HL7 V2 message in a record:
...
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.