MAGVRS41 ;WOIFO/DAC,MLH,NST - Utilities for RPC calls for DICOM file processing ; 08 May 2018 10:41 AM
Source file <MAGVRS41.m>
action | A | extended action | Ea | event driver | Ed | subscriber | Su | protocol | O | limited protocol | LP | run routine | RR | broker | B | edit | E | server | Se | P | screenman | SM | inquire | I |
Name | Comments | DBIA/ICR reference |
---|---|---|
INPUTSEP() | ; Name value separator for input data ie. NAME`TESTPATIENT
|
|
OUTSEP() | ; Name value separator for output data ie. NAME|TESTPATIENT
|
|
STATSEP() | ; Status and Result separator ie. -3``No record IEN
|
|
UPDATE(OUT,FILE,ATTS,OVERRIDE) | ; Update Attributes
|
|
ATTACH(OUT,FILE,ATTS) | ; Create record; attach to parent record if applicable
; Input Variables: ; FILE - File number of record ; ATTS - Array of name value pairs separated by an input separator ; Output Variables: ; OUT - Returns success and new record IEN or error and error message |
|
REFRESH(OUT,FILE,IEN,PIEN,OVERRIDE) | ; Retrieve specified file data attributes
|
|
MULTIPLE(FILE,FIELD) | ; Process multiple DB entries
|
|
NUMERIC(FILE,FIELD) | ; Determine if field is numeric
|
|
DATETIME(FILE,FIELD) | ; Determine if field is date time
|
|
GETFIELD(FILE,FNAME) | ; Returns a field number given a field name
|
|
PARENT(FILE,IEN,PIEN) | ; Check if provided parent IEN is linked to current record
|
|
AOFSET(PIEN,IEN) | ; Set artifact on file to 1 for all parent nodes of file instance
|
|
INACTIVT(OUT,FILE,IEN,PIEN,OVERRIDE,REASON) | ; Marks the entry indicated by file # and IEN as deleted
|
|
FINDBUID(OUT,FILE,UID) | ;Find SOP or series by UID
|
|
GETSINST(VALUE) | ; Get the service institution value
|
Name | Field # of Occurrence |
---|---|
$$GET1^DID | ATTACH+19, ATTACH+20, REFRESH+30, REFRESH+47, MULTIPLE+2, NUMERIC+3, DATETIME+3 |
FILE^DIE | UPDATE+27, UPDATE+38, ATTACH+107, ATTACH+118, REFRESH+63, AOFSET+9, INACTIVT+28 |
UPDATE^DIE | ATTACH+41, ATTACH+97 |
$$FLDNUM^DILFD | GETFIELD+1 |
$$GET1^DIQ | UPDATE+21, ATTACH+29, ATTACH+70, REFRESH+12, REFRESH+33, INACTIVT+11, INACTIVT+21, FINDBUID+8 |
GETS^DIQ | REFRESH+16, REFRESH+45 |
NWI34^MAGNWRK1 | AOFSET+13 |
$$FM2IDF^MAGVAF01 | REFRESH+34 |
TIUCHK^MAGVRS43 | ATTACH+88 |
INACT^MAGVRS44 | INACTIVT+14 |
SETFDA^MAGVRS44 | UPDATE+26, ATTACH+93 |
$$MATCH^MAGVRS46 | ATTACH+67 |
ADDMKEYS^MAGVRS46 | ATTACH+65 |
$$NOW^XLFDT | UPDATE+33, ATTACH+111, REFRESH+57 |
$$NS^XUAF4 | GETSINST+5 |
Name | Line Occurrences (* Changed, ! Killed) |
---|---|
^MAG(2006.04 - [#2006.04] | ATTACH+39, ATTACH+44, REFRESH+23 |
^MAGD( | REFRESH+5, REFRESH+10 |
^MAGV( | UPDATE+8, UPDATE+43, ATTACH+71, ATTACH+84, ATTACH+99, ATTACH+105, ATTACH+122, REFRESH+5, REFRESH+9, REFRESH+67 , PARENT+1, AOFSET+11, INACTIVT+7, INACTIVT+19, FINDBUID+6 |
^MAGV(2005.62 - [#2005.62] | ATTACH+106 |
^MAGV(2005.63 - [#2005.63] | ATTACH+106 |
^MAGV(2005.8 - [#2005.8] | GETSINST+3 |
Name | Line Occurrences |
---|---|
$$DATETIME | REFRESH+34 |
$$GETFIELD | UPDATE+37, ATTACH+115, REFRESH+11, REFRESH+61, AOFSET+6, INACTIVT+10, INACTIVT+20, INACTIVT+26, FINDBUID+7 |
$$GETSINST | REFRESH+35, REFRESH+36 |
$$INPUTSEP | UPDATE+3, ATTACH+8, REFRESH+3, INACTIVT+2, FINDBUID+2 |
$$OUTSEP | UPDATE+3, ATTACH+8, REFRESH+3, INACTIVT+2, FINDBUID+2 |
$$PARENT | UPDATE+15, REFRESH+8 |
$$STATSEP | UPDATE+3, ATTACH+8, REFRESH+3, INACTIVT+2, FINDBUID+2 |
AOFSET | UPDATE+31, ATTACH+109 |
UPDATE | ATTACH+79 |
>> | Not killed explicitly |
* | Changed |
! | Killed |
~ | Newed |
Name | Field # of Occurrence |
---|---|
AOF | INACTIVT+1~, INACTIVT+17*, INACTIVT+18, INACTIVT+19, INACTIVT+21*, INACTIVT+24 |
AOFFILE | AOFSET+1~, AOFSET+5*, AOFSET+6, AOFSET+8, AOFSET+11 |
AOFIEN | INACTIVT+1~, INACTIVT+17*, INACTIVT+19*, INACTIVT+21 |
ATTNAMS | ATTACH+6~, ATTACH+65 |
ATTNAMS( | ATTACH+16*, ATTACH+19 |
ATTNAMS("ARTI | FACT ON FILE" , ATTACH+48, ATTACH+49* |
ATTNAMS("ASSI | GNING AUTHORITY" , ATTACH+54, ATTACH+60 |
ATTNAMS("DEVI | CE MANUFACTURER" , ATTACH+35, ATTACH+46!, CE MODEL" , ATTACH+36, ATTACH+46! |
ATTNAMS("ENTE | RPRISE PATIENT ID" , ATTACH+55 |
ATTNAMS("PATI | ENT REFERENCE" , ATTACH+22 |
ATTNAMS("PROC | EDURE REFERENCE" , ATTACH+23 |
ATTNAMS("SERI | ES REFERENCE" , ATTACH+25 |
ATTNAMS("SOP | INSTANCE REFERENCE" , ATTACH+26 |
ATTNAMS("STUD | Y REFERENCE" , ATTACH+24 |
ATTS | UPDATE~, UPDATE+26, ATTACH~, ATTACH+93 |
ATTS( | UPDATE+25*, ATTACH+13, ATTACH+14, ATTACH+45*, ATTACH+50*, ATTACH+56*, ATTACH+77, ATTACH+89*, ATTACH+92* |
ATTS(" " | UPDATE+25, ATTACH+45, ATTACH+50, ATTACH+56, ATTACH+89, ATTACH+92 |
ATTS(1 | UPDATE+6, UPDATE+7! |
ATTS(2 | UPDATE+11, UPDATE+12 |
CIEN | ATTACH+7~, ATTACH+99*, ATTACH+100, ATTACH+109, ATTACH+112 |
DATATYPE | MULTIPLE+1~, NUMERIC+1~, DATETIME+1~ |
DATETIME | UPDATE+1~, UPDATE+33*, UPDATE+37, ATTACH+7~, ATTACH+111*, ATTACH+115, REFRESH+1~, REFRESH+57*, REFRESH+61, DATETIME+1~ , DATETIME+2*, DATETIME+3*, DATETIME+4 |
DD | REFRESH+1~ |
DD( | REFRESH+19, REFRESH+43 |
DD("2005.63" | REFRESH+21 |
DEVFDA | ATTACH+7~ |
DEVFDA( | ATTACH+40* |
DEVICE | ATTACH+7~, ATTACH+37*, ATTACH+39, ATTACH+40, ATTACH+44 |
DEVIEN | ATTACH+44*, ATTACH+45, REFRESH+2~, REFRESH+21*, REFRESH+22, REFRESH+23 |
DEVMAN | ATTACH+35*, ATTACH+37, REFRESH+2~, REFRESH+24*, REFRESH+26 |
DEVMODEL | ATTACH+36*, ATTACH+37, REFRESH+2~, REFRESH+25*, REFRESH+27 |
DEVNAME | REFRESH+2~, REFRESH+23*, REFRESH+24, REFRESH+25 |
DFN | ATTACH+7~, ATTACH+55*, ATTACH+56 |
ERR | UPDATE+30!, UPDATE+41!, ATTACH+7~, ATTACH+103!, ATTACH+116, ATTACH+117!, ATTACH+120!, REFRESH+1~, REFRESH+62!, REFRESH+65! , AOFSET+1~, AOFSET+10!, INACTIVT+1~, INACTIVT+29! |
ERR("DIERR" | UPDATE+28, UPDATE+29, UPDATE+39, UPDATE+40, ATTACH+101, ATTACH+102, ATTACH+119, REFRESH+64 |
FDA | UPDATE+1~, UPDATE+26, UPDATE+30!, UPDATE+41!, ATTACH+6~, ATTACH+93, ATTACH+98!, ATTACH+108!, ATTACH+120!, REFRESH+1~ , REFRESH+65!, AOFSET+1~, AOFSET+10!, INACTIVT+1~, INACTIVT+29! |
FDA( | UPDATE+37*, ATTACH+94, ATTACH+105*, ATTACH+106*, ATTACH+115*, REFRESH+61*, AOFSET+8*, INACTIVT+27* |
FIELD | REFRESH+1~, REFRESH+11*, REFRESH+12, REFRESH+15*, REFRESH+30*, REFRESH+31, REFRESH+32, REFRESH+33, REFRESH+34, REFRESH+35 , REFRESH+36*, REFRESH+37, REFRESH+47*, REFRESH+51, MULTIPLE~, MULTIPLE+2, NUMERIC~, NUMERIC+3, DATETIME~, DATETIME+3 , AOFSET+1~, AOFSET+6*, AOFSET+7, AOFSET+8, INACTIVT+1~, INACTIVT+10*, INACTIVT+11, INACTIVT+20*, INACTIVT+21, INACTIVT+26* , INACTIVT+27, FINDBUID+7*, FINDBUID+8 |
FIELDERR | UPDATE+1~, UPDATE+26, UPDATE+45, ATTACH+7~, ATTACH+93, ATTACH+100 |
FILE | UPDATE~, UPDATE+4, UPDATE+8, UPDATE+9, UPDATE+15, UPDATE+17, UPDATE+19, UPDATE+20, UPDATE+26, UPDATE+31 , UPDATE+34, UPDATE+36, ATTACH~, ATTACH+10, ATTACH+19, ATTACH+20, ATTACH+22, ATTACH+23, ATTACH+24, ATTACH+25 , ATTACH+26, ATTACH+28, ATTACH+33, ATTACH+48, ATTACH+54, ATTACH+60, ATTACH+65, ATTACH+67, ATTACH+70, ATTACH+71 , ATTACH+79, ATTACH+82, ATTACH+84, ATTACH+87, ATTACH+93, ATTACH+94, ATTACH+99, ATTACH+105, ATTACH+106, ATTACH+109 , ATTACH+110, ATTACH+113, REFRESH~, REFRESH+4, REFRESH+5, REFRESH+8, REFRESH+9, REFRESH+10, REFRESH+11, REFRESH+12 , REFRESH+13, REFRESH+16, REFRESH+19, REFRESH+20, REFRESH+30, REFRESH+33, REFRESH+34, REFRESH+35, REFRESH+36, REFRESH+41 , REFRESH+44, REFRESH+45, REFRESH+47, REFRESH+59, MULTIPLE~, MULTIPLE+2, NUMERIC~, NUMERIC+3, DATETIME~, DATETIME+3 , GETFIELD~, GETFIELD+1, PARENT~, PARENT+1, INACTIVT~, INACTIVT+3, INACTIVT+7, INACTIVT+10, INACTIVT+11, INACTIVT+14 , INACTIVT+18*, INACTIVT+19, INACTIVT+20, INACTIVT+21, INACTIVT+25, INACTIVT+26, FINDBUID~, FINDBUID+3, FINDBUID+4, FINDBUID+6 , FINDBUID+7, FINDBUID+8, FINDBUID+10, FINDBUID+11, GETSINST+1~, GETSINST+4*, GETSINST+5 |
FILEMULT | REFRESH+1~, REFRESH+41*, REFRESH+42, REFRESH+43*, REFRESH+44 |
FNAME | GETFIELD~, GETFIELD+1 |
FNUM | REFRESH+15*, REFRESH+18, REFRESH+19*, REFRESH+20, REFRESH+30, REFRESH+44*, REFRESH+45, REFRESH+47, MULTIPLE+1~ |
FORMAT | REFRESH+1~, REFRESH+31*, REFRESH+32*, REFRESH+33 |
I | ATTACH+6~, ATTACH+12*, ATTACH+13*, ATTACH+14, ATTACH+77* |
IEN | UPDATE+1~, UPDATE+7*, UPDATE+8, UPDATE+14, UPDATE+15, UPDATE+26, UPDATE+31, UPDATE+34, UPDATE+45, ATTACH+6~ , ATTACH+63, ATTACH+67*, ATTACH+68, ATTACH+70, ATTACH+71, ATTACH+73*, ATTACH+76, REFRESH~, REFRESH+6, REFRESH+8 , REFRESH+9, REFRESH+10, REFRESH+12, REFRESH+16, REFRESH+19, REFRESH+21, REFRESH+33, REFRESH+45, REFRESH+58, PARENT~ , PARENT+1, AOFSET~, AOFSET+3, INACTIVT~, INACTIVT+4, INACTIVT+7, INACTIVT+11, INACTIVT+14, INACTIVT+17, INACTIVT+32 , FINDBUID+1~, FINDBUID+6*, FINDBUID+8, FINDBUID+9, FINDBUID+10, GETSINST+1~, GETSINST+4*, GETSINST+5 |
ISEP | UPDATE+3*, UPDATE+6, UPDATE+7, UPDATE+11, UPDATE+12, UPDATE+25, ATTACH+6~, ATTACH+8*, ATTACH+14, ATTACH+45 , ATTACH+50, ATTACH+56, ATTACH+76, ATTACH+78, ATTACH+89, ATTACH+92, REFRESH+1~, REFRESH+3*, INACTIVT+1~, INACTIVT+2* , FINDBUID+1~, FINDBUID+2* |
KEYFLD | ATTACH+6~, ATTACH+65, ATTACH+67 |
KEYFLD( | ATTACH+19*, ATTACH+20* |
KEYNAM | ATTACH+7~, ATTACH+19* |
MAGVIEN | AOFSET+1~, AOFSET+3*, AOFSET+13 |
MAGVOUT | AOFSET+1~, AOFSET+13 |
MAGVPIEN | AOFSET+1~, AOFSET+2*, AOFSET+13 |
MULTIPLE | REFRESH+1~, MULTIPLE+1~, MULTIPLE+2*, MULTIPLE+3 |
MULTOUT | REFRESH+1~, REFRESH+46 |
MULTOUT( | REFRESH+49, REFRESH+50, REFRESH+51 |
MULTOUT("" | REFRESH+48 |
NAM | ATTACH+6~, ATTACH+14*, ATTACH+15, ATTACH+16 |
NEWATTS | ATTACH+6~, ATTACH+79 |
NEWATTS( | ATTACH+77*, ATTACH+78* |
NEWATTS(" " | ATTACH+78 |
NEWATTS(1 | ATTACH+76* |
NUMERIC | NUMERIC+1~, NUMERIC+2*, NUMERIC+3*, NUMERIC+4 |
OSEP | UPDATE+3*, ATTACH+6~, ATTACH+8*, REFRESH+1~, REFRESH+3*, REFRESH+26, REFRESH+27, REFRESH+37, REFRESH+51, INACTIVT+1~ , INACTIVT+2*, FINDBUID+1~, FINDBUID+2* |
OUT | UPDATE~, ATTACH~, ATTACH+65, ATTACH+79, ATTACH+88, ATTACH+90!, REFRESH~, REFRESH+3!, REFRESH+11, INACTIVT~ , INACTIVT+14, FINDBUID~, FINDBUID+3*, FINDBUID+4*, FINDBUID+5*, FINDBUID+9*, FINDBUID+10*, FINDBUID+11* |
OUT( | REFRESH+26*, REFRESH+27*, REFRESH+37*, REFRESH+51* |
OUT(1 | UPDATE+4*, UPDATE+6*, UPDATE+8*, UPDATE+9, UPDATE+10, UPDATE+11*, UPDATE+14*, UPDATE+15*, UPDATE+17, UPDATE+22* , UPDATE+28*, UPDATE+39*, UPDATE+45*, ATTACH+10*, ATTACH+13, ATTACH+15*, ATTACH+18, ATTACH+28, ATTACH+30*, ATTACH+52* , ATTACH+60*, ATTACH+63, ATTACH+65, ATTACH+72*, ATTACH+75*, ATTACH+81, ATTACH+82, ATTACH+83*, ATTACH+84*, ATTACH+87 , ATTACH+88, ATTACH+89, ATTACH+95*, ATTACH+100*, ATTACH+101*, ATTACH+110, ATTACH+116*, ATTACH+119*, REFRESH+4*, REFRESH+5* , REFRESH+6*, REFRESH+7*, REFRESH+8*, REFRESH+9*, REFRESH+10*, REFRESH+13*, REFRESH+55*, REFRESH+64*, INACTIVT+3*, INACTIVT+4* , INACTIVT+5*, INACTIVT+6*, INACTIVT+7*, INACTIVT+8*, INACTIVT+12*, INACTIVT+15, INACTIVT+32* |
OUTI | REFRESH+1~, REFRESH+15*, REFRESH+26, REFRESH+27, REFRESH+28*, REFRESH+37, REFRESH+38*, REFRESH+51, REFRESH+52* |
OVERRIDE | UPDATE~, UPDATE+10, UPDATE+15, REFRESH~, REFRESH+7, REFRESH+8, INACTIVT~, INACTIVT+6, INACTIVT+14 |
PFILE | UPDATE+18~, UPDATE+19*, UPDATE+20*, UPDATE+21, ATTACH+7~, ATTACH+22*, ATTACH+23*, ATTACH+24*, ATTACH+25*, ATTACH+26* , ATTACH+29, ATTACH+105*, ATTACH+106*, INACTIVT+1~, INACTIVT+25*, INACTIVT+27 |
PIEN | UPDATE+12*, UPDATE+15, UPDATE+17, UPDATE+21, UPDATE+31, UPDATE+43*, ATTACH+7~, ATTACH+22*, ATTACH+23*, ATTACH+24* , ATTACH+25*, ATTACH+26*, ATTACH+29, ATTACH+67, ATTACH+71, ATTACH+83, ATTACH+84, ATTACH+88, ATTACH+105, ATTACH+106 , ATTACH+109, REFRESH~, REFRESH+7, REFRESH+8, PARENT~, PARENT+1, AOFSET~, AOFSET+2, AOFSET+8, AOFSET+11* , INACTIVT~, INACTIVT+5, INACTIVT+14, INACTIVT+19, INACTIVT+27 |
PPIEN | ATTACH+7~, ATTACH+106* |
REASON | INACTIVT~, INACTIVT+8, INACTIVT+14 |
SITE | GETSINST+1~, GETSINST+2*, GETSINST+5*, GETSINST+6 |
SSEP | UPDATE+3*, UPDATE+4, UPDATE+6, UPDATE+8, UPDATE+11, UPDATE+14, UPDATE+15, UPDATE+22, UPDATE+28, UPDATE+39 , UPDATE+45, ATTACH+6~, ATTACH+8*, ATTACH+10, ATTACH+15, ATTACH+30, ATTACH+52, ATTACH+60, ATTACH+72, ATTACH+75 , ATTACH+83, ATTACH+84, ATTACH+89, ATTACH+95, ATTACH+100, ATTACH+101, ATTACH+119, REFRESH+1~, REFRESH+3*, REFRESH+4 , REFRESH+5, REFRESH+6, REFRESH+7, REFRESH+8, REFRESH+9, REFRESH+10, REFRESH+13, REFRESH+26, REFRESH+27, REFRESH+37 , REFRESH+51, REFRESH+55, REFRESH+64, INACTIVT+1~, INACTIVT+2*, INACTIVT+3, INACTIVT+4, INACTIVT+5, INACTIVT+6, INACTIVT+7 , INACTIVT+8, INACTIVT+12, INACTIVT+32, FINDBUID+1~, FINDBUID+2*, FINDBUID+3, FINDBUID+4, FINDBUID+5, FINDBUID+9, FINDBUID+10 , FINDBUID+11 |
STATUS | UPDATE+18~, UPDATE+21*, UPDATE+22, ATTACH+6~, ATTACH+29*, ATTACH+30, ATTACH+70*, ATTACH+72, ATTACH+75, REFRESH+12* , REFRESH+13, INACTIVT+1~, INACTIVT+11*, INACTIVT+12, FINDBUID+1~, FINDBUID+8*, FINDBUID+9, FINDBUID+11 |
SUBFILE | REFRESH+1~, REFRESH+48*, REFRESH+49, REFRESH+50, REFRESH+51 |
SUBIEN | REFRESH+1~, REFRESH+48*, REFRESH+49, REFRESH+50*, REFRESH+51 |
U | ATTACH+106, REFRESH+23, GETSINST+5 |
UATT | ATTACH+6~, ATTACH+19*, ATTACH+52, ATTACH+67 |
UFILE | UPDATE+1~, UPDATE+34*, UPDATE+35*, UPDATE+37, UPDATE+43, ATTACH+113*, ATTACH+114, ATTACH+115, ATTACH+122, REFRESH+1~ , REFRESH+59*, REFRESH+60, REFRESH+61, REFRESH+67 |
UID | ATTACH+7~, ATTACH+94*, ATTACH+95, ATTACH+99, FINDBUID~, FINDBUID+5, FINDBUID+6 |
UIEN | UPDATE+1~, UPDATE+34*, UPDATE+35, UPDATE+37, UPDATE+43, ATTACH+7~, ATTACH+112*, ATTACH+113, ATTACH+115, ATTACH+122* , REFRESH+1~, REFRESH+58*, REFRESH+59, REFRESH+61, REFRESH+67* |
VAL | ATTACH+6~, ATTACH+14*, ATTACH+16 |
VALUE | REFRESH+2~, REFRESH+33*, REFRESH+34*, REFRESH+35*, REFRESH+36*, REFRESH+37, GETSINST~, GETSINST+3 |
X | GETSINST+1~, GETSINST+3*, GETSINST+4 |