Plan definition apply operation

Hi, I am looking for logic to derive instance of each occurrence based on schedule of activity in CarePlan but realize $apply operator can do if it is provided by implementor.
Wondering, if Hapi Fhir or Smile CDR provide functionality to convert Plan definition to Care Plan using $apply operator.
What would be best practice to derive instance of each activity as per schedule.
e.g. if schedule is to repeat an activity daily for 3 months at 7:00 AM, I need to create activity for everyday in careplan.

Have you also used ActivityDefinition resources within the Care Plan ?

Talwinder can we touch base to discuss Care Plans and Planned Definition in FHIR…my email is pramodjacob@hotmail.com or pramod.d.jacob@gmail.com…awaiting your response thanks