Class CdaMappingEngine

java.lang.Object
org.hl7.fhir.validation.ValidationEngine
ch.ahdis.matchbox.engine.MatchboxEngine
ch.ahdis.matchbox.engine.CdaMappingEngine
All Implemented Interfaces:
org.hl7.fhir.r5.context.IWorkerContextManager.IPackageLoadingTracker, org.hl7.fhir.r5.utils.validation.IValidationPolicyAdvisor, org.hl7.fhir.r5.utils.validation.IValidatorResourceFetcher, org.hl7.fhir.validation.cli.services.IPackageInstaller

public class CdaMappingEngine extends MatchboxEngine
Mapping Engine to convert between CDA and FHIR, based on the HL7 FHIR Mapping Language, HL7 Java validator reference implementation and matchbox.health
Author:
oliveregger, ahdis ag
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Builder class to instantiate a CdaMappingEngine

    Nested classes/interfaces inherited from class ch.ahdis.matchbox.engine.MatchboxEngine

    MatchboxEngine.MatchboxEngineBuilder

    Nested classes/interfaces inherited from class org.hl7.fhir.validation.ValidationEngine

    org.hl7.fhir.validation.ValidationEngine.IValidationEngineLoader, org.hl7.fhir.validation.ValidationEngine.ValidationEngineBuilder
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final org.slf4j.Logger
     

    Fields inherited from class ch.ahdis.matchbox.engine.MatchboxEngine

    suppressedWarnInfoPatterns
  • Constructor Summary

    Constructors
    Constructor
    Description
    CdaMappingEngine(org.hl7.fhir.validation.ValidationEngine other)
    creates another instance of a mapping engine.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.hl7.fhir.r4.model.Bundle
    Transforms a CDA with the map identified by the uri to the output defined by the map

    Methods inherited from class org.hl7.fhir.validation.ValidationEngine

    compile, connectToTSServer, connectToTSServer, convert, dropResource, evaluateFhirPath, fetch, fetchCanonicalResource, fetchRaw, generate, genResource, getBestPracticeLevel, getBinaries, getBundleValidationRules, getContext, getExtensionDomains, getFetcher, getFhirPathEngine, getHtmlInMarkdownCheck, getIgLoader, getIgs, getJurisdiction, getLanguage, getLevel, getLocale, getLocator, getMapLog, getPolicyAdvisor, getQuestionnaireMode, getValidationControl, getValidator, getVersion, handleOutput, initContext, isAllowDoubleQuotesInFHIRPath, isAllowExampleUrls, isAnyExtensionsAllowed, isAssumeValidRestReferences, isCheckIPSCodes, isCrumbTrails, isDebug, isDisplayWarnings, isDoImplicitFHIRPathStringConversion, isDoNative, isForPublication, isHintAboutNonMustSupport, isNoExtensibleBindingMessages, isNoInvariantChecks, isNoUnicodeBiDiControlChars, isSecurityChecks, isShowMessagesFromReferences, isShowTimes, isWantInvariantInMessage, loadCanonicalResource, loadPackage, loadProfile, loadResource, packageExists, packageLoaded, policyForCodedContent, policyForContained, policyForReference, prepare, resolveURL, seeResource, setAllowDoubleQuotesInFHIRPath, setAllowExampleUrls, setAnyExtensionsAllowed, setAssumeValidRestReferences, setBestPracticeLevel, setBinaries, setBundleValidationRules, setCheckIPSCodes, setContext, setCrumbTrails, setDebug, setDisplayWarnings, setDoImplicitFHIRPathStringConversion, setDoNative, setExtensionDomains, setFetcher, setFhirPathEngine, setForPublication, setHintAboutNonMustSupport, setHtmlInMarkdownCheck, setIgLoader, setIgs, setJurisdiction, setLanguage, setLevel, setLocale, setLocator, setMapLog, setNoExtensibleBindingMessages, setNoInvariantChecks, setNoUnicodeBiDiControlChars, setPcm, setPolicyAdvisor, setQuestionnaireMode, setSecurityChecks, setShowMessagesFromReferences, setShowTimes, setSnomedExtension, setTerminologyServer, setValidationControl, setVersion, setWantInvariantInMessage, snapshot, transform, transformVersion, validate, validate, validate, validate, validate, validate, validateAsFragments

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • log

      protected static final org.slf4j.Logger log
  • Constructor Details

    • CdaMappingEngine

      public CdaMappingEngine(org.hl7.fhir.validation.ValidationEngine other) throws org.hl7.fhir.exceptions.FHIRException, IOException
      creates another instance of a mapping engine. use this if you have different versions of packages or conformance resources
      Parameters:
      other - base instance to be used
      Throws:
      org.hl7.fhir.exceptions.FHIRException - FHIR Exception
      IOException - IO Exception
  • Method Details

    • transformCdaToFhir

      public org.hl7.fhir.r4.model.Bundle transformCdaToFhir(String cda, String mapUri) throws org.hl7.fhir.exceptions.FHIRException, IOException
      Transforms a CDA with the map identified by the uri to the output defined by the map
      Parameters:
      cda - content of the CDA xml
      mapUri - canonical url of StructureMap to use for the transformation
      Returns:
      Bundle as output from the conversion
      Throws:
      org.hl7.fhir.exceptions.FHIRException - FHIR Exception
      IOException - IO Exception