Configuration Schemas
OpenCDS Configuration schemas consist of a base schema and a REST schema. The REST schema contains the elements that are used for physical configuration metadata (e.g., XML files).
Base Schema
<insert base schema ref here>
REST Schema
<insert rest schema ref here>
Schema Elements and Examples
The REST schema is the entry point for OpenCDS configuration, whether they exist as files on the filesystem or as objects in BerkeleyDB. The main elements are as follows:
ConceptDeterminationMethods
ConceptDeterminationMethods
consists of one or more ConceptDeterminationMethod
elements.
This style of configuration may be used via the REST service or may exist on the filesystem (as in the 1.2.x and previous configuration).
An example ConceptDeterminationMethods
is shown below:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns3:conceptDeterminationMethods xmlns:ns2="org.opencds.dss.config.v1_0" xmlns:ns3="org.opencds.dss.config_rest.v1_0"> <conceptDeterminationMethod code="C45" displayName="NQF" codeSystem="2.16.840.1.113883.3.795.12.1.1" version="1.0"> ... </conceptDeterminationMethod> <conceptDeterminationMethod code="C267" displayName="AHRQ" codeSystem="2.16.840.1.113883.3.795.12.1.1" version="1.0"> ... </conceptDeterminationMethod> <conceptDeterminationMethod code="C36" displayName="OpenCDS" codeSystem="2.16.840.1.113883.3.795.12.1.1" version="1.0"> ... </conceptDeterminationMethod> </ns3:conceptDeterminationMethods>
ConceptDeterminationMethod
ConceptDeterminationMethod
contains concept mappings from local or standard concepts to OpenCDS concepts. The concept mapping metadata is organized such that toConcept
is the OpenCDS concept, while the associated concept
elements within fromConcepts
compose the local and standard concepts that may be expected in the vMR data. When processing the vMR, for each of the local concepts found, OpenCDS will add the OpenCDS concept (the toConcept
) to the internal fact lists.
Elements are described as follows:
conceptMapping
- the element wrapping the overall mapping of local/standard concepts to OpenCDS conceptstoConcept
- the OpenCDS concept to which allfromConcepts
will mapfromConcepts
- the wrapper element for local/standard concepts that are mapped to the OpenCDS concept; contains thecodeSystem
of the concepts (NOTE: multiplefromConcepts
within theconceptMapping
are supported, in order to supportconcept
s from any number ofcodeSystem
s).concept
- the local/standard concept, within thecodeSystem
specified in thefromConcepts
element.
This style of configuration may be used via the REST service or may exist on the filesystem (as in the 1.2.x and previous configuration).
An example ConceptDeterminationMethod
is shown below:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns3:conceptDeterminationMethod xmlns:ns2="org.opencds.dss.config.v1_0" xmlns:ns3="org.opencds.dss.config_rest.v1_0" code="C74" displayName="CDC-RD concept determination method" codeSystem="2.16.840.1.113883.3.795.12.1.1" version="1.0"> <conceptMapping> <toConcept code="C88" codeSystem="2.16.840.1.113883.3.795.12.1.1" codeSystemName="OpenCDS concepts" displayName="Result Negative" /> <fromConcepts codeSystem="2.16.840.1.113883.3.795.12.1.2" codeSystemName="OpenCDS proprietary local" displayName="Result Negative"> <concept code="NEGATIVE" displayName="Result Negative" /> <concept code="Negative" displayName="Result Negative" /> <concept code="negative" displayName="Result Negative" /> <concept code="NEG" displayName="Result Negative" /> <concept code="Neg" displayName="Result Negative" /> <concept code="neg" displayName="Result Negative" /> <concept code="N" displayName="Result Negative" /> <concept code="n" displayName="Result Negative" /> <concept code="Invalid" displayName="Result Negative" /> <concept code="Indeterminate" displayName="Result Negative" /> <concept code="Inadequate" displayName="Result Negative" /> <concept code="Not Detected" displayName="Result Negative" /> </fromConcepts> </conceptMapping> <conceptMapping> <toConcept code="C273" codeSystem="2.16.840.1.113883.3.795.12.1.1" codeSystemName="OpenCDS concepts" displayName="Strep Pneumo Test For Organism" /> <fromConcepts codeSystem="2.16.840.1.113883.3.795.12.1.2" codeSystemName="OpenCDS proprietary local" displayName="Streptococcus pneumoniae"> <concept code="Strpne" displayName="Streptococcus pneumoniae" /> </fromConcepts> </conceptMapping> </ns3:conceptDeterminationMethod>
ExecutionEngines
ExecutionEngines
consists of one or more ExecutionEngine
elements.
This style of configuration may be used via the REST service or may exist on the filesystem (as in the 1.2.x and previous configuration).
<?xml version="1.0" encoding="UTF-8"?> <rest:executionEngines xsi:schemaLocation="org.opencds.dss.config_rest.v1_0 ../schema/OpenCDSConfigRest.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rest="org.opencds.dss.config_rest.v1_0"> <!--include all supported executionEngine package names in this list, along with the operations they support --> <executionEngine> ... </executionEngine> <executionEngine> ... </executionEngine> </rest:executionEngines>
ExecutionEngine
The ExecutionEngine
metadata contains information about the rules engine adapter that should be used for rule processing. Elements are as follows:
identifier
- the identifier of theExecutionEngine
; this should be the fully-qualified class name of the adapter.description
- a free-form description of theExecutionEngine
timestamp
- the timestamp of metadata creationuserId
- the user id of the user who created the metadatasupportedOperation
- (may include more than one) describes the types of operations supported by theExecutionEngine
.
This style of configuration may be used via the REST service.
<?xml version="1.0" encoding="UTF-8"?> <rest:executionEngine xsi:schemaLocation="org.opencds.dss.config_rest.v1_0 ../schema/OpenCDSConfigRest.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rest="org.opencds.dss.config_rest.v1_0"> <identifier>org.opencds.service.drools.v55.DroolsAdapter</identifier> <description>Drools 5.5 based adapter</description> <timestamp>2014-04-08T00:00:00</timestamp> <userId>Someone</userId> <supportedOperation>EVALUATION.EVALUATE</supportedOperation> <supportedOperation>EVALUATION.EVALUATE_AT_SPECIFIED_TIME</supportedOperation> </rest:executionEngine>
KnowledgeModules
KnowledgeModules
consists of one or more KnowledgeModule
elements.
This style of configuration may be used via the REST service or may exist on the filesystem (as in the 1.2.x and previous configuration).
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns3:knowledgeModules xmlns:ns2="org.opencds.dss.config.v1_0" xmlns:ns3="org.opencds.dss.config_rest.v1_0"> <knowledgeModule> ... </knowledgeModule> <knowledgeModule> ... </knowledgeModule> </ns3:knowledgeModules>
KnowledgeModule
The KnowledgeModule
element consists of metadata describing the KnowledgeModule
. Element descriptions are as follows:
identifier
- the identifier of theKnowledgeModule
, referenced by CDS requests.status
- the status of theKnowledgeModule
executionEngine
- the identifier for theExecutionEngine
, used to cross-reference theExecutionEngine
metadata.semanticSignifierId
- the identifier for theSemanticSignifier
, used to cross reference theSemanticSignifier
metadata.conceptDeterminationMethods
- describes which Concept Determination Methods should be applied to incoming data, for concept mappings, before the data are processed by the rules engine.primaryCDM
- the primary Concept Determination Method to be used; must match the attributes of the givenconceptDeterminationMethod
in ConceptDeterminationMethod.secondaryCDM
- the secondary Concept Determination Method to be used; must match the attributes of the givenconceptDeterminationMethod
in ConceptDeterminationMethod. Any number ofsecondaryCDM
elements may be specified (0 to many).- The
method
attribute must be one of the following:- ADDITIVE - indicates that the list of concepts from the primary Concept Determination Method will be augmented by all concepts within the
conceptMapping
s of the secondary Concept Determination Method. - REPLACEMENT - indicates that the list of concepts from the primary Concept Determination Method will be replaced by all matching concepts within the
conceptMapping
s of the secondary Concept Determination Method.- Note: Only those concepts that are specified in the
conceptMapping
s of theprimaryCDM
will be replaced. - Note: The replacement approach is last-one-wins, i.e.,
conceptMapping
s from the lastsecondaryCDM
in the list, will take precedence overconceptMapping
s from all previoussecondaryCDM
elements (in the list).
- Note: Only those concepts that are specified in the
- ADDITIVE - indicates that the list of concepts from the primary Concept Determination Method will be augmented by all concepts within the
- The
package
- the metadata describing the knowledge package containing the rules and other artifacts used by the rules engine.packageType
- the type of package (E.g., Drools accepts, .pkg, .bpmn2, and .drl).packageId
- the identifier used by OpenCDS to reference the package on the filesystem.preload
- indication to OpenCDS whether to preload the knowledge package on startup.
primaryProcess
- the process name used by Drools (as specified in the BPMN2 process diagram).preProcessPlugins
- the list of pre-process plugins, which are applied before the data are sent to the rules engine.preProcessPlugin
- one or more may be specified; the attributes of each must match the attributes from the plugin identifier (see .
timestamp
- the time when the metadata were created.userId
- the user id of the user who created/uploaded theKnowledgeModule
.
This style of configuration may be used via the REST service.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns3:knowledgeModule xmlns:ns2="org.opencds.dss.config.v1_0" xmlns:ns3="org.opencds.dss.config_rest.v1_0"> <identifier scopingEntityId="org.opencds" businessId="NQF_0031_v1" version="1.1.1" /> <status>APPROVED</status> <executionEngine>org.opencds.service.drools.v55.DroolsAdapter</executionEngine> <semanticSignifierId scopingEntityId="org.opencds.vmr" businessId="VMR" version="1.0" /> <conceptDeterminationMethods> <primaryCDM code="C2511" codeSystem="2.16.840.1.113883.3.795.12.1.1" displayName="HEDIS 2014" version="1.0" /> <secondaryCDM code="C36" codeSystem="2.16.840.1.113883.3.795.12.1.1" displayName="OpenCDS" version="1.0" method="ADDITIVE" /> </conceptDeterminationMethods> <package> <packageType>PKG</packageType> <packageId>org.opencds^NQF_0031_v1^1.1.1.pkg</packageId> <preload>false</preload> </package> <primaryProcess>PrimaryProcess</primaryProcess> <preProcessPlugins> <preProcessPlugin version="0.1" businessId="EncountersFromProblemAndProcedureConcepts" scopingEntityId="org.opencds.plugin" /> </preProcessPlugins> <timestamp>2014-07-30T13:21:46.772-06:00</timestamp> <userId>Someone</userId> </ns3:knowledgeModule>
SemanticSignifiers
SemanticSignifiers
consists of one or more SemanticSignifier
elements.
This style of configuration may be used via the REST service or may exist on the filesystem (as in the 1.2.x and previous configuration).
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns3:semanticSignifiers xmlns:ns2="org.opencds.dss.config.v1_0" xmlns:ns3="org.opencds.dss.config_rest.v1_0"> <semanticSignifier> ... </semanticSignifier> </ns3:semanticSignifiers>
SemanticSignifier
The SemanticSignifier
element describes the external model of the vMR data that will enter the system. These elements describe how the system should process the incoming vMR data:
identifier
- the identifier of theSemanticSignifier
name
- a human-readable name of the identifier (typically a ^-delimited combination of the identifier attributes)description
- free-form description of theSemanticSignifier
xsdComputableDefinition
xsdRootGlobalElementName
- the global element name of the schemaxsdURL
- the pathname of the schema implementation (e.g., the package name of the JAXB classes)
entryPoint
- the entry point used by OpenCDS to transform the incoming data into the internal model.exitPoint
- the exit point used by OpenCDS to transform the outgoing data into the external model.timestamp
- the timestamp of creationuserId
- the user id of the user who created the metadata instance.
This style of configuration may be used via the REST service.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns2:semanticSignifiers xmlns:ns2="org.opencds.dss.config_rest.v1_0" xmlns:ns3="org.opencds.dss.config.v1_0"> <semanticSignifier> <identifier scopingEntityId="org.opencds.vmr" businessId="VMR" version="1.0" /> <name>org.opencds.vmr^VMR^1.0</name> <description>org.opencds.vmr^VMR^1.0</description> <xsdComputableDefinition> <xsdRootGlobalElementName>CDSInput</xsdRootGlobalElementName> <xsdURL>org.opencds.vmr.v1_0.schema</xsdURL> </xsdComputableDefinition> <entryPoint>org.opencds.vmr.v1_0.schema.CDSInput</entryPoint> <exitPoint>org.opencds.vmr.v1_0.mappings.out.CdsOutputModelExitPoint</exitPoint> <factListsBuilder>org.opencds.vmr.v1_0.mappings.in.CdsInputFactListsBuilder</factListsBuilder> <resultSetBuilder>org.opencds.vmr.v1_0.mappings.out.CdsOutputResultSetBuilder</resultSetBuilder> <timestamp>2014-11-03T15:24:57.212-07:00</timestamp> <userId>userId</userId> </semanticSignifier> </ns2:semanticSignifiers>
SupportingData
The SupportingData
element consists of metadata describing the SupportingData
. Element descriptions are as follows:
identifier
- the identifier of theKnowledgeModule
, referenced by CDS requests.kmId
- theKnowledgeModule
identifier to which thisSupportingData
is associated.package
- the metadata describing theSupportingData
package containing data to support rule processing.packageType
- the type of package.packageId
- the identifier used by OpenCDS to reference theSupportingData
package on the filesystem.preload
- (optional) indication to OpenCDS whether to preload theSupportingData
package on startup.
loadedBy
- the plugin that is used to load the supporting data and prepare it for use within the system. Attributes MUST match the attributes of a valid plugin identifier specified in the PluginPackage. (Implementation is currently incomplete. Will be updated via - OP-41Getting issue details... STATUS .)timestamp
- the time when the metadata were created.userId
- the user id of the user who created/uploaded theKnowledgeModule
.
For a discussion of the SupportingData
element, please refer to Automated Deployment of Knowledge to OpenCDS - Scenarios.
<?xml version="1.0" encoding="UTF-8"?> <rest:supportingData xmlns:config="org.opencds.dss.config.v1_0" xmlns:rest="org.opencds.dss.config_rest.v1_0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="org.opencds.dss.config_rest.v1_0 ../schema/OpenCDSConfigRest.xsd "> <identifier>identifier</identifier> <kmId businessId="edu.utah" scopingEntityId="SCIP_VTE_2" version="2014.0.0" /> <package> <link rel="self" href="http://opencds.org/nowhere" /> <packageType>packageType</packageType> <packageId>packageId</packageId> </package> <loadedBy version="0.1" businessId="SupportingDataLoaderPlugin" scopingEntityId="custom.plugin"/> <timestamp>2001-12-31T12:00:00</timestamp> <userId>userId</userId> </rest:supportingData>
PluginPackages
The PluginPackages
element describes a list of plugins used in both pre- and post-processing.
<?xml version="1.0" encoding="UTF-8"?> <rest:pluginPackages xsi:schemaLocation="org.opencds.dss.config_rest.v1_0 ../schema/OpenCDSConfigRest.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rest="org.opencds.dss.config_rest.v1_0"> <pluginPackage> ... </pluginPackage> </rest:pluginPackages>
PluginPackage
The PluginPackage
describes the metadata describing the PluginPackages
to be used in both pre- and post-processing. These elements describe how the system should find and load the plugin:
identifier
- the identifier of thePluginPackage
, referenced by the system.loadContext
- indicates to the system where to find the plugin. Values are restricted to the following:CLASSPATH
- the system should find the package resource on the Java CLASSPATHIMPORTED
- (To be implemented in the future.) the system should find the resource in the configuration folders.
resourceName
- the name of the resource in the location specified inloadContext
. This name will (currently) be the name of a jar file.plugins
- the list of plugins contained in the plugin packageplugin
- the plugin metadata, described by the following elements:identifier
- the identifier of the plugin, used as a reference by the system in order to obtain theclassName
of the plugin.className
- the class name of the plugin.
timestamp
- the time when the metadata were created.userId
- the user id of the user who created/uploaded thePluginPackage
.
This style of configuration may be used via the REST service or may exist on the filesystem (as in the 1.2.x and previous configuration).
<?xml version="1.0" encoding="UTF-8"?> <rest:pluginPackage xsi:schemaLocation="org.opencds.dss.config_rest.v1_0 ../schema/OpenCDSConfigRest.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rest="org.opencds.dss.config_rest.v1_0"> <identifier version="1.3.0-SNAPSHOT" businessId="opencds-plugin-encounters" scopingEntityId="org.opencds.plugin" /> <loadContext>CLASSPATH</loadContext> <resourceName>opencds-plugin-encounters-1.3.0-SNAPSHOT.jar</resourceName> <plugins> <plugin> <identifier version="0.1" businessId="EncountersFromProblemAndProcedureConcepts" scopingEntityId="org.opencds.plugin" /> <className>org.opencds.plugin.EncountersFromProblemAndProcedureConcepts</className> </plugin> </plugins> <timestamp>2014-10-13T22:39:00</timestamp> <userId>userId</userId> </rest:pluginPackage>