xp_comm_proj/rd_dicom/Papyrus3/PapyInit3.c
/********************************************************************************/
/*										*/
/*	InitUIDs3 : For each imaging modality give the associated UID		*/
/*									      	*/
/********************************************************************************/
InitUIDs3 : For each imaging modality give the associated UID
InitUIDs3 : For each imaging modality give the associated UID
void
InitUIDs3 ()
{
  PapyShort	i;
  for (i = 0; i < END_MODALITY; i++)
    gArrUIDs [i] = (char *) ecalloc3 ((PapyULong) 31, (PapyULong) sizeof (char));
  strcpy (gArrUIDs [CR_IM],         "1.2.840.10008.5.1.4.1.1.1"); 
  strcpy (gArrUIDs [CT_IM],         "1.2.840.10008.5.1.4.1.1.2"); 
  strcpy (gArrUIDs [MR_IM],         "1.2.840.10008.5.1.4.1.1.4"); 
  strcpy (gArrUIDs [NM_IM],         "1.2.840.10008.5.1.4.1.1.20"); 
  strcpy (gArrUIDs [US_IM],         "1.2.840.10008.5.1.4.1.1.6.1"); 
  strcpy (gArrUIDs [US_MF_IM],      "1.2.840.10008.5.1.4.1.1.3.1"); 
  strcpy (gArrUIDs [SEC_CAPT_IM],   "1.2.840.10008.5.1.4.1.1.7"); 
  strcpy (gArrUIDs [PX_IM],         "1.2.840.10008.5.1.4.1.1.1.1"); 
  strcpy (gArrUIDs [DX_IM],         "1.2.840.10008.5.1.4.1.1.1.1"); 
  strcpy (gArrUIDs [MG_IM],         "1.2.840.10008.5.1.4.1.1.1.2"); 
  strcpy (gArrUIDs [IO_IM],         "1.2.840.10008.5.1.4.1.1.1.3"); 
  strcpy (gArrUIDs [RF_IM],         "1.2.840.10008.5.1.4.1.1.12.2"); 
  strcpy (gArrUIDs [PET_IM],        "1.2.840.10008.5.1.4.1.1.128"); 
  strcpy (gArrUIDs [VLE_IM],        "1.2.840.10008.5.1.4.1.1.77.1.1"); 
  strcpy (gArrUIDs [VLM_IM],        "1.2.840.10008.5.1.4.1.1.77.1.2"); 
  strcpy (gArrUIDs [VLS_IM],        "1.2.840.10008.5.1.4.1.1.77.1.3"); 
  strcpy (gArrUIDs [VLP_IM],        "1.2.840.10008.5.1.4.1.1.77.1.4"); 
  strcpy (gArrUIDs [MFSBSC_IM],     "1.2.840.10008.5.1.4.1.1.7.1"); 
  strcpy (gArrUIDs [MFGBSC_IM],     "1.2.840.10008.5.1.4.1.1.7.2"); 
  strcpy (gArrUIDs [MFGWSC_IM],     "1.2.840.10008.5.1.4.1.1.7.3"); 
  strcpy (gArrUIDs [MFTCSC_IM],     "1.2.840.10008.5.1.4.1.1.7.4"); 
}
void InitUIDs3 ( ) { PapyShort i ; for ( i = 0 ; i < END_MODALITY ; i ++ ) gArrUIDs [ i ] = ( char * ) ecalloc3 ( ( PapyULong ) 31 , ( PapyULong ) sizeof ( char ) ) ; strcpy ( gArrUIDs [ CR_IM ] , " " ) ; strcpy ( gArrUIDs [ CT_IM ] , " " ) ; strcpy ( gArrUIDs [ MR_IM ] , " " ) ; strcpy ( gArrUIDs [ NM_IM ] , " " ) ; strcpy ( gArrUIDs [ US_IM ] , " " ) ; strcpy ( gArrUIDs [ US_MF_IM ] , " " ) ; strcpy ( gArrUIDs [ SEC_CAPT_IM ] , " " ) ; strcpy ( gArrUIDs [ PX_IM ] , " " ) ; strcpy ( gArrUIDs [ DX_IM ] , " " ) ; strcpy ( gArrUIDs [ MG_IM ] , " " ) ; strcpy ( gArrUIDs [ IO_IM ] , " " ) ; strcpy ( gArrUIDs [ RF_IM ] , " " ) ; strcpy ( gArrUIDs [ PET_IM ] , " " ) ; strcpy ( gArrUIDs [ VLE_IM ] , " " ) ; strcpy ( gArrUIDs [ VLM_IM ] , " " ) ; strcpy ( gArrUIDs [ VLS_IM ] , " " ) ; strcpy ( gArrUIDs [ VLP_IM ] , " " ) ; strcpy ( gArrUIDs [ MFSBSC_IM ] , " " ) ; strcpy ( gArrUIDs [ MFGBSC_IM ] , " " ) ; strcpy ( gArrUIDs [ MFGWSC_IM ] , " " ) ; strcpy ( gArrUIDs [ MFTCSC_IM ] , " " ) ; }
InitUIDs3 : For each imaging modality give the associated UID
InitUIDs3 : For each imaging modality give the associated UID
/* allocates room for the storage of the UIDs */ /* stores the UIDs for each known imaging modality */