use of uk.nhs.connect.iucds.cda.ucr.POCDMT000002UK01PatientRole in project integration-adaptor-111 by nhsconnect.
the class EncounterMapper method getPatient.
private Optional<Patient> getPatient(POCDMT000002UK01ClinicalDocument1 clinicalDocument1) {
Patient patient = new Patient();
if (clinicalDocument1.sizeOfRecordTargetArray() > 0) {
POCDMT000002UK01PatientRole patientRole = clinicalDocument1.getRecordTargetArray(0).getPatientRole();
patient = patientMapper.mapPatient(patientRole);
}
return Optional.of(patient);
}
Aggregations