@Test
public void testCreateDocumentProposed() {
super.init("endoflifecare/", "EOLCHelper-serialiseSWProposed", "EoLC Helper: SW Proposed Serialise", "This uses the EOLC Helper class to generate a full end of life care CDA document with a minimal set of fields, and serialises to a CDA document, which is compared with an expected document example.");
try {
// Use the helper to create the document
ClinicalDocument doc = EndOfLifeCareDocumentCreationHelper.createDocument(proposed);
// Serialise to a CDA XML Document
String xml = doc.serialise();
// Generate the rendered version
super.render(xml);
// Re-serialised (for documentation purposes)
ClinicalDocument doc2 = new ClinicalDocument();
doc2.parse(xml);
content = content.replaceAll("#TESTRESULT#", "<div class='pass'>PASS: Successfully created CDA document</div>");
content = content.replaceAll("#EXPECTED#", "");
addActualResultWithXML(xml);