Search in sources :

Example 1 with CDNPfITCDAUrl

use of uk.nhs.connect.iucds.cda.ucr.CDNPfITCDAUrl in project integration-adaptor-111 by nhsconnect.

the class AppointmentMapperTest method mockEntry.

private POCDMT000002UK01Entry mockEntry() {
    POCDMT000002UK01Entry entry = mock(POCDMT000002UK01Entry.class);
    POCDMT000002UK01Encounter encounter = mock(POCDMT000002UK01Encounter.class);
    POCDMT000002UK01Participant2 participant = mock(POCDMT000002UK01Participant2.class);
    POCDMT000002UK01ParticipantRole participantRole = mock(POCDMT000002UK01ParticipantRole.class);
    when(entry.getEncounter()).thenReturn(encounter);
    when(encounter.getParticipantArray()).thenReturn(new POCDMT000002UK01Participant2[] { participant });
    when(participant.getParticipantRole()).thenReturn(participantRole);
    when(entry.isSetEncounter()).thenReturn(true);
    when(encounter.isSetCode()).thenReturn(true);
    CDNPfITCDAUrl cdnPfITCDAUrl = mock(CDNPfITCDAUrl.class);
    when(encounter.getCode()).thenReturn(cdnPfITCDAUrl);
    when(cdnPfITCDAUrl.getDisplayName()).thenReturn(REASON);
    return entry;
}
Also used : POCDMT000002UK01Entry(uk.nhs.connect.iucds.cda.ucr.POCDMT000002UK01Entry) POCDMT000002UK01Participant2(uk.nhs.connect.iucds.cda.ucr.POCDMT000002UK01Participant2) CDNPfITCDAUrl(uk.nhs.connect.iucds.cda.ucr.CDNPfITCDAUrl) POCDMT000002UK01Encounter(uk.nhs.connect.iucds.cda.ucr.POCDMT000002UK01Encounter) POCDMT000002UK01ParticipantRole(uk.nhs.connect.iucds.cda.ucr.POCDMT000002UK01ParticipantRole)

Aggregations

CDNPfITCDAUrl (uk.nhs.connect.iucds.cda.ucr.CDNPfITCDAUrl)1 POCDMT000002UK01Encounter (uk.nhs.connect.iucds.cda.ucr.POCDMT000002UK01Encounter)1 POCDMT000002UK01Entry (uk.nhs.connect.iucds.cda.ucr.POCDMT000002UK01Entry)1 POCDMT000002UK01Participant2 (uk.nhs.connect.iucds.cda.ucr.POCDMT000002UK01Participant2)1 POCDMT000002UK01ParticipantRole (uk.nhs.connect.iucds.cda.ucr.POCDMT000002UK01ParticipantRole)1