Changeset 1621 for fmts/trunk/p/C0XPT0.m


Ignore:
Timestamp:
May 3, 2013, 8:52:48 PM (12 years ago)
Author:
Sam Habiel
Message:

boy oh boy now we file fully fledged ambulatory encounters that can show up on the CPRS cover sheet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fmts/trunk/p/C0XPT0.m

    r1620 r1621  
    1 C0XPT0 ; VEN/SMH - Get patient data and do something about it ;2013-05-01  9:54 AM
     1C0XPT0 ; VEN/SMH - Get patient data and do something about it ;2013-05-03  6:09 PM
    22 ;;1.1;FILEMAN TRIPLE STORE;;
    33 ; (C) Sam Habiel 2013
     
    188188 ;
    189189NP() ; New Person Entry
    190         N C0XFDA,C0XIEN,C0XERR
     190        Q:$O(^VA(200,"B","PROVIDER,UNKNOWN SMART",0)) $O(^(0)) ; Quit if the entry exists
     191        ;
     192        N C0XFDA,C0XIEN,C0XERR,DIERR
    191193        S C0XFDA(200,"?+1,",.01)="PROVIDER,UNKNOWN SMART" ; Name
    192194        S C0XFDA(200,"?+1,",1)="USP" ; Initials
    193195        S C0XFDA(200,"?+1,",28)="SMART" ; Mail Code
     196        S C0XFDA(200.05,"?+2,?+1,",.01)="`144" ; Person Class - Allopathic docs.
     197        S C0XFDA(200.05,"?+2,?+1,",2)=2700101 ; Date active
    194198        ;
    195199        N DIC S DIC(0)="" ; An XREF in File 200 requires this.
    196200        D UPDATE^DIE("E",$NA(C0XFDA),$NA(C0XIEN),$NA(C0XERR)) ; Typical UPDATE
     201        I $D(DIERR) S $EC=",U1,"
    197202        Q C0XIEN(1) ;Provider IEN
    198203        ;
     204HL() ; Hospital Location Entry
     205        N C0XFDA,C0XIEN,C0XERR,DIERR
     206        S C0XFDA(44,"?+1,",.01)="SMART PATIENT LOCATION" ; Name
     207        S C0XFDA(44,"?+1,",2)="C" ; Type - Clinic
     208        S C0XFDA(44,"?+1,",2.1)=1 ; Type Extension - Clinic
     209        S C0XFDA(44,"?+1,",3)=+$$SITE^VASITE() ; Institution - Default institution
     210        S C0XFDA(44,"?+1,",8)=295 ; STOP CODE NUMBER - Primary Care
     211        S C0XFDA(44,"?+1,",9)="M" ; SERVICE
     212        S C0XFDA(44,"?+1,",2502)="Y" ; NON-COUNT CLINIC
     213        D UPDATE^DIE("",$NA(C0XFDA),$NA(C0XIEN),$NA(C0XERR))
     214        I $D(DIERR) S $EC=",U1,"
     215        Q C0XIEN(1) ; HL IEN
Note: See TracChangeset for help on using the changeset viewer.