HL7QueryParamsTransforms { public static PRPAMT201306UV02PatientTelecom createTelecom(List<TELExplicit> patientTelecom) { PRPAMT201306UV02PatientTelecom subjectTele = null; STExplicit text; if (patientTelecom != null) { subjectTele = new PRPAMT201306UV02PatientTelecom(); for (TELExplicit tele : patientTelecom) { subjectTele.getValue().add(tele); text = new STExplicit(); subjectTele.setSemanticsText(text); } } return subjectTele; }  static JAXBElement<PRPAMT201306UV02QueryByParameter> createQueryParams(PRPAMT201301UV02Patient patient,
        String localDeviceId); static PRPAMT201306UV02ParameterList createParamList(PRPAMT201301UV02Patient patient); static PRPAMT201306UV02LivingSubjectId createSubjectId(II subjectId); static PRPAMT201306UV02LivingSubjectName createName(List<PNExplicit> patientNames); static PRPAMT201306UV02LivingSubjectBirthTime createBirthTime(String birthTime); static PRPAMT201306UV02LivingSubjectAdministrativeGender createGender(String gender); static PRPAMT201306UV02PatientAddress createAddress(List<ADExplicit> patientAddress); static PRPAMT201306UV02PatientTelecom createTelecom(List<TELExplicit> patientTelecom);  }
@Test public void createTelecom() { PRPAMT201306UV02PatientTelecom telecom; HL7QueryParamsTransforms queryTransforms = new HL7QueryParamsTransforms(); telecom = queryTransforms.createTelecom(createTELList()); assertEquals(telecom.getValue().get(0).getValue(), "CONNECT TEL"); }
@Test public void createTelecomTELExplicitListNull() { PRPAMT201306UV02PatientTelecom telecom; HL7QueryParamsTransforms queryTransforms = new HL7QueryParamsTransforms(); List<TELExplicit> telList = null; telecom = queryTransforms.createTelecom(telList); assertNull(telecom); }