GET api/Lookups/Conditions?commonOnly={commonOnly}
Get all conditions available for selection
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
commonOnly | boolean |
Default value is True |
Body Parameters
None.
Response Information
Resource Description
Collection of ConditionModelName | Description | Type | Additional 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": "0fd9e73e-7b8b-43f5-8e5b-5d023ddbf093", "Condition": "sample string 2", "Common": true, "ParentConditions": [ "f55e09a1-dcee-46d8-9612-e9d92b209cfd", "b66fc100-1770-4b56-bac8-d3757f1b4660" ], "ChildConditions": [ "05176a65-0540-4fbe-acb7-9229ea4f174a", "07fa18f7-271c-4d5c-9e3e-a9bce332fb7e" ] }, { "ConditionId": "0fd9e73e-7b8b-43f5-8e5b-5d023ddbf093", "Condition": "sample string 2", "Common": true, "ParentConditions": [ "f55e09a1-dcee-46d8-9612-e9d92b209cfd", "b66fc100-1770-4b56-bac8-d3757f1b4660" ], "ChildConditions": [ "05176a65-0540-4fbe-acb7-9229ea4f174a", "07fa18f7-271c-4d5c-9e3e-a9bce332fb7e" ] } ]
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>05176a65-0540-4fbe-acb7-9229ea4f174a</d3p1:guid> <d3p1:guid>07fa18f7-271c-4d5c-9e3e-a9bce332fb7e</d3p1:guid> </ChildConditions> <Common>true</Common> <Condition>sample string 2</Condition> <ConditionId>0fd9e73e-7b8b-43f5-8e5b-5d023ddbf093</ConditionId> <ParentConditions xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:guid>f55e09a1-dcee-46d8-9612-e9d92b209cfd</d3p1:guid> <d3p1:guid>b66fc100-1770-4b56-bac8-d3757f1b4660</d3p1:guid> </ParentConditions> </ConditionModel> <ConditionModel> <ChildConditions xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:guid>05176a65-0540-4fbe-acb7-9229ea4f174a</d3p1:guid> <d3p1:guid>07fa18f7-271c-4d5c-9e3e-a9bce332fb7e</d3p1:guid> </ChildConditions> <Common>true</Common> <Condition>sample string 2</Condition> <ConditionId>0fd9e73e-7b8b-43f5-8e5b-5d023ddbf093</ConditionId> <ParentConditions xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:guid>f55e09a1-dcee-46d8-9612-e9d92b209cfd</d3p1:guid> <d3p1:guid>b66fc100-1770-4b56-bac8-d3757f1b4660</d3p1:guid> </ParentConditions> </ConditionModel> </ArrayOfConditionModel>