Difference between revisions of "TMG ORDER DIALOG INFORMATION"
(Created page with " This will be an analysis of an order dialog that appears in CPRS. We will start with the order area in CPRS. File:TMG_OR_screenshot_1.png This information is loaded vi...") |
|||
Line 1: | Line 1: | ||
− | This will be an analysis of an order dialog that appears in CPRS. | + | This will be an low-level analysis of an order dialog that appears in CPRS. |
We will start with the order area in CPRS. | We will start with the order area in CPRS. | ||
Line 75: | Line 75: | ||
--- | --- | ||
− | |||
This is from ORDER DIALOG file, as follows: | This is from ORDER DIALOG file, as follows: | ||
Line 91: | Line 90: | ||
Entry #1 | Entry #1 | ||
.01-SEQUENCE : 1 | .01-SEQUENCE : 1 | ||
− | 2-ITEM : TMG OTP SOURCE (`15994 in #101.41) | + | 2-ITEM : TMG OTP SOURCE (`'''15994''' in #101.41) |
4-DISPLAY TEXT : Specimen Source: | 4-DISPLAY TEXT : Specimen Source: | ||
6-REQUIRED : NO | 6-REQUIRED : NO | ||
Line 190: | Line 189: | ||
99-TIMESTAMP : 66331,48573 | 99-TIMESTAMP : 66331,48573 | ||
------------------------------- | ------------------------------- | ||
+ | |||
+ | Each element in the ITEMS multiple references a subpart, which is also from the ORDER DIALOG file. I will show just one of these as an example. Notice that the entry number (e.g. '''15994''') matches that return in RPC call 'ORWDXM PROMPTS' | ||
+ | |||
+ | Showing FILE: ORDER DIALOG (#101.41) | ||
+ | Entry #'''15994''', | ||
+ | .01-NAME : TMG OTP SOURCE | ||
+ | 2-DISPLAY TEXT : Specimen Source | ||
+ | 4-TYPE : prompt | ||
+ | 11-DATA TYPE : set of codes | ||
+ | 12-DOMAIN : C:Cervix;CE:Cervical/Endocervical;CV:Cervic/Vaginal;E:Endocervical;EV:Endocerv> | ||
+ | 99-TIMESTAMP : 66331,48573 | ||
+ | ------------------------------- | ||
+ | |||
+ | In CPRS, when the user clicks the ACCEPT button in the dialog, the values of each of the controls is saved to the server via RPC call as below. | ||
+ | |||
+ | --- | ||
+ | ORWDX SAVE | ||
+ | Called at: 12:27:13 PM | ||
+ | |||
+ | Params ------------------------------------------------------------------ | ||
+ | literal 74592 | ||
+ | literal 168 | ||
+ | literal 6 | ||
+ | literal TMG OTP | ||
+ | literal 13 | ||
+ | literal 15996 | ||
+ | literal 352326;1 | ||
+ | list | ||
+ | ('''15994''',1)=E | ||
+ | (16000,1)=1 | ||
+ | (16002,1)=3221215 | ||
+ | (16004,1)=ORDIALOG("WP",16004,1) | ||
+ | (16008,1)=Y | ||
+ | (16020,1)=KEVIN | ||
+ | (15995,1)= | ||
+ | (15998,1)= | ||
+ | (15999,1)= | ||
+ | (16001,1)=N | ||
+ | (16005,1)= | ||
+ | (16006,1)= | ||
+ | (16007,1)= | ||
+ | ("ORCHECK")=0 | ||
+ | ("ORTS")=0 | ||
+ | literal | ||
+ | literal | ||
+ | literal | ||
+ | literal 0 | ||
+ | |||
+ | Results ----------------------------------------------------------------- | ||
+ | ~352326;1^13^3221228.1759^^^11^2^^^168^TOPPENBERG,KEVIN S^^0^^^^^^Laughlin_Office:6^^0^0 | ||
+ | t>> Specimen Source: Endocervical | ||
+ | tHysterectomy: Yes | ||
+ | tPregnant: YES | ||
+ | tPostpartum: No | ||
+ | tDate of last pap: Dec 15, 2022 | ||
+ | t!! ORDERING PROVIDER IS: Dr. Kevin Toppenberg !! *UNSIGNED* | ||
+ | |||
+ | Elapsed Time: 199 ms | ||
+ | |||
+ | --- | ||
+ | |||
+ | Notice that a list of entries is sent to server. E.g. ('''15994''',1)=E which means that control #15994 gets internal value of "E" stored. Looking at definition for this above, one can see that E stands for 'Endocervical'. | ||
+ | |||
+ | Notice that the text of the order is passed back from the server to CPRS. Thus it is the server that compiles the visible text of the order from building blocks. | ||
+ | |||
+ | When the data is saved on the server, it is put into file ORDER (#100), with listing as below. Notice the data for the individual components is stored in the RESPONSES multiple. Also notice that although the dialog contained 11 components, only 7 entries exist here. I think this is because I didn't enter data into the other controls, thus nothing was saved for them. | ||
+ | |||
+ | --- | ||
+ | |||
+ | Showing FILE: ORDER (#100) | ||
+ | Entry #352326, | ||
+ | .01-ORDER # : 352326 | ||
+ | .02-OBJECT OF ORDER : ZZTEST,BABY (`74592 in #2) | ||
+ | .8-ORDER ACTIONS : <MULTIPLE-VALUED> | ||
+ | Entry #1 | ||
+ | .01-DATE/TIME ORDERED : DEC 28, 2022@17:59 | ||
+ | .1-ORDER TEXT : | ||
+ | Specimen Source: Endocervical | ||
+ | Hysterectomy: Yes | ||
+ | Pregnant: YES | ||
+ | Postpartum: No | ||
+ | Date of last pap: Dec 15, 2022 | ||
+ | !! ORDERING PROVIDER IS: Dr. Kevin Toppenberg !! | ||
+ | |||
+ | 2-ACTION : NEW | ||
+ | 3-PROVIDER : TOPPENBERG,KEVIN S (`168 in #200) | ||
+ | 4-SIGNATURE STATUS : NOT SIGNED | ||
+ | 12-NATURE OF ORDER : ELECTRONICALLY ENTERED (`8 in #100.02) | ||
+ | 13-ENTERED BY : TOPPENBERG,KEVIN S (`168 in #200) | ||
+ | 14-TEXT REFERENCE : 1 | ||
+ | 15-RELEASE STATUS : unreleased | ||
+ | 1-CURRENT AGENT/PROVIDER : TOPPENBERG,KEVIN S (`168 in #200) | ||
+ | 2-DIALOG : TMG OTP (`15996 in #101.41) | ||
+ | 3-WHO ENTERED : TOPPENBERG,KEVIN S (`168 in #200) | ||
+ | 4-WHEN ENTERED : DEC 28, 2022@17:59 | ||
+ | 4.5-RESPONSES : <MULTIPLE-VALUED> | ||
+ | Entry #1 | ||
+ | .01-ITEM ENTRY : 1 | ||
+ | .02-DIALOG : TMG OTP SOURCE (`'''15994''' in #101.41) | ||
+ | .03-INSTANCE : 1 | ||
+ | 1-VALUE : E | ||
+ | Entry #2 | ||
+ | .01-ITEM ENTRY : 6 | ||
+ | .02-DIALOG : TMG OTP PREGNANT (`16000 in #101.41) | ||
+ | .03-INSTANCE : 1 | ||
+ | 1-VALUE : 1 | ||
+ | Entry #3 | ||
+ | .01-ITEM ENTRY : 7 | ||
+ | .02-DIALOG : TMG OTP POST PARTUM (`16001 in #101.41) | ||
+ | .03-INSTANCE : 1 | ||
+ | 1-VALUE : N | ||
+ | Entry #4 | ||
+ | .01-ITEM ENTRY : 8 | ||
+ | .02-DIALOG : TMG OTP LAST PAP (`16002 in #101.41) | ||
+ | .03-INSTANCE : 1 | ||
+ | 1-VALUE : 3221215 | ||
+ | Entry #5 | ||
+ | .01-ITEM ENTRY : 10 | ||
+ | .02-DIALOG : TMG OTP CLINICAL HISTORY (`16004 in #101.41) | ||
+ | .03-INSTANCE : 1 | ||
+ | Entry #6 | ||
+ | .01-ITEM ENTRY : 3 | ||
+ | .02-DIALOG : TMG OTP YNU (`16008 in #101.41) | ||
+ | .03-INSTANCE : 1 | ||
+ | 1-VALUE : Y | ||
+ | Entry #7 | ||
+ | .01-ITEM ENTRY : 13 | ||
+ | .02-DIALOG : TMG PROVIDER (`16020 in #101.41) | ||
+ | .03-INSTANCE : 1 | ||
+ | 1-VALUE : KEVIN | ||
+ | 5-STATUS : UNRELEASED (`11 in #100.01) | ||
+ | 6-PATIENT LOCATION : Laughlin_Office (`6;SC( in #0) | ||
+ | 7-ITEM ORDERED : TMG OTP (`15996;ORD(101.41, in #0) | ||
+ | 8.1-TYPE : STANDARD | ||
+ | 10-PATIENT CLASS : OUTPATIENT | ||
+ | 12-PACKAGE : ORDER ENTRY/RESULTS REPORTING (`35 in #9.4) | ||
+ | 14-SIGNATURE REQUIRED : ORES | ||
+ | 23-TO : NURSING (`13 in #100.98) | ||
+ | 30-CURRENT ACTION : 1 | ||
+ | 31-DATE OF LAST ACTIVITY : DEC 30, 2022@12:27:13 | ||
+ | 32-GRACE DAYS BEFORE PURGE : 90 | ||
+ | ------------------------------- | ||
+ | |||
+ | --- |
Latest revision as of 17:44, 30 December 2022
This will be an low-level analysis of an order dialog that appears in CPRS.
We will start with the order area in CPRS.
This information is loaded via RPC
ORWDX WRLST Called at: 11:26:13 AM Params ------------------------------------------------------------------ literal 0 Results ----------------------------------------------------------------- 3;1001;0;M^Add New Orders 159;1105;43;A^Allergies 23;117;38;D^Diet 129;130;21;D^Meds, Inpatient 173;145;48;D^Meds, Non-VA 147;140;4;D^Meds, Outpatient 130;180;22;D^IV Fluids 2;120;5;D^Lab Tests 1;160;29;D^Imaging 51;110;11;D^Consult 52;112;42;D^Procedure 48;171;12;D^Vitals 16021;22700;5;D^TMG Lab Order 15996;0;13;D^TMG Pap 16009;0;13;D^TMG Surgical Path 16016;0;13;D^Low Dose CT Order 49;999;13;D^Text Only Order Elapsed Time: 44 ms
This list, on server is derived from XPAR list 'ORWOR WRITE ORDERS LIST' (because my system doesn't have data for ORWDX WRITE ORDERS') list is obtained via:
D GETLST^XPAR(.ORX,"ALL^^SRV.`7","ORWOR WRITE ORDERS LIST","Q",.ORERR)
If we click on TMG Pap in list above, this dialog will be shown:
In the list above 15996;0;13;D^TMG Pap has first part with IEN=15996.
CPRS creates the dialog by getting components list from server via RPC ORWDXM PROMPTS
---
ORWDXM PROMPTS Called at: 12:12:56 PM Params ------------------------------------------------------------------ literal 15996 Results ----------------------------------------------------------------- ~ID15994^0^0^Specimen Source:^S^C:Cervix;CE:Cervical/Endocervical;CV:Cervic/Vaginal;E:Endocervical;EV:Endocervical/Vaginal;V:Vaginal;^^^^^ ~ID15995^0^0^LMP Date^F^::E^^^^^ ~ID16008^0^0^Hysterectomy?^S^Y:Yes;N:No;U:Unknown;^^^^^ ~ID15998^0^0^Patient on hormones?^S^Y:Yes;N:No;U:Unknown;^^^^^ ~ID15999^0^0^On Contraceptions?^S^Y:Yes;N:No;U:Unknown;^^^^^ ~ID16000^0^0^Pregnant?^Y^^^^^^ ~ID16001^0^0^Postpartum?^S^Y:Yes;N:No;U:Unknown;^^^^^ ~ID16002^0^0^Date of last pap^D^::E^^^^^ ~ID16005^0^0^Last pap results^F^::E^^^^^ ~ID16004^0^0^Clinical History^W^^^^^^ ~ID16006^0^0^HPVH^S^HPVH1:HPVH, if results are positive;HPVH2:HPVH, regardless of results;^^^^^ ~ID16007^0^0^Diagnosis^S^RG:Routine GYN (Z01.411);NAF:No Abnormal Finding (Z01.419);NCS:Noncovered Service. Signed ABN.;RSPC:Routine Screening Pap/Cervix (Z12.4);RSPV:Routine Screening Pap/Vaginal (Z12.72);HREB:High Risk Exposure/Bodily Fluid (Z77.21);^^^^^ ~ID16020^1^0^Ordering Provider^S^KEVIN:Dr. Kevin Toppenberg;DEE:Dr. Dee Toppenberg;^^^^^ Elapsed Time: 41 ms
---
This is from ORDER DIALOG file, as follows:
FILE: ORDER DIALOG (#101.41) Entry #15996, .01-NAME : TMG OTP 2-DISPLAY TEXT : TMG THIN PREP 4-TYPE : dialog 5-DISPLAY GROUP : NURSING (`13 in #100.98) 6-SIGNATURE REQUIRED : ORES 7-PACKAGE : ORDER ENTRY/RESULTS REPORTING (`35 in #9.4) 9-ASK FOR ANOTHER ORDER : NO 10-ITEMS : <MULTIPLE-VALUED> Entry #1 .01-SEQUENCE : 1 2-ITEM : TMG OTP SOURCE (`15994 in #101.41) 4-DISPLAY TEXT : Specimen Source: 6-REQUIRED : NO 21-ORDER TEXT SEQUENCE : 1 24-LEADING TEXT : Specimen Source: 26-START NEW LINE : YES Entry #2 .01-SEQUENCE : 2 2-ITEM : TMG OTP LMP DATE (`15995 in #101.41) 4-DISPLAY TEXT : LMP Date 6-REQUIRED : NO 21-ORDER TEXT SEQUENCE : 2 24-LEADING TEXT : LMP Date: 26-START NEW LINE : YES Entry #3 .01-SEQUENCE : 3 2-ITEM : TMG OTP YNU (`16008 in #101.41) 4-DISPLAY TEXT : Hysterectomy? 21-ORDER TEXT SEQUENCE : 3 24-LEADING TEXT : Hysterectomy: 26-START NEW LINE : YES Entry #4 .01-SEQUENCE : 4 2-ITEM : TMG OTP HORMONES (`15998 in #101.41) 4-DISPLAY TEXT : Patient on hormones? 21-ORDER TEXT SEQUENCE : 4 24-LEADING TEXT : Hormones: 26-START NEW LINE : YES Entry #5 .01-SEQUENCE : 5 2-ITEM : TMG OTP CONTRACEPTIONS (`15999 in #101.41) 4-DISPLAY TEXT : On Contraceptions? 21-ORDER TEXT SEQUENCE : 5 24-LEADING TEXT : Contraceptions: 26-START NEW LINE : YES Entry #6 .01-SEQUENCE : 6 2-ITEM : TMG OTP PREGNANT (`16000 in #101.41) 4-DISPLAY TEXT : Pregnant? 21-ORDER TEXT SEQUENCE : 6 24-LEADING TEXT : Pregnant: 26-START NEW LINE : YES Entry #7 .01-SEQUENCE : 7 2-ITEM : TMG OTP POST PARTUM (`16001 in #101.41) 4-DISPLAY TEXT : Postpartum? 21-ORDER TEXT SEQUENCE : 7 24-LEADING TEXT : Postpartum: 26-START NEW LINE : YES Entry #8 .01-SEQUENCE : 8 2-ITEM : TMG OTP LAST PAP (`16002 in #101.41) 4-DISPLAY TEXT : Date of last pap 21-ORDER TEXT SEQUENCE : 8 24-LEADING TEXT : Date of last pap: 26-START NEW LINE : YES Entry #9 .01-SEQUENCE : 9 2-ITEM : TMG OTP LAST PAP RESULTS (`16005 in #101.41) 4-DISPLAY TEXT : Last pap results 21-ORDER TEXT SEQUENCE : 9 24-LEADING TEXT : Last Pap Results: 26-START NEW LINE : YES Entry #10 .01-SEQUENCE : 10 2-ITEM : TMG OTP CLINICAL HISTORY (`16004 in #101.41) 4-DISPLAY TEXT : Clinical History 21-ORDER TEXT SEQUENCE : 10 24-LEADING TEXT : Clinical History: 26-START NEW LINE : YES Entry #11 .01-SEQUENCE : 11 2-ITEM : TMG OTP HPVH (`16006 in #101.41) 4-DISPLAY TEXT : HPVH 21-ORDER TEXT SEQUENCE : 11 24-LEADING TEXT : HPVH: 26-START NEW LINE : YES Entry #12 .01-SEQUENCE : 12 2-ITEM : TMG OTP DIAG (`16007 in #101.41) 4-DISPLAY TEXT : Diagnosis 7-MULTIPLE VALUED : YES 7.1-MAX NUMBER OF MULTIPLES : 4 7.2-TITLE : DX: 21-ORDER TEXT SEQUENCE : 12 24-LEADING TEXT : Diagnosis: 26-START NEW LINE : YES Entry #13 .01-SEQUENCE : 14 2-ITEM : TMG PROVIDER (`16020 in #101.41) 4-DISPLAY TEXT : Ordering Provider 6-REQUIRED : YES 21-ORDER TEXT SEQUENCE : 13 24-LEADING TEXT : !! ORDERING PROVIDER IS: 25-TRAILING TEXT : !! 26-START NEW LINE : YES 54-LISTBOX TEXT : TMG Pap 99-TIMESTAMP : 66331,48573 -------------------------------
Each element in the ITEMS multiple references a subpart, which is also from the ORDER DIALOG file. I will show just one of these as an example. Notice that the entry number (e.g. 15994) matches that return in RPC call 'ORWDXM PROMPTS'
Showing FILE: ORDER DIALOG (#101.41) Entry #15994, .01-NAME : TMG OTP SOURCE 2-DISPLAY TEXT : Specimen Source 4-TYPE : prompt 11-DATA TYPE : set of codes 12-DOMAIN : C:Cervix;CE:Cervical/Endocervical;CV:Cervic/Vaginal;E:Endocervical;EV:Endocerv> 99-TIMESTAMP : 66331,48573
In CPRS, when the user clicks the ACCEPT button in the dialog, the values of each of the controls is saved to the server via RPC call as below.
---
ORWDX SAVE Called at: 12:27:13 PM Params ------------------------------------------------------------------ literal 74592 literal 168 literal 6 literal TMG OTP literal 13 literal 15996 literal 352326;1 list (15994,1)=E (16000,1)=1 (16002,1)=3221215 (16004,1)=ORDIALOG("WP",16004,1) (16008,1)=Y (16020,1)=KEVIN (15995,1)= (15998,1)= (15999,1)= (16001,1)=N (16005,1)= (16006,1)= (16007,1)= ("ORCHECK")=0 ("ORTS")=0 literal literal literal literal 0 Results ----------------------------------------------------------------- ~352326;1^13^3221228.1759^^^11^2^^^168^TOPPENBERG,KEVIN S^^0^^^^^^Laughlin_Office:6^^0^0 t>> Specimen Source: Endocervical tHysterectomy: Yes tPregnant: YES tPostpartum: No tDate of last pap: Dec 15, 2022 t!! ORDERING PROVIDER IS: Dr. Kevin Toppenberg !! *UNSIGNED* Elapsed Time: 199 ms
---
Notice that a list of entries is sent to server. E.g. (15994,1)=E which means that control #15994 gets internal value of "E" stored. Looking at definition for this above, one can see that E stands for 'Endocervical'.
Notice that the text of the order is passed back from the server to CPRS. Thus it is the server that compiles the visible text of the order from building blocks.
When the data is saved on the server, it is put into file ORDER (#100), with listing as below. Notice the data for the individual components is stored in the RESPONSES multiple. Also notice that although the dialog contained 11 components, only 7 entries exist here. I think this is because I didn't enter data into the other controls, thus nothing was saved for them.
---
Showing FILE: ORDER (#100) Entry #352326, .01-ORDER # : 352326 .02-OBJECT OF ORDER : ZZTEST,BABY (`74592 in #2) .8-ORDER ACTIONS : <MULTIPLE-VALUED> Entry #1 .01-DATE/TIME ORDERED : DEC 28, 2022@17:59 .1-ORDER TEXT : Specimen Source: Endocervical Hysterectomy: Yes Pregnant: YES Postpartum: No Date of last pap: Dec 15, 2022 !! ORDERING PROVIDER IS: Dr. Kevin Toppenberg !! 2-ACTION : NEW 3-PROVIDER : TOPPENBERG,KEVIN S (`168 in #200) 4-SIGNATURE STATUS : NOT SIGNED 12-NATURE OF ORDER : ELECTRONICALLY ENTERED (`8 in #100.02) 13-ENTERED BY : TOPPENBERG,KEVIN S (`168 in #200) 14-TEXT REFERENCE : 1 15-RELEASE STATUS : unreleased 1-CURRENT AGENT/PROVIDER : TOPPENBERG,KEVIN S (`168 in #200) 2-DIALOG : TMG OTP (`15996 in #101.41) 3-WHO ENTERED : TOPPENBERG,KEVIN S (`168 in #200) 4-WHEN ENTERED : DEC 28, 2022@17:59 4.5-RESPONSES : <MULTIPLE-VALUED> Entry #1 .01-ITEM ENTRY : 1 .02-DIALOG : TMG OTP SOURCE (`15994 in #101.41) .03-INSTANCE : 1 1-VALUE : E Entry #2 .01-ITEM ENTRY : 6 .02-DIALOG : TMG OTP PREGNANT (`16000 in #101.41) .03-INSTANCE : 1 1-VALUE : 1 Entry #3 .01-ITEM ENTRY : 7 .02-DIALOG : TMG OTP POST PARTUM (`16001 in #101.41) .03-INSTANCE : 1 1-VALUE : N Entry #4 .01-ITEM ENTRY : 8 .02-DIALOG : TMG OTP LAST PAP (`16002 in #101.41) .03-INSTANCE : 1 1-VALUE : 3221215 Entry #5 .01-ITEM ENTRY : 10 .02-DIALOG : TMG OTP CLINICAL HISTORY (`16004 in #101.41) .03-INSTANCE : 1 Entry #6 .01-ITEM ENTRY : 3 .02-DIALOG : TMG OTP YNU (`16008 in #101.41) .03-INSTANCE : 1 1-VALUE : Y Entry #7 .01-ITEM ENTRY : 13 .02-DIALOG : TMG PROVIDER (`16020 in #101.41) .03-INSTANCE : 1 1-VALUE : KEVIN 5-STATUS : UNRELEASED (`11 in #100.01) 6-PATIENT LOCATION : Laughlin_Office (`6;SC( in #0) 7-ITEM ORDERED : TMG OTP (`15996;ORD(101.41, in #0) 8.1-TYPE : STANDARD 10-PATIENT CLASS : OUTPATIENT 12-PACKAGE : ORDER ENTRY/RESULTS REPORTING (`35 in #9.4) 14-SIGNATURE REQUIRED : ORES 23-TO : NURSING (`13 in #100.98) 30-CURRENT ACTION : 1 31-DATE OF LAST ACTIVITY : DEC 30, 2022@12:27:13 32-GRACE DAYS BEFORE PURGE : 90 -------------------------------
---