use of org.nhspathways.webservices.pathways.pathwayscase.PathwaysCaseDocument.PathwaysCase in project integration-adaptor-111 by nhsconnect.
the class PathwayUtil method getQuestionnaireResponses.
public List<QuestionnaireResponse> getQuestionnaireResponses(POCDMT000002UK01ClinicalDocument1 clinicalDocument, Reference patient, Reference encounter) throws XmlException {
List<QuestionnaireResponse> questionnaireResponseList = new ArrayList<>();
String pathwaysCase = findPathwaysCase(clinicalDocument);
if (pathwaysCase != null) {
PathwaysCase pathwaysCaseDocument = PathwaysCaseDocument.Factory.parse(pathwaysCase).getPathwaysCase();
TriageLine[] triageLineArray = pathwaysCaseDocument.getPathwayDetails().getPathwayTriageDetails().getPathwayTriageArray(0).getTriageLineDetails().getTriageLineArray();
for (TriageLine traigeLine : triageLineArray) {
questionnaireResponseList.add(questionnaireResponseMapper.mapQuestionnaireResponse(pathwaysCaseDocument, patient, encounter, traigeLine));
}
return questionnaireResponseList;
}
return null;
}
Aggregations