GetHieMembersResult GetHieMembers(HieId tHie, GetHieMembersArg tArg)
tHie. Indicators hierarchy moniker.
tArg. Parameters for getting the list of indicators elements.
The GetHieMembers operation gets the list of elements of the indicators hierarchy.
To execute the operation, in the tHie parameter specify hierarchy moniker, and in the tArg field specify parameters for getting information about the indicators. The moniker can be obtained on executing the OpenHie operation. The operation results in the collection of indicators available in the hms field.
Below is the example of getting the list of indicators hierarchy elements. The request contains indicators hierarchy moniker. The response contains the obtained list.
{
"GetHieMembers" :
{
"tHie" :
{
"id" : "S1!M!S!H2"
},
"tArg" :
{
"parent" :
{
"p" : ""
},
"filter" : "",
"pattern" :
{
"attributes" : "",
"getAttsTextValues" : "true"
}
}
}
}
{
"GetHieMembersResult" :
{
"id" :
{
"id" : "S1!M!S!H2"
},
"parent" :
{
"p" : ""
},
"hms" :
{
"m" :
{
"@isLeaf" : "0",
"p" : "1@1",
"n" : "Annual",
"o" : "0"
}
},
"notEof" : "0"
}
}
public static GetHieMembersResult GetHieMembers(HieId id)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tMembers = new GetHieMembers()
{
tArg = new GetHieMembersArg()
{
parent = new HmKey() { p = string.Empty },
filter = new HmsFilter(),
pattern = new HmsPattern()
{
attributes = string.Empty,
getAttsTextValues = true
}
},
tHie = id
};
//Get indicators list
var result = somClient.GetHieMembers(tMembers);
return result;
}
See also: