GET api/Village/{village}/Journal/WellnessTrends?Type={Type}&BaseDate={BaseDate}

Get Wellness Trends

Request Information

URI Parameters

NameDescriptionTypeAdditional information
Type

The type of trend data to retrieve

TrendTypes

None.

BaseDate

Base date to use for trend period. For weekly trends, this should be the last day of the 7-day period (retrieve "prior 7" days). For monthly trends this should be the first day of the month but can be any day of the month - the month and year will be used but the day will be ignored. For "All", the date is the earliest date from which to retrieve data.

date

None.

StartDate

Trend period start calculated from Type and BaseDate

date

None.

EndDate

Trend period end calculated from Type and BaseDate

date

None.

village

string

None.

Body Parameters

None.

Response Information

Resource Description

Dictionary of date [key] and TrendDayOfWellness [value]

Response Formats

application/json, text/json

Sample:
{
  "2025-06-03T05:16:04.051+00:00": {
    "Counts": {
      "Good": 1
    },
    "Percents": {
      "Good": 100.0
    },
    "Entries": 1
  },
  "2025-06-03T05:16:04.062+00:00": {
    "Counts": {
      "Good": 1
    },
    "Percents": {
      "Good": 100.0
    },
    "Entries": 1
  }
}

application/xml, text/xml

Sample:
<ArrayOfKeyValueOfdateTimeTrendDayOfWellnessUDo9hgMBn1YDAqHx xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
  <KeyValueOfdateTimeTrendDayOfWellnessUDo9hgMBn1YDAqHx>
    <Key>2025-06-03T05:16:04.0515211+00:00</Key>
    <Value xmlns:d3p1="http://schemas.datacontract.org/2004/07/CaringVillage.Shared.Implementation.Models">
      <d3p1:Counts>
        <KeyValueOfWellnessintcwQxThlm>
          <Key>Good</Key>
          <Value>1</Value>
        </KeyValueOfWellnessintcwQxThlm>
      </d3p1:Counts>
      <d3p1:Percents>
        <KeyValueOfWellnessdoublecwQxThlm>
          <Key>Good</Key>
          <Value>100</Value>
        </KeyValueOfWellnessdoublecwQxThlm>
      </d3p1:Percents>
    </Value>
  </KeyValueOfdateTimeTrendDayOfWellnessUDo9hgMBn1YDAqHx>
  <KeyValueOfdateTimeTrendDayOfWellnessUDo9hgMBn1YDAqHx>
    <Key>2025-06-03T05:16:04.0626763+00:00</Key>
    <Value xmlns:d3p1="http://schemas.datacontract.org/2004/07/CaringVillage.Shared.Implementation.Models">
      <d3p1:Counts>
        <KeyValueOfWellnessintcwQxThlm>
          <Key>Good</Key>
          <Value>1</Value>
        </KeyValueOfWellnessintcwQxThlm>
      </d3p1:Counts>
      <d3p1:Percents>
        <KeyValueOfWellnessdoublecwQxThlm>
          <Key>Good</Key>
          <Value>100</Value>
        </KeyValueOfWellnessdoublecwQxThlm>
      </d3p1:Percents>
    </Value>
  </KeyValueOfdateTimeTrendDayOfWellnessUDo9hgMBn1YDAqHx>
</ArrayOfKeyValueOfdateTimeTrendDayOfWellnessUDo9hgMBn1YDAqHx>