source: ccr/branches/ohum/p/C0CVALID.m@ 1450

Last change on this file since 1450 was 1433, checked in by Sam Habiel, 12 years ago

Update based on OHUM's latest routines

File size: 1.1 KB
Line 
1C0CVALID ; C0C/OHUM/RUT - PROCESSING FOR DATE LIMITS, NOTES ; 22/12/2011
2 ;;1.2;C0C;;May 11, 2012;Build 47;Build 2
3 S ^TMP("C0CCCR","LABLIMIT")="",^TMP("C0CCCR","VITLIMIT")="",^TMP("C0CCCR","MEDLIMIT")="",^TMP("C0CCCR","TIULIMIT")=""
4 S %DT="AEX",%DT("A")="LAB Report From: ",%DT("B")="T-36500" D ^%DT S ^TMP("C0CCCR","LABLIMIT")=Y
5 S %DT="AEX",%DT("A")="VITAL Report From: ",%DT("B")="T-36500" D ^%DT S ^TMP("C0CCCR","VITLIMIT")=Y
6 S %DT="AEX",%DT("A")="MEDICATION Report From: ",%DT("B")="T-36500" D ^%DT S ^TMP("C0CCCR","MEDLIMIT")=Y
7 ;S ^TMP("C0CCCR","RALIMIT")="",%DT="AEX",%DT("A")="RADIOLOGY Report From: ",%DT("B")="T-36500" D ^%DT S ^TMP("C0CCCR","RALIMIT")=Y
8 W !,"Do you want to include Notes: YES/NO? //NO" D YN^DICN I %=1 S %DT="AEX",%DT("A")="NOTE Report From: ",%DT("B")="T-36500" D ^%DT S ^TMP("C0CCCR","TIULIMIT")=Y
9 Q
10HTOF(FLAGS) ;Changing DATE in FILMAN's FORMAT
11 N HORLOGDATECUR,COVDATE,HORLOGDATE,FDATE
12 S HORLOGDATECUR=$P($H,",",1)
13 S COVDATE=$P(FLAGS,"-",2)
14 S HORLOGDATE=HORLOGDATECUR-COVDATE
15 S (FDATE)=$$H2F^XLFDT(HORLOGDATE)
16 K HORLOGDATECUR,COVDATE,HORLOGDATE
17 Q FDATE
Note: See TracBrowser for help on using the repository browser.