snowstorm
snowstorm copied to clipboard
Support for HAPI includeHierarchy on $expand
HAPI Fhir includes support for the includeHierarchy parameter when using $expand on a ValueSet. This does not seem to work when trying through snowstorm. Is it supposed to be supported?
http://localhost:8080/fhir/ValueSet/$expand?url=https://hapi.fhir.org/baseR4/CodeSystem/HierarchyTest&includeHierarchy=true
Expected Behaviour
{
...
"contains": [
{
"system": "https://hapi.fhir.org/baseR4/CodeSystem/HierarchyTest",
"code": "1",
"display": "Code #1",
"contains": [
{
"system": "https://hapi.fhir.org/baseR4/CodeSystem/HierarchyTest",
"code": "10",
"display": "Code #10"
},
{
"system": "https://hapi.fhir.org/baseR4/CodeSystem/HierarchyTest",
"code": "11",
"display": "Code #11"
}
]
}
]
}
Actual Behaviour
{
...
"contains": [
{
"system": "https://hapi.fhir.org/baseR4/CodeSystem/HierarchyTest",
"code": "1",
"display": "Code #1"
},
{
"system": "https://hapi.fhir.org/baseR4/CodeSystem/HierarchyTest",
"code": "10",
"display": "Code #10"
},
{
"system": "https://hapi.fhir.org/baseR4/CodeSystem/HierarchyTest",
"code": "11",
"display": "Code #11"
}
]
}