Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

With one exception these DSLs all live in the RHS of a rule, and they create output structures, modeled as a vMR ObservationResult, and containing information that you want OpenCDS to return as the EvaluationResponse to an EvaluationRequest.  Since any new facts that are created within Drools go out of scope when you leave Drools, these DSLs make the output structures are made that they create available to OpenCDS by adding them to the global "namedObjects", where . OpenCDS will find them in namedObjects, and process them as output XML.

  • Out.Assertions - creates a list of all the "Assertions" found in working memory for debugging purposes
  • Out.Concepts.All.Read - LHS, used to locate all the OpenCDS Concepts in working memory to enable creating an output with Out.Concepts.All.Write
  • Out.Concepts.All.Write - RHS creates a single output ObservationResult containing a list of all the mapped OpenCDS Concepts that were found in the input data, for debugging purposes
  • Out.Nested.Obs.Num.Denom - creates an ObservationResult containing the actual findings/results of the KM
  • Out.Root.Obs.Focus.EvalpId - This is a wrapper ObservationResult that identifies the Knowledge Module that was executed and the ID of the patient involved.  It is intended to be used with another DSL, such as Out.Nested.Obs.Num.Denom which documents the detail findings of the KM

...

This DSL must be used as the first step in the LHS of all rules that use any other DSLs.  It initializes references for the evaluation time, the focal patient, and the evaluated person (which is same as the patient for this DSL) that can then be used in subsequent steps of the current rule..  Other versions of this DSL can be used to use the same rules to inference over the vMR constructions of "OtherEvaluatedPerson".  All other DSLs that reference vMR data expect the variables to be referenced, and most rules will not validate unless this DSL is the first one in the LHS of the rule.

  • Init.EvalTime.FpId.EvalpId

...

There are situations where it is useful to create new types of data that are not part of the vMR for new derivative facts that you want to insert into working memory, and/or into the global "namedObjects", and you need for them to have a name so that you can reference them later.  The new types of data are created as Declarative Data Model types, and the following DSLs create or reference instances of them.

...