-skip Montani Semper Liberi
-skip Montani Semper Liberi
--
Nancy Anthracite
Hello Hardhats, Can any one tell me what the idiom is to programmatically (ie not from FileMan) interrogate the VistA data?
According to the ADT Outputs manual, the ^DPT global holds patient data. Now, I also understand that the M/MUMPS command to find all the children of a global is something along these lines: GTM>S y="^DPT" GTM>F y=$QUERY(@y) Q:y="" W y,"=",@y,! But when I do this, I don't get a list of patients: I get this: ^DPT(0)=PATIENT^2I^26^26
F i=1:1:20 S y=$QUERY(@y) Q:y="" W y,"=",@y,!
-- --------------------------------------- Jim Self Systems Architect, Lead Developer VMTH Information Technology Services, UC Davis (http://www.vmth.ucdavis.edu/us/jaself) --------------------------------------- M2Web Demonstration with VistA (http://vista.vmth.ucdavis.edu/) ---------------------------------------
2. Next, my lack of familiarity with M/MUMPS led me to omit a SET command in the above given sample code. For anyone learner who comes after me, I resubmit a corrected version, which actually works, although bearing in mind from previous responses in this thread that this is not how an experienced VistA person would do it:- GTM>S y="^DPT" GTM>F S y=$QUERY(@y) Q:y="" W y,"=",@y,! <----------------- inserted previously absent S command.
--
Nancy Anthracite