Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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]

...

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.