{"$defs":{"CauseCategory":{"description":"HAZOP cause categories — house taxonomy.\n\nNo IEC 61882 or CCPS standard closed taxonomy exists for causes.","enum":["EQUIPMENT_MECHANICAL","INSTRUMENTATION_CONTROL","HUMAN_PROCEDURAL","UTILITY","CHEMISTRY_MATERIAL","EXTERNAL_EVENT","DESIGN_CONFIGURATION","FOULING_BLOCKAGE"],"title":"CauseCategory","type":"string"},"HazopAction":{"properties":{"action_text":{"title":"Action Text","type":"string"},"owner_role":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Owner Role"},"target_date":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"default":null,"title":"Target Date"},"status":{"default":"open","enum":["open","in_review","closed","deferred"],"title":"Status","type":"string"},"openproject_wp_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Openproject Wp Id"},"resolution_note":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Resolution Note"}},"required":["action_text"],"title":"HazopAction","type":"object"},"HazopCause":{"properties":{"cause_text":{"title":"Cause Text","type":"string"},"cause_category":{"anyOf":[{"$ref":"#/$defs/CauseCategory"},{"type":"null"}],"default":null},"equipment_uid":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"default":null,"title":"Equipment Uid"},"introduced_by":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Introduced By"}},"required":["cause_text"],"title":"HazopCause","type":"object"},"HazopConsequence":{"properties":{"consequence_text":{"title":"Consequence Text","type":"string"},"severity_class":{"anyOf":[{"$ref":"#/$defs/SeverityClass"},{"type":"null"}],"default":null},"introduced_by":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Introduced By"}},"required":["consequence_text"],"title":"HazopConsequence","type":"object"},"HazopDeviation":{"properties":{"deviation_id":{"format":"uuid","title":"Deviation Id","type":"string"},"guideword":{"$ref":"#/$defs/HazopGuideword"},"parameter_name":{"$ref":"#/$defs/HazopParameter"},"deviation_description":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Deviation Description"},"probability_class":{"anyOf":[{"$ref":"#/$defs/ProbabilityClass"},{"type":"null"}],"default":null},"risk_rank":{"anyOf":[{"$ref":"#/$defs/RiskRank"},{"type":"null"}],"default":null},"requirement_text":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Requirement Text"},"affected_equipment":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Affected Equipment"},"causes":{"items":{"$ref":"#/$defs/HazopCause"},"title":"Causes","type":"array"},"consequences":{"items":{"$ref":"#/$defs/HazopConsequence"},"title":"Consequences","type":"array"},"safeguards":{"items":{"$ref":"#/$defs/HazopSafeguard"},"title":"Safeguards","type":"array"},"actions":{"items":{"$ref":"#/$defs/HazopAction"},"title":"Actions","type":"array"}},"required":["guideword","parameter_name"],"title":"HazopDeviation","type":"object"},"HazopGuideword":{"description":"IEC 61882:2016 HAZOP guidewords.\n\nCore 7 from Table 1 + 4 time/sequence extensions from same standard.","enum":["NO_OR_NOT","MORE","LESS","AS_WELL_AS","PART_OF","REVERSE","OTHER_THAN","EARLY","LATE","BEFORE","AFTER"],"title":"HazopGuideword","type":"string"},"HazopNode":{"properties":{"node_id":{"format":"uuid","title":"Node Id","type":"string"},"node_name":{"title":"Node Name","type":"string"},"design_intent":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Design Intent"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Description"},"primary_equipment_uid":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"default":null,"title":"Primary Equipment Uid"},"equipment_tags":{"items":{"type":"string"},"title":"Equipment Tags","type":"array"},"dexpi_node_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Dexpi Node Ref"},"sequence_no":{"anyOf":[{"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"title":"Sequence No"},"deviations":{"items":{"$ref":"#/$defs/HazopDeviation"},"title":"Deviations","type":"array"}},"required":["node_name"],"title":"HazopNode","type":"object"},"HazopParameter":{"description":"HAZOP process parameters — house taxonomy.\n\nIEC 61882 does not define a canonical parameter list; this set is\nexpanded from DOE/industry practice for water/wastewater.","enum":["FLOW","PRESSURE","TEMPERATURE","LEVEL","COMPOSITION","PH","SPEED","VOLTAGE","VISCOSITY","PURITY","DENSITY","LOCATION","CURRENT","FREQUENCY","SEQUENCE","TIME","MIXING","ADDITION","SEPARATION","REACTION","PHASE","OTHER"],"title":"HazopParameter","type":"string"},"HazopParticipant":{"properties":{"participant_name":{"title":"Participant Name","type":"string"},"participant_role":{"title":"Participant Role","type":"string"},"organization":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Organization"},"discipline":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Discipline"}},"required":["participant_name","participant_role"],"title":"HazopParticipant","type":"object"},"HazopSafeguard":{"properties":{"safeguard_text":{"title":"Safeguard Text","type":"string"},"safeguard_category":{"anyOf":[{"$ref":"#/$defs/SafeguardCategory"},{"type":"null"}],"default":null},"safeguard_tag":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Safeguard Tag"},"safety_integrity_level":{"anyOf":[{"enum":["SIL_1","SIL_2","SIL_3","SIL_4"],"type":"string"},{"type":"null"}],"default":null,"title":"Safety Integrity Level"},"independent_protection_layer":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"title":"Independent Protection Layer"},"credited_in_lopa":{"default":false,"title":"Credited In Lopa","type":"boolean"}},"required":["safeguard_text"],"title":"HazopSafeguard","type":"object"},"IplType":{"description":"LOPA independent protection layer types (CCPS functional layers).","enum":["PROCESS_DESIGN","BPCS","ALARM_WITH_OPERATOR_RESPONSE","SIF","RELIEF_DEVICE","PASSIVE_ENGINEERED","FIRE_GAS_MITIGATION","EXTERNAL_RISK_REDUCTION"],"title":"IplType","type":"string"},"LopaIPL":{"properties":{"ipl_description":{"title":"Ipl Description","type":"string"},"ipl_type":{"$ref":"#/$defs/IplType"},"credit_factor":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Credit Factor"},"sil_rating":{"anyOf":[{"enum":["SIL_1","SIL_2","SIL_3","SIL_4"],"type":"string"},{"type":"null"}],"default":null,"title":"Sil Rating"},"independence_basis":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Independence Basis"},"test_interval_months":{"anyOf":[{"minimum":0,"type":"integer"},{"type":"null"}],"default":null,"title":"Test Interval Months"}},"required":["ipl_description","ipl_type"],"title":"LopaIPL","type":"object"},"LopaScenario":{"properties":{"scenario_id":{"format":"uuid","title":"Scenario Id","type":"string"},"hazard_deviation_id":{"format":"uuid","title":"Hazard Deviation Id","type":"string"},"scenario_name":{"title":"Scenario Name","type":"string"},"initiating_event_frequency_per_year":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Initiating Event Frequency Per Year"},"consequence_severity":{"anyOf":[{"$ref":"#/$defs/SeverityClass"},{"type":"null"}],"default":null},"tolerable_frequency_per_year":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Tolerable Frequency Per Year"},"required_risk_reduction_factor":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Required Risk Reduction Factor"},"target_sil":{"anyOf":[{"enum":["SIL_1","SIL_2","SIL_3","SIL_4"],"type":"string"},{"type":"null"}],"default":null,"title":"Target Sil"},"ipls":{"items":{"$ref":"#/$defs/LopaIPL"},"title":"Ipls","type":"array"}},"required":["hazard_deviation_id","scenario_name"],"title":"LopaScenario","type":"object"},"ProbabilityClass":{"description":"Event probability — house taxonomy (CCPS provides examples only).","enum":["FREQUENT","PROBABLE","OCCASIONAL","REMOTE","IMPROBABLE","EXTREMELY_REMOTE"],"title":"ProbabilityClass","type":"string"},"RiskRank":{"description":"Risk ranking — HSE ALARP 3-tier bands.","enum":["INTOLERABLE","TOLERABLE_IF_ALARP","BROADLY_ACCEPTABLE"],"title":"RiskRank","type":"string"},"SafeguardCategory":{"description":"HAZOP safeguard categories — house taxonomy aligned to IPL layers.","enum":["PROCESS_DESIGN","SIF","BPCS","RELIEF_DEVICE","PHYSICAL_BARRIER","ADMINISTRATIVE","ALARM_OPERATOR","FIRE_GAS_MITIGATION","EMERGENCY_RESPONSE"],"title":"SafeguardCategory","type":"string"},"SeverityClass":{"description":"Consequence severity — house taxonomy (CCPS provides examples only).","enum":["CATASTROPHIC","CRITICAL","SERIOUS","MODERATE","MINOR","NEGLIGIBLE"],"title":"SeverityClass","type":"string"}},"properties":{"study_id":{"format":"uuid","title":"Study Id","type":"string"},"project_ref":{"title":"Project Ref","type":"string"},"study_name":{"title":"Study Name","type":"string"},"study_type":{"default":"HAZOP","enum":["HAZOP","LOPA"],"title":"Study Type","type":"string"},"standard_basis":{"default":"IEC 61882","title":"Standard Basis","type":"string"},"study_date":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"default":null,"title":"Study Date"},"leader":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Leader"},"scribe":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Scribe"},"source_document_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Source Document Ref"},"created_at":{"format":"date-time","title":"Created At","type":"string"},"participants":{"items":{"$ref":"#/$defs/HazopParticipant"},"title":"Participants","type":"array"},"nodes":{"items":{"$ref":"#/$defs/HazopNode"},"title":"Nodes","type":"array"},"lopa_scenarios":{"items":{"$ref":"#/$defs/LopaScenario"},"title":"Lopa Scenarios","type":"array"}},"required":["project_ref","study_name"],"title":"HazopStudyPackage","type":"object","$id":"https://puranwater.com/schemas/hazop-study-package.schema.json"}