CPGRequestResource

sealed class CPGRequestResource<R : Resource>

This abstracts the CPG Request Resources used in various activities. The various subclasses of CPGRequestResource act as a wrapper around the resource they are derived from and helps with the abstracted properties defined for each CPGRequestResource. e.g. CPGCommunicationRequest is a wrapper around the CommunicationRequest and helps with its Intent, Status and basedOn References.

Any direct update to the resource can be done by using update api.

The application users may use appropriate of static factories to create the required CPGRequestResources.

NOTE

The resource must contain appropriate Resource.meta.profile for the of factories to create appropriate CPGRequestResources. e.g. Both CPGMedicationRequest and CPGImmunizationRequest are derived from MedicationRequest. So the MedicationRequest.meta.profile is required to create the appropriate CPGRequestResource.

Inheritors

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
abstract fun getBasedOn(): Reference?
Link copied to clipboard
Link copied to clipboard
abstract fun getStatusCode(): String?
Link copied to clipboard
abstract fun setBasedOn(reference: Reference)
Link copied to clipboard
abstract fun setStatus(status: Status, reason: String? = null)