@Override public void populate() { for (Dxresearch problem : problems) { if (problem.getCodingSystem().equals("icd9")) { Entry entry = new Entry(x_ActRelationshipEntry.DRIV, new BL(true)); entry.setTemplateId(Arrays.asList(new II(bodyConstants.ENTRY_TEMPLATE_ID))); entry.setClinicalStatement(populateClinicalStatement(Arrays.asList(problem))); entries.add(entry); } } super.populate(); }
protected void entryStructureTest() { Section section = component.getSection(); assertNotNull(section); assertEquals(x_BasicConfidentialityKind.Normal, section.getConfidentialityCode().getCode()); ArrayList<Entry> entries = section.getEntry(); assertNotNull(entries); Entry entry = entries.get(0); assertNotNull(entry); assertEquals(x_ActRelationshipEntry.DRIV, entry.getTypeCode().getCode()); assertTrue(entry.getTemplateId().contains(new II(bodyConstants.ENTRY_TEMPLATE_ID))); assertTrue(entry.getContextConductionInd().toBoolean()); }