Changeset 1621 for fmts/trunk/p/C0XPT0.m
- Timestamp:
- May 3, 2013, 8:52:48 PM (12 years ago)
- 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-0 1 9:54 AM1 C0XPT0 ; VEN/SMH - Get patient data and do something about it ;2013-05-03 6:09 PM 2 2 ;;1.1;FILEMAN TRIPLE STORE;; 3 3 ; (C) Sam Habiel 2013 … … 188 188 ; 189 189 NP() ; 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 191 193 S C0XFDA(200,"?+1,",.01)="PROVIDER,UNKNOWN SMART" ; Name 192 194 S C0XFDA(200,"?+1,",1)="USP" ; Initials 193 195 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 194 198 ; 195 199 N DIC S DIC(0)="" ; An XREF in File 200 requires this. 196 200 D UPDATE^DIE("E",$NA(C0XFDA),$NA(C0XIEN),$NA(C0XERR)) ; Typical UPDATE 201 I $D(DIERR) S $EC=",U1," 197 202 Q C0XIEN(1) ;Provider IEN 198 203 ; 204 HL() ; 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.