test_class.declarator: transformer
test_class.modifier: private
test_class.original_string: private SourcePatientIdentifierPIDTransformer transformer;
test_class.type: SourcePatientIdentifierPIDTransformer
test_class.var_name: transformer
test_class.file: commons/ihe/xds/src/test/java/org/openehealth/ipf/commons/ihe/xds/core/transform/hl7/pid/SourcePatientIdentifierPIDTransformerTest.java
test_class.identifier: SourcePatientIdentifierPIDTransformerTest
test_case.body: @Test
      public void testFromHL7OneEmptyId() {
          PatientInfo patientInfo = new PatientInfo();
          transformer.fromHL7("^^^~id2^^^&2.2.2.2&ISO", patientInfo);
          
          List<Identifiable> ids = patientInfo.getIds();        
          assertEquals(1, ids.size());
          
          assertEquals("id2", ids.get(0).getId());
          assertEquals("2.2.2.2", ids.get(0).getAssigningAuthority().getUniversalId());
          assertEquals("ISO", ids.get(0).getAssigningAuthority().getUniversalIdType());
      }
test_case.class_method_signature: SourcePatientIdentifierPIDTransformerTest.testFromHL7OneEmptyId()
test_case.full_signature: @Test public void testFromHL7OneEmptyId()
test_case.identifier: testFromHL7OneEmptyId
test_case.invocations: fromHL7 getIds assertEquals size assertEquals getId get assertEquals getUniversalId getAssigningAuthority get assertEquals getUniversalIdType getAssigningAuthority get
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testFromHL7OneEmptyId()
focal_class.file: commons/ihe/xds/src/main/java/org/openehealth/ipf/commons/ihe/xds/core/transform/hl7/pid/SourcePatientIdentifierPIDTransformer.java
focal_class.identifier: SourcePatientIdentifierPIDTransformer
focal_class.interfaces: implements PIDTransformer
focal_class.class_method_signature: SourcePatientIdentifierPIDTransformer.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: SourcePatientIdentifierPIDTransformer.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 void fromHL7(String hl7Data, PatientInfo patientInfo) {
          notNull(patientInfo, "patientInfo cannot be null");
          
          String[] repetitions = PipeParser.split(hl7Data, "~");
          for (String hl7id : repetitions) {
              Identifiable id = Hl7v2Based.parse(hl7id, Identifiable.class);
              if (id != null) {
                  patientInfo.getIds().add(id);
              }
          }
      }
focal_method.class_method_signature: SourcePatientIdentifierPIDTransformer.fromHL7(String hl7Data, PatientInfo patientInfo)
focal_method.full_signature: @Override public void fromHL7(String hl7Data, PatientInfo patientInfo)
focal_method.identifier: fromHL7
focal_method.invocations: notNull split parse add getIds
focal_method.modifiers: @Override public
focal_method.parameters: (String hl7Data, PatientInfo patientInfo)
focal_method.return: void
focal_method.signature: void fromHL7(String hl7Data, PatientInfo patientInfo)