|
|
|
@@ -71,7 +71,14 @@ public class HL7Receiver<T extends AbstractMessage> implements ReceivingApplicat |
|
|
|
*/ |
|
|
|
private Message generateACK(Message message) throws HL7Exception { |
|
|
|
try { |
|
|
|
return message.generateACK(); |
|
|
|
Message returnMessage = message.generateACK(); |
|
|
|
HL7LogEntry entry = new HL7LogEntry(); |
|
|
|
entry.setMessage(returnMessage.encode()); |
|
|
|
entry.setSource("127.0.0.1:1234"); // TODO: Naja... |
|
|
|
entry.setTimestamp(LocalDateTime.now()); |
|
|
|
entry.setDirection(HL7LogEntry.Direction.OUT); |
|
|
|
HL7Utils.logHL7MessageToDatabase(entry); |
|
|
|
return returnMessage; |
|
|
|
} catch (IOException e) { |
|
|
|
throw new HL7Exception(e); |
|
|
|
} |
|
|
|
@@ -176,6 +183,8 @@ public class HL7Receiver<T extends AbstractMessage> implements ReceivingApplicat |
|
|
|
hist.setEntlassungsDatum(HL7Utils.parseLocalDateTime(pv1.getDischargeDateTime()[0].getTime())); |
|
|
|
} |
|
|
|
hist.setFallID(fallid); |
|
|
|
hist.setErsteller(99999); |
|
|
|
hist.setBearbeiter(99999); |
|
|
|
|
|
|
|
//diagnosis |
|
|
|
List<DG1> dg1s = visit.getDG1All(); |
|
|
|
|