WV PREGNANCY STATUS CHANGE EVENT (5306)    PROTOCOL (101)

View in ViViaN Menu
Name Value
NAME WV PREGNANCY STATUS CHANGE EVENT
ITEM TEXT PREGNANCY STATUS CHANGE NOTIFICATION
ITEM
PACKAGE WOMEN'S HEALTH
DESCRIPTION
This protocol will notify subscribing packages when a pregnancy status 
                                            Field (#40) in WV PATIENT File
                                            (#790)
==========================================================================
^TMP("WVPREGST",$J,SUB,"COMMENTS")          SEE NOTES
^TMP("WVPREGST",$J,SUB,"ENCOUNTER NUMBER")  VISIT (#4)
^TMP("WVPREGST",$J,SUB,"ENTERED BY")        DATA ENTERED BY (#2)
^TMP("WVPREGST",$J,SUB,"ENTERED IN ERROR")  ENTERED IN ERROR (#6)
^TMP("WVPREGST",$J,SUB,"ENTERED ON")        PREGNANCY STATUS D/T ENTERED
                                              (#.01)
^TMP("WVPREGST",$J,SUB,"EXTERNAL ID")       SEE NOTES
record is added, modified or marked as entered in error. Pregnancy status 
^TMP("WVPREGST",$J,SUB,"FROM TIME")         SEE NOTES
^TMP("WVPREGST",$J,SUB,"STATE")             SEE NOTES
^TMP("WVPREGST",$J,SUB,"STATUS")            SEE NOTES
^TMP("WVPREGST",$J,SUB,"TO TIME")           SEE NOTES
 
Notes:
 
1. SUB: Possible values for this global node are "BEFORE" and "AFTER". 
Data descendant from the "BEFORE" node comes from the most recent record 
as it was before any data change is made. Data descendant from the 
data is stored in a logbook fashion. To document an episode of pregnant, 
"AFTER" node comes from the most recent record as it is after any data 
change is made. If there is no recent record, the "BEFORE" node is not 
created; the "AFTER" node is always created.
 
2. All data, with the exception of data returned in the STATE node, is 
returned in internal format. See the note for the STATE node below for 
details of how that node's data is returned.
 
3. "COMMENTS": The value for this node comes from different fields and 
may contain data from multiple fields based on the data on file. When the 
two records are created: one for when the patient is pregnant and another 
value for the "STATE" node is "-1^UNABLE TO CONCEIVE", the value comes 
from the MEDICAL REASON field (#23). When the value for the "STATE" node
is "0^NOT PREGNANT" and there is a valid previous entry of PREGNANT
immediately prior to this record, the value comes from the REASON
PREGNANCY ENDED field (#45). When the value for the "STATE" node is 
"1^PREGNANT", the value comes from the OVERRIDE CALCULATED EDD REASON 
field (#43). When the value for the "ENTERED IN ERROR" node is 1, the
value from the REASONS ENTERED IN ERROR field (#10) is appended to the
values from the other fields mentioned, if applicable, to form the value
for this node.
when the patient is no longer pregnant.
 
4. "EXTERNAL ID": This is the Internal Entry Number String (IENS) that VA 
FileMan uses to represent the internal entry numbers for an entry. It is 
a comma-separated list of internal entry numbers (IENs) where the first 
number is the IEN in the PREGNANCY STATUSES field (#40) and the last 
number is the IEN in the WV PATIENT file (#790).
 
5. "FROM TIME": The value for this node comes from different fields based 
on the data on file. When the value for the STATE node is "1^PREGNANT",
the value comes from either the LAST MENSTRUAL PERIOD DATE field (#41), 
 
if populated, or the PREGNANCY STATUS D/T ENTERED field (#.01), if field 
#41 is not populated. When the value for the STATE node is anything other
than "1^PREGNANT" and there is a valid previous entry of PREGNANT
immediately prior to this record, the value comes from the PREGNANCY END
DATE field (#44). When the value for the STATE node is anything other than
"1^PREGNANT" and there is no valid previous entry of PREGNANT immediately
prior to this record, the value comes from the PREGNANCY STATUS D/T
ENTERED field (#.01).
 
6. "STATE": The value for this node comes from the PREGNANCY STATE field 
The following data is available to subscribers:
(#21). For medically unable to conceive patients, this node is set to 
"-1^UNABLE TO CONCEIVE". 
 
7. "STATUS": The value for this node comes from the status of the VA-WH 
UPDATE PREGNANCY STATUS reminder definition. If this reminder is due and 
the most recent documentation is complete, this node is set to "INACTIVE",
otherwise, this node is set to "ACTIVE".
 
8. "TO TIME": The value for this node comes from different fields based 
on the data on file. When the value for the STATE node is "1^PREGNANT",
 
the value comes from the EDD field (#42). When the value for the STATE
node is anything other than "1^PREGNANT", this node is set to the current
system date.
Output Global Node Name                     Field in PREGNANCY STATUSES 
TYPE extended action
CREATOR USER,SEVENTEEN
TIMESTAMP 2020-12-17 17:21:05