The CMS APPOINTMENTS file contains the data for the provider to which an appointment is made and the last and next appointment dates. This information is used for the future schedules and for missed appointment letters.
1)= K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^ACM(49,D0,0)):^(0),1:"") S X=$P(Y(1),U,5),X=X S DIU=X K Y X ^DD(9002249,.04,1,1,1.1) S DIH=$G(^ACM(49,DIV(0),0)),DIV=X S $P(^(0),U,5)=DIV,DIH=9002249,DIG=.05 D ^DICR
1.1)= S X=DIV S I(0,0)=$G(D0),D0=DIV S:'D0!'$D(^ACM(41.1,+D0,0)) D0=-1 S Y(101)=$S($D(^ACM(41.1,D0,0)):^(0),1:"") S X=$P(Y(101),U,1) S D0=I(0,0)
2)= K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^ACM(49,D0,0)):^(0),1:"") S X=$P(Y(1),U,5),X=X S DIU=X K Y X ^DD(9002249,.04,1,1,2.1) S DIH=$G(^ACM(49,DIV(0),0)),DIV=X S $P(^(0),U,5)=DIV,DIH=9002249,DIG=.05 D ^DICR
2.1)= S X=DIV S I(0,0)=$G(D0),Y(1)=$S($D(^ACM(49,D0,0)):^(0),1:""),D0=$P(Y(1),U,4) S:'D0!'$D(^ACM(41.1,+D0,0)) D0=-1 S Y(101)=$S($D(^ACM(41.1,D0,0)):^(0),1:"") S X=$P(Y(101),U,1) S D0=I(0,0)
CREATE VALUE)= #.04:#.01
DELETE VALUE)= #.04:#.01
FIELD)= #.05
CROSS-REFERENCE: 9002249^AC^MUMPS
1)= S ^ACM(49,"AC",$P(^ACM(49,DA,0),U,4),$P(^(0),U,2),$P(^(0),U))=DA
2)= K ^ACM(49,"AC",$P(^ACM(49,DA,0),U,4),$P(^(0),U,2),$P(^(0),U))