HL7DataTransformHelper { public static II IIFactory(String root) { return IIFactory(root, null, null); }  static II IIFactory(String root); static II IIFactory(String root, String extension); static II IIFactory(String root, String extension, String assigningAuthorityName); static II IIFactoryCreateNull(); static CS CSFactory(String code); static CE CEFactory(String code); static CD CDFactory(String code); static CD CDFactory(String code, String codeSystem); static CD CDFactory(String code, String codeSystem, String displayName); static TSExplicit TSExplicitFactory(String value); static TSExplicit creationTimeFactory(); static ENExplicit convertPNToEN(PNExplicit pnName); static PNExplicit convertENtoPN(ENExplicit value); static ENExplicit createEnExplicit(String firstName, String middleName, String lastName, String title,
            String suffix); static PNExplicit createPNExplicit(String firstName, String lastName); static PNExplicit createPNExplicit(String firstName, String middleName, String lastName); static PNExplicit createPNExplicit(String firstName, String middleName, String lastName, String title,
            String suffix); static ADExplicit createADExplicit(boolean notOrdered, String street, String city, String state,
            String zip); static ADExplicit createADExplicit(String street, String city, String state, String zip); static ADExplicit createADExplicit(boolean notOrdered, String street, String street1, String city,
            String state, String zip); static ADExplicit createADExplicit(String street, String street1, String city, String state, String zip); static TELExplicit createTELExplicit(String value);  }
@Test public void testIIFactoryWithRoot() { String root = "1.1"; HL7DataTransformHelper helper = new HL7DataTransformHelper(); II ii = new II(); ii = helper.IIFactory(root); assertEquals(ii.getRoot(), "1.1"); assertNull(ii.getAssigningAuthorityName()); assertNull(ii.getExtension()); }
@Test public void testIIFactoryWithRootAndExtension() { String root = "1.1"; String extension = "1.16.17.19"; HL7DataTransformHelper helper = new HL7DataTransformHelper(); II ii = new II(); ii = helper.IIFactory(root, extension); assertEquals(ii.getRoot(), "1.1"); assertNull(ii.getAssigningAuthorityName()); assertEquals(ii.getExtension(), "1.16.17.19"); }
@Test public void IIFactory() { String root = "1.1"; String extension = "1.16.17.19"; HL7DataTransformHelper helper = new HL7DataTransformHelper(); II ii = new II(); ii = helper.IIFactory(root, extension); assertEquals(ii.getRoot(), "1.1"); assertEquals(ii.getExtension(), "1.16.17.19"); assertNull(ii.getAssigningAuthorityName()); }
@Test public void testIIFactory() { String root = "1.1"; String extension = "1.16.17.19"; String assigningAuthorityName = "CONNECT"; HL7DataTransformHelper helper = new HL7DataTransformHelper(); II ii = new II(); ii = helper.IIFactory(root, extension, assigningAuthorityName); assertEquals(ii.getAssigningAuthorityName(), assigningAuthorityName); assertEquals(ii.getExtension(), extension); assertEquals(ii.getRoot(), "1.1"); }
@Test public void testIIFactoryWhenRootNull() { String root = null; String extension = "1.16.17.19"; String assigningAuthorityName = "CONNECT"; HL7DataTransformHelper helper = new HL7DataTransformHelper(); II ii = new II(); ii = helper.IIFactory(root, extension, assigningAuthorityName); assertEquals(ii.getAssigningAuthorityName(), assigningAuthorityName); assertEquals(ii.getExtension(), extension); assertNull(ii.getRoot()); }
@Test public void testIIFactoryWhenAANull() { String root = "1.1"; String extension = "1.16.17.19"; String assigningAuthorityName = null; HL7DataTransformHelper helper = new HL7DataTransformHelper(); II ii = new II(); ii = helper.IIFactory(root, extension, assigningAuthorityName); assertNull(ii.getAssigningAuthorityName()); assertEquals(ii.getExtension(), extension); assertEquals(ii.getRoot(), "1.1"); }
@Test public void testIIFactoryWhenExtensionNull() { String root = "1.1"; String extension = null; String assigningAuthorityName = "CONNECT"; HL7DataTransformHelper helper = new HL7DataTransformHelper(); II ii = new II(); ii = helper.IIFactory(root, extension, assigningAuthorityName); assertEquals(ii.getAssigningAuthorityName(), "CONNECT"); assertNull(ii.getExtension()); assertEquals(ii.getRoot(), "1.1"); }