public class ClinicalDocumentCreator extends Object implements DocumentCreator
| Modifier and Type | Field and Description |
|---|---|
protected SchematronResource |
resource |
| Constructor and Description |
|---|
ClinicalDocumentCreator() |
| Modifier and Type | Method and Description |
|---|---|
void |
addStylesheet(String stylesheetName,
Document doc) |
void |
check(Document d)
Check a clinical document using the defaults schematron for this document type.
|
protected Document |
getDocumentFilteredOfNull(Document doc) |
protected boolean |
isStrict() |
void |
useStrict()
Do strict checking with the default schematron for this document type This will throw
SchematronValidation errors on invalid CDA documents
|
void |
useStrict(SchematronResource resource)
Do strict checking with the supplied schematron files for this document type This will throw
SchematronValidation errors on invalid CDA documents
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate1AFormatCDADocument, create1BFormatCDADocument, createFormat2CDADocumentprotected SchematronResource resource
public void useStrict()
public void useStrict(SchematronResource resource)
resource - - The file location of the schematron files used to check the document eg:
"resources/schematron/PCEHR-DispenseRecord/schematron/ccd-3B.sch"protected boolean isStrict()
public void check(Document d) throws SchematronValidationException
SchematronValidationException - on schematron errorsRuntimeException - on invalid xmlCopyright © 2020. All rights reserved.