getChildByName method
Retrieves a single field value by its name.
Implementation
@override
FhirBase? getChildByName(String name) {
final values = getChildrenByName(name);
if (values.length > 1) {
throw StateError('Too many values for $name found');
}
return values.isNotEmpty ? values.first : null;
}