public class ClinicalNotePreProcessor extends org.xml.sax.helpers.DefaultHandler implements PreProcessor
Constructor and Description |
---|
ClinicalNotePreProcessor(InputStream dtdFile,
boolean includeSectionMarkers)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
endDocument() |
void |
endElement(String uri,
String localName,
String qName) |
DocumentMetaData |
process(String xml)
Process a document to retrieve meta data about the document.
|
void |
startDocument() |
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes) |
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
public static final String MD_KEY_PATIENT_STREET_ADDR
public static final String MD_KEY_PATIENT_CITY
public static final String MD_KEY_PATIENT_STATE
public static final String MD_KEY_PATIENT_ZIP
public static final String MD_KEY_PATIENT_CNT
public static final String MD_KEY_DOC_ID
public static final String MD_KEY_DOC_LINK_ID
public static final String MD_KEY_DOC_REVISION_ID
public static final String MD_KEY_NOTE_DATE
public static final String MD_KEY_REV_DATE
public static final String MD_KEY_ADMIT_DATE
public static final String MD_KEY_DISCHARGE_DATE
public static final String MD_KEY_SERVICE_CODE
public static final String MD_KEY_SITE_CODE
public static final String MD_KEY_FACILITY_CODE
public static final String MD_KEY_PT_BIRTH_DATE
public static final String MD_KEY_PT_HEIGHT
public static final String MD_KEY_PT_WEIGHT
public static final String MD_KEY_PT_HEAD_CIRCUMFERENCE
public static final String MD_KEY_PT_GENDER
public static final String MD_KEY_PT_BMI
public static final String MD_KEY_PT_BSA
public static final String MD_KEY_PT_TEMPERATURE
public static final String MD_KEY_PT_BILLING_CODE
public static final String MD_KEY_PT_RESPIRATORY_RATE
public static final String MD_KEY_EVENT_TYPE_CODE
public static final String MD_KEY_DOC_CONFIDENTIAL_IND
public static final String MD_KEY_DOC_STATUS_CODE
public static final String MD_KEY_HISTORY_SECTION
public static final String MD_KEY_LOCATION
public static final String MD_KEY_MINUTES_COUNSELING
public static final String MD_KEY_TOTAL_TIME
public static final String MD_KEY_PROVIDER_ID
public static final String MD_KEY_PROVIDER2_ID
public static final String MD_KEY_SIGNATURE_ID
public static final String MD_KEY_SIGNATURE_DATE
public static final String MD_KEY_TRANSCRIBER_ID
public static final String MD_KEY_TRANSCRIPTION_DATE
public static final String MD_KEY_CUSTOMER_ID
public static final int UNKNOWN_TABLE_TYPE
public ClinicalNotePreProcessor(InputStream dtdFile, boolean includeSectionMarkers) throws SAXException, FileNotFoundException
dtdFile
- File object pointing to DTD.includeSectionMarkers
- Flag that determines whether the section markers are included
as part of the section.SAXException
FileNotFoundException
public DocumentMetaData process(String xml) throws Exception
PreProcessor
process
in interface PreProcessor
Exception
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
SAXException
ContentHandler.startElement(java.lang.String,
java.lang.String, java.lang.String, org.xml.sax.Attributes)
public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
characters
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void endElement(String uri, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
SAXException
ContentHandler.endElement(java.lang.String,
java.lang.String, java.lang.String)
public void startDocument() throws SAXException
startDocument
in interface ContentHandler
startDocument
in class org.xml.sax.helpers.DefaultHandler
SAXException
ContentHandler.startDocument()
public void endDocument() throws SAXException
endDocument
in interface ContentHandler
endDocument
in class org.xml.sax.helpers.DefaultHandler
SAXException
ContentHandler.endDocument()
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.