Rules and the Library resources that contain their logic are provided in the eHealth Infrastructure through the Library Service. Once created as Library resources, they can be made part of the PlanDefinition/ActivityDefinition complex (defined as templates). The PlanDefinition/ActivityDefinition and Library complex becomes interesting when applied to particular Patient resources in the form of CarePlan/ProcedureRequest ServiceRequest resources. Library resources, whether of calculation or automated processing type, come into use immediately prior or after submission of measurement. Before delving into details on the life cycle of rules and Library resources, the described ways in which Library resources are involved have an impact on some ground rules described in the following.
...
- A Library resource (and the rule contained in it) is immutable. The only element allowed to change is the
Library.status
which can change fromactive
toretired
. Change to retired status does not affect how it is used and is solely to signify that the Library should no longer be used in future CarePlan/ProcedureRequestServiceRequest. - Multiple versions and revisions of a rule can co-exist, each in a Library resource of their own.
...
The Library can be slated for retirement by setting the Library.status
to retired
. As mentioned this signifies that future use should be prevented and does not affect current use of the Library neither in the PlanDefinition/ActivityDefinition complex nor in CarePlan/ProcedureRequestServiceRequest. To immediately stop use of a Library, all ProcedureRequest ServiceRequest defined by ActivityDefinition referencing the Library must be de-activated and possibly replaced by new, active ProcedureRequestServiceRequest.