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

Utility that calculates frequency based on passed attributes OR based on FHIR resources for healthcare applications.

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 = { "frequency": 1, "period": 4.0, "periodUnit": "h" }; String pfhirFreqText = "";

Frequency freqObjFhir = Frequency.buildFromFHIRRepeat(pfhirTiming, pfhirFreqText); print(freqObjFhir.getNextFreq(DateTime.now())); }

0
likes
140
points
26
downloads

Publisher

unverified uploader

Weekly Downloads

Utility that calculates frequency based on passed attributes OR based on FHIR resources for healthcare applications.

Documentation

API reference

License

BSD-3-Clause (license)

More

Packages that depend on frequency