Ignore:
Timestamp:
Feb 4, 2013, 6:26:26 PM (12 years ago)
Author:
Sam Habiel
Message:

Further work on importing patients. Now implementing allergies. Implemented relational navigation for predicate in C0XGET3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fmts/trunk/p/C0XGET3.m

    r1602 r1604  
    1 C0XGET3 ; VEN/SMH - Sam's Getters... let's try to make them simple ;2013-01-25  4:59 PM
     1C0XGET3 ; VEN/SMH - Sam's Getters... let's try to make them simple ;2013-02-04  12:00 PM
    22 ;;1.1;FILEMAN TRIPLE STORE;
    33 ;
    44IEN(N) ; Public $$; Resolved IEN of a stored string such as "rdf:type" in Strings File
     5 I +N=N Q N ; We are given the IEN, just return it back
    56 Q $$IENOF^C0XGET1($$EXT^C0XUTIL(N))
    67 ;
     
    2526 QUIT
    2627GSPO1(G,S,P) ; Public $$; Get Object for A Graph/Subject/Predicate combination
     28 ; Supports forward relational navigation for predicates using "." as separator
     29 N EP S EP=$P(P,".",2,99) ; Extended Predicate
     30 S P=$P(P,".") ; Predicate becomes the first piece
    2731 N O S O=$O(^C0X(101,"GSPO",$$IEN(G),$$IEN(S),$$IEN(P),""))
    28  Q:O="" ""
    29  Q ^C0X(201,O,0)
     32 Q:O="" "" ; Another end point for recursion
     33 Q:$L(EP) $$GSPO1(G,O,EP) ; if we have an extended predicate, recurse
     34 Q ^C0X(201,O,0) ; this is the end point of the recursion.
Note: See TracChangeset for help on using the changeset viewer.