HL7 v2 parser/serializer in JavaScript