Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate real HL7 in the synth generator. Parse real HL7 in reader #51

Merged
merged 7 commits into from
Aug 27, 2024
Prev Previous commit
Next Next commit
Use the correct year in the date format!
jeremyestein committed Aug 21, 2024
commit ceafdae9fbbb60100ca130a6d352f09a14ac90a0
Original file line number Diff line number Diff line change
@@ -116,8 +116,7 @@ private String applyHl7Template(long samplingRate, String locationId, Instant ob
OBX|${obxI}|${dataType}|${streamId}||${valuesAsStr}||||||F||20|${obsTimeStr}|\r\
""";
ZoneId hospitalTimezone = ZoneId.of("Europe/London");
// XXX: shouldn't this be yyyy?
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("YYYYMMddHHmmss.SSSZZ");
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyyMMddHHmmss.SSSZZ");
// XXX: where to get message timestamp from? Just add a random bit maybe?
// Will sampling rate have to be inferred at the other end? It's in the coding table I think...
// message Id I think shouldn't be created here