/*********************************************************************** sitedata.h Application Description: Contains the typedef(s) required for the site_data_t structure used in the case_t structure in patexchange.h. This is site specific data to be used to locate patient data which is to be written to an exchange tape format file. This typedef is what is used by the 3D RTP system in use at the Mallinckrodt Institute of Radiology, Radiation Oncology Center. The data contained in here should provide a guide for the implementer to see what information may be kept here, but should not be construed as the method to be used for any particular implementation. ********************************************************************** $Id: sitedata.h,v 1.1 2000/01/14 22:49:16 jwm Exp $ Revision History: $Log: sitedata.h,v $ * Revision 1.1 2000/01/14 22:49:16 jwm * Remove comments originating in other development trees * * Revision 1.0 2000/01/14 22:42:38 jwm * Initial revision **********************************************************************/ /* Typedefs */ typedef struct beam_list_t { struct beam_list_t *next; /* POINTER TO NEXT BEAM */ int beam_number; /* BEAM NUMBER */ int mapped_beam_number; /* MAPPED BEAM NUMBER 1-99 */ char *beam_description; /* BEAM DESCRIPTION */ char *planid; /* PLAN ID FOR THIS BEAM # */ } beam_list_t; typedef struct dvh_list_t { struct dvh_list_t *next; /* POINTER TO NEXT DVH FILE IN LIST */ char *plan_id_of_origin; /* ORIGIN PLAN ID STRING */ char *dvh_file_name; /* DVH FILE NAME FOR ORIGIN PLAN ID */ } dvh_list_t; typedef struct fraction_list_t { struct fraction_list_t *next; /* POINTER TO NEXT ENTRY */ char *fraction_group_id; /* FRACTION GROUP ID STRING */ char *plan_id; /* PLAN ID TO SAVE/READ AS */ } fraction_list_t; typedef struct tplan_ll_t /* TELE PLAN LL structure */ { struct tplan_ll_t *next; /* POINTER TO NEXT NODE */ char *filename; /* FILENAME */ int num_treatments; /* NUMBER OF TREATMENTS IN THIS PLAN */ int beam_flag; /* FLAG TO WRITE BEAMS FOR THIS PLAN */ int drr_flag; /* FLAG TO WRITE DRRS FOR THIS PLAN */ int dose_flag; /* FLAG TO WRITE DOSE FOR THIS PLAN */ int num_films; /* NUMBER OF FILMS */ char **film_ids; /* FILM FILE ID'S */ int *beam_numbers; /* BEAM NUMBER TO INDEX WITH FILM ID'S */ char **beam_description; /* BEAM DESCRIPTION TO INDEX WITH FILM ID'S */ char *dvh_file_name; /* NAME OF DVH FILE FOR PLAN */ } tplan_ll_t; typedef struct splan_ll_t /* SEED PLAN LL structure */ { struct splan_ll_t *next; /* POINTER TO NEXT NODE */ char *filename; /* FILENAME */ int seed_flag; /* FLAG TO WRITE SEEDS FOR THIS PLAN */ int dose_flag; /* FLAG TO WRITE DOSE FOR THIS PLAN */ char *dvh_file_name; /* NAME OF DVH FILE FOR PLAN */ } splan_ll_t; typedef struct process_flags_t { int do_comments; /* 0=NO 1=YES */ int do_cts; /* 0=NO 1=YES */ int do_mris; /* 0=NO 1=YES */ int do_us; /* 0=NO 1=YES */ int do_structures; /* 0=NO 1=YES */ int do_beams; /* 0=NO 1=YES */ int do_films; /* 0=NO 1=YES */ int do_doses; /* 0=NO 1=YES */ int do_dvhs; /* 0=NO 1=YES */ int do_seeds; /* 0=NO 1=YES */ } process_flags_t; typedef struct site_data_t { char *studyset_id; /* STUDY SET ID */ char *pool_id; /* DATAPOOL ID */ char *comment_path; /* PATH TO COMMENT DATA */ char *image_path; /* PATH TO CT/MRI SCAN DATA */ char *struct_path; /* PATH TO STRUCTURE DATA */ char *plan_path; /* PATH TO TREATMENT PLANS & DOSE FILES */ char *film_path; /* PATH TO FILM DATA */ int num_comms; /* NUMBER OF COMMENT FILES TO BE PROCESSED */ char **comm_ids; /* COMMENT FILE ID'S */ int num_cts; /* NUMBER OF CT FILES TO BE PROCESSED */ char **ct_ids; /* CT SCAN ID'S TO BE USED */ char *ct_to_ed; /* CT TO ED FILE. ONLY FOR READ */ int num_mrus; /* NUMBER OF MR/US FILES TO PROCESSED */ char **mrus_ids; /* MR/US SCAN ID'S TO BE USED */ int num_structs; /* NUMBER OF ANATOMIC STRUCTURES */ char **struct_ids; /* STRUCTURE ID'S */ int num_tplans; /* NUMBER OF TELE PLANS TO PROCESS */ tplan_ll_t *tplans; /* TELE PLANS TO BE USED */ int num_splans; /* NUMBER OF SEED PLANS TO PROCESS */ splan_ll_t *splans; /* SEED PLANS TO BE USED */ fraction_list_t *fraction; /* LINKED LIST OF FRACTION ID INFORMATION */ process_flags_t process_flags; /* FLAGS FOR PROCESSING DATA */ beam_list_t *beam_list; /* LIST OF BEAM VS. FRACTION */ dvh_list_t *dvh_list; /* LIST OF DVH PLAN ID'S AND FILE ID'S */ int num_orphans; /* NUMBER OF ORPHAN FILM FILES */ char **orphan_ids; /* LIST OF ORPHAN FILM FILE ID'S */ char **orphan_descriptions; /* LIST OF ORPHAN FILM FILE DESCRIPTIONS */ int beam_numbers[100]; /* MAP OF AVAILABLE BEAM NUMBERS */ int ct_air; /* CT number for air */ int ct_water; /* CT number for water */ } site_data_t; /************************ End of sitedata.h ****************************/