Hi All,
Is there a limit to the number of “levels” that a complex extension can have? For example the extensibility page has an example of an extension that has been extended. Something similar to this:
{
“resourceType”: “Patient”,
“extension”: [
{
“url”: “http://hl7.org/fhir/StructureDefinition/patient-citizenship”,
“extension”: [
{
“url”: “startDate”,
“valueDate”: “YYYY-MM-DD”
}
]
}
]
}
Are there any suggestions or limits for extending even further? Something like this with three “levels” of extensions:
{
“resourceType”: “Patient”,
“extension”: [
{
“url”: “http://hl7.org/fhir/StructureDefinition/patient-citizenship”,
“extension”: [
{
“url”: “period”,
“extension”: [
{
“url”: “startDate”,
“valueDate”: “YYYY-MM-DD”
},
{
“url”: “endDate”,
“valueDate”: “YYYY-MM-DD”
}
]
}
]
}
]
}
This example is not realistic, but it hopefully gets my point across. Thanks!