Changeset 1205 for ccr/trunk/p/C0CLABS.m


Ignore:
Timestamp:
Jul 8, 2011, 3:24:07 PM (13 years ago)
Author:
George Lilly
Message:

version for certification

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ccr/trunk/p/C0CLABS.m

    r1204 r1205  
    130130        S C0CQT=1 ; SURPRESS LISTING
    131131        D LIST ; EXTRACT THE VARIABLES
     132        ; FOR CERTIFICATION, SEE IF THERE ARE OTHER RESULTS TO ADD
     133        D EN^C0CORSLT(C0CLB,DFN) ; LOOKS FOR ECG TESTS
    132134        S C0CQT=QTSAV ; RESET SILENT FLAG
    133135        K ^TMP("HLS",$J) ; KILL HL7 MESSAGE OUTPUT
     
    152154        W "LAB LIMIT: ",C0CLLMT,!
    153155        D DT^DILF(,C0CLSTRT,.C0CEDT) ; END DATE TODAY - IMPLEMENT END DATE PARM
     156        S C0CEDT=$$NOW^XLFDT ; PULL LABS STARTING NOW
    154157        S C0CR=$$LAB^C0CLA7Q(C0CPTID,C0CSDT,C0CEDT,C0CSPC,C0CSPC) ; CALL LAB LOOKUP
    155158        Q
     
    172175        . S C0CTYP=$P(@C0CHB@(C0CI),"|",1)
    173176        . D LTYP(@C0CHB@(C0CI),C0CTYP,.C0CVAR,C0CQT)
     177        . I $G(C0CVAR("RESULTCODINGSYSTEM"))="LN" D  ; gpl - for certification
     178        . . S C0CVAR("RESULTCODINGSYSTEM")="LOINC" ; NEED TO SPELL IT OUT
     179        . . N C0CRDT S C0CRDT=C0CVAR("RESULTDESCRIPTIONTEXT") ; THE DESCRIPTION
     180        . . N C0CRCD S C0CRCD=C0CVAR("RESULTCODE") ; THE LOINC CODE
     181        . . S C0CVAR("RESULTDESCRIPTIONTEXT")=C0CRDT_" LOINC: "_C0CRCD
    174182        . M XV=C0CVAR ;
    175183        . I C0CTYP="OBR" D  ; BEGINNING OF NEW SECTION
Note: See TracChangeset for help on using the changeset viewer.