If an key exists in a Resource, but that key is defined in Resource.nested_objects, and the value of that key is None, the following exception is raised:
TypeError: 'NoneType' object is not iterable
For example:
program = PatientProgram(currentPhase=None)
program.currentPhase
Traceback (most recent call last):
TypeError: 'NoneType' object is not iterable
The workaround for now, is to just access the attribute using dict syntax: program["currentPhase"]
If an key exists in a
Resource
, but that key is defined inResource.nested_objects
, and the value of that key isNone
, the following exception is raised:For example:
The workaround for now, is to just access the attribute using
dict
syntax:program["currentPhase"]