GET api/Village/{village}/CarePlans/Definitions/Active
Get Care Plan Definitions (active versions only)
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
village | string |
None. |
Body Parameters
None.
Response Information
Resource Description
Collection of CarePlanDefinitionModelName | Description | Type | Additional information |
---|---|---|---|
VersionId |
Unique ID for this version of the care plan |
globally unique identifier |
None. |
VillageId |
Unique ID of the village |
globally unique identifier |
None. |
CarePlanId |
Unique ID of this care plan (multiple versions may share the same Care Plan ID) |
globally unique identifier |
None. |
Frequency |
Frequency the plan should be filled out (Daily = 0, Weekly = 1) |
CarePlanFrequency |
None. |
RepeatsEvery |
Repeats Every N |
integer |
None. |
EndDate |
End on X date (null if no end date) |
date |
None. |
EndCount |
End after X occurrences (null if no end count) |
integer |
None. |
InstanceCount |
Number of occurrences that have happened |
integer |
None. |
ReminderInterval |
Reminder N time (in minutes) before reset |
integer |
None. |
Title |
Care Plan title |
string |
None. |
Active |
Whether or not this is the current active care plan for the village |
boolean |
None. |
Updated |
Date/Time the care plan was last updated |
date |
None. |
Questions |
Ordered list of questions for this care plan |
Collection of CarePlanQuestionDefinitionModel |
None. |
ActivatedDate |
Date the care plan version was activated |
date |
None. |
Draft |
If true, the care plan version is a draft (has never been activated) |
boolean |
None. |
Response Formats
application/json, text/json
[ { "VersionId": "e0abd621-7ce1-41cc-b5fa-f38cd2c1ccf1", "VillageId": "afff329e-4623-40b6-9319-7a4ab61786d6", "CarePlanId": "278abaaa-4ad7-44a7-ac2a-a80445e081b0", "Frequency": 0, "RepeatsEvery": 4, "EndDate": "2025-06-03T05:29:43.863+00:00", "EndCount": 1, "InstanceCount": 5, "ReminderInterval": 1, "Title": "sample string 6", "Active": true, "Updated": "2025-06-03T05:29:43.863+00:00", "Questions": [ { "CarePlanQuestionId": "0deb2e5b-25d8-4c3f-8a5c-3c25068ed015", "VersionId": "b050c560-67ae-4c6e-9818-6a123d26f3c9", "QuestionId": "708d527e-ff0f-4fbf-89d9-7d9390f14176", "VillageId": "a2644323-6fe2-46da-8ecf-72eab6f2ca7c", "Question": "sample string 5", "Sequence": 6 }, { "CarePlanQuestionId": "0deb2e5b-25d8-4c3f-8a5c-3c25068ed015", "VersionId": "b050c560-67ae-4c6e-9818-6a123d26f3c9", "QuestionId": "708d527e-ff0f-4fbf-89d9-7d9390f14176", "VillageId": "a2644323-6fe2-46da-8ecf-72eab6f2ca7c", "Question": "sample string 5", "Sequence": 6 } ], "ActivatedDate": "2025-06-03T05:29:43.863+00:00", "Draft": true }, { "VersionId": "e0abd621-7ce1-41cc-b5fa-f38cd2c1ccf1", "VillageId": "afff329e-4623-40b6-9319-7a4ab61786d6", "CarePlanId": "278abaaa-4ad7-44a7-ac2a-a80445e081b0", "Frequency": 0, "RepeatsEvery": 4, "EndDate": "2025-06-03T05:29:43.863+00:00", "EndCount": 1, "InstanceCount": 5, "ReminderInterval": 1, "Title": "sample string 6", "Active": true, "Updated": "2025-06-03T05:29:43.863+00:00", "Questions": [ { "CarePlanQuestionId": "0deb2e5b-25d8-4c3f-8a5c-3c25068ed015", "VersionId": "b050c560-67ae-4c6e-9818-6a123d26f3c9", "QuestionId": "708d527e-ff0f-4fbf-89d9-7d9390f14176", "VillageId": "a2644323-6fe2-46da-8ecf-72eab6f2ca7c", "Question": "sample string 5", "Sequence": 6 }, { "CarePlanQuestionId": "0deb2e5b-25d8-4c3f-8a5c-3c25068ed015", "VersionId": "b050c560-67ae-4c6e-9818-6a123d26f3c9", "QuestionId": "708d527e-ff0f-4fbf-89d9-7d9390f14176", "VillageId": "a2644323-6fe2-46da-8ecf-72eab6f2ca7c", "Question": "sample string 5", "Sequence": 6 } ], "ActivatedDate": "2025-06-03T05:29:43.863+00:00", "Draft": true } ]
application/xml, text/xml
<ArrayOfCarePlanDefinitionModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CaringVillage.Shared.Implementation.Models"> <CarePlanDefinitionModel> <ActivatedDate>2025-06-03T05:29:43.8637773+00:00</ActivatedDate> <Active>true</Active> <CarePlanId>278abaaa-4ad7-44a7-ac2a-a80445e081b0</CarePlanId> <Draft>true</Draft> <EndCount>1</EndCount> <EndDate>2025-06-03T05:29:43.8637773+00:00</EndDate> <Frequency>Daily</Frequency> <InstanceCount>5</InstanceCount> <Questions> <CarePlanQuestionDefinitionModel> <CarePlanQuestionId>0deb2e5b-25d8-4c3f-8a5c-3c25068ed015</CarePlanQuestionId> <Question>sample string 5</Question> <QuestionId>708d527e-ff0f-4fbf-89d9-7d9390f14176</QuestionId> <Sequence>6</Sequence> <VersionId>b050c560-67ae-4c6e-9818-6a123d26f3c9</VersionId> <VillageId>a2644323-6fe2-46da-8ecf-72eab6f2ca7c</VillageId> </CarePlanQuestionDefinitionModel> <CarePlanQuestionDefinitionModel> <CarePlanQuestionId>0deb2e5b-25d8-4c3f-8a5c-3c25068ed015</CarePlanQuestionId> <Question>sample string 5</Question> <QuestionId>708d527e-ff0f-4fbf-89d9-7d9390f14176</QuestionId> <Sequence>6</Sequence> <VersionId>b050c560-67ae-4c6e-9818-6a123d26f3c9</VersionId> <VillageId>a2644323-6fe2-46da-8ecf-72eab6f2ca7c</VillageId> </CarePlanQuestionDefinitionModel> </Questions> <ReminderInterval>1</ReminderInterval> <RepeatsEvery>4</RepeatsEvery> <Title>sample string 6</Title> <Updated>2025-06-03T05:29:43.8637773+00:00</Updated> <VersionId>e0abd621-7ce1-41cc-b5fa-f38cd2c1ccf1</VersionId> <VillageId>afff329e-4623-40b6-9319-7a4ab61786d6</VillageId> </CarePlanDefinitionModel> <CarePlanDefinitionModel> <ActivatedDate>2025-06-03T05:29:43.8637773+00:00</ActivatedDate> <Active>true</Active> <CarePlanId>278abaaa-4ad7-44a7-ac2a-a80445e081b0</CarePlanId> <Draft>true</Draft> <EndCount>1</EndCount> <EndDate>2025-06-03T05:29:43.8637773+00:00</EndDate> <Frequency>Daily</Frequency> <InstanceCount>5</InstanceCount> <Questions> <CarePlanQuestionDefinitionModel> <CarePlanQuestionId>0deb2e5b-25d8-4c3f-8a5c-3c25068ed015</CarePlanQuestionId> <Question>sample string 5</Question> <QuestionId>708d527e-ff0f-4fbf-89d9-7d9390f14176</QuestionId> <Sequence>6</Sequence> <VersionId>b050c560-67ae-4c6e-9818-6a123d26f3c9</VersionId> <VillageId>a2644323-6fe2-46da-8ecf-72eab6f2ca7c</VillageId> </CarePlanQuestionDefinitionModel> <CarePlanQuestionDefinitionModel> <CarePlanQuestionId>0deb2e5b-25d8-4c3f-8a5c-3c25068ed015</CarePlanQuestionId> <Question>sample string 5</Question> <QuestionId>708d527e-ff0f-4fbf-89d9-7d9390f14176</QuestionId> <Sequence>6</Sequence> <VersionId>b050c560-67ae-4c6e-9818-6a123d26f3c9</VersionId> <VillageId>a2644323-6fe2-46da-8ecf-72eab6f2ca7c</VillageId> </CarePlanQuestionDefinitionModel> </Questions> <ReminderInterval>1</ReminderInterval> <RepeatsEvery>4</RepeatsEvery> <Title>sample string 6</Title> <Updated>2025-06-03T05:29:43.8637773+00:00</Updated> <VersionId>e0abd621-7ce1-41cc-b5fa-f38cd2c1ccf1</VersionId> <VillageId>afff329e-4623-40b6-9319-7a4ab61786d6</VillageId> </CarePlanDefinitionModel> </ArrayOfCarePlanDefinitionModel>