• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java DocumentAccessorImpl类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中gov.samhsa.c2s.common.document.accessor.DocumentAccessorImpl的典型用法代码示例。如果您正苦于以下问题:Java DocumentAccessorImpl类的具体用法?Java DocumentAccessorImpl怎么用?Java DocumentAccessorImpl使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

DocumentAccessorImpl类属于gov.samhsa.c2s.common.document.accessor包,在下文中一共展示了DocumentAccessorImpl类的22个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: setUp

点赞 3

import gov.samhsa.c2s.common.document.accessor.DocumentAccessorImpl; //导入依赖的package包/类
@BeforeClass
public static void setUp() throws Exception {
    fileReader = new FileReaderImpl();
    documentXmlConverter = new DocumentXmlConverterImpl();
    metadataGeneratorMock = mock(MetadataGeneratorImpl.class);
    documentAccessor = new DocumentAccessorImpl();
    when(
            metadataGeneratorMock.generateMetadataXml(anyString(),
                    anyString(), anyString(), anyString(), anyString()))
            .thenReturn(fileReader.readFile("testMetadata.xml"));
    documentEditor = new DocumentEditorImpl(metadataGeneratorMock,
            fileReader, documentXmlConverter, documentAccessor);

    c32 = fileReader.readFile("sampleC32/c32.xml");
    c32Document = documentXmlConverter.loadDocument(c32);
    xPathDate = "//hl7:effectiveTime";
    ruleExecutionResponseContainer = "<ruleExecutionContainer><executionResponseList><executionResponse><c32SectionLoincCode>11450-4</c32SectionLoincCode><c32SectionTitle>Problems</c32SectionTitle><code>66214007</code><codeSystemName>SNOMED CT</codeSystemName><displayName>Substance Abuse Disorder</displayName><documentObligationPolicy>ENCRYPT</documentObligationPolicy><documentRefrainPolicy>NORDSLCD</documentRefrainPolicy><impliedConfSection>R</impliedConfSection><itemAction>REDACT</itemAction><observationId>e11275e7-67ae-11db-bd13-0800200c9a66b827vs52h7</observationId><sensitivity>ETH</sensitivity><USPrivacyLaw>42CFRPart2</USPrivacyLaw></executionResponse><executionResponse><c32SectionLoincCode>11450-4</c32SectionLoincCode><c32SectionTitle>Problems</c32SectionTitle><code>111880001</code><codeSystemName>SNOMED CT</codeSystemName><displayName>Acute HIV</displayName><documentObligationPolicy>ENCRYPT</documentObligationPolicy><documentRefrainPolicy>NORDSLCD</documentRefrainPolicy><impliedConfSection>R</impliedConfSection><itemAction>MASK</itemAction><observationId>d11275e7-67ae-11db-bd13-0800200c9a66</observationId><sensitivity>HIV</sensitivity><USPrivacyLaw>42CFRPart2</USPrivacyLaw></executionResponse></executionResponseList></ruleExecutionContainer>";
    xacmlResultMock = mock(XacmlResult.class);
}
 

开发者ID:bhits,
项目名称:dss-api,
代码行数:20,
代码来源:DocumentEditorImplTest.java

示例2: setUp

点赞 2

import gov.samhsa.c2s.common.document.accessor.DocumentAccessorImpl; //导入依赖的package包/类
@Before
public void setUp() throws Exception {
    fileReader = new FileReaderImpl();
    marshaller = new SimpleMarshallerImpl();
    documentAccessor = new DocumentAccessorImpl();
    documentXmlConverter = new DocumentXmlConverterImpl();
    embeddedClinicalDocumentExtractor = new EmbeddedClinicalDocumentExtractorImpl(documentXmlConverter, documentAccessor);
    sut = new Section(documentAccessor);
}
 

开发者ID:bhits,
项目名称:dss-api,
代码行数:10,
代码来源:SectionTest.java

示例3: setUp

点赞 2

import gov.samhsa.c2s.common.document.accessor.DocumentAccessorImpl; //导入依赖的package包/类
@Before
public void setUp() throws Exception {
    fileReader = new FileReaderImpl();
    marshaller = new SimpleMarshallerImpl();
    documentAccessor = new DocumentAccessorImpl();
    documentXmlConverter = new DocumentXmlConverterImpl();
    embeddedClinicalDocumentExtractor = new EmbeddedClinicalDocumentExtractorImpl(documentXmlConverter, documentAccessor);
    sut = new Entry(documentAccessor);
}
 

开发者ID:bhits,
项目名称:dss-api,
代码行数:10,
代码来源:EntryTest.java

示例4: setUp

点赞 2

import gov.samhsa.c2s.common.document.accessor.DocumentAccessorImpl; //导入依赖的package包/类
@Before
public void setUp() throws Exception {
    fileReader = new FileReaderImpl();
    marshaller = new SimpleMarshallerImpl();
    documentAccessor = new DocumentAccessorImpl();
    documentXmlConverter = new DocumentXmlConverterImpl();
    embeddedClinicalDocumentExtractor = new EmbeddedClinicalDocumentExtractorImpl(
            documentXmlConverter, documentAccessor);
    sut = new DocumentationOfServiceEvent(documentAccessor);
}
 

开发者ID:bhits,
项目名称:dss-api,
代码行数:11,
代码来源:DocumentationOfServiceEventTest.java

示例5: setUp

点赞 2

import gov.samhsa.c2s.common.document.accessor.DocumentAccessorImpl; //导入依赖的package包/类
@Before
public void setUp() throws Exception {
    fileReader = new FileReaderImpl();
    marshaller = new SimpleMarshallerImpl();
    documentAccessor = new DocumentAccessorImpl();
    documentXmlConverter = new DocumentXmlConverterImpl();
    embeddedClinicalDocumentExtractor = new EmbeddedClinicalDocumentExtractorImpl(documentXmlConverter, documentAccessor);
    sut = new HumanReadableTableRowByCode(documentAccessor);
}
 

开发者ID:bhits,
项目名称:dss-api,
代码行数:10,
代码来源:HumanReadableTableRowByCodeTest.java

示例6: setUp

点赞 2

import gov.samhsa.c2s.common.document.accessor.DocumentAccessorImpl; //导入依赖的package包/类
@Before
public void setUp() throws Exception {
    fileReader = new FileReaderImpl();
    marshaller = new SimpleMarshallerImpl();
    documentAccessor = new DocumentAccessorImpl();
    documentXmlConverter = new DocumentXmlConverterImpl();
    embeddedClinicalDocumentExtractor = new EmbeddedClinicalDocumentExtractorImpl(documentXmlConverter, documentAccessor);
    sut = new HumanReadableTableRowById(documentAccessor);
}
 

开发者ID:bhits,
项目名称:dss-api,
代码行数:10,
代码来源:HumanReadableTableRowByIdTest.java

示例7: setUp

点赞 2

import gov.samhsa.c2s.common.document.accessor.DocumentAccessorImpl; //导入依赖的package包/类
@Before
public void setUp() throws Exception {
    fileReader = new FileReaderImpl();
    marshaller = new SimpleMarshallerImpl();
    documentAccessor = new DocumentAccessorImpl();
    documentXmlConverter = new DocumentXmlConverterImpl();
    embeddedClinicalDocumentExtractor = new EmbeddedClinicalDocumentExtractorImpl(documentXmlConverter, documentAccessor);
    sut = new HumanReadableTextNodeByCode(documentAccessor);
}
 

开发者ID:bhits,
项目名称:dss-api,
代码行数:10,
代码来源:HumanReadableTextNodeByCodeTest.java

示例8: setUp

点赞 2

import gov.samhsa.c2s.common.document.accessor.DocumentAccessorImpl; //导入依赖的package包/类
@Before
public void setUp() throws Exception {
    fileReader = new FileReaderImpl();
    marshaller = new SimpleMarshallerImpl();
    documentAccessor = new DocumentAccessorImpl();
    documentXmlConverter = new DocumentXmlConverterImpl();
    embeddedClinicalDocumentExtractor = new EmbeddedClinicalDocumentExtractorImpl(documentXmlConverter, documentAccessor);
    sut = new HumanReadableTableRowByDisplayName(documentAccessor);
}
 

开发者ID:bhits,
项目名称:dss-api,
代码行数:10,
代码来源:HumanReadableTableRowByDisplayNameTest.java

示例9: setUp

点赞 2

import gov.samhsa.c2s.common.document.accessor.DocumentAccessorImpl; //导入依赖的package包/类
@Before
public void setUp() throws Exception {
    fileReader = new FileReaderImpl();
    marshaller = new SimpleMarshallerImpl();
    documentAccessor = new DocumentAccessorImpl();
    documentXmlConverter = new DocumentXmlConverterImpl();
    embeddedClinicalDocumentExtractor = new EmbeddedClinicalDocumentExtractorImpl(documentXmlConverter, documentAccessor);
    sut = new HumanReadableContentElementByDisplayName(documentAccessor);
}
 

开发者ID:bhits,
项目名称:dss-api,
代码行数:10,
代码来源:HumanReadableContentElementByDisplayNameTest.java

示例10: setUp

点赞 2

import gov.samhsa.c2s.common.document.accessor.DocumentAccessorImpl; //导入依赖的package包/类
@Before
public void setUp() throws Exception {
    fileReader = new FileReaderImpl();
    marshaller = new SimpleMarshallerImpl();
    documentAccessor = new DocumentAccessorImpl();
    documentXmlConverter = new DocumentXmlConverterImpl();
    embeddedClinicalDocumentExtractor = new EmbeddedClinicalDocumentExtractorImpl(documentXmlConverter, documentAccessor);
    sut = new HumanReadableTextNodeByDisplayName(documentAccessor);
}
 

开发者ID:bhits,
项目名称:dss-api,
代码行数:10,
代码来源:HumanReadableTextNodeByDisplayNameTest.java

示例11: setUp

点赞 2

import gov.samhsa.c2s.common.document.accessor.DocumentAccessorImpl; //导入依赖的package包/类
@Before
public void setUp() throws Exception {
    fileReader = new FileReaderImpl();
    marshaller = new SimpleMarshallerImpl();
    documentAccessor = new DocumentAccessorImpl();
    documentXmlConverter = new DocumentXmlConverterImpl();
    embeddedClinicalDocumentExtractor = new EmbeddedClinicalDocumentExtractorImpl(documentXmlConverter, documentAccessor);
    sut = new HumanReadableContentElementById(documentAccessor);
}
 

开发者ID:bhits,
项目名称:dss-api,
代码行数:10,
代码来源:HumanReadableContentElementByIdTest.java

示例12: setUp

点赞 2

import gov.samhsa.c2s.common.document.accessor.DocumentAccessorImpl; //导入依赖的package包/类
@Before
public void setUp() throws Exception {
    fileReader = new FileReaderImpl();
    marshaller = new SimpleMarshallerImpl();
    documentAccessor = new DocumentAccessorImpl();
    documentXmlConverter = new DocumentXmlConverterImpl();
    embeddedClinicalDocumentExtractor = new EmbeddedClinicalDocumentExtractorImpl(documentXmlConverter, documentAccessor);
    sut = new HumanReadableContentElementByCode(documentAccessor);
}
 

开发者ID:bhits,
项目名称:dss-api,
代码行数:10,
代码来源:HumanReadableContentElementByCodeTest.java

示例13: setUp

点赞 2

import gov.samhsa.c2s.common.document.accessor.DocumentAccessorImpl; //导入依赖的package包/类
@Before
public void setUp() throws Exception {
    fileReader = new FileReaderImpl();
    marshaller = new SimpleMarshallerImpl();
    documentAccessor = new DocumentAccessorImpl();
    documentXmlConverter = new DocumentXmlConverterImpl();
    embeddedClinicalDocumentExtractor = new EmbeddedClinicalDocumentExtractorImpl(
            documentXmlConverter, documentAccessor);
    sut = new DocumentCleanupForNoEntryAndNoSection(documentAccessor);
}
 

开发者ID:bhits,
项目名称:dss-api,
代码行数:11,
代码来源:DocumentCleanupForNoEntryAndNoSectionTest.java

示例14: setUp

点赞 2

import gov.samhsa.c2s.common.document.accessor.DocumentAccessorImpl; //导入依赖的package包/类
@Before
public void setUp() throws Exception {
    fileReader = new FileReaderImpl();
    marshaller = new SimpleMarshallerImpl();
    documentAccessor = new DocumentAccessorImpl();
    documentXmlConverter = new DocumentXmlConverterImpl();
    embeddedClinicalDocumentExtractor = new EmbeddedClinicalDocumentExtractorImpl(documentXmlConverter, documentAccessor);
    sut = new DocumentCleanupForDocumentationOfNoServiceEvent(documentAccessor);
}
 

开发者ID:bhits,
项目名称:dss-api,
代码行数:10,
代码来源:DocumentCleanupForDocumentationOfNoServiceEventTest.java

示例15: setUp

点赞 2

import gov.samhsa.c2s.common.document.accessor.DocumentAccessorImpl; //导入依赖的package包/类
@Before
public void setUp() throws Exception {
    fileReader = new FileReaderImpl();
    marshaller = new SimpleMarshallerImpl();
    documentAccessor = new DocumentAccessorImpl();
    documentXmlConverter = new DocumentXmlConverterImpl();
    embeddedClinicalDocumentExtractor = new EmbeddedClinicalDocumentExtractorImpl(documentXmlConverter, documentAccessor);
    sut = new RuleExecutionResponseMarkerForRedactedEntries(documentAccessor);
}
 

开发者ID:bhits,
项目名称:dss-api,
代码行数:10,
代码来源:RuleExecutionResponseMarkerForRedactedEntriesTest.java

示例16: setUp

点赞 2

import gov.samhsa.c2s.common.document.accessor.DocumentAccessorImpl; //导入依赖的package包/类
@Before
public void setUp() throws Exception {
    fileReader = new FileReaderImpl();
    documentAccessor = new DocumentAccessorImpl();
    documentXmlConverter = new DocumentXmlConverterImpl();
    sut = new UnsupportedHeaderElementHandler(documentAccessor);
    ReflectionTestUtils.setField(sut, "headersWhiteList", unsupportedHeaders);
}
 

开发者ID:bhits,
项目名称:dss-api,
代码行数:9,
代码来源:UnsupportedHeaderElementHandlerTest.java

示例17: setUp

点赞 2

import gov.samhsa.c2s.common.document.accessor.DocumentAccessorImpl; //导入依赖的package包/类
@Before
public void setUp() throws Exception {
    fileReader = new FileReaderImpl();
    documentAccessor = new DocumentAccessorImpl();
    documentXmlConverter = new DocumentXmlConverterImpl();
    sut = new UnsupportedSectionHandler(documentAccessor);
    ReflectionTestUtils.setField(sut, "sectionWhiteList", sectionWhiteList);
}
 

开发者ID:bhits,
项目名称:dss-api,
代码行数:9,
代码来源:UnsupportedSectionHandlerTest.java

示例18: setUp

点赞 2

import gov.samhsa.c2s.common.document.accessor.DocumentAccessorImpl; //导入依赖的package包/类
@Before
public void setUp() throws Exception {
    // utils
    documentAccessor = new DocumentAccessorImpl();
    documentXmlConverter = new DocumentXmlConverterImpl();
    // sut init
    xacmlXslUrlProvider = new XacmlXslUrlProviderImpl();
    consentDtoFactory = new ConsentDtoFactoryStub();
    marshaller = new SimpleMarshallerImpl();
    xmlTransformer = new XmlTransformerImpl(marshaller);
    sut = new ConsentBuilderImpl(PCM_ORG, xacmlXslUrlProvider, consentDtoFactory, xmlTransformer);
}
 

开发者ID:bhits,
项目名称:common-libraries,
代码行数:13,
代码来源:ConsentBuilderImplManyToManySupportTest.java

示例19: documentAccessor

点赞 2

import gov.samhsa.c2s.common.document.accessor.DocumentAccessorImpl; //导入依赖的package包/类
@Bean
public DocumentAccessor documentAccessor() {
    return new DocumentAccessorImpl();
}
 

开发者ID:bhits,
项目名称:document-validator,
代码行数:5,
代码来源:ApplicationContextConfig.java

示例20: testSegmentDocument_Given_Real_DocumentEditor_Throws_DS4PException

点赞 2

import gov.samhsa.c2s.common.document.accessor.DocumentAccessorImpl; //导入依赖的package包/类
@Test(expected = IllegalArgumentException.class)
public void testSegmentDocument_Given_Real_DocumentEditor_Throws_DS4PException()
        throws IOException, InvalidOriginalClinicalDocumentException,
        InvalidSegmentedClinicalDocumentException, AuditException {
    // Arrange
    final boolean xdm = true;
    final boolean ecrypt = true;
    final boolean audited = true;
    final boolean auditFailureByPass = true;
    final XmlValidationResult xmlValidationResultTrue = mock(XmlValidationResult.class);
    when(xmlValidationResultTrue.isValid()).thenReturn(true);
    when(xmlValidatorMock.validateWithAllErrors("")).thenReturn(
            xmlValidationResultTrue);
    final DocumentEditorImpl realDocumentEditorImpl = new DocumentEditorImpl(
            new MetadataGeneratorImpl(new XmlTransformerImpl(
                    new SimpleMarshallerImpl())), new FileReaderImpl(),
            new DocumentXmlConverterImpl(), new DocumentAccessorImpl());

    final DocumentSegmentationImpl documentSegmentationWithRealDocumentEditor = new DocumentSegmentationImpl(
            ruleExecutionServiceClientMock,
            realDocumentEditorImpl, marshallerMock, documentRedactorMock,
            documentTaggerMock, documentFactModelExtractorMock,
            embeddedClinicalDocumentExtractorMock,
            new ValueSetServiceImplMock(fileReader),
            additionalMetadataGeneratorForSegmentedClinicalDocumentImplMock);
    ReflectionTestUtils.setField(
            documentSegmentationWithRealDocumentEditor, "xmlValidator",
            xmlValidatorMock);
    DSSRequest dssRequest = new DSSRequest();
    dssRequest.setDocument("".getBytes(StandardCharsets.UTF_8));
    dssRequest.setAudited(audited);
    dssRequest.setAuditFailureByPass(auditFailureByPass);

    // Act
    @SuppressWarnings("unused")
    final DSSResponse resp = documentSegmentationWithRealDocumentEditor
            .segmentDocument(dssRequest);

    // Assert
    // expect DS4PException
}
 

开发者ID:bhits,
项目名称:dss-api,
代码行数:42,
代码来源:DocumentSegmentationImplTest.java

示例21: setUp

点赞 2

import gov.samhsa.c2s.common.document.accessor.DocumentAccessorImpl; //导入依赖的package包/类
@Before
public void setUp() throws Exception {
    // Arrange
    fileReader = new FileReaderImpl();
    marshaller = new SimpleMarshallerImpl();
    xmlTransformer = new XmlTransformerImpl(marshaller);
    factModelExtractor = new DocumentFactModelExtractorImpl(xmlTransformer);
    documentXmlConverter = new DocumentXmlConverterImpl();
    documentAccessor = new DocumentAccessorImpl();
    documentEditor = new DocumentEditorImpl(new MetadataGeneratorImpl(
            xmlTransformer), fileReader, documentXmlConverter,
            documentAccessor);
    documentAccessorMock = mock(DocumentAccessorImpl.class);
    valueSetService = new ValueSetServiceImplMock(fileReader);
    embeddedClinicalDocumentExtractor = new EmbeddedClinicalDocumentExtractorImpl(
            documentXmlConverter, documentAccessor);

    ruleExecutionContainer = setRuleExecutionContainer();
    ruleExecutionContainerWithHivEth = marshaller.unmarshalFromXml(
            RuleExecutionContainer.class,
            fileReader.readFile("ruleExecutionResponseContainer.xml"));
    xacmlResultMock = setMockXacmlResult(MOCK_XACML_RESULT);
    c32 = fileReader.readFile("sampleC32/c32.xml");
    robustC32 = fileReader
            .readFile("testMU_Rev3_HITSP_C32C83_4Sections_RobustEntries_NoErrors.xml");
    xacmlResult = fileReader.readFile("testXacmlResult.xml");

    documentXmlConverterSpy = setSpyDocumentXmlConverter();

    final Set<AbstractObligationLevelRedactionHandler> obligationLevelChain = new HashSet<>();
    final Set<AbstractClinicalFactLevelRedactionHandler> clinicalFactLevelChain = new HashSet<>();
    final Set<AbstractPostRedactionLevelRedactionHandler> postRedactionChain = new HashSet<>();
    final Set<AbstractDocumentLevelRedactionHandler> documentLevelRedactionHandlers = new HashSet<>();
    UnsupportedHeaderElementHandler unsupportedHeaderElementHandler = new UnsupportedHeaderElementHandler(
            documentAccessor);
    ReflectionTestUtils.setField(unsupportedHeaderElementHandler, "headersWhiteList", headersWhiteList);
    documentLevelRedactionHandlers.add(unsupportedHeaderElementHandler);
    obligationLevelChain.add(new Section(documentAccessor));
    clinicalFactLevelChain.add(new Entry(documentAccessor));
    clinicalFactLevelChain.add(new HumanReadableTextNodeByCode(
            documentAccessor));
    clinicalFactLevelChain.add(new HumanReadableTextNodeByDisplayName(
            documentAccessor));
    postRedactionChain.add(new DocumentCleanupForNoEntryAndNoSection(
            documentAccessor));
    postRedactionChain
            .add(new RuleExecutionResponseMarkerForRedactedEntries(
                    documentAccessor));

    documentRedactor = new DocumentRedactorImpl(marshaller,
            documentXmlConverterSpy, documentAccessorMock,
            documentLevelRedactionHandlers, obligationLevelChain,
            clinicalFactLevelChain, postRedactionChain);
}
 

开发者ID:bhits,
项目名称:dss-api,
代码行数:55,
代码来源:DocumentRedactorImplTest.java

示例22: docmentAccessor

点赞 2

import gov.samhsa.c2s.common.document.accessor.DocumentAccessorImpl; //导入依赖的package包/类
@Bean
public DocumentAccessor docmentAccessor(){
    return new DocumentAccessorImpl();
}
 

开发者ID:bhits,
项目名称:pcm-api,
代码行数:5,
代码来源:CommonLibraryConfig.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)