Source:java android - iterate JSON objects in array
patient_type | admission_type | inpatient_or_outpatient
-------------------------------------------------------
'A' | 'O' | 'Outpatient'
'B' | NULL | 'Inpatient'