コード例 #1
0
 @Test
 public void testFromHL7() {
   PatientInfo patientInfo = new PatientInfo();
   transformer.fromHL7("19800102030405-0100^sdf", patientInfo);
   DateTime expected =
       new DateTime(1980, 1, 2, 3, 4, 5, DateTimeZone.forOffsetHoursMinutes(-1, 0));
   assertEquals(expected.toDateTime(DateTimeZone.UTC), patientInfo.getDateOfBirth());
 }
コード例 #2
0
 @Test
 public void testFromHL7Empty() {
   PatientInfo patientInfo = new PatientInfo();
   transformer.fromHL7("", patientInfo);
   assertNull(patientInfo.getDateOfBirth());
 }