ECOB19 ;BP/CMF - Patient Object
;;2.0;EVENT CAPTURE;**100**;8 May 96;Build 21
;@author - Chris Flegel
;@date - 17 May 2009
;@version - 1.0
;;
Q
;; private methods
OB2(RESULT,ARGUMENT) ; shortcut to primitive utility
D METHOD^ECOB2(.RESULT,ARGUMENT)
Q
;;
OBP(RESULT,ARGUMENT) ; shortcut to property object
D METHOD^ECOBP(.RESULT,ARGUMENT)
Q
;;
;; public methods
CREATE(NAME) ;
; call parent first
N HANDLE,CHILD
S HANDLE=$$CREATE^ECOB3(NAME)
D OB2(.X,HANDLE_".Set_class.EC OBU PATIENT")
D OB2(.X,HANDLE_".Set_name.Patient")
D OB2(.X,HANDLE_".Set_routine.METHOD^ECOB19(.RESULT,ARGUMENT)")
;;
D METHOD(.CHILD,HANDLE_".Properties.Add.SSN")
D OBP(.X,CHILD_".SetAddedByClass.EC OBU PATIENT")
D OBP(.X,CHILD_".SetValue.")
D OBP(.X,CHILD_".SetDefaultValue.")
; complex properties last
D METHOD(.X,HANDLE_".Root.Add.EC OBU PATIENT")
Q HANDLE
;;
DESTROY(HANDLE) ;
; call parent last
Q $$DESTROY^ECOB3(HANDLE)
;;
METHOD(RESULT,ARGUMENT) ;
D METHOD^ECOB3(.RESULT,ARGUMENT)
Q
;;
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HECOB19 1049 printed Nov 22, 2024@17:08:04 Page 2
ECOB19 ;BP/CMF - Patient Object
+1 ;;2.0;EVENT CAPTURE;**100**;8 May 96;Build 21
+2 ;@author - Chris Flegel
+3 ;@date - 17 May 2009
+4 ;@version - 1.0
+5 ;;
+6 QUIT
+7 ;; private methods
OB2(RESULT,ARGUMENT) ; shortcut to primitive utility
+1 DO METHOD^ECOB2(.RESULT,ARGUMENT)
+2 QUIT
+3 ;;
OBP(RESULT,ARGUMENT) ; shortcut to property object
+1 DO METHOD^ECOBP(.RESULT,ARGUMENT)
+2 QUIT
+3 ;;
+4 ;; public methods
CREATE(NAME) ;
+1 ; call parent first
+2 NEW HANDLE,CHILD
+3 SET HANDLE=$$CREATE^ECOB3(NAME)
+4 DO OB2(.X,HANDLE_".Set_class.EC OBU PATIENT")
+5 DO OB2(.X,HANDLE_".Set_name.Patient")
+6 DO OB2(.X,HANDLE_".Set_routine.METHOD^ECOB19(.RESULT,ARGUMENT)")
+7 ;;
+8 DO METHOD(.CHILD,HANDLE_".Properties.Add.SSN")
+9 DO OBP(.X,CHILD_".SetAddedByClass.EC OBU PATIENT")
+10 DO OBP(.X,CHILD_".SetValue.")
+11 DO OBP(.X,CHILD_".SetDefaultValue.")
+12 ; complex properties last
+13 DO METHOD(.X,HANDLE_".Root.Add.EC OBU PATIENT")
+14 QUIT HANDLE
+15 ;;
DESTROY(HANDLE) ;
+1 ; call parent last
+2 QUIT $$DESTROY^ECOB3(HANDLE)
+3 ;;
METHOD(RESULT,ARGUMENT) ;
+1 DO METHOD^ECOB3(.RESULT,ARGUMENT)
+2 QUIT
+3 ;;