Neo4j 5.8 Enterprise edition
I have a complex json file including some recursive nodes extension
. The deep of the structure is unknown when received. The question is: how can I import and create such a structure using cypher?
Is there some way to approach a recursive definition like this?
The idea behind is that any extension has an ury as a string, and a value that can be anything, from a string, to a complex object to another extension.
{
"resourceType": "Patient",
"id": "be446404-4982-41d5-bdd3-b1dae0d26bd3",
"extension": [
{
"url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity",
"extension": [
{
"url": "detailed",
"valueCoding": {
"system": "urn:oid:2.16.840.1.113883.6.238",
"code": "2186-5",
"display": "Hispanic or Latino",
"userSelected": false
}
},
{
"url": "text",
"valueString": "Not Hispanic or Latino"
}
]
},
{
"url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race",
"extension": [
{
"url": "ombCategory",
"valueCoding": {
"system": "urn:oid:2.16.840.1.113883.6.238",
"code": "2028-9",
"display": "ASIAN",
"userSelected": false
}
},
{
"url": "text",
"valueString": "Asian"
}
]
}
]
}
@glilienfield @michael.hunger : Please try to understand if it is possible without writing an extension .... Thank you