%ZHSLIB.Context.ServiceBase

abstract class %ZHSLIB.Context.ServiceBase extends %Library.RegisteredObject

This is a base class for a HealthShare Service. A Service is a singleton object that is instantiated when a HealthShare Instance is started. @API.Extensible @Modifier Availability InterSystems

Method Inventory

Parameters

parameter ServiceKey;
The unique key for the service (e.g. classname).
@API.Overrideable
parameter ServiceVersion;
Semantic version of the Service. Must be a version string with the following format: .. @API.Overrideable

Methods

classmethod %%CheckSubClassValidity() [ Language = objectscript ]
Ensure non-abstract subclasses have abstract parameters defined correctly
classmethod Instance(pMinimumMinorVersion As %Integer = 0) as %ZHSLIB.Context.ServiceBase [ Language = objectscript ]
Returns the singleton service to use for this instance. The service returned will be have the same major version as that in ServiceVersion. The latest minor and patch version available for the service will be returned. If pMinimumMinorVersion is provided, then a service is returned only if one is found with at least the provided minor version. Throws errors if service not found.

Inherited Members

Inherited Methods

Feedback