I need to get the form list that associate to the obs term(s). Con someone explain how is in the FORMXLATEDEF field in FORMSET Table. What does CLOB data type mean in EMR table?
Thank you!!!!!
The FORMXLATEDEF column is basically the same as the XLT file generated by visual form editor, CLOB is character large object, is basically a big chunk of plain text. If you use the default settings in VFE, the beginning of the field should say something like this -
{/*VARIABLES FOR MEL BUILT-IN SYMBOLS USED IN FORM*/
}{global F4907_253_1398368250 = OBSANY("NKA") ""}
... more observation terms....
/*FUNCTION DEFINITIONS*/
All of the observation terms used in the form should be listed at the top, formatted like above, hope that helps!
Y0u can certainly extract the obs terms from this field, although it isn't a pretty process. I've done a similar extraction in Crystal on similar memo fields as it requires a fair amount of logic and would be, for me, difficult to do in Access or SQL. Suggest you download the CPS12 dictionary from GE which defines all fields and relationships. Your project is a very interesting one as the endpoint is to identify in which forms are obs terms are referenced. Good luck.
Thank you all! I query out from the oracle and give me the result as "(HUGECLOB)". What are the steps that should extract it out?
Here is a query I have run to work with CLOB fields - you can use it as an example (dbms_lob is a package that lets you work with LOB fields):
select old_val, new_val from ml.doccontb where contb_time > sysdate -1 and ( dbms_lob.substr(old_val) LIKE 'EMRLINK_NOTE1%' or dbms_lob.substr(old_val) LIKE 'EMRLINK_STAT1%')
order by dbms_lob.substr(old_val), dbms_lob.substr(new_val)