$$ADMIN |
Function call returns the current administrative
COMPACT Act status for a patient. The valid statuses are ELIGIBLE, NOT
ELIGIBILE, UNDETERMINED.
Sample Use
----------
S DFN=xxxxx
W !,"COMPACT Eligibility: "_$$ADMIN^PXCOMPACT(DFN)
|
VARIABLES |
TYPE |
VARIABLES DESCRIPTION |
DFN |
Input |
Pointer to PATIENT file (#2)
|
Output of function call |
Output |
One of the 3 valid statuses below:
ELIGIBLE
NOT ELIGIBLE
UNDETERMINED
|
|
$$ASC |
Function call returns the Acute Suicidal Crisis flag
value of a patient's Open COMPACT ACT EPISODE OF CARE file (#818, "N" for No
or "Y" for Yes.
Sample Use
----------
S DFN=xxxxx
I $$ASC^PXCOMPACT(DFN)="Y") W !,"Patient is in an Acute Suicidal Crisis!
|
VARIABLES |
TYPE |
VARIABLES DESCRIPTION |
DFN |
Input |
Pointer to PATIENT file (#2)
|
Output of function call |
Output |
One of 2 valid statuses below:
"N" for no
"Y" for yes
|
|
$$DISPLAY |
Function returns a delimited string of display values
based on various scenarios of the current state of a patient's COMPACT Act
Episode of Care.
|
VARIABLES |
TYPE |
VARIABLES DESCRIPTION |
DFN |
Input |
Patient DFN.
|
Output of function call |
Output |
Below are various scenarios that will be returned
about the state of a patient's COMPACT Act Episode of Care.
DISPLAY will contain one of the following groups of information:
1. If end date exists (episode has ended) and
there are no extensions,
"COMPACT Act Start Date"^EPISODE START
DATE^"End Date"^EPISODE END DATE^"IP
Benefit End Date"^INPATIENT BENEFIT END
DATE^"OP Benefit end date"^OUTPATIENT
BENEFIT END DATE
2. If end date exists (episode has ended) and
an extension exists,
"Extension Start Date"^EXTENSION START
DATE^"Episode End Date"^EPISODE END DATE
3. If end date does not exist (episode is
ongoing) and there are no extensions,
For an inpatient with an INPATIENT BENEFIT
END DATE,
"COMPACT Act Start Date"^EPISODE START
DATE^"Remaining Days"^REMAINING
INPATIENT DAYS^"Inpatient Benefit End
Date"^INPATIENT BENEFIT END DATE
Otherwise,
"COMPACT Act Start Date"^EPISODE START
DATE^"Remaining Days"^REMAINING
INPATIENT DAYS or REMAINING OUTPATIENT
DAYS
4. If end date does not exist (episode is
ongoing) and an extension exists,
"Extension Start Date"^EXTENSION START
DATE^"Remaining Days"^REMAINING INPATIENT
DAYS or REMAINING OUTPATIENT DAYS
|
|
ADMIT |
This call will add a patient to the COMPACT ACT
EPISODE OF CARE file (#818) upon admission for COMPACT Act related care. It
will also update the pointer in the file #818 to the PTF file (#45) that was
created during this admission event.
|
VARIABLES |
TYPE |
VARIABLES DESCRIPTION |
DFN |
Input |
Patient internal entry number.
|
STARTDT |
Input |
The clinically determined start date for this Acute
Suicidal Crisis.
|
ADMIT |
Input |
The Admit type: "F" = Full admission
"P" = Partial admission
The ADMIT parameter is used to distinguish between a partial admit
(observation) with a value of P or a full admit (admitted to a facility other
than observation) with a value of F. It is not required but failure to set
the parameter will result in the ADMIT process defaulting to a partial admit.
|
PTF |
Input |
This is the internal entry number of the associated
PTF file (#45) of this admission movement.
|
|