When I throw a patient record object from the emitter, it is decoded as a list of string with each string representing the value of the field. I want to decode the record as a patient record object so that each field can be accessed as a attribute.