GET PlanCare2Api/Relations/{relationId}/Correlations

Get the correlations of correlationTypes where user has read permission for.

Relation(s) can be of the following types: Client, Prospect, Family, Employee, ContactPerson

Request Information

URI Parameters

Name Description Type Additional information
relationId

Id of relation.

integer

Required

Body Parameters

None.

Response Information

Resource Description

The correlations of correlationTypes where user has read permission for.

Collection of Correlation
Name Description Type Additional information
CorrelationId

Correlation id

integer

-

SourceId

Source id

integer

-

SourceName

Source name

string

-

SourceRelationName

Relation description of the source

string

-

ConnectionName

Name of the correlation type

string

Deprecated (unavailable from 21.01.1P): Please use 'CorrelationType.Name' instead.

CorrelationType

Correlation type

CorrelationType

-

TargetId

Target id

integer

Nullable

TargetName

Target Name

string

-

TargetRelationName

Relation description of the target

string

-

StartDate

Start date

date

Nullable

EndDate

End date

date

Nullable

CorrelationRoleId

Correlation Role id

globally unique identifier

-

Description

Description

string

-

DisciplineOrRoleName

Description or role name

string

-

ExcludeFromDossier

Exclude from Dossier

boolean

-

Priority

Priority

integer

-

AllowAccessClientPortal

Only applicable for personal relations between contactperson and client. If true means that the contactperson has permission to view the client's data in the client web portal.

boolean

-

Response Formats

application/json, text/json

Sample:
[
  {
    "$id": "1",
    "CorrelationId": 1,
    "SourceId": 2,
    "SourceName": "sample string 3",
    "SourceRelationName": "sample string 4",
    "ConnectionName": "sample string 2",
    "CorrelationType": {
      "$id": "2",
      "Id": 1,
      "Name": "sample string 2"
    },
    "TargetId": 1,
    "TargetName": "sample string 6",
    "TargetRelationName": "sample string 7",
    "StartDate": "2026-05-26T23:13:14.353233+02:00",
    "EndDate": "2026-05-26T23:13:14.353233+02:00",
    "CorrelationRoleId": "7fd7c88e-e045-4236-aff7-4f515ccad17e",
    "Description": "sample string 9",
    "DisciplineOrRoleName": "sample string 10",
    "ExcludeFromDossier": true,
    "Priority": 12,
    "AllowAccessClientPortal": true
  },
  {
    "$ref": "1"
  }
]

application/xml, text/xml

Sample:
<ArrayOfCorrelation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DHS.PlanCare.Web.Api.Interface.Relation">
  <Correlation>
    <AllowAccessClientPortal>true</AllowAccessClientPortal>
    <ConnectionName>sample string 2</ConnectionName>
    <CorrelationId>1</CorrelationId>
    <CorrelationRoleId>7fd7c88e-e045-4236-aff7-4f515ccad17e</CorrelationRoleId>
    <CorrelationType>
      <Id>1</Id>
      <Name>sample string 2</Name>
    </CorrelationType>
    <Description>sample string 9</Description>
    <DisciplineOrRoleName>sample string 10</DisciplineOrRoleName>
    <EndDate>2026-05-26T23:13:14.353233+02:00</EndDate>
    <ExcludeFromDossier>true</ExcludeFromDossier>
    <Priority>12</Priority>
    <SourceId>2</SourceId>
    <SourceName>sample string 3</SourceName>
    <SourceRelationName>sample string 4</SourceRelationName>
    <StartDate>2026-05-26T23:13:14.353233+02:00</StartDate>
    <TargetId>1</TargetId>
    <TargetName>sample string 6</TargetName>
    <TargetRelationName>sample string 7</TargetRelationName>
  </Correlation>
  <Correlation>
    <AllowAccessClientPortal>true</AllowAccessClientPortal>
    <ConnectionName>sample string 2</ConnectionName>
    <CorrelationId>1</CorrelationId>
    <CorrelationRoleId>7fd7c88e-e045-4236-aff7-4f515ccad17e</CorrelationRoleId>
    <CorrelationType>
      <Id>1</Id>
      <Name>sample string 2</Name>
    </CorrelationType>
    <Description>sample string 9</Description>
    <DisciplineOrRoleName>sample string 10</DisciplineOrRoleName>
    <EndDate>2026-05-26T23:13:14.353233+02:00</EndDate>
    <ExcludeFromDossier>true</ExcludeFromDossier>
    <Priority>12</Priority>
    <SourceId>2</SourceId>
    <SourceName>sample string 3</SourceName>
    <SourceRelationName>sample string 4</SourceRelationName>
    <StartDate>2026-05-26T23:13:14.353233+02:00</StartDate>
    <TargetId>1</TargetId>
    <TargetName>sample string 6</TargetName>
    <TargetRelationName>sample string 7</TargetRelationName>
  </Correlation>
</ArrayOfCorrelation>