test_class.declarator: transformer
test_class.modifier: private
test_class.original_string: private PatientInfoTransformer transformer;
test_class.type: PatientInfoTransformer
test_class.var_name: transformer
test_class.file: commons/ihe/xds/src/test/java/org/openehealth/ipf/commons/ihe/xds/core/transform/hl7/PatientInfoTransformerTest.java
test_class.identifier: PatientInfoTransformerTest
test_case.body: @Test
      public void testToHL7Null() {
          List<String> hl7Data = transformer.toHL7(null);
          assertEquals(0, hl7Data.size());
      }
test_case.class_method_signature: PatientInfoTransformerTest.testToHL7Null()
test_case.full_signature: @Test public void testToHL7Null()
test_case.identifier: testToHL7Null
test_case.invocations: toHL7 assertEquals size
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testToHL7Null()
focal_class.declarator: PID_PREFIX = "PID-"
focal_class.modifier: private static final
focal_class.original_string: private static final String PID_PREFIX = "PID-";
focal_class.type: String
focal_class.var_name: PID_PREFIX
focal_class.declarator: pidTransformers
focal_class.modifier: private static final
focal_class.original_string: private static final Map<Integer, PIDTransformer> pidTransformers;
focal_class.type: Map<Integer, PIDTransformer>
focal_class.var_name: pidTransformers
focal_class.file: commons/ihe/xds/src/main/java/org/openehealth/ipf/commons/ihe/xds/core/transform/hl7/PatientInfoTransformer.java
focal_class.identifier: PatientInfoTransformer
focal_class.class_method_signature: PatientInfoTransformer.fromHL7(List<String> hl7PID)
focal_class.full_signature: public PatientInfo fromHL7(List<String> hl7PID)
focal_class.identifier: fromHL7
focal_class.modifiers: public
focal_class.parameters: (List<String> hl7PID)
focal_class.return: PatientInfo
focal_class.signature: PatientInfo fromHL7(List<String> hl7PID)
focal_class.class_method_signature: PatientInfoTransformer.toHL7(PatientInfo patientInfo)
focal_class.full_signature: public List<String> toHL7(PatientInfo patientInfo)
focal_class.identifier: toHL7
focal_class.modifiers: public
focal_class.parameters: (PatientInfo patientInfo)
focal_class.return: List<String>
focal_class.signature: List<String> toHL7(PatientInfo patientInfo)
focal_class.class_method_signature: PatientInfoTransformer.getPidNumber(String pidNoStr)
focal_class.full_signature: private Integer getPidNumber(String pidNoStr)
focal_class.identifier: getPidNumber
focal_class.modifiers: private
focal_class.parameters: (String pidNoStr)
focal_class.return: Integer
focal_class.signature: Integer getPidNumber(String pidNoStr)
focal_method.body: public List<String> toHL7(PatientInfo patientInfo) {
          if (patientInfo == null) {
              return Collections.emptyList();
          }
          
          List<String> hl7Strings = new ArrayList<String>();
          for (Map.Entry<Integer, PIDTransformer> entry : pidTransformers.entrySet()) {
              String pidNoStr = PID_PREFIX + entry.getKey();
              List<String> repetitions = entry.getValue().toHL7(patientInfo);
              if (repetitions != null) {
                  for (String repetition : repetitions) {
                      hl7Strings.add(pidNoStr + '|' + repetition);
                  }
              }
          }
          
          return hl7Strings;
      }
focal_method.class_method_signature: PatientInfoTransformer.toHL7(PatientInfo patientInfo)
focal_method.full_signature: public List<String> toHL7(PatientInfo patientInfo)
focal_method.identifier: toHL7
focal_method.invocations: emptyList entrySet getKey toHL7 getValue add
focal_method.modifiers: public
focal_method.parameters: (PatientInfo patientInfo)
focal_method.return: List<String>
focal_method.signature: List<String> toHL7(PatientInfo patientInfo)