xp_comm_proj/rd_dicom/Papyrus3/DicomDir/DicomDirInitRecords.c
/********************************************************************************/
/*										*/
/*	init_OverlayR : initializes the elements of the Directory Record	*/
/*	Overlay 								*/
/*										*/
/********************************************************************************/
init_OverlayR : initializes the elements of the Directory Record
Overlay
init_OverlayR : initializes the elements of the Directory Record Overlay
void
init_OverlayR (SElement ioElem [])
{
  SElement	*theWrkP;
  theWrkP		= &ioElem [papOffsetofNextDirectoryRecordO];
  theWrkP->group 	= 0x0004;
  theWrkP->element 	= 0x1400;
  theWrkP->length 	= 0L;
  theWrkP->vr 	 	= UL;
  theWrkP->vm 	 	= "1";
  theWrkP->type_t 	= T1C;
  theWrkP->nb_val 	= 0;
  theWrkP->value 	= NULL;
  theWrkP		= &ioElem [papRecordInuseO];
  theWrkP->group 	= 0x0004;
  theWrkP->element 	= 0x1410;
  theWrkP->length 	= 0L;
  theWrkP->vr 	 	= USS;
  theWrkP->vm 	 	= "1";
  theWrkP->type_t 	= T1C;
  theWrkP->nb_val 	= 0;
  theWrkP->value 	= NULL;
  theWrkP		= &ioElem [papOffsetofReferencedLowerLevelDirectoryEntityO];
  theWrkP->group 	= 0x0004;
  theWrkP->element 	= 0x1420;
  theWrkP->length 	= 0L;
  theWrkP->vr 	 	= UL;
  theWrkP->vm 	 	= "1";
  theWrkP->type_t 	= T1C;
  theWrkP->nb_val 	= 0;
  theWrkP->value 	= NULL;
  theWrkP		= &ioElem [papDirectoryRecordTypeO];
  theWrkP->group 	= 0x0004;
  theWrkP->element 	= 0x1430;
  theWrkP->length 	= 0L;
  theWrkP->vr 	 	= CS;
  theWrkP->vm 	 	= "1";
  theWrkP->type_t 	= T1C;
  theWrkP->nb_val 	= 0;
  theWrkP->value 	= NULL;
  theWrkP		= &ioElem [papPrivateRecordUIDO];
  theWrkP->group 	= 0x0004;
  theWrkP->element 	= 0x1432;
  theWrkP->length 	= 0L;
  theWrkP->vr 	 	= UI;
  theWrkP->vm 	 	= "1";
  theWrkP->type_t 	= T1C;
  theWrkP->nb_val 	= 0;
  theWrkP->value 	= NULL;
  theWrkP		= &ioElem [papReferencedFileIDO];
  theWrkP->group 	= 0x0004;
  theWrkP->element 	= 0x1500;
  theWrkP->length 	= 0L;
  theWrkP->vr 	 	= CS;
  theWrkP->vm 	 	= "1-n";
  theWrkP->type_t 	= T2C;
  theWrkP->nb_val 	= 0;
  theWrkP->value 	= NULL;
  theWrkP		= &ioElem [papMRDRDirectoryRecordOffsetO];
  theWrkP->group 	= 0x0004;
  theWrkP->element 	= 0x1504;
  theWrkP->length 	= 0L;
  theWrkP->vr 	 	= UL;
  theWrkP->vm 	 	= "1";
  theWrkP->type_t 	= T1C;
  theWrkP->nb_val 	= 0;
  theWrkP->value 	= NULL;
  theWrkP		= &ioElem [papReferencedSOPClassUIDinFileO];
  theWrkP->group 	= 0x0004;
  theWrkP->element 	= 0x1510;
  theWrkP->length 	= 0L;
  theWrkP->vr 	 	= UI;
  theWrkP->vm 	 	= "1";
  theWrkP->type_t 	= T1C;
  theWrkP->nb_val 	= 0;
  theWrkP->value 	= NULL;
  theWrkP		= &ioElem [papReferencedSOPInstanceUIDinFileO];
  theWrkP->group 	= 0x0004;
  theWrkP->element 	= 0x1511;
  theWrkP->length 	= 0L;
  theWrkP->vr 	 	= UI;
  theWrkP->vm 	 	= "1";
  theWrkP->type_t 	= T1C;
  theWrkP->nb_val 	= 0;
  theWrkP->value 	= NULL;
  theWrkP		= &ioElem [papReferencedTransferSyntaxUIDinFileO];
  theWrkP->group 	= 0x0004;
  theWrkP->element 	= 0x1512;
  theWrkP->length 	= 0L;
  theWrkP->vr 	 	= UI;
  theWrkP->vm 	 	= "1";
  theWrkP->type_t 	= T1C;
  theWrkP->nb_val 	= 0;
  theWrkP->value 	= NULL;
  theWrkP		= &ioElem [papSpecificCharacterSetDRO];
  theWrkP->group 	= 0x0008;
  theWrkP->element 	= 0x0005;
  theWrkP->length 	= 0L;
  theWrkP->vr 	 	= CS;
  theWrkP->vm 	 	= "1";
  theWrkP->type_t 	= T1C;
  theWrkP->nb_val 	= 0;
  theWrkP->value 	= NULL;
  theWrkP		= &ioElem [papOverlayNumberDRO];
  theWrkP->group 	= 0x0020;
  theWrkP->element 	= 0x0022;
  theWrkP->length 	= 0L;
  theWrkP->vr 	 	= IS;
  theWrkP->vm 	 	= "1";
  theWrkP->type_t 	= T1;
  theWrkP->nb_val 	= 0;
  theWrkP->value 	= NULL;
  theWrkP		= &ioElem [papIconImageSequenceDRO];
  theWrkP->group 	= 0x0088;
  theWrkP->element 	= 0x0200;
  theWrkP->length 	= 0L;
  theWrkP->vr 	 	= SQ;
  theWrkP->vm 	 	= "1";
  theWrkP->type_t 	= T3;
  theWrkP->nb_val 	= 0;
  theWrkP->value 	= NULL;
}
void init_OverlayR ( SElement ioElem [ ] ) { SElement * theWrkP ; theWrkP = & ioElem [ papOffsetofNextDirectoryRecordO ] ; theWrkP -> group = 0x0004 ; theWrkP -> element = 0x1400 ; theWrkP -> length = 0L ; theWrkP -> vr = UL ; theWrkP -> vm = " " ; theWrkP -> type_t = T1C ; theWrkP -> nb_val = 0 ; theWrkP -> value = NULL ; theWrkP = & ioElem [ papRecordInuseO ] ; theWrkP -> group = 0x0004 ; theWrkP -> element = 0x1410 ; theWrkP -> length = 0L ; theWrkP -> vr = USS ; theWrkP -> vm = " " ; theWrkP -> type_t = T1C ; theWrkP -> nb_val = 0 ; theWrkP -> value = NULL ; theWrkP = & ioElem [ papOffsetofReferencedLowerLevelDirectoryEntityO ] ; theWrkP -> group = 0x0004 ; theWrkP -> element = 0x1420 ; theWrkP -> length = 0L ; theWrkP -> vr = UL ; theWrkP -> vm = " " ; theWrkP -> type_t = T1C ; theWrkP -> nb_val = 0 ; theWrkP -> value = NULL ; theWrkP = & ioElem [ papDirectoryRecordTypeO ] ; theWrkP -> group = 0x0004 ; theWrkP -> element = 0x1430 ; theWrkP -> length = 0L ; theWrkP -> vr = CS ; theWrkP -> vm = " " ; theWrkP -> type_t = T1C ; theWrkP -> nb_val = 0 ; theWrkP -> value = NULL ; theWrkP = & ioElem [ papPrivateRecordUIDO ] ; theWrkP -> group = 0x0004 ; theWrkP -> element = 0x1432 ; theWrkP -> length = 0L ; theWrkP -> vr = UI ; theWrkP -> vm = " " ; theWrkP -> type_t = T1C ; theWrkP -> nb_val = 0 ; theWrkP -> value = NULL ; theWrkP = & ioElem [ papReferencedFileIDO ] ; theWrkP -> group = 0x0004 ; theWrkP -> element = 0x1500 ; theWrkP -> length = 0L ; theWrkP -> vr = CS ; theWrkP -> vm = " " ; theWrkP -> type_t = T2C ; theWrkP -> nb_val = 0 ; theWrkP -> value = NULL ; theWrkP = & ioElem [ papMRDRDirectoryRecordOffsetO ] ; theWrkP -> group = 0x0004 ; theWrkP -> element = 0x1504 ; theWrkP -> length = 0L ; theWrkP -> vr = UL ; theWrkP -> vm = " " ; theWrkP -> type_t = T1C ; theWrkP -> nb_val = 0 ; theWrkP -> value = NULL ; theWrkP = & ioElem [ papReferencedSOPClassUIDinFileO ] ; theWrkP -> group = 0x0004 ; theWrkP -> element = 0x1510 ; theWrkP -> length = 0L ; theWrkP -> vr = UI ; theWrkP -> vm = " " ; theWrkP -> type_t = T1C ; theWrkP -> nb_val = 0 ; theWrkP -> value = NULL ; theWrkP = & ioElem [ papReferencedSOPInstanceUIDinFileO ] ; theWrkP -> group = 0x0004 ; theWrkP -> element = 0x1511 ; theWrkP -> length = 0L ; theWrkP -> vr = UI ; theWrkP -> vm = " " ; theWrkP -> type_t = T1C ; theWrkP -> nb_val = 0 ; theWrkP -> value = NULL ; theWrkP = & ioElem [ papReferencedTransferSyntaxUIDinFileO ] ; theWrkP -> group = 0x0004 ; theWrkP -> element = 0x1512 ; theWrkP -> length = 0L ; theWrkP -> vr = UI ; theWrkP -> vm = " " ; theWrkP -> type_t = T1C ; theWrkP -> nb_val = 0 ; theWrkP -> value = NULL ; theWrkP = & ioElem [ papSpecificCharacterSetDRO ] ; theWrkP -> group = 0x0008 ; theWrkP -> element = 0x0005 ; theWrkP -> length = 0L ; theWrkP -> vr = CS ; theWrkP -> vm = " " ; theWrkP -> type_t = T1C ; theWrkP -> nb_val = 0 ; theWrkP -> value = NULL ; theWrkP = & ioElem [ papOverlayNumberDRO ] ; theWrkP -> group = 0x0020 ; theWrkP -> element = 0x0022 ; theWrkP -> length = 0L ; theWrkP -> vr = IS ; theWrkP -> vm = " " ; theWrkP -> type_t = T1 ; theWrkP -> nb_val = 0 ; theWrkP -> value = NULL ; theWrkP = & ioElem [ papIconImageSequenceDRO ] ; theWrkP -> group = 0x0088 ; theWrkP -> element = 0x0200 ; theWrkP -> length = 0L ; theWrkP -> vr = SQ ; theWrkP -> vm = " " ; theWrkP -> type_t = T3 ; theWrkP -> nb_val = 0 ; theWrkP -> value = NULL ; }
init_OverlayR : initializes the elements of the Directory Record
Overlay
init_OverlayR : initializes the elements of the Directory Record Overlay