I have this dummy types:
create or replace type Service_TY as object( code INTEGER, visit_analysis char(1) )FINAL; /
create or replac