@Test public void testProcess() { try { DocumentMetaData dmd = iv_cnotePreProcessor.process(iv_cnoteXML); String docID = "000000000"; String serviceCode = "MNT"; Map docProperties = dmd.getMetaData(); String cnote_docID = (String) docProperties.get( ClinicalNotePreProcessor.MD_KEY_DOC_ID); String cnote_serviceCode = (String) docProperties.get( ClinicalNotePreProcessor.MD_KEY_SERVICE_CODE); assertEquals(docID, cnote_docID); assertEquals(serviceCode, cnote_serviceCode); } catch (Exception e) { e.printStackTrace(System.err); fail(e.getMessage()); } }
public DocumentMetaData process(String xml) throws Exception { iv_docMetaData = new DocumentMetaData(); InputSource input = new InputSource(new StringReader(xml)); iv_xmlParser.parse(input); return iv_docMetaData; }
ClinicalNotePreProcessor extends DefaultHandler implements PreProcessor { public DocumentMetaData process(String xml) throws Exception { iv_docMetaData = new DocumentMetaData(); InputSource input = new InputSource(new StringReader(xml)); iv_xmlParser.parse(input); return iv_docMetaData; } }
ClinicalNotePreProcessor extends DefaultHandler implements PreProcessor { public DocumentMetaData process(String xml) throws Exception { iv_docMetaData = new DocumentMetaData(); InputSource input = new InputSource(new StringReader(xml)); iv_xmlParser.parse(input); return iv_docMetaData; } ClinicalNotePreProcessor(InputStream dtdFile, boolean includeSectionMarkers); }
ClinicalNotePreProcessor extends DefaultHandler implements PreProcessor { public DocumentMetaData process(String xml) throws Exception { iv_docMetaData = new DocumentMetaData(); InputSource input = new InputSource(new StringReader(xml)); iv_xmlParser.parse(input); return iv_docMetaData; } ClinicalNotePreProcessor(InputStream dtdFile, boolean includeSectionMarkers); DocumentMetaData process(String xml); void startElement(
            String uri,
            String localName,
            String qName,
            Attributes attributes); void characters(char[] ch, int start, int length); void endElement(String uri, String localName, String qName); void startDocument(); void endDocument(); }
ClinicalNotePreProcessor extends DefaultHandler implements PreProcessor { public DocumentMetaData process(String xml) throws Exception { iv_docMetaData = new DocumentMetaData(); InputSource input = new InputSource(new StringReader(xml)); iv_xmlParser.parse(input); return iv_docMetaData; } ClinicalNotePreProcessor(InputStream dtdFile, boolean includeSectionMarkers); DocumentMetaData process(String xml); void startElement(
            String uri,
            String localName,
            String qName,
            Attributes attributes); void characters(char[] ch, int start, int length); void endElement(String uri, String localName, String qName); void startDocument(); void endDocument(); static final String MD_KEY_PATIENT_STREET_ADDR; static final String MD_KEY_PATIENT_CITY; static final String MD_KEY_PATIENT_STATE; static final String MD_KEY_PATIENT_ZIP; static final String MD_KEY_PATIENT_CNT; static final String MD_KEY_DOC_ID; static final String MD_KEY_DOC_LINK_ID; static final String MD_KEY_DOC_REVISION_ID; static final String MD_KEY_NOTE_DATE; static final String MD_KEY_REV_DATE; static final String MD_KEY_ADMIT_DATE; static final String MD_KEY_DISCHARGE_DATE; static final String MD_KEY_SERVICE_CODE; static final String MD_KEY_SITE_CODE; static final String MD_KEY_FACILITY_CODE; static final String MD_KEY_PT_BIRTH_DATE; static final String MD_KEY_PT_HEIGHT; static final String MD_KEY_PT_WEIGHT; static final String MD_KEY_PT_HEAD_CIRCUMFERENCE; static final String MD_KEY_PT_GENDER; static final String MD_KEY_PT_BMI; static final String MD_KEY_PT_BSA; static final String MD_KEY_PT_TEMPERATURE; static final String MD_KEY_PT_BILLING_CODE; static final String MD_KEY_PT_RESPIRATORY_RATE; static final String MD_KEY_EVENT_TYPE_CODE; static final String MD_KEY_DOC_CONFIDENTIAL_IND; static final String MD_KEY_DOC_STATUS_CODE; static final String MD_KEY_HISTORY_SECTION; static final String MD_KEY_LOCATION; static final String MD_KEY_MINUTES_COUNSELING; static final String MD_KEY_TOTAL_TIME; static final String MD_KEY_PROVIDER_ID; static final String MD_KEY_PROVIDER2_ID; static final String MD_KEY_SIGNATURE_ID; static final String MD_KEY_SIGNATURE_DATE; static final String MD_KEY_TRANSCRIBER_ID; static final String MD_KEY_TRANSCRIPTION_DATE; static final String MD_KEY_CUSTOMER_ID; static final int UNKNOWN_TABLE_TYPE; }