use of org.openehealth.ipf.commons.ihe.xds.core.metadata.Code in project ipf by oehf.
the class FindPrescriptionsForDispenseQueryTransformerTest method setUp.
@BeforeEach
public void setUp() {
transformer = new FindPrescriptionsForDispenseQueryTransformer();
query = new FindPrescriptionsForDispenseQuery();
query.setPatientId(new Identifiable("id1", new AssigningAuthority("uni1", "uniType1")));
query.setHomeCommunityId("12.21.41");
query.setConfidentialityCodes(Arrays.asList(new Code("code10", null, "scheme10"), new Code("code11", null, "scheme11")));
query.getCreationTime().setFrom("1980");
query.getCreationTime().setTo("1981");
query.getServiceStartTime().setFrom("1982");
query.getServiceStartTime().setTo("1983");
query.getServiceStopTime().setFrom("1984");
query.getServiceStopTime().setTo("1985");
query.setStatus(Arrays.asList(AvailabilityStatus.APPROVED, AvailabilityStatus.SUBMITTED));
query.setUuids(Arrays.asList("uuid1", "uuid2"));
query.setUniqueIds(Arrays.asList("uniqueId1", "uniqueId2"));
query.setPracticeSettingCodes(Arrays.asList(new Code("code3", null, "scheme3"), new Code("code4", null, "scheme4")));
query.setHealthcareFacilityTypeCodes(Arrays.asList(new Code("code5", null, "scheme5"), new Code("code6", null, "scheme6")));
query.setEventCodes(Arrays.asList(new Code("code7", null, "scheme7"), new Code("code8", null, "scheme8")));
query.setAuthorPersons(Arrays.asList("per'son1", "person2"));
ebXML = new EbXMLFactory30().createAdhocQueryRequest();
}
use of org.openehealth.ipf.commons.ihe.xds.core.metadata.Code in project ipf by oehf.
the class FindPrescriptionsForValidationQueryTransformerTest method setUp.
@BeforeEach
public void setUp() {
transformer = new FindPrescriptionsForValidationQueryTransformer();
query = new FindPrescriptionsForValidationQuery();
query.setPatientId(new Identifiable("id1", new AssigningAuthority("uni1", "uniType1")));
query.setHomeCommunityId("12.21.41");
query.setConfidentialityCodes(Arrays.asList(new Code("code10", null, "scheme10"), new Code("code11", null, "scheme11")));
query.getCreationTime().setFrom("1980");
query.getCreationTime().setTo("1981");
query.getServiceStartTime().setFrom("1982");
query.getServiceStartTime().setTo("1983");
query.getServiceStopTime().setFrom("1984");
query.getServiceStopTime().setTo("1985");
query.setStatus(Arrays.asList(AvailabilityStatus.APPROVED, AvailabilityStatus.SUBMITTED));
query.setUuids(Arrays.asList("uuid1", "uuid2"));
query.setUniqueIds(Arrays.asList("uniqueId1", "uniqueId2"));
query.setPracticeSettingCodes(Arrays.asList(new Code("code3", null, "scheme3"), new Code("code4", null, "scheme4")));
query.setHealthcareFacilityTypeCodes(Arrays.asList(new Code("code5", null, "scheme5"), new Code("code6", null, "scheme6")));
query.setEventCodes(Arrays.asList(new Code("code7", null, "scheme7"), new Code("code8", null, "scheme8")));
query.setAuthorPersons(Arrays.asList("per'son1", "person2"));
ebXML = new EbXMLFactory30().createAdhocQueryRequest();
}
use of org.openehealth.ipf.commons.ihe.xds.core.metadata.Code in project ipf by oehf.
the class FindPrescriptionsQueryTransformerTest method setUp.
@BeforeEach
public void setUp() {
transformer = new FindPrescriptionsQueryTransformer();
query = new FindPrescriptionsQuery();
query.setPatientId(new Identifiable("id1", new AssigningAuthority("uni1", "uniType1")));
query.setHomeCommunityId("12.21.41");
query.setConfidentialityCodes(Arrays.asList(new Code("code10", null, "scheme10"), new Code("code11", null, "scheme11")));
query.getCreationTime().setFrom("1980");
query.getCreationTime().setTo("1981");
query.getServiceStartTime().setFrom("1982");
query.getServiceStartTime().setTo("1983");
query.getServiceStopTime().setFrom("1984");
query.getServiceStopTime().setTo("1985");
query.setStatus(Arrays.asList(AvailabilityStatus.APPROVED, AvailabilityStatus.SUBMITTED));
query.setUuids(Arrays.asList("uuid1", "uuid2"));
query.setUniqueIds(Arrays.asList("uniqueId1", "uniqueId2"));
query.setPracticeSettingCodes(Arrays.asList(new Code("code3", null, "scheme3"), new Code("code4", null, "scheme4")));
query.setHealthcareFacilityTypeCodes(Arrays.asList(new Code("code5", null, "scheme5"), new Code("code6", null, "scheme6")));
query.setEventCodes(Arrays.asList(new Code("code7", null, "scheme7"), new Code("code8", null, "scheme8")));
query.setAuthorPersons(Arrays.asList("per'son1", "person2"));
ebXML = new EbXMLFactory30().createAdhocQueryRequest();
}
use of org.openehealth.ipf.commons.ihe.xds.core.metadata.Code in project ipf by oehf.
the class FindSubmissionSetsQueryTransformerTest method setUp.
@BeforeEach
public void setUp() {
transformer = new FindSubmissionSetsQueryTransformer();
query = new FindSubmissionSetsQuery();
query.setPatientId(new Identifiable("id1", new AssigningAuthority("uni1", "uniType1")));
query.setContentTypeCodes(Arrays.asList(new Code("code1", null, "system1"), new Code("code2", null, "system2")));
query.getSubmissionTime().setFrom("20150102030405");
query.getSubmissionTime().setTo("20150102030406");
query.setAuthorPerson("per'son1");
query.setStatus(Arrays.asList(AvailabilityStatus.APPROVED, AvailabilityStatus.SUBMITTED));
query.setHomeCommunityId("12.21.41");
ebXML = new EbXMLFactory30().createAdhocQueryRequest();
}
use of org.openehealth.ipf.commons.ihe.xds.core.metadata.Code in project ipf by oehf.
the class QueryListTest method testXmlSerializationWithCode.
@Test
public void testXmlSerializationWithCode() throws Exception {
var innerList1 = Arrays.asList(new Code("Lisa", null, "Girlfriend scheme"), new Code("Jodi", null, "Girlfriend scheme"), new Code("Terry", null, "Girlfriend scheme"), new Code("Cassandra", null, "Girlfriend scheme"));
var innerList2 = Arrays.asList(new Code("Brock", null, "Children scheme"), new Code("Thor", null, "Children scheme"), new Code("Venus", null, "Children scheme"));
var queryList = new QueryList<Code>();
queryList.getOuterList().add(innerList1);
queryList.getOuterList().add(innerList2);
var jaxbContext = JAXBContext.newInstance(QueryList.class, Code.class);
checkSerialization(jaxbContext, "queryList", queryList);
}
Aggregations