if (not (hmis:RecordType/text() ='144' and hmis:TypeProvided/text() ='6')) then not
(boolean(hmis:OtherTypeProvided)) else boolean(hmis:OtherTypeProvided)

if (not (hmis:RecordType/text() ='144' and (hmis:TypeProvided/text() ='3' or hmis:TypeProvided/text()
='4' or hmis:TypeProvided/text() ='5'))) then not (boolean(hmis:SubTypeProvided))
else boolean(hmis:TypeProvided)

if (not (hmis:RecordType/text() ='151') and not (hmis:RecordType/text() ='152')) then
(not (boolean(hmis:FAAmount))) else boolean(hmis:FAAmount)