@Test public void testSetEidValues_PRPAIN201301UV02() throws JAXBException { String xmlPRPAIN201301UV02 = "<PRPA_IN201301UV02 xmlns=\"urn:hl7-org:v3\" ITSVersion=\"XML_1.0\"><id root=\"21acf7be-007c-41e6-b176-d0969794983b\"></id><creationTime value=\"20091112115139\"></creationTime><interactionId extension=\"PRPA_IN201301UV02\" root=\"2.16.840.1.113883.1.6\"></interactionId><processingCode code=\"P\"></processingCode><processingModeCode code=\"T\"></processingModeCode><acceptAckCode code=\"AL\"></acceptAckCode><receiver typeCode=\"RCV\"><device classCode=\"DEV\" determinerCode=\"INSTANCE\"><id root=\"1.2.840.114350.1.13.99999.4567\"></id><asAgent classCode=\"AGNT\"><representedOrganization classCode=\"ORG\" determinerCode=\"INSTANCE\"><id root=\"1.2.840.114350.1.13.99999.1234\"></id></representedOrganization></asAgent></device></receiver><sender typeCode=\"SND\"><device classCode=\"DEV\" determinerCode=\"INSTANCE\"><id root=\"1.2.840.114350.1.13.99998.8734\"></id><asAgent classCode=\"AGNT\"><representedOrganization classCode=\"ORG\" determinerCode=\"INSTANCE\"><id root=\"1.2.840.114350.1.13.99998\"></id></representedOrganization></asAgent></device></sender><controlActProcess classCode=\"CACT\" moodCode=\"EVN\"><code code=\"PRPA_TE201301UV02\" codeSystem=\"2.16.840.1.113883.1.6\"></code><subject typeCode=\"SUBJ\"><registrationEvent classCode=\"REG\" moodCode=\"EVN\"><id nullFlavor=\"NA\"></id><statusCode code=\"active\"></statusCode><subject1 typeCode=\"SBJ\"><patient classCode=\"PAT\"><id assigningAuthorityName=\"NIST2010\" extension=\"1c5c59f0-5788-11e3-84b3-00155d3a2124\" root=\"2.16.840.1.113883.4.357\"></id><statusCode code=\"active\"></statusCode><patientPerson><name><given>Asample</given><family>Patientone</family></name><telecom use=\"H\" value=\"tel:610-220-4354\"></telecom><administrativeGenderCode code=\"M\"></administrativeGenderCode><birthTime value=\"19710510\"></birthTime><addr><streetAddressLine>3351 N chatham rd</streetAddressLine><city>ellicott city</city><state>Maryland</state></addr></patientPerson><providerOrganization><id root=\"1.2.840.114350.1.13.99998.8734\"></id><contactParty></contactParty></providerOrganization></patient></subject1><custodian typeCode=\"CST\"><assignedEntity classCode=\"ASSIGNED\"><id root=\"1.2.840.114350.1.13.99998.8734\"></id></assignedEntity></custodian></registrationEvent></subject></controlActProcess></PRPA_IN201301UV02>"; PRPAIN201301UV02 requestMock = marshaller.unmarshalFromXml( PRPAIN201301UV02.class, xmlPRPAIN201301UV02); String eIdMock = "eIdMock"; String eIdDomainMock = "eIdDomainMock"; sut.setEidValues(requestMock, eIdMock, eIdDomainMock); assertEquals(eIdMock, requestMock.getControlActProcess().getSubject() .getRegistrationEvent().getSubject1().getPatient().getId() .getExtension()); assertEquals(eIdDomainMock, requestMock.getControlActProcess() .getSubject().getRegistrationEvent().getSubject1().getPatient() .getId().getRoot()); }
protected void setEidValues(PatientIdentityFeedRequestType request, String eId, String eIdDomain) { request.getControlActProcess().getSubject().getRegistrationEvent() .getSubject1().getPatient().getId().setExtension(eId); request.getControlActProcess().getSubject().getRegistrationEvent() .getSubject1().getPatient().getId().setRoot(eIdDomain); }
XdsbRegistryGetterImpl implements XdsbRegistryGetter { protected void setEidValues(PatientIdentityFeedRequestType request, String eId, String eIdDomain) { request.getControlActProcess().getSubject().getRegistrationEvent() .getSubject1().getPatient().getId().setExtension(eId); request.getControlActProcess().getSubject().getRegistrationEvent() .getSubject1().getPatient().getId().setRoot(eIdDomain); } }
XdsbRegistryGetterImpl implements XdsbRegistryGetter { protected void setEidValues(PatientIdentityFeedRequestType request, String eId, String eIdDomain) { request.getControlActProcess().getSubject().getRegistrationEvent() .getSubject1().getPatient().getId().setExtension(eId); request.getControlActProcess().getSubject().getRegistrationEvent() .getSubject1().getPatient().getId().setRoot(eIdDomain); } @Autowired  XdsbRegistryGetterImpl(
			@Value("${xdsbRegistryEndpointAddress}") String endpointAddress); }
XdsbRegistryGetterImpl implements XdsbRegistryGetter { protected void setEidValues(PatientIdentityFeedRequestType request, String eId, String eIdDomain) { request.getControlActProcess().getSubject().getRegistrationEvent() .getSubject1().getPatient().getId().setExtension(eId); request.getControlActProcess().getSubject().getRegistrationEvent() .getSubject1().getPatient().getId().setRoot(eIdDomain); } @Autowired  XdsbRegistryGetterImpl(
			@Value("${xdsbRegistryEndpointAddress}") String endpointAddress); @Override String addPatientRegistryRecord(String hl7v3Xml, String eId,
			String eIdDomain); @Override String resolvePatientRegistryDuplicates(String hl7v3Xml, String eId,
			String eIdDomain); @Override String revisePatientRegistryRecord(String hl7v3Xml, String eId,
			String eIdDomain); @SuppressWarnings("unchecked") @Override String pidFeed(PixOperation operation, String hl7v3Xml, String eId,
			String eIdDomain); void setMarshaller(SimpleMarshaller marshaller); void setXdsbRegistryWebServiceClient(
			XdsbRegistryWebServiceClient xdsbRegistryWebServiceClient); }
XdsbRegistryGetterImpl implements XdsbRegistryGetter { protected void setEidValues(PatientIdentityFeedRequestType request, String eId, String eIdDomain) { request.getControlActProcess().getSubject().getRegistrationEvent() .getSubject1().getPatient().getId().setExtension(eId); request.getControlActProcess().getSubject().getRegistrationEvent() .getSubject1().getPatient().getId().setRoot(eIdDomain); } @Autowired  XdsbRegistryGetterImpl(
			@Value("${xdsbRegistryEndpointAddress}") String endpointAddress); @Override String addPatientRegistryRecord(String hl7v3Xml, String eId,
			String eIdDomain); @Override String resolvePatientRegistryDuplicates(String hl7v3Xml, String eId,
			String eIdDomain); @Override String revisePatientRegistryRecord(String hl7v3Xml, String eId,
			String eIdDomain); @SuppressWarnings("unchecked") @Override String pidFeed(PixOperation operation, String hl7v3Xml, String eId,
			String eIdDomain); void setMarshaller(SimpleMarshaller marshaller); void setXdsbRegistryWebServiceClient(
			XdsbRegistryWebServiceClient xdsbRegistryWebServiceClient);  }