xp_comm_proj/rd_dicom/Papyrus3/DicomDir/DicomDirInitRecords.c
/********************************************************************************/
/*										*/
/*	init_Visit : initializes the elements of the Directory Record		*/
/*	Visit 									*/
/*										*/
/********************************************************************************/
init_Visit : initializes the elements of the Directory Record
Visit
init_Visit : initializes the elements of the Directory Record Visit
void
init_Visit (SElement ioElem [])
{
  SElement	*theWrkP;
  theWrkP		= &ioElem [papOffsetofNextDirectoryRecordVI];
  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 [papRecordInuseVI];
  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 [papOffsetofReferencedLowerLevelDirectoryEntityVI];
  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 [papDirectoryRecordTypeVI];
  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 [papPrivateRecordUIDVI];
  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 [papReferencedFileIDVI];
  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 [papMRDRDirectoryRecordOffsetVI];
  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 [papReferencedSOPClassUIDinFileVI];
  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 [papReferencedSOPInstanceUIDinFileVI];
  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 [papReferencedTransferSyntaxUIDinFileVI];
  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 [papAdmittingDateDRVI];
  theWrkP->group 	= 0x0038;
  theWrkP->element 	= 0x0020;
  theWrkP->length 	= 0L;
  theWrkP->vr 	 	= DA;
  theWrkP->vm 	 	= "1";
  theWrkP->type_t 	= T2;
  theWrkP->nb_val 	= 0;
  theWrkP->value 	= NULL;
  theWrkP		= &ioElem [papAdmissionIDDRVI];
  theWrkP->group 	= 0x0038;
  theWrkP->element 	= 0x0010;
  theWrkP->length 	= 0L;
  theWrkP->vr 	 	= LO;
  theWrkP->vm 	 	= "1";
  theWrkP->type_t 	= T2;
  theWrkP->nb_val 	= 0;
  theWrkP->value 	= NULL;
  theWrkP		= &ioElem [papInstitutionNameDRVI];
  theWrkP->group 	= 0x0008;
  theWrkP->element 	= 0x0080;
  theWrkP->length 	= 0L;
  theWrkP->vr 	 	= LO;
  theWrkP->vm 	 	= "1";
  theWrkP->type_t 	= T2;
  theWrkP->nb_val 	= 0;
  theWrkP->value 	= NULL;
  theWrkP		= &ioElem [papSpecificCharacterSetDRVI];
  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;
}
void init_Visit ( SElement ioElem [ ] ) { SElement * theWrkP ; theWrkP = & ioElem [ papOffsetofNextDirectoryRecordVI ] ; 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 [ papRecordInuseVI ] ; 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 [ papOffsetofReferencedLowerLevelDirectoryEntityVI ] ; 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 [ papDirectoryRecordTypeVI ] ; 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 [ papPrivateRecordUIDVI ] ; 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 [ papReferencedFileIDVI ] ; 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 [ papMRDRDirectoryRecordOffsetVI ] ; 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 [ papReferencedSOPClassUIDinFileVI ] ; 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 [ papReferencedSOPInstanceUIDinFileVI ] ; 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 [ papReferencedTransferSyntaxUIDinFileVI ] ; 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 [ papAdmittingDateDRVI ] ; theWrkP -> group = 0x0038 ; theWrkP -> element = 0x0020 ; theWrkP -> length = 0L ; theWrkP -> vr = DA ; theWrkP -> vm = " " ; theWrkP -> type_t = T2 ; theWrkP -> nb_val = 0 ; theWrkP -> value = NULL ; theWrkP = & ioElem [ papAdmissionIDDRVI ] ; theWrkP -> group = 0x0038 ; theWrkP -> element = 0x0010 ; theWrkP -> length = 0L ; theWrkP -> vr = LO ; theWrkP -> vm = " " ; theWrkP -> type_t = T2 ; theWrkP -> nb_val = 0 ; theWrkP -> value = NULL ; theWrkP = & ioElem [ papInstitutionNameDRVI ] ; theWrkP -> group = 0x0008 ; theWrkP -> element = 0x0080 ; theWrkP -> length = 0L ; theWrkP -> vr = LO ; theWrkP -> vm = " " ; theWrkP -> type_t = T2 ; theWrkP -> nb_val = 0 ; theWrkP -> value = NULL ; theWrkP = & ioElem [ papSpecificCharacterSetDRVI ] ; 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 ; }
init_Visit : initializes the elements of the Directory Record
Visit
init_Visit : initializes the elements of the Directory Record Visit