private void print() { DocumentAndPatientWrapperVoCollection documents = new DocumentAndPatientWrapperVoCollection(); DocumentAndPatientWrapperVo record = new DocumentAndPatientWrapperVo(); record.setDocument(form.getLocalContext().getSelectedDocument()); PatientForDocumentWorklistVo patient = new PatientForDocumentWorklistVo(form.getGlobalContext().Core.getPatientShort().getID_Patient(), form.getGlobalContext().Core.getPatientShort().getVersion_Patient()); patient.setName(form.getGlobalContext().Core.getPatientShort().getName()); patient.setIdentifiers(form.getGlobalContext().Core.getPatientShort().getIdentifiers()); record.setPatient(patient); documents.add(record); engine.open(form.getForms().Core.MultiPrintDialog, new Object[] {documents}); }
private String getNHSNumber(PatientForDocumentWorklistVo patient) { if (patient == null) return null; if (!patient.getIdentifiersIsNotNull()) return null; for (int i = 0; i < patient.getIdentifiers().size(); i++) { if (PatIdType.NHSN.equals(patient.getIdentifiers().get(i).getType())) { return patient.getIdentifiers().get(i).getValue(); } } return null; }
private void printDocument() { DocumentAndPatientWrapperVoCollection documents = new DocumentAndPatientWrapperVoCollection(); DocumentAndPatientWrapperVo record = new DocumentAndPatientWrapperVo(); record.setDocument(form.getLocalContext().getSelectedDocument()); PatientForDocumentWorklistVo patient = new PatientForDocumentWorklistVo(form.getGlobalContext().Core.getPatientShort().getID_Patient(), form.getGlobalContext().Core.getPatientShort().getVersion_Patient()); patient.setName(form.getGlobalContext().Core.getPatientShort().getName()); patient.setIdentifiers(form.getGlobalContext().Core.getPatientShort().getIdentifiers()); record.setPatient(patient); documents.add(record); engine.open(form.getForms().Core.MultiPrintDialog, new Object[] {documents}); }
private void printAndLock() { if(form.getLocalContext().getSelectedDocument() == null) return; form.getLocalContext().getSelectedDocument().setCorrespondenceStatus(DocumentStatus.FINAL); if(savePatientDocument(form.getLocalContext().getSelectedDocument())) { open(); DocumentAndPatientWrapperVoCollection documents = new DocumentAndPatientWrapperVoCollection(); DocumentAndPatientWrapperVo record = new DocumentAndPatientWrapperVo(); record.setDocument(form.getLocalContext().getSelectedDocument()); PatientForDocumentWorklistVo patient = new PatientForDocumentWorklistVo(form.getGlobalContext().Core.getPatientShort().getID_Patient(), form.getGlobalContext().Core.getPatientShort().getVersion_Patient()); patient.setName(form.getGlobalContext().Core.getPatientShort().getName()); patient.setIdentifiers(form.getGlobalContext().Core.getPatientShort().getIdentifiers()); record.setPatient(patient); documents.add(record); engine.open(form.getForms().Core.MultiPrintDialog, new Object[] {documents}); } form.getLocalContext().setSelectedDocument(domain.getPatientDocument(form.getLocalContext().getSelectedDocument())); form.getGlobalContext().Core.setPatientCorrespondence(form.getLocalContext().getSelectedDocument()); form.grdDetails().setValue(domain.getPatientDocumentSearchListVo(form.getLocalContext().getSelectedDocument())); }