GET api/Conditions?commonOnly={commonOnly}

Get all conditions available for selection

Request Information

URI Parameters

NameDescriptionTypeAdditional information
commonOnly

boolean

Default value is True

Body Parameters

None.

Response Information

Resource Description

Collection of ConditionModel
NameDescriptionTypeAdditional information
ConditionId

Condition ID

globally unique identifier

None.

Condition

Condition Name

string

None.

Common

Indicates if this is a "common" condition or not

boolean

None.

ParentConditions

IDs of Parent Conditions in hierarchy

Collection of globally unique identifier

None.

ChildConditions

IDs of Child Conditions in hierarchy

Collection of globally unique identifier

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "ConditionId": "73f8bb38-20ea-414e-8f0c-cb8c689ae9b5",
    "Condition": "sample string 2",
    "Common": true,
    "ParentConditions": [
      "0ab82029-b8ed-4256-b89f-02f46a31fff3",
      "ed4d0819-5e8a-4208-bb95-75f0e4aa52d6"
    ],
    "ChildConditions": [
      "7c7288f5-957f-467f-b1dc-5db3d88448d8",
      "b0bf690e-1e0c-4a9d-8221-cfa7eee03604"
    ]
  },
  {
    "ConditionId": "73f8bb38-20ea-414e-8f0c-cb8c689ae9b5",
    "Condition": "sample string 2",
    "Common": true,
    "ParentConditions": [
      "0ab82029-b8ed-4256-b89f-02f46a31fff3",
      "ed4d0819-5e8a-4208-bb95-75f0e4aa52d6"
    ],
    "ChildConditions": [
      "7c7288f5-957f-467f-b1dc-5db3d88448d8",
      "b0bf690e-1e0c-4a9d-8221-cfa7eee03604"
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfConditionModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CaringVillage.Shared.Implementation.Models">
  <ConditionModel>
    <ChildConditions xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:guid>7c7288f5-957f-467f-b1dc-5db3d88448d8</d3p1:guid>
      <d3p1:guid>b0bf690e-1e0c-4a9d-8221-cfa7eee03604</d3p1:guid>
    </ChildConditions>
    <Common>true</Common>
    <Condition>sample string 2</Condition>
    <ConditionId>73f8bb38-20ea-414e-8f0c-cb8c689ae9b5</ConditionId>
    <ParentConditions xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:guid>0ab82029-b8ed-4256-b89f-02f46a31fff3</d3p1:guid>
      <d3p1:guid>ed4d0819-5e8a-4208-bb95-75f0e4aa52d6</d3p1:guid>
    </ParentConditions>
  </ConditionModel>
  <ConditionModel>
    <ChildConditions xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:guid>7c7288f5-957f-467f-b1dc-5db3d88448d8</d3p1:guid>
      <d3p1:guid>b0bf690e-1e0c-4a9d-8221-cfa7eee03604</d3p1:guid>
    </ChildConditions>
    <Common>true</Common>
    <Condition>sample string 2</Condition>
    <ConditionId>73f8bb38-20ea-414e-8f0c-cb8c689ae9b5</ConditionId>
    <ParentConditions xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:guid>0ab82029-b8ed-4256-b89f-02f46a31fff3</d3p1:guid>
      <d3p1:guid>ed4d0819-5e8a-4208-bb95-75f0e4aa52d6</d3p1:guid>
    </ParentConditions>
  </ConditionModel>
</ArrayOfConditionModel>