Changeset 1005 for Scheduling/trunk
- Timestamp:
- Nov 12, 2010, 11:38:15 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Scheduling/trunk/m/BSDXGPRV.m
r968 r1005 1 BSDXGPRV ; WV/SMH - WINDOWS SCHEDULING RPCS ; 9/7/10 7:59am1 BSDXGPRV ; WV/SMH - WINDOWS SCHEDULING RPCS ; 11/2/10 4:27pm 2 2 ;;1.41;BSDX;;Sep 29, 2010 3 3 ; … … 8 8 ; 9 9 ERR(BSDXERR) ;Error processing 10 10 D ^%ZTER 11 11 S BSDXI=BSDXI+1 12 13 12 S ^BSDXTMP($J,BSDXI)=BSDXERR 13 S BSDXI=BSDXI+1 14 14 S ^BSDXTMP($J,BSDXI)=$C(31) 15 15 Q … … 22 22 ; 23 23 P(BSDXY,HLIEN) ; Public Entry point; Get Providers for Hosp Location 24 25 26 27 28 29 24 ; Input: HLIEN - Hospital Location IEN 25 ; Output: ADO Datatable with columns: 26 ; - HOSPITAL_LOCATION_ID, BMXIEN, PROV_NAME, DEFAULT 27 ; If there are providers in the PROVIDER multiple of file 44 28 ; (Hospital Location) return them; 29 ; If no providers in PROVIDER multiple of file 44, return nothing 30 30 ; Called by BSDX HOSP LOC PROVIDERS 31 31 ; 32 32 S BSDXI=0 33 33 I '$D(^SC(HLIEN,0)) D ERR("HOSPITAL LOCATION NOT FOUND") QUIT 34 34 D ^XBKVAR 35 35 N $ET S $ET="G ERROR^BSDXGPRV" 36 36 K ^BSDXTMP($J) 37 37 S BSDXY=$NA(^BSDXTMP($J)) 38 38 S $P(^BSDXTMP($J,BSDXI),U,1)="I00020HOSPITAL_LOCATION_ID" 39 40 41 42 39 S $P(^BSDXTMP($J,BSDXI),U,2)="I00020BMXIEN" 40 S $P(^BSDXTMP($J,BSDXI),U,3)="T00030NAME" 41 S $P(^BSDXTMP($J,BSDXI),U,4)="T00005DEFAULT" 42 S ^BSDXTMP($J,BSDXI)=^BSDXTMP($J,BSDXI)_$C(30) 43 43 ; 44 45 46 47 48 49 50 51 52 53 54 55 56 44 N OUTPUT 45 D GETS^DIQ(44,HLIEN_",","2600*","IE","OUTPUT") ; Provider Multiple 46 ; No results 47 I '$D(OUTPUT) S ^BSDXTMP($J,BSDXI+1)=$C(31) QUIT 48 ; if results, get them 49 N I S I="" 50 F S I=$O(OUTPUT(44.1,I)) Q:I="" D 51 . S BSDXI=BSDXI+1 52 . S $P(^BSDXTMP($J,BSDXI),U,1)=HLIEN ; HL IEN 53 . S $P(^BSDXTMP($J,BSDXI),U,2)=$P(OUTPUT(44.1,I,.01,"I"),",") ; PROV IEN 54 . S $P(^BSDXTMP($J,BSDXI),U,3)=$E(OUTPUT(44.1,I,.01,"E"),1,30) ; PROV NAME 55 . S $P(^BSDXTMP($J,BSDXI),U,4)=OUTPUT(44.1,I,.02,"E") ; Default - YES, NO 56 . S ^BSDXTMP($J,BSDXI)=^BSDXTMP($J,BSDXI)_$C(30) 57 57 S BSDXI=BSDXI+1 58 58 S ^BSDXTMP($J,BSDXI)=$C(31)
Note:
See TracChangeset
for help on using the changeset viewer.