HL7Extractors { public static String ExtractHL7ReceiverOID(org.hl7.v3.PRPAIN201305UV02 oPRPAIN201305UV) { String sReceiverOID = null; if (oPRPAIN201305UV != null && NullChecker.isNotNullish(oPRPAIN201305UV.getReceiver()) && oPRPAIN201305UV.getReceiver().get(0) != null && oPRPAIN201305UV.getReceiver().get(0).getDevice() != null && oPRPAIN201305UV.getReceiver().get(0).getDevice().getAsAgent() != null && oPRPAIN201305UV.getReceiver().get(0).getDevice().getAsAgent().getValue() != null && oPRPAIN201305UV.getReceiver().get(0).getDevice().getAsAgent().getValue() .getRepresentedOrganization() != null && oPRPAIN201305UV.getReceiver().get(0).getDevice().getAsAgent().getValue().getRepresentedOrganization() .getValue() != null && NullChecker.isNotNullish(oPRPAIN201305UV.getReceiver().get(0).getDevice().getAsAgent().getValue() .getRepresentedOrganization().getValue().getId()) && oPRPAIN201305UV.getReceiver().get(0).getDevice().getAsAgent().getValue().getRepresentedOrganization() .getValue().getId().get(0) != null && NullChecker.isNotNullish(oPRPAIN201305UV.getReceiver().get(0).getDevice().getAsAgent().getValue() .getRepresentedOrganization().getValue().getId().get(0).getRoot())) { sReceiverOID = oPRPAIN201305UV.getReceiver().get(0).getDevice().getAsAgent().getValue() .getRepresentedOrganization().getValue().getId().get(0).getRoot(); } return sReceiverOID; }  static PRPAIN201301UV02MFMIMT700701UV01Subject1 ExtractSubjectFromMessage(
        org.hl7.v3.PRPAIN201301UV02 message); static PRPAIN201302UV02MFMIMT700701UV01Subject1 ExtractSubjectFromMessage(
        org.hl7.v3.PRPAIN201302UV02 message); static PRPAIN201310UV02MFMIMT700711UV01Subject1 ExtractSubjectFromMessage(
        org.hl7.v3.PRPAIN201310UV02 message); static PRPAMT201301UV02Patient ExtractHL7PatientFromMessage(org.hl7.v3.PRPAIN201301UV02 message); static PRPAMT201302UV02Patient ExtractHL7PatientFromMessage(org.hl7.v3.PRPAIN201302UV02 message); static PRPAMT201304UV02Patient ExtractHL7PatientFromMessage(org.hl7.v3.PRPAIN201310UV02 message); static PersonNameType translatePNListtoPersonNameType(List<PNExplicit> names); static PersonNameType translateENListtoPersonNameType(List<ENExplicit> names); static PRPAMT201301UV02Person ExtractHL7PatientPersonFromHL7Patient(PRPAMT201301UV02Patient patient); static PRPAMT201302UV02Person ExtractHL7PatientPersonFromHL7Patient(PRPAMT201302UV02Patient patient); static PRPAMT201301UV02Person ExtractHL7PatientPersonFrom201301Message(org.hl7.v3.PRPAIN201301UV02 message); static PRPAMT201302UV02Person ExtractHL7PatientPersonFrom201302Message(org.hl7.v3.PRPAIN201302UV02 message); static String ExtractHL7ReceiverOID(org.hl7.v3.PRPAIN201305UV02 oPRPAIN201305UV); static String ExtractHL7SenderOID(org.hl7.v3.PRPAIN201305UV02 oPRPAIN201305UV);  }
@Test public void ExtractHL7ReceiverOID() { String SenderOID = "1.1"; HL7Extractors extractor = new HL7Extractors(); String ReceiverOID = extractor.ExtractHL7ReceiverOID(createPRPAIN201305UV02(SenderOID)); assertEquals(ReceiverOID, "2.2"); }