GET api/Village/{village}/CarePlans/{carePlanId}/{versionId}/Definition
Get specified Care Plan Definition version
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
carePlanId |
ID of the care plan to return |
globally unique identifier |
Required |
versionId |
Version of the care plan to return |
globally unique identifier |
Required |
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": "b2ea1912-0d4c-427f-b841-6c5447f2d981", "VillageId": "584bab5c-840a-4e57-b747-a0e8a7e3a04c", "CarePlanId": "88e74616-980c-4a8c-9e1c-ecb616e457df", "Frequency": 0, "RepeatsEvery": 4, "EndDate": "2025-06-03T05:59:25.310+00:00", "EndCount": 1, "InstanceCount": 5, "ReminderInterval": 1, "Title": "sample string 6", "Active": true, "Updated": "2025-06-03T05:59:25.310+00:00", "Questions": [ { "CarePlanQuestionId": "793ed186-a871-467e-a151-eb74c889d9e6", "VersionId": "69bb03fa-aa46-4ea6-8b47-8ccb75877e01", "QuestionId": "6ad67bf8-99bc-49f5-b180-4c3e4ddc6aa4", "VillageId": "7a1fd0f3-f3f9-4d3c-913e-d5991e4b5196", "Question": "sample string 5", "Sequence": 6 }, { "CarePlanQuestionId": "793ed186-a871-467e-a151-eb74c889d9e6", "VersionId": "69bb03fa-aa46-4ea6-8b47-8ccb75877e01", "QuestionId": "6ad67bf8-99bc-49f5-b180-4c3e4ddc6aa4", "VillageId": "7a1fd0f3-f3f9-4d3c-913e-d5991e4b5196", "Question": "sample string 5", "Sequence": 6 } ], "ActivatedDate": "2025-06-03T05:59:25.310+00:00", "Draft": true }, { "VersionId": "b2ea1912-0d4c-427f-b841-6c5447f2d981", "VillageId": "584bab5c-840a-4e57-b747-a0e8a7e3a04c", "CarePlanId": "88e74616-980c-4a8c-9e1c-ecb616e457df", "Frequency": 0, "RepeatsEvery": 4, "EndDate": "2025-06-03T05:59:25.310+00:00", "EndCount": 1, "InstanceCount": 5, "ReminderInterval": 1, "Title": "sample string 6", "Active": true, "Updated": "2025-06-03T05:59:25.310+00:00", "Questions": [ { "CarePlanQuestionId": "793ed186-a871-467e-a151-eb74c889d9e6", "VersionId": "69bb03fa-aa46-4ea6-8b47-8ccb75877e01", "QuestionId": "6ad67bf8-99bc-49f5-b180-4c3e4ddc6aa4", "VillageId": "7a1fd0f3-f3f9-4d3c-913e-d5991e4b5196", "Question": "sample string 5", "Sequence": 6 }, { "CarePlanQuestionId": "793ed186-a871-467e-a151-eb74c889d9e6", "VersionId": "69bb03fa-aa46-4ea6-8b47-8ccb75877e01", "QuestionId": "6ad67bf8-99bc-49f5-b180-4c3e4ddc6aa4", "VillageId": "7a1fd0f3-f3f9-4d3c-913e-d5991e4b5196", "Question": "sample string 5", "Sequence": 6 } ], "ActivatedDate": "2025-06-03T05:59:25.310+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:59:25.3104381+00:00</ActivatedDate> <Active>true</Active> <CarePlanId>88e74616-980c-4a8c-9e1c-ecb616e457df</CarePlanId> <Draft>true</Draft> <EndCount>1</EndCount> <EndDate>2025-06-03T05:59:25.3104381+00:00</EndDate> <Frequency>Daily</Frequency> <InstanceCount>5</InstanceCount> <Questions> <CarePlanQuestionDefinitionModel> <CarePlanQuestionId>793ed186-a871-467e-a151-eb74c889d9e6</CarePlanQuestionId> <Question>sample string 5</Question> <QuestionId>6ad67bf8-99bc-49f5-b180-4c3e4ddc6aa4</QuestionId> <Sequence>6</Sequence> <VersionId>69bb03fa-aa46-4ea6-8b47-8ccb75877e01</VersionId> <VillageId>7a1fd0f3-f3f9-4d3c-913e-d5991e4b5196</VillageId> </CarePlanQuestionDefinitionModel> <CarePlanQuestionDefinitionModel> <CarePlanQuestionId>793ed186-a871-467e-a151-eb74c889d9e6</CarePlanQuestionId> <Question>sample string 5</Question> <QuestionId>6ad67bf8-99bc-49f5-b180-4c3e4ddc6aa4</QuestionId> <Sequence>6</Sequence> <VersionId>69bb03fa-aa46-4ea6-8b47-8ccb75877e01</VersionId> <VillageId>7a1fd0f3-f3f9-4d3c-913e-d5991e4b5196</VillageId> </CarePlanQuestionDefinitionModel> </Questions> <ReminderInterval>1</ReminderInterval> <RepeatsEvery>4</RepeatsEvery> <Title>sample string 6</Title> <Updated>2025-06-03T05:59:25.3104381+00:00</Updated> <VersionId>b2ea1912-0d4c-427f-b841-6c5447f2d981</VersionId> <VillageId>584bab5c-840a-4e57-b747-a0e8a7e3a04c</VillageId> </CarePlanDefinitionModel> <CarePlanDefinitionModel> <ActivatedDate>2025-06-03T05:59:25.3104381+00:00</ActivatedDate> <Active>true</Active> <CarePlanId>88e74616-980c-4a8c-9e1c-ecb616e457df</CarePlanId> <Draft>true</Draft> <EndCount>1</EndCount> <EndDate>2025-06-03T05:59:25.3104381+00:00</EndDate> <Frequency>Daily</Frequency> <InstanceCount>5</InstanceCount> <Questions> <CarePlanQuestionDefinitionModel> <CarePlanQuestionId>793ed186-a871-467e-a151-eb74c889d9e6</CarePlanQuestionId> <Question>sample string 5</Question> <QuestionId>6ad67bf8-99bc-49f5-b180-4c3e4ddc6aa4</QuestionId> <Sequence>6</Sequence> <VersionId>69bb03fa-aa46-4ea6-8b47-8ccb75877e01</VersionId> <VillageId>7a1fd0f3-f3f9-4d3c-913e-d5991e4b5196</VillageId> </CarePlanQuestionDefinitionModel> <CarePlanQuestionDefinitionModel> <CarePlanQuestionId>793ed186-a871-467e-a151-eb74c889d9e6</CarePlanQuestionId> <Question>sample string 5</Question> <QuestionId>6ad67bf8-99bc-49f5-b180-4c3e4ddc6aa4</QuestionId> <Sequence>6</Sequence> <VersionId>69bb03fa-aa46-4ea6-8b47-8ccb75877e01</VersionId> <VillageId>7a1fd0f3-f3f9-4d3c-913e-d5991e4b5196</VillageId> </CarePlanQuestionDefinitionModel> </Questions> <ReminderInterval>1</ReminderInterval> <RepeatsEvery>4</RepeatsEvery> <Title>sample string 6</Title> <Updated>2025-06-03T05:59:25.3104381+00:00</Updated> <VersionId>b2ea1912-0d4c-427f-b841-6c5447f2d981</VersionId> <VillageId>584bab5c-840a-4e57-b747-a0e8a7e3a04c</VillageId> </CarePlanDefinitionModel> </ArrayOfCarePlanDefinitionModel>