source: WorldVistAEHR/trunk/r/TEXT_INTEGRATION_UTILITIES-GMRP-TIU/TIURMH.m@ 1432

Last change on this file since 1432 was 613, checked in by George Lilly, 15 years ago

initial load of WorldVistAEHR

File size: 925 bytes
Line 
1TIURMH ; SLC/JER - MIS Review Screen Header ;4/20/94 16:18
2 ;;1.0;TEXT INTEGRATION UTILITIES;;Jun 20, 1997
3HDR ; Initialize header for clinician's review screen
4 N BY,TIUI,TIUX,SCREEN,STATUS,RANGE,TIUBY,TIUDOCS,XREF
5 S TIUX=$G(^TMP("TIUR",$J,0)),STATUS=$P(TIUX,U,2),SCREEN=$P(TIUX,U,3,99)
6 S VALM("TITLE")=$S($L(STATUS,",")>1:$S(VALM("ENTITY")="Document":"Clinical",1:""),1:STATUS)
7 S:$L(VALM("TITLE")) VALM("TITLE")=VALM("TITLE")_" "
8 S VALM("TITLE")=VALM("TITLE")_$S($L(VALM("ENTITY")):$$NTTNM(VALM("ENTITY")),1:"Document")_"s"
9 I +TIUEDT>1 S RANGE=" from "_$$DATE^TIULS(TIUEDT,"MM/DD/YY")_" to "_$$DATE^TIULS(TIULDT,"MM/DD/YY")
10 S VALMHDR(1)=$$CENTER^TIULS($G(RANGE))
11 S TIUDOCS=$J(+$G(^TMP("TIUR",$J,0)),4)_" documents"
12 S VALMHDR(1)=$$SETSTR^VALM1(TIUDOCS,VALMHDR(1),(IOM-$L(TIUDOCS)),$L(TIUDOCS))
13 Q
14NTTNM(NAME) ; Handle plural names appropriately
15 I "Yy"[$E(NAME,$L(NAME)) S NAME=$E(NAME,1,($L(NAME)-1))_"ie"
16 Q NAME
Note: See TracBrowser for help on using the repository browser.