GET PlanCare2Api/Goals?clientId={clientId}

Retrieve all goals for the selected client.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
clientId

The client for whom to fetch the goals.

integer

Required

Body Parameters

None.

Response Information

Resource Description

A list of goals from all care demands that belong to clientplans. Goals of both the legacy and current clientplan version are returned.

Collection of Goal
NameDescriptionTypeAdditional information
Id

The internal id of the goal.

integer

None

Description

The description of the goal.

string

None

InitialSituation

The description of the initial situation.

string

None

TargetSituation

The description of the desired situation.

string

None

ClientId

The id of the client.

integer

None

ClientplanId

The id of the clientplan.

integer

None

Status

The status of the goal.

ClientplanPartGoalStatus

None

StatusDate

The status date of the goal.

date

None

Response Formats

application/json, text/json

Sample:
[
  {
    "$id": "1",
    "Id": 1,
    "Description": "sample string 2",
    "InitialSituation": "sample string 3",
    "TargetSituation": "sample string 4",
    "ClientId": 5,
    "ClientplanId": 6,
    "Status": 0,
    "StatusDate": "2026-05-26T21:59:30.7259678+02:00"
  },
  {
    "$ref": "1"
  }
]

application/xml, text/xml

Sample:
<ArrayOfGoal xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DHS.PlanCare.Web.Api.Interface.Clientplan">
  <Goal>
    <ClientId>5</ClientId>
    <ClientplanId>6</ClientplanId>
    <Description>sample string 2</Description>
    <Id>1</Id>
    <InitialSituation>sample string 3</InitialSituation>
    <Status>Concept</Status>
    <StatusDate>2026-05-26T21:59:30.7259678+02:00</StatusDate>
    <TargetSituation>sample string 4</TargetSituation>
  </Goal>
  <Goal>
    <ClientId>5</ClientId>
    <ClientplanId>6</ClientplanId>
    <Description>sample string 2</Description>
    <Id>1</Id>
    <InitialSituation>sample string 3</InitialSituation>
    <Status>Concept</Status>
    <StatusDate>2026-05-26T21:59:30.7259678+02:00</StatusDate>
    <TargetSituation>sample string 4</TargetSituation>
  </Goal>
</ArrayOfGoal>