GET PlanCare2Api/ClientReports/Goals?clientId={clientId}&referenceDate={referenceDate}
Retrieve all goals for the selected client that overlap with the given date.
Requires 'Start' permission for function ClientReportOverview {4250ABB5-A4FD-4362-8B29-79E0D78571E5}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| clientId |
The client for whom to fetch the goals. |
integer |
Required |
| referenceDate |
The date the goal should overlap with. |
date |
Required |
Body Parameters
None.
Response Information
Resource Description
An object with two lists of goals including subgoals/workplans and actions.
ClientReportGoalCollection| Name | Description | Type | Additional information |
|---|---|---|---|
| Goals |
A list of clientplan-goals and subgoals and actions |
Collection of ClientReportGoal |
None. |
| GoalsLegacy |
A list of (legacy)clientplan-goals and workplans and actions |
Collection of ClientReportGoal |
None. |
Response Formats
application/json, text/json
Sample:
{
"Goals": [
{
"$id": "2",
"Id": 1,
"Name": "sample string 2",
"Actions": [
{
"$id": "3",
"Id": 1,
"Name": "sample string 2"
},
{
"$ref": "3"
}
],
"SubGoals": [
{
"$id": "4",
"Id": 1,
"Name": "sample string 2",
"Actions": [
{
"$ref": "3"
},
{
"$ref": "3"
}
]
},
{
"$ref": "4"
}
]
},
{
"$ref": "2"
}
],
"GoalsLegacy": [
{
"$ref": "2"
},
{
"$ref": "2"
}
]
}
application/xml, text/xml
Sample:
<ClientReportGoalCollection xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DHS.PlanCare.Web.Api.Interface.ClientReport">
<Goals>
<ClientReportGoal>
<Actions>
<ClientReportAction>
<Id>1</Id>
<Name>sample string 2</Name>
</ClientReportAction>
<ClientReportAction>
<Id>1</Id>
<Name>sample string 2</Name>
</ClientReportAction>
</Actions>
<Id>1</Id>
<Name>sample string 2</Name>
<SubGoals>
<ClientReportSubGoal>
<Actions>
<ClientReportAction>
<Id>1</Id>
<Name>sample string 2</Name>
</ClientReportAction>
<ClientReportAction>
<Id>1</Id>
<Name>sample string 2</Name>
</ClientReportAction>
</Actions>
<Id>1</Id>
<Name>sample string 2</Name>
</ClientReportSubGoal>
<ClientReportSubGoal>
<Actions>
<ClientReportAction>
<Id>1</Id>
<Name>sample string 2</Name>
</ClientReportAction>
<ClientReportAction>
<Id>1</Id>
<Name>sample string 2</Name>
</ClientReportAction>
</Actions>
<Id>1</Id>
<Name>sample string 2</Name>
</ClientReportSubGoal>
</SubGoals>
</ClientReportGoal>
<ClientReportGoal>
<Actions>
<ClientReportAction>
<Id>1</Id>
<Name>sample string 2</Name>
</ClientReportAction>
<ClientReportAction>
<Id>1</Id>
<Name>sample string 2</Name>
</ClientReportAction>
</Actions>
<Id>1</Id>
<Name>sample string 2</Name>
<SubGoals>
<ClientReportSubGoal>
<Actions>
<ClientReportAction>
<Id>1</Id>
<Name>sample string 2</Name>
</ClientReportAction>
<ClientReportAction>
<Id>1</Id>
<Name>sample string 2</Name>
</ClientReportAction>
</Actions>
<Id>1</Id>
<Name>sample string 2</Name>
</ClientReportSubGoal>
<ClientReportSubGoal>
<Actions>
<ClientReportAction>
<Id>1</Id>
<Name>sample string 2</Name>
</ClientReportAction>
<ClientReportAction>
<Id>1</Id>
<Name>sample string 2</Name>
</ClientReportAction>
</Actions>
<Id>1</Id>
<Name>sample string 2</Name>
</ClientReportSubGoal>
</SubGoals>
</ClientReportGoal>
</Goals>
<GoalsLegacy>
<ClientReportGoal>
<Actions>
<ClientReportAction>
<Id>1</Id>
<Name>sample string 2</Name>
</ClientReportAction>
<ClientReportAction>
<Id>1</Id>
<Name>sample string 2</Name>
</ClientReportAction>
</Actions>
<Id>1</Id>
<Name>sample string 2</Name>
<SubGoals>
<ClientReportSubGoal>
<Actions>
<ClientReportAction>
<Id>1</Id>
<Name>sample string 2</Name>
</ClientReportAction>
<ClientReportAction>
<Id>1</Id>
<Name>sample string 2</Name>
</ClientReportAction>
</Actions>
<Id>1</Id>
<Name>sample string 2</Name>
</ClientReportSubGoal>
<ClientReportSubGoal>
<Actions>
<ClientReportAction>
<Id>1</Id>
<Name>sample string 2</Name>
</ClientReportAction>
<ClientReportAction>
<Id>1</Id>
<Name>sample string 2</Name>
</ClientReportAction>
</Actions>
<Id>1</Id>
<Name>sample string 2</Name>
</ClientReportSubGoal>
</SubGoals>
</ClientReportGoal>
<ClientReportGoal>
<Actions>
<ClientReportAction>
<Id>1</Id>
<Name>sample string 2</Name>
</ClientReportAction>
<ClientReportAction>
<Id>1</Id>
<Name>sample string 2</Name>
</ClientReportAction>
</Actions>
<Id>1</Id>
<Name>sample string 2</Name>
<SubGoals>
<ClientReportSubGoal>
<Actions>
<ClientReportAction>
<Id>1</Id>
<Name>sample string 2</Name>
</ClientReportAction>
<ClientReportAction>
<Id>1</Id>
<Name>sample string 2</Name>
</ClientReportAction>
</Actions>
<Id>1</Id>
<Name>sample string 2</Name>
</ClientReportSubGoal>
<ClientReportSubGoal>
<Actions>
<ClientReportAction>
<Id>1</Id>
<Name>sample string 2</Name>
</ClientReportAction>
<ClientReportAction>
<Id>1</Id>
<Name>sample string 2</Name>
</ClientReportAction>
</Actions>
<Id>1</Id>
<Name>sample string 2</Name>
</ClientReportSubGoal>
</SubGoals>
</ClientReportGoal>
</GoalsLegacy>
</ClientReportGoalCollection>