Changes between Version 3 and Version 4 of BluePrintIncidentReporting


Ignore:
Timestamp:
08/23/10 08:16:26 (14 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BluePrintIncidentReporting

    v3 v4  
    1010== Simplified Categories ==
    1111 * #508
    12 Currently db.irs_ireport.category uses a dict of categories from the Candian ems.incident. name space defined in {{{models/irs.py}}}):
     12Currently db.irs_ireport.category uses a dict of categories from the Candian ems.incident. name space (defined in {{{models/irs.py}}}):
    1313{{{
    1414irs_incident_type_opts = {
     
    135135}}}
    136136
    137 We need a simplified version of these to be presented to users whilst keeping the full set available for EM professionals.
     137We need a simplified version of these to be presented to users whilst keeping the full set available for EM professionals ('Editors' in a simple use case). A mapping needs to be maintained between the different lists.
    138138
    139139The back-end should NOT be easily customised as otherwise it is hard to share data between instances.
    140140
    141 proposal:
     141Proposal: change to something more like this (doesn't yet handle the mapping - needs work!):
    142142{{{
    143 irs_incident_type_opts = {
    144     1:T("animalHealth.animalDieOff"),
    145     2:T("animalHealth.animalFeed"),
    146     3:T("aviation.aircraftCrash"),
    147     4:T("aviation.aircraftHijacking"),
    148     5:T("aviation.airportClosure"),
    149     6:T("aviation.airspaceClosure"),
    150     7:T("aviation.noticeToAirmen"),
    151     8:T("aviation.spaceDebris"),
    152     9:T("civil.demonstrations"),
    153     10:T("civil.dignitaryVisit"),
    154     11:T("civil.displacedPopulations"),
    155     12:T("civil.emergency"),
    156     13:T("civil.looting"),
    157     14:T("civil.publicEvent"),
    158     15:T("civil.riot"),
    159     16:T("civil.volunteerRequest"),
    160     17:T("crime.bomb"),
    161     18:T("crime.bombExplosion"),
    162     19:T("crime.bombThreat"),
    163     20:T("crime.dangerousPerson"),
    164     21:T("crime.drugs"),
    165     22:T("crime.homeCrime"),
    166     23:T("crime.illegalImmigrant"),
    167     24:T("crime.industrialCrime"),
    168     25:T("crime.poisoning"),
    169     26:T("crime.retailCrime"),
    170     27:T("crime.shooting"),
    171     28:T("crime.stowaway"),
    172     29:T("crime.terrorism"),
    173     30:T("crime.vehicleCrime"),
    174     31:T("fire.forestFire"),
    175     32:T("fire.hotSpot"),
    176     33:T("fire.industryFire"),
    177     34:T("fire.smoke"),
    178     35:T("fire.urbanFire"),
    179     36:T("fire.wildFire"),
    180     37:T("flood.damOverflow"),
    181     38:T("flood.flashFlood"),
    182     39:T("flood.highWater"),
    183     40:T("flood.overlandFlowFlood"),
    184     41:T("flood.tsunami"),
    185     42:T("geophysical.avalanche"),
    186     43:T("geophysical.earthquake"),
    187     44:T("geophysical.lahar"),
    188     45:T("geophysical.landslide"),
    189     46:T("geophysical.magneticStorm"),
    190     47:T("geophysical.meteorite"),
    191     48:T("geophysical.pyroclasticFlow"),
    192     49:T("geophysical.pyroclasticSurge"),
    193     50:T("geophysical.volcanicAshCloud"),
    194     51:T("geophysical.volcanicEvent"),
    195     52:T("hazardousMaterial.biologicalHazard"),
    196     53:T("hazardousMaterial.chemicalHazard"),
    197     54:T("hazardousMaterial.explosiveHazard"),
    198     55:T("hazardousMaterial.fallingObjectHazard"),
    199     56:T("hazardousMaterial.infectiousDisease"),
    200     57:T("hazardousMaterial.poisonousGas"),
    201     58:T("hazardousMaterial.radiologicalHazard"),
    202     59:T("health.infectiousDisease"),
    203     60:T("health.infestation"),
    204     61:T("ice.iceberg"),
    205     62:T("ice.icePressure"),
    206     63:T("ice.rapidCloseLead"),
    207     64:T("ice.specialIce"),
    208     65:T("marine.marineSecurity"),
    209     66:T("marine.nauticalAccident"),
    210     67:T("marine.nauticalHijacking"),
    211     68:T("marine.portClosure"),
    212     69:T("marine.specialMarine"),
    213     70:T("meteorological.blizzard"),
    214     71:T("meteorological.blowingSnow"),
    215     72:T("meteorological.drought"),
    216     73:T("meteorological.dustStorm"),
    217     74:T("meteorological.fog"),
    218     75:T("meteorological.freezingDrizzle"),
    219     76:T("meteorological.freezingRain"),
    220     77:T("meteorological.freezingSpray"),
    221     78:T("meteorological.hail"),
    222     79:T("meteorological.hurricane"),
    223     80:T("meteorological.rainFall"),
    224     81:T("meteorological.snowFall"),
    225     82:T("meteorological.snowSquall"),
    226     83:T("meteorological.squall"),
    227     84:T("meteorological.stormSurge"),
    228     85:T("meteorological.thunderstorm"),
    229     86:T("meteorological.tornado"),
    230     87:T("meteorological.tropicalStorm"),
    231     88:T("meteorological.waterspout"),
    232     89:T("meteorological.winterStorm"),
    233     90:T("missingPerson.amberAlert"),
    234     91:T("missingPerson.missingVulnerablePerson"),
    235     92:T("missingPerson.silver"),
    236     93:T("publicService.emergencySupportFacility"),
    237     94:T("publicService.emergencySupportService"),
    238     95:T("publicService.schoolClosure"),
    239     96:T("publicService.schoolLockdown"),
    240     97:T("publicService.serviceOrFacility"),
    241     98:T("publicService.transit"),
    242     99:T("railway.railwayAccident"),
    243     100:T("railway.railwayHijacking"),
    244     101:T("roadway.bridgeClosure"),
    245     102:T("roadway.hazardousRoadConditions"),
    246     103:T("roadway.roadwayAccident"),
    247     104:T("roadway.roadwayClosure"),
    248     105:T("roadway.roadwayDelay"),
    249     106:T("roadway.roadwayHijacking"),
    250     107:T("roadway.roadwayUsageCondition"),
    251     108:T("roadway.trafficReport"),
    252     109:T("temperature.arcticOutflow"),
    253     110:T("temperature.coldWave"),
    254     111:T("temperature.flashFreeze"),
    255     112:T("temperature.frost"),
    256     113:T("temperature.heatAndHumidity"),
    257     114:T("temperature.heatWave"),
    258     115:T("temperature.windChill"),
    259     116:T("wind.galeWind"),
    260     117:T("wind.hurricaneForceWind"),
    261     118:T("wind.stormForceWind"),
    262     119:T("wind.strongWind")
    263 }
     143irs_incident_type_opts = Storage (
     144    roadway.roadwayClosure ={
     145        simple: T("Broken Road"),
     146    },
     147    roadway.bridgeClosure = {
     148        simple: T("Broken Bridge"),
     149    },
     150)
    264151}}}
     152
     153A subclass of IS_IN_SET() is created to handle this data structure, providing access to full list to a role (default to 'Editor'), but the sub-set to normal users' dropdowns. (Should .represent also be modified for Display of records?
    265154
    266155----