HL7PRPA201302Transforms { public static PRPAIN201302UV02 createPRPA201302(PRPAMT201301UV02Patient patient, String remotePatId, String remoteDeviceId, String senderOID, String receiverOID) { result = new PRPAIN201302UV02(); localDeviceId = patient.getId().get(0).getRoot(); setHeaderFields(senderOID, receiverOID); result.setControlActProcess(createMFMIMT700701UV01ControlActProcess(patient, remotePatId, remoteDeviceId)); return result; }  static PRPAIN201302UV02 createPRPA201302(PRPAMT201301UV02Patient patient, String remotePatId,
            String remoteDeviceId, String senderOID, String receiverOID); static PRPAIN201302UV02 createPRPA201302(PRPAMT201310UV02Patient patient, String remotePatId,
            String remoteDeviceId, String senderOID, String receiverOID); static PRPAIN201302UV02MFMIMT700701UV01ControlActProcess createMFMIMT700701UV01ControlActProcess(
            PRPAMT201301UV02Patient patient, String remotePatId, String remoteDeviceId); static PRPAIN201302UV02MFMIMT700701UV01ControlActProcess createMFMIMT700701UV01ControlActProcess(
            PRPAMT201310UV02Patient patient, String remotePatId, String remoteDeviceId); static PRPAIN201302UV02MFMIMT700701UV01Subject1 createPRPAIN201302UVMFMIMT700701UV01Subject1(
            PRPAMT201301UV02Patient patient, String remotePatId, String remoteDeviceId); static PRPAIN201302UV02MFMIMT700701UV01Subject1 createPRPAIN201302UVMFMIMT700701UV01Subject1(
            PRPAMT201310UV02Patient patient, String remotePatId, String remoteDeviceId); static PRPAIN201302UV02MFMIMT700701UV01RegistrationEvent createPRPAIN201302UVMFMIMT700701UV01RegistrationEvent(
            PRPAMT201301UV02Patient patient, String remotePatId, String remoteDeviceId); static PRPAIN201302UV02MFMIMT700701UV01RegistrationEvent createPRPAIN201302UVMFMIMT700701UV01RegistrationEvent(
            PRPAMT201310UV02Patient patient, String remotePatId, String remoteDeviceId); static PRPAIN201302UV02MFMIMT700701UV01Subject2 createPRPAIN201302UVMFMIMT700701UV01Subject2(
            PRPAMT201301UV02Patient patient, String remotePatId, String remoteDeviceId); static PRPAIN201302UV02MFMIMT700701UV01Subject2 createPRPAIN201302UVMFMIMT700701UV01Subject2(
            PRPAMT201310UV02Patient patient, String remotePatId, String remoteDeviceId);  }
@Test public void createPRPA201302() { PRPAMT201301UV02Patient patient = createPRPAMT201301UV02Patient(); String remotePatId = "D123401"; String remoteDeviceId = "2.16.17.19"; String senderOID = "1.1"; String receiverOID = "2.2"; HL7PRPA201302Transforms transforms = new HL7PRPA201302Transforms(); PRPAIN201302UV02 result; result = transforms.createPRPA201302(patient, remotePatId, remoteDeviceId, senderOID, receiverOID); assertEquals(result.getControlActProcess().getSubject().get(0).getRegistrationEvent().getSubject1() .getPatient().getId().get(0).getExtension(), "1.16.17.19"); }
@Test public void createPRPA201302ForPRPAMT201310UV02() { PRPAMT201310UV02Patient patient = createPRPAMT201310UV02Patient(); String remotePatId = "D123401"; String remoteDeviceId = "2.16.17.19"; String senderOID = "1.1"; String receiverOID = "2.2"; HL7PRPA201302Transforms transforms = new HL7PRPA201302Transforms(); PRPAIN201302UV02 result; result = transforms.createPRPA201302(patient, remotePatId, remoteDeviceId, senderOID, receiverOID); assertEquals(result.getControlActProcess().getSubject().get(0).getRegistrationEvent().getSubject1() .getPatient().getId().get(0).getExtension(), "1.16.17.19"); }