| @@ -1,5 +1,7 @@ | |||||
| package de.uniluebeck.mi.projmi6.hapi2; | package de.uniluebeck.mi.projmi6.hapi2; | ||||
| import ca.uhn.hl7v2.AcknowledgmentCode; | |||||
| import ca.uhn.hl7v2.ErrorCode; | |||||
| import ca.uhn.hl7v2.HL7Exception; | import ca.uhn.hl7v2.HL7Exception; | ||||
| import ca.uhn.hl7v2.model.AbstractMessage; | import ca.uhn.hl7v2.model.AbstractMessage; | ||||
| import ca.uhn.hl7v2.model.Message; | import ca.uhn.hl7v2.model.Message; | ||||
| @@ -60,6 +62,14 @@ public class HL7Recever2<T extends AbstractMessage> implements ReceivingApplicat | |||||
| } | } | ||||
| } | } | ||||
| private Message generateACKWithAR(Message message, String s) throws HL7Exception { | |||||
| try { | |||||
| return message.generateACK(AcknowledgmentCode.AR, new HL7Exception(s, ErrorCode.TABLE_VALUE_NOT_FOUND)); | |||||
| } catch (IOException e) { | |||||
| throw new HL7Exception(e); | |||||
| } | |||||
| } | |||||
| private Message processBAR_P05(Message message, Map<String, Object> metadata) throws HL7Exception { | private Message processBAR_P05(Message message, Map<String, Object> metadata) throws HL7Exception { | ||||
| Patient patient = new Patient(); | Patient patient = new Patient(); | ||||
| List<Fall> faelle = new ArrayList<>(); | List<Fall> faelle = new ArrayList<>(); | ||||