private ArrayList getNotesFromDocument()

in src/com/amazonaws/lab/FHIRDataHandler.java [122:137]


	private ArrayList<String> getNotesFromDocument(DocumentReference docRef) {
		ArrayList<String> notesList = new ArrayList<String>();
			
		log.debug("The document data "+docRef.getDescription());
		List<DocumentReferenceContentComponent> attList = docRef.getContent();
		StringBuffer buffer = new StringBuffer();
		for(DocumentReferenceContentComponent attach:attList) {
			byte[] notesBytes = attach.getAttachment().getData();
			log.debug("The provider clinical :"+new String(notesBytes));
			buffer.append(new String(notesBytes));
		}
		
		notesList.add(buffer.toString());
		return notesList;
		
	}