xp_comm_proj/rd_dicom/Papyrus3/DicomDir/DicomDirInitRecords.c
/********************************************************************************/
/*										*/
/*	init_PatientR : initializes the elements of the Directory Record	*/
/*	Patient 								*/
/*										*/
/********************************************************************************/
init_PatientR : initializes the elements of the Directory Record
Patient
init_PatientR : initializes the elements of the Directory Record Patient
void
init_PatientR (SElement ioElem [])
{
  SElement	*theWrkP;
  theWrkP 		= &ioElem [papOffsetofNextDirectoryRecordP];
  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 [papRecordInuseP];
  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 [papOffsetofReferencedLowerLevelDirectoryEntityP];
  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 [papDirectoryRecordTypeP];
  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 [papPrivateRecordUIDP];
  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 [papReferencedFileIDP];
  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 [papMRDRDirectoryRecordOffsetP];
  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 [papReferencedSOPClassUIDinFileP];
  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 [papReferencedSOPInstanceUIDinFileP];
  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 [papReferencedTransferSyntaxUIDinFileP];
  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 [papSpecificCharacterSetDRP];
  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 [papPatientsNameDR];
  theWrkP->group 	= 0x0010;
  theWrkP->element 	= 0x0010;
  theWrkP->length 	= 0L;
  theWrkP->vr 		= PN;
  theWrkP->vm 		= "1";
  theWrkP->type_t 	= T2;
  theWrkP->nb_val 	= 0;
  theWrkP->value 	= NULL;
  theWrkP 		= &ioElem [papPatientIDDR];
  theWrkP->group 	= 0x0010;
  theWrkP->element 	= 0x0020;
  theWrkP->length 	= 0L;
  theWrkP->vr 		= LO;
  theWrkP->vm 		= "1";
  theWrkP->type_t 	= T1;
  theWrkP->nb_val 	= 0;
  theWrkP->value 	= NULL;
}
void init_PatientR ( SElement ioElem [ ] ) { SElement * theWrkP ; theWrkP = & ioElem [ papOffsetofNextDirectoryRecordP ] ; 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 [ papRecordInuseP ] ; 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 [ papOffsetofReferencedLowerLevelDirectoryEntityP ] ; 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 [ papDirectoryRecordTypeP ] ; 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 [ papPrivateRecordUIDP ] ; 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 [ papReferencedFileIDP ] ; 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 [ papMRDRDirectoryRecordOffsetP ] ; 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 [ papReferencedSOPClassUIDinFileP ] ; 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 [ papReferencedSOPInstanceUIDinFileP ] ; 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 [ papReferencedTransferSyntaxUIDinFileP ] ; 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 [ papSpecificCharacterSetDRP ] ; 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 [ papPatientsNameDR ] ; theWrkP -> group = 0x0010 ; theWrkP -> element = 0x0010 ; theWrkP -> length = 0L ; theWrkP -> vr = PN ; theWrkP -> vm = " " ; theWrkP -> type_t = T2 ; theWrkP -> nb_val = 0 ; theWrkP -> value = NULL ; theWrkP = & ioElem [ papPatientIDDR ] ; theWrkP -> group = 0x0010 ; theWrkP -> element = 0x0020 ; theWrkP -> length = 0L ; theWrkP -> vr = LO ; theWrkP -> vm = " " ; theWrkP -> type_t = T1 ; theWrkP -> nb_val = 0 ; theWrkP -> value = NULL ; }
init_PatientR : initializes the elements of the Directory Record
Patient
init_PatientR : initializes the elements of the Directory Record Patient