Package ch.ahdis.matchbox.engine
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
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 ClassesModifier and TypeClassDescriptionstatic classBuilder class to instantiate a CdaMappingEngineNested classes/interfaces inherited from class ch.ahdis.matchbox.engine.MatchboxEngine
MatchboxEngine.MatchboxEngineBuilderNested classes/interfaces inherited from class org.hl7.fhir.validation.ValidationEngine
org.hl7.fhir.validation.ValidationEngine.IValidationEngineLoader, org.hl7.fhir.validation.ValidationEngine.ValidationEngineBuilder -
Field Summary
FieldsFields inherited from class ch.ahdis.matchbox.engine.MatchboxEngine
suppressedWarnInfoPatterns -
Constructor Summary
ConstructorsConstructorDescriptionCdaMappingEngine(org.hl7.fhir.validation.ValidationEngine other) creates another instance of a mapping engine. -
Method Summary
Modifier and TypeMethodDescriptionorg.hl7.fhir.r4.model.BundletransformCdaToFhir(String cda, String mapUri) Transforms a CDA with the map identified by the uri to the output defined by the mapMethods inherited from class ch.ahdis.matchbox.engine.MatchboxEngine
addCanonicalResource, addCanonicalResource, addCanonicalResource, addCanonicalResource, addSuppressedWarnInfo, addSuppressedWarnInfoPattern, asSdList, compileSuppressedWarnInfoPatterns, createSnapshot, evaluateFhirPath, fetchesCanonicalResource, filterValidationMessages, getCanonicalResource, getCanonicalResource, getCanonicalResourceById, getPcm, getStructureDefinition, getSuppressedWarnInfoPatterns, loadPackage, messagesToOutcome, parseMap, parseMapR5, transform, transform, transform, transformToFhir, validate, validate, validateMethods 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
-
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 ExceptionIOException- 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 xmlmapUri- canonical url of StructureMap to use for the transformation- Returns:
- Bundle as output from the conversion
- Throws:
org.hl7.fhir.exceptions.FHIRException- FHIR ExceptionIOException- IO Exception
-