test_class.declarator: transformer
test_class.modifier: private
test_class.original_string: private SourcePatientNamePIDTransformer transformer;
test_class.type: SourcePatientNamePIDTransformer
test_class.var_name: transformer
test_class.file: commons/ihe/xds/src/test/java/org/openehealth/ipf/commons/ihe/xds/core/transform/hl7/pid/SourcePatientNamePIDTransformerTest.java
test_class.identifier: SourcePatientNamePIDTransformerTest
test_case.body: @Test
      public void testToHL7() {
          PatientInfo patientInfo = new PatientInfo();
          Name name = new XpnName();
          name.setFamilyName("Jo|man");
          name.setGivenName("Jo|chen");
          name.setSecondAndFurtherGivenNames("Jo|achim");
          name.setSuffix("von Jo|del");
          name.setPrefix("Jo|dler");
          patientInfo.setName(name);
          assertEquals("Jo\\F\\man^Jo\\F\\chen^Jo\\F\\achim^von Jo\\F\\del^Jo\\F\\dler", 
                  transformer.toHL7(patientInfo).get(0));
      }
test_case.class_method_signature: SourcePatientNamePIDTransformerTest.testToHL7()
test_case.full_signature: @Test public void testToHL7()
test_case.identifier: testToHL7
test_case.invocations: setFamilyName setGivenName setSecondAndFurtherGivenNames setSuffix setPrefix setName assertEquals get toHL7
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testToHL7()
focal_class.file: commons/ihe/xds/src/main/java/org/openehealth/ipf/commons/ihe/xds/core/transform/hl7/pid/SourcePatientNamePIDTransformer.java
focal_class.identifier: SourcePatientNamePIDTransformer
focal_class.interfaces: implements PIDTransformer
focal_class.class_method_signature: SourcePatientNamePIDTransformer.fromHL7(String hl7Data, PatientInfo patientInfo)
focal_class.full_signature: @Override public void fromHL7(String hl7Data, PatientInfo patientInfo)
focal_class.identifier: fromHL7
focal_class.modifiers: @Override public
focal_class.parameters: (String hl7Data, PatientInfo patientInfo)
focal_class.return: void
focal_class.signature: void fromHL7(String hl7Data, PatientInfo patientInfo)
focal_class.class_method_signature: SourcePatientNamePIDTransformer.toHL7(PatientInfo patientInfo)
focal_class.full_signature: @Override public List<String> toHL7(PatientInfo patientInfo)
focal_class.identifier: toHL7
focal_class.modifiers: @Override public
focal_class.parameters: (PatientInfo patientInfo)
focal_class.return: List<String>
focal_class.signature: List<String> toHL7(PatientInfo patientInfo)
focal_method.body: @Override
      public List<String> toHL7(PatientInfo patientInfo) {
          notNull(patientInfo, "patientInfo cannot be null");
          String name = Hl7v2Based.render(patientInfo.getName());
          return (name == null) ? null : Collections.singletonList(name);
      }
focal_method.class_method_signature: SourcePatientNamePIDTransformer.toHL7(PatientInfo patientInfo)
focal_method.full_signature: @Override public List<String> toHL7(PatientInfo patientInfo)
focal_method.identifier: toHL7
focal_method.invocations: notNull render getName singletonList
focal_method.modifiers: @Override public
focal_method.parameters: (PatientInfo patientInfo)
focal_method.return: List<String>
focal_method.signature: List<String> toHL7(PatientInfo patientInfo)