frequency 1.0.0 copy "frequency: ^1.0.0" to clipboard
frequency: ^1.0.0 copied to clipboard

outdated

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_example.dart

import '../lib/frequency.dart';

void main() {
  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()));
}
0
likes
0
points
14
downloads

Publisher

unverified uploader

Weekly Downloads

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.

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on frequency