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 testToHL7EmptyName() {
          PatientInfo patientInfo = new PatientInfo();
          patientInfo.setName(new XcnName());
          assertNull(transformer.toHL7(patientInfo));        
      }
test_case.class_method_signature: SourcePatientNamePIDTransformerTest.testToHL7EmptyName()
test_case.full_signature: @Test public void testToHL7EmptyName()
test_case.identifier: testToHL7EmptyName
test_case.invocations: setName assertNull toHL7
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testToHL7EmptyName()
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)