镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content
Discussion options

You must be logged in to vote

You can still parse this message even though it is nonstandard, here is some sample code and the dotnet fiddle showing it in action.

using System;
using System.Linq;
using NHapi.Base.Parser;
using NHapi.Base.Util;
using NHapi.Model.V24.Segment;

var newLine = '\r';
var message = $"""
	MSH|^~\&|AX90X^^EUI-64|AX90X^^EUI-64|||20230521120740537+0800||ORU^R40^ORU_R40|43|P|2.4|98||AL|NE||UNICODE UTF-8{newLine}
	PID|||1235^^^^PI||SMITH^JOHN^^^^^L||20000101000000000+0800|M||||||||||||||||||||||||||||||||ADU{newLine}
	PV1|||^^^||||||||||||||||||||||||||||||||||||||||20230303000000000+0800|||||||||||{newLine}
	OBR|1||43^AX90X^^EUI-64|196616^MDC_EVT_ALARM^MDC|||20230521120740537+0800||||||||||||||||…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@alberk8
Comment options

@milkshakeuk
Comment options

Answer selected by alberk8
@alberk8
Comment options

@milkshakeuk
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants