CPGRequest 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.