GET api/Village/{village}/CarePlans/{carePlanId}/Current?withInactive={withInactive}
Get Care Plan instances for the current date
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
carePlanId |
Plan ID to retrieve instance data for |
globally unique identifier |
Required |
withInactive |
If provided, specifies whether to include inactive care plans. Defaults to true. |
boolean |
Default value is True |
village | string |
None. |
Body Parameters
None.
Response Information
Resource Description
Collection of CarePlanInstanceModelName | Description | Type | Additional information |
---|---|---|---|
CarePlanInstanceId |
Unique ID of this care plan instance |
globally unique identifier |
None. |
Title |
Care Plan title |
string |
None. |
Frequency |
Frequency the plan should be filled out (Daily = 0, Weekly = 1, Monthly = 2, Annual = 3) |
CarePlanFrequency |
None. |
FrequencyText |
Frequency as text |
string |
None. |
Start |
UTC date for the start of the Care Plan instance period (e.g. 7/12/2016 12:00:00.000 am) |
date |
None. |
End |
UTC date for the end of the Care Plan instance period (e.g. 7/11/2016 11:59:59.999 pm) |
date |
None. |
Updated |
Date/Time the care plan instance was last updated - null if the care plan for the selected period does not exist yet |
date |
None. |
UpdatedById |
Unique ID of the user who updated the care plan instance - null if the care plan for the selected period does not exist yet |
globally unique identifier |
None. |
UpdatedBy |
Name (First L.) of the user who updated the care plan instance - null if the care plan for the selected period does not exist yet |
string |
None. |
VersionId |
Unique ID of the version of the care plan this instance is based on |
globally unique identifier |
None. |
CarePlanId |
Unique ID of the care plan this instance is based on |
globally unique identifier |
None. |
VillageId |
Unique ID of the village |
globally unique identifier |
None. |
ActiveVersion |
Whether or not the care plan version this instance is based on is the currently active care plan version |
boolean |
None. |
Items |
Ordered list of questions w/ responses for this care plan |
Collection of CarePlanItemModel |
None. |
Response Formats
application/json, text/json
[ { "CarePlanInstanceId": "4d093da9-cb60-4c1a-8e2b-0d1d99efae74", "Title": "sample string 2", "Frequency": 0, "FrequencyText": "Daily", "Start": "2025-06-03T05:57:11.334+00:00", "End": "2025-06-03T05:57:11.334+00:00", "Updated": "2025-06-03T05:57:11.334+00:00", "UpdatedById": "b3450772-b805-43bf-baa2-c921ec660a78", "UpdatedBy": "sample string 5", "VersionId": "bf4651d2-6f36-4e2b-893d-b0e39d10de1d", "CarePlanId": "2d5dfebe-1bd9-49a3-997e-53e10e7356a5", "VillageId": "2d2f453e-0d5f-47a3-858a-814410a0a21f", "ActiveVersion": true, "Items": [ { "CarePlanItemId": "dc7296a5-319f-43bd-a5ac-8e675129d1b9", "CarePlanInstanceId": "b27b6a93-537c-48d6-8ab5-d14e6e1a2471", "CarePlanQuestionId": "bbcce0fd-b837-45a5-9a44-6f98bbf68ccb", "QuestionId": "62b20702-e7ab-4ade-b8bf-b54733044b90", "VillageId": "5b16e06b-851c-4963-b07a-3e3e3e47a6f9", "Question": "sample string 6", "Sequence": 7, "Status": 0, "Updated": "2025-06-03T05:57:11.334+00:00", "UpdatedById": "4714b8ee-c7f8-4c26-a43b-4c1ab141469b", "UpdatedBy": "sample string 8" }, { "CarePlanItemId": "dc7296a5-319f-43bd-a5ac-8e675129d1b9", "CarePlanInstanceId": "b27b6a93-537c-48d6-8ab5-d14e6e1a2471", "CarePlanQuestionId": "bbcce0fd-b837-45a5-9a44-6f98bbf68ccb", "QuestionId": "62b20702-e7ab-4ade-b8bf-b54733044b90", "VillageId": "5b16e06b-851c-4963-b07a-3e3e3e47a6f9", "Question": "sample string 6", "Sequence": 7, "Status": 0, "Updated": "2025-06-03T05:57:11.334+00:00", "UpdatedById": "4714b8ee-c7f8-4c26-a43b-4c1ab141469b", "UpdatedBy": "sample string 8" } ] }, { "CarePlanInstanceId": "4d093da9-cb60-4c1a-8e2b-0d1d99efae74", "Title": "sample string 2", "Frequency": 0, "FrequencyText": "Daily", "Start": "2025-06-03T05:57:11.334+00:00", "End": "2025-06-03T05:57:11.334+00:00", "Updated": "2025-06-03T05:57:11.334+00:00", "UpdatedById": "b3450772-b805-43bf-baa2-c921ec660a78", "UpdatedBy": "sample string 5", "VersionId": "bf4651d2-6f36-4e2b-893d-b0e39d10de1d", "CarePlanId": "2d5dfebe-1bd9-49a3-997e-53e10e7356a5", "VillageId": "2d2f453e-0d5f-47a3-858a-814410a0a21f", "ActiveVersion": true, "Items": [ { "CarePlanItemId": "dc7296a5-319f-43bd-a5ac-8e675129d1b9", "CarePlanInstanceId": "b27b6a93-537c-48d6-8ab5-d14e6e1a2471", "CarePlanQuestionId": "bbcce0fd-b837-45a5-9a44-6f98bbf68ccb", "QuestionId": "62b20702-e7ab-4ade-b8bf-b54733044b90", "VillageId": "5b16e06b-851c-4963-b07a-3e3e3e47a6f9", "Question": "sample string 6", "Sequence": 7, "Status": 0, "Updated": "2025-06-03T05:57:11.334+00:00", "UpdatedById": "4714b8ee-c7f8-4c26-a43b-4c1ab141469b", "UpdatedBy": "sample string 8" }, { "CarePlanItemId": "dc7296a5-319f-43bd-a5ac-8e675129d1b9", "CarePlanInstanceId": "b27b6a93-537c-48d6-8ab5-d14e6e1a2471", "CarePlanQuestionId": "bbcce0fd-b837-45a5-9a44-6f98bbf68ccb", "QuestionId": "62b20702-e7ab-4ade-b8bf-b54733044b90", "VillageId": "5b16e06b-851c-4963-b07a-3e3e3e47a6f9", "Question": "sample string 6", "Sequence": 7, "Status": 0, "Updated": "2025-06-03T05:57:11.334+00:00", "UpdatedById": "4714b8ee-c7f8-4c26-a43b-4c1ab141469b", "UpdatedBy": "sample string 8" } ] } ]
application/xml, text/xml
<ArrayOfCarePlanInstanceModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CaringVillage.Shared.Implementation.Models"> <CarePlanInstanceModel> <ActiveVersion>true</ActiveVersion> <CarePlanId>2d5dfebe-1bd9-49a3-997e-53e10e7356a5</CarePlanId> <CarePlanInstanceId>4d093da9-cb60-4c1a-8e2b-0d1d99efae74</CarePlanInstanceId> <End>2025-06-03T05:57:11.3349733+00:00</End> <Frequency>Daily</Frequency> <Items> <CarePlanItemModel> <CarePlanInstanceId>b27b6a93-537c-48d6-8ab5-d14e6e1a2471</CarePlanInstanceId> <CarePlanItemId>dc7296a5-319f-43bd-a5ac-8e675129d1b9</CarePlanItemId> <CarePlanQuestionId>bbcce0fd-b837-45a5-9a44-6f98bbf68ccb</CarePlanQuestionId> <Question>sample string 6</Question> <QuestionId>62b20702-e7ab-4ade-b8bf-b54733044b90</QuestionId> <Sequence>7</Sequence> <Status>NA</Status> <Updated>2025-06-03T05:57:11.3349733+00:00</Updated> <UpdatedBy>sample string 8</UpdatedBy> <UpdatedById>4714b8ee-c7f8-4c26-a43b-4c1ab141469b</UpdatedById> <VillageId>5b16e06b-851c-4963-b07a-3e3e3e47a6f9</VillageId> </CarePlanItemModel> <CarePlanItemModel> <CarePlanInstanceId>b27b6a93-537c-48d6-8ab5-d14e6e1a2471</CarePlanInstanceId> <CarePlanItemId>dc7296a5-319f-43bd-a5ac-8e675129d1b9</CarePlanItemId> <CarePlanQuestionId>bbcce0fd-b837-45a5-9a44-6f98bbf68ccb</CarePlanQuestionId> <Question>sample string 6</Question> <QuestionId>62b20702-e7ab-4ade-b8bf-b54733044b90</QuestionId> <Sequence>7</Sequence> <Status>NA</Status> <Updated>2025-06-03T05:57:11.3349733+00:00</Updated> <UpdatedBy>sample string 8</UpdatedBy> <UpdatedById>4714b8ee-c7f8-4c26-a43b-4c1ab141469b</UpdatedById> <VillageId>5b16e06b-851c-4963-b07a-3e3e3e47a6f9</VillageId> </CarePlanItemModel> </Items> <Start>2025-06-03T05:57:11.3349733+00:00</Start> <Title>sample string 2</Title> <Updated>2025-06-03T05:57:11.3349733+00:00</Updated> <UpdatedBy>sample string 5</UpdatedBy> <UpdatedById>b3450772-b805-43bf-baa2-c921ec660a78</UpdatedById> <VersionId>bf4651d2-6f36-4e2b-893d-b0e39d10de1d</VersionId> <VillageId>2d2f453e-0d5f-47a3-858a-814410a0a21f</VillageId> </CarePlanInstanceModel> <CarePlanInstanceModel> <ActiveVersion>true</ActiveVersion> <CarePlanId>2d5dfebe-1bd9-49a3-997e-53e10e7356a5</CarePlanId> <CarePlanInstanceId>4d093da9-cb60-4c1a-8e2b-0d1d99efae74</CarePlanInstanceId> <End>2025-06-03T05:57:11.3349733+00:00</End> <Frequency>Daily</Frequency> <Items> <CarePlanItemModel> <CarePlanInstanceId>b27b6a93-537c-48d6-8ab5-d14e6e1a2471</CarePlanInstanceId> <CarePlanItemId>dc7296a5-319f-43bd-a5ac-8e675129d1b9</CarePlanItemId> <CarePlanQuestionId>bbcce0fd-b837-45a5-9a44-6f98bbf68ccb</CarePlanQuestionId> <Question>sample string 6</Question> <QuestionId>62b20702-e7ab-4ade-b8bf-b54733044b90</QuestionId> <Sequence>7</Sequence> <Status>NA</Status> <Updated>2025-06-03T05:57:11.3349733+00:00</Updated> <UpdatedBy>sample string 8</UpdatedBy> <UpdatedById>4714b8ee-c7f8-4c26-a43b-4c1ab141469b</UpdatedById> <VillageId>5b16e06b-851c-4963-b07a-3e3e3e47a6f9</VillageId> </CarePlanItemModel> <CarePlanItemModel> <CarePlanInstanceId>b27b6a93-537c-48d6-8ab5-d14e6e1a2471</CarePlanInstanceId> <CarePlanItemId>dc7296a5-319f-43bd-a5ac-8e675129d1b9</CarePlanItemId> <CarePlanQuestionId>bbcce0fd-b837-45a5-9a44-6f98bbf68ccb</CarePlanQuestionId> <Question>sample string 6</Question> <QuestionId>62b20702-e7ab-4ade-b8bf-b54733044b90</QuestionId> <Sequence>7</Sequence> <Status>NA</Status> <Updated>2025-06-03T05:57:11.3349733+00:00</Updated> <UpdatedBy>sample string 8</UpdatedBy> <UpdatedById>4714b8ee-c7f8-4c26-a43b-4c1ab141469b</UpdatedById> <VillageId>5b16e06b-851c-4963-b07a-3e3e3e47a6f9</VillageId> </CarePlanItemModel> </Items> <Start>2025-06-03T05:57:11.3349733+00:00</Start> <Title>sample string 2</Title> <Updated>2025-06-03T05:57:11.3349733+00:00</Updated> <UpdatedBy>sample string 5</UpdatedBy> <UpdatedById>b3450772-b805-43bf-baa2-c921ec660a78</UpdatedById> <VersionId>bf4651d2-6f36-4e2b-893d-b0e39d10de1d</VersionId> <VillageId>2d2f453e-0d5f-47a3-858a-814410a0a21f</VillageId> </CarePlanInstanceModel> </ArrayOfCarePlanInstanceModel>