Search in sources :

Example 1 with PRPAMT201304UV02OtherIDs

use of net.ihe.gazelle.hl7v3.prpamt201304UV02.PRPAMT201304UV02OtherIDs in project ipf by oehf.

the class PixV3QueryResponseTransformerTest method getSampleResponse.

public static PixV3QueryResponse getSampleResponse() {
    final PixV3QueryResponse response = PixV3QueryResponse.fromQuery(getSampleQuery());
    response.setDataFound();
    response.setTargetMessageId(new II("m1", "1.3.5"));
    response.setMessageId(new II("m2", "1.3.5"));
    response.getPatientIds().addAll(List.of(new II("9810", "2.16.756.5.30.1.127")));
    response.setCustodianOid("1.4.2");
    response.setProviderOrganization(new COCTMT150003UV03Organization());
    response.getProviderOrganization().getName().add(new ON());
    response.getProviderOrganization().getName().get(0).mixed = List.of("Provider Organization");
    response.setPersonName(new PN());
    response.getPersonName().mixed = List.of("Person Name");
    response.getPersonIds().add(new II("76133761", "1.3.6.1.4.1.12559.11.25.1.19"));
    response.getAsOtherIDs().add(new PRPAMT201304UV02OtherIDs());
    response.getAsOtherIDs().get(0).setId(List.of(new II("1.2.840.114350.1.13", "38273N237")));
    final MCCIMT000300UV01AcknowledgementDetail ad = new MCCIMT000300UV01AcknowledgementDetail();
    ad.setCode(new CE("204", null, null));
    ad.getLocation().add(new ST());
    ad.getLocation().get(0).mixed = List.of("/hl7:PRPA_IN201309UV02/hl7:controlActProcess");
    ad.setText(new ED());
    ad.getText().mixed = List.of("Requested record not found");
    response.getAcknowledgementDetails().add(ad);
    return response;
}
Also used : COCTMT150003UV03Organization(net.ihe.gazelle.hl7v3.coctmt150003UV03.COCTMT150003UV03Organization) PRPAMT201304UV02OtherIDs(net.ihe.gazelle.hl7v3.prpamt201304UV02.PRPAMT201304UV02OtherIDs) PixV3QueryResponse(org.openehealth.ipf.commons.ihe.hl7v3.core.responses.PixV3QueryResponse) MCCIMT000300UV01AcknowledgementDetail(net.ihe.gazelle.hl7v3.mccimt000300UV01.MCCIMT000300UV01AcknowledgementDetail)

Aggregations

COCTMT150003UV03Organization (net.ihe.gazelle.hl7v3.coctmt150003UV03.COCTMT150003UV03Organization)1 MCCIMT000300UV01AcknowledgementDetail (net.ihe.gazelle.hl7v3.mccimt000300UV01.MCCIMT000300UV01AcknowledgementDetail)1 PRPAMT201304UV02OtherIDs (net.ihe.gazelle.hl7v3.prpamt201304UV02.PRPAMT201304UV02OtherIDs)1 PixV3QueryResponse (org.openehealth.ipf.commons.ihe.hl7v3.core.responses.PixV3QueryResponse)1