Ejemplo n.º 1
0
 public PatientMatchesRequest()
 {
     MSH = new MshSegment();
     VTQ = new VtqSegment();
     RDF = new RdfSegment();
 }
Ejemplo n.º 2
0
 internal void parse(string rawMessage)
 {
     string[] segments = StringUtils.split(rawMessage, '\r');
     if (segments.Length < 4)
     {
         throw new Exception("Invalid message: needs 5 segments");
     }
     MSH = new MshSegment(segments[0]);
     MSA = new MsaSegment(segments[1]);
     QAK = new QakSegment(segments[2]);
     RDF = new RdfSegment(segments[3]);
     if (segments.Length > 4)
     {
         RDT = new RdtSegment[segments.Length - 4];
         for (int rdtIdx = 0, segIdx = 4; segIdx < segments.Length; rdtIdx++, segIdx++)
         {
             RDT[rdtIdx] = new RdtSegment(RDF, segments[segIdx]);
         }
     }
 }