Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add correlation id as option for grouping measurements (#47)
* Add correlation id support to measurements/groups & ObservationGroups/Factory * Add correlation id to SA queries in collection query project and SA query property of ARM templates * Add ability to extract correlation id to JsonPathContentTemplate * Add tests for extraction logic * Update exception in CorrelationObservationGroup to throw new CorrelationIdNotDefinedException with id not set * Add CorrelationIdNotDefinedException to telemetry processor as a known non-recoverable error. * Add unit tests for new observation groups and observation group factories. * Add missing file header * Add unit test for FhirTemplate to ensure default value for PeriodInterval hasn't changed. This is to ensure no backwards breaking changes. * FIx CorrelationMeasurementObservationGroupFactory not setting ObservationGroup name * Add additional validations * Refactor value processors to accept new interface IObservationData that includes data to be created and information about the existing observation. * Add DateTime extensions for common FHIR operations on DateTime values. * Add ability to update the period of observation if the merged values our outside the current period. * Add unit tests for observation period update scenario. * Fixed CodeValueFhirTemplateProcessor using new period instead of old period when merging data. Old period will now be used and tests updated. * Updated SampledDataFhirValueProcessor to use values from existing observation when merging sample data. Tests updated. * Update SampledDataFhirValueProcessor to use observation period instead of data period during create to future proof. Right now they would always be the same. * Fix issue in SampledDataProcessor were the last value was omitted from the stream if it was on the end boundary. Never hit before because the hourly and daily time periods would end on the time boundary - 1 ms. * Update documentation to include the new correlation id feature.
- Loading branch information