frequency 1.0.0
frequency: ^1.0.0 copied to clipboard
Utility that calculates frequency based on passed attributes OR based on FHIR resources for healthcare applications. package has no dependency on other packages, uses plain dart code.
frequency
Utility that calculates frequency based on passed attributes OR based on FHIR resources for healthcare applications. package has no dependency on other packages, uses plain dart code.
example:
Frequency freqObj = Frequency.Dynamic("every 8 hours", "Day", 3); print(freqObj.getNextFreq(DateTime.now()));
Map<String, dynamic> pfhirTiming = { "repeat": {"frequency": 1, "period": 4.0, "periodUnit": "h"} }; String pfhirFreqText = "";
Frequency freqObjFhir = Frequency.BuildFromFHIRRepeat(pfhirTiming, pfhirFreqText); print(freqObjFhir.getNextFreq(DateTime.now()));