Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: FHINI0L6

FHINI0L6.m

Go to the documentation of this file.
  1. FHINI0L6 ; ; 11-OCT-1995
  1. ;;5.0;Dietetics;;Oct 11, 1995
  1. Q:'DIFQ(115.7) F I=1:2 S X=$T(Q+I) Q:X="" S Y=$E($T(Q+I+1),4,999),X=$E(X,4,999) S:$A(Y)=126 I=I+1,Y=$E(Y,2,999)_$E($T(Q+I+1),5,99) S:$A(Y)=61 Y=$E(Y,2,999) X NO E S @X=Y
  1. Q Q
  1. ;;^DD(115.7,20,21,2,0)
  1. ;;=involved in the encounter.
  1. ;;^DD(115.7,101,0)
  1. ;;=ENTERING CLERK^RP200'^VA(200,^0;13^Q
  1. ;;^DD(115.7,101,21,0)
  1. ;;=^^2^2^2891121^
  1. ;;^DD(115.7,101,21,1,0)
  1. ;;=This field is a pointer indicating the person making the
  1. ;;^DD(115.7,101,21,2,0)
  1. ;;=encounter entry.
  1. ;;^DD(115.7,101,"DT")
  1. ;;=2891108
  1. ;;^DD(115.7,102,0)
  1. ;;=DATE/TIME ENTERED^RD^^0;14^S %DT="ESTXR" D ^%DT S X=Y K:Y<1 X
  1. ;;^DD(115.7,102,21,0)
  1. ;;=^^2^2^2891121^
  1. ;;^DD(115.7,102,21,1,0)
  1. ;;=This field contains the date/time the encounter was actually
  1. ;;^DD(115.7,102,21,2,0)
  1. ;;=entered.
  1. ;;^DD(115.7,102,"DT")
  1. ;;=2891108
  1. ;;^DD(115.701,0)
  1. ;;=PATIENT SUB-FIELD^^3^4
  1. ;;^DD(115.701,0,"IX","B",115.701,.01)
  1. ;;=
  1. ;;^DD(115.701,0,"NM","PATIENT")
  1. ;;=
  1. ;;^DD(115.701,0,"UP")
  1. ;;=115.7
  1. ;;^DD(115.701,.01,0)
  1. ;;=PATIENT^MP2'X^DPT(^0;1^I $D(X) S DINUM=X
  1. ;;^DD(115.701,.01,1,0)
  1. ;;=^.1
  1. ;;^DD(115.701,.01,1,1,0)
  1. ;;=115.701^B
  1. ;;^DD(115.701,.01,1,1,1)
  1. ;;=S ^FHEN(DA(1),"P","B",$E(X,1,30),DA)=""
  1. ;;^DD(115.701,.01,1,1,2)
  1. ;;=K ^FHEN(DA(1),"P","B",$E(X,1,30),DA)
  1. ;;^DD(115.701,.01,1,1,"%D",0)
  1. ;;=^^1^1^2911118^
  1. ;;^DD(115.701,.01,1,1,"%D",1,0)
  1. ;;=This is the normal B cross-reference of the PATIENT field.
  1. ;;^DD(115.701,.01,1,2,0)
  1. ;;=115.7^AP^MUMPS
  1. ;;^DD(115.701,.01,1,2,1)
  1. ;;=S X1=$P(^FHEN(DA(1),0),"^",2) S:X1 ^FHEN("AP",X,X1,DA(1))=""
  1. ;;^DD(115.701,.01,1,2,2)
  1. ;;=S X1=$P(^FHEN(DA(1),0),"^",2) K:X1 ^FHEN("AP",X,X1,DA(1))
  1. ;;^DD(115.701,.01,1,2,"%D",0)
  1. ;;=2^^2^2^2940824^
  1. ;;^DD(115.701,.01,1,2,"%D",1,0)
  1. ;;=This cross-reference creates an 'AP' node of a patient by date/time
  1. ;;^DD(115.701,.01,1,2,"%D",2,0)
  1. ;;=cross-reference.
  1. ;;^DD(115.701,.01,21,0)
  1. ;;=^^2^2^2910813^^
  1. ;;^DD(115.701,.01,21,1,0)
  1. ;;=This field contains a pointer to the Patient file (2) and indicates
  1. ;;^DD(115.701,.01,21,2,0)
  1. ;;=a patient involved in the encounter.
  1. ;;^DD(115.701,.01,"DT")
  1. ;;=2891113
  1. ;;^DD(115.701,1,0)
  1. ;;=LOCATION^P44'^SC(^0;2^Q
  1. ;;^DD(115.701,1,21,0)
  1. ;;=^^3^3^2891121^
  1. ;;^DD(115.701,1,21,1,0)
  1. ;;=This field contains a pointer to the Hospital Location
  1. ;;^DD(115.701,1,21,2,0)
  1. ;;=(file 44) for the patient. It is the patient location rather
  1. ;;^DD(115.701,1,21,3,0)
  1. ;;=than the event location.
  1. ;;^DD(115.701,1,"DT")
  1. ;;=2890719
  1. ;;^DD(115.701,2,0)
  1. ;;=# COLLATERALS^NJ1,0^^0;3^K:+X'=X!(X>9)!(X<0)!(X?.E1"."1N.N) X
  1. ;;^DD(115.701,2,3)
  1. ;;=Type a Number between 0 and 9, 0 Decimal Digits
  1. ;;^DD(115.701,2,21,0)
  1. ;;=^^2^2^2891121^
  1. ;;^DD(115.701,2,21,1,0)
  1. ;;=This field contains the number of collaterals seen with the
  1. ;;^DD(115.701,2,21,2,0)
  1. ;;=patient.
  1. ;;^DD(115.701,2,"DT")
  1. ;;=2891107
  1. ;;^DD(115.701,3,0)
  1. ;;=PATIENT COMMENT^F^^0;4^K:$L(X)>60!($L(X)<3) X
  1. ;;^DD(115.701,3,3)
  1. ;;=Answer must be 3-60 characters in length.
  1. ;;^DD(115.701,3,21,0)
  1. ;;=^^2^2^2891121^
  1. ;;^DD(115.701,3,21,1,0)
  1. ;;=This field may be used for a patient-specific comment
  1. ;;^DD(115.701,3,21,2,0)
  1. ;;=concerning the encounter.
  1. ;;^DD(115.701,3,"DT")
  1. ;;=2891107