HSE, permits and compliance
Incidents, HAZOP studies, permit applications and compliance obligations.
In this documentation
- Beep.OilandGas Documentation
- Overview
- Architecture
- BeepDM integration
- Database scripts
- Configuration
- Company and field scoping
- Roles and access
- REST API reference
- Web application pages
- Exploration and prospects
- Development and drilling
- Production operations
- Production accounting
- HSE, permits and compliance
- Decommissioning
- Engineering calculators
- Troubleshooting
This page covers health, safety and environment (HSE) incident handling, HAZOP studies, regulatory permit applications and compliance obligations. All routes work on the current field (see Company and field scoping). Several of them need an HSE permission such as HSE.ReportIncident or HSE.ManageIncidents; see Roles and access.
1. HSE incidents
An incident is reported, assigned an investigator, analysed for causes, given corrective actions and finally closed. The routes below follow that order.
- Report.
GET report-optionsreturns the choices for the report form andPOST reportsrecords an incident. Both needHSE.ReportIncidentand write access to the field. - Read and classify. Incidents are listed for an optional date range and read one at a time. An incident can be moved to another state with
transitionand its tier can be changed withPUT incidents/{incidentId}/tier. - Investigator. A review route shows who can be assigned and
PUT incident/investigatorassigns the investigator. - Causes and barriers. Causes are listed and added, and
rca-completesays whether the root cause analysis is complete. Barriers are listed and added, a barrier status can be set, and a summary is available. - Corrective actions. A corrective action plan is reviewed and created, actions are added, a responsible person is assigned, completion is reviewed and recorded, and a verification decision is recorded. These need
HSE.ManageIncidentsand write access. - Closure. The workflow routes under
/hse/workflowhold the closure stages: review, complete stage, return for correction, and recovery. Closure actions also need the workflow approval permission. Root cause analysis has its own review, record, shared and handoff routes. - Assigned overdue actions.
GET /api/field/current/hse/assigned-overdue-actionsneedsHSE.View.
| Method | Route | Body | Query | Access |
|---|---|---|---|---|
| GET | /api/field/current/hse/incidents | from, to | field access | |
| GET | /api/field/current/hse/incident | incidentId | field access | |
| POST | /api/field/current/hse/incidents/{incidentId}/transition | TransitionIncidentRequest | field access | |
| PUT | /api/field/current/hse/incidents/{incidentId}/tier | tier | field access | |
| GET | /api/field/current/hse/incident/investigator-review | incidentId | field access | |
| PUT | /api/field/current/hse/incident/investigator | AssignIncidentInvestigatorRequest | incidentId | field access |
| GET | /api/field/current/hse/incident/causes | incidentId | field access | |
| POST | /api/field/current/hse/incidents/{incidentId}/causes | AddCauseRequest | field access | |
| GET | /api/field/current/hse/incidents/{incidentId}/rca-complete | field access | ||
| GET | /api/field/current/hse/incidents/{incidentId}/barriers | field access | ||
| POST | /api/field/current/hse/incidents/{incidentId}/barriers | AddBarrierRequest | field access | |
| PUT | /api/field/current/hse/incidents/{incidentId}/barriers/{equipId}/status | status | field access | |
| GET | /api/field/current/hse/incidents/{incidentId}/barriers/summary | field access | ||
| GET | /api/field/current/hse/incident/cas | incidentId | field access | |
| GET | /api/field/current/hse/incident/ca-plan-review | incidentId | field access | |
| GET | /api/field/current/hse/incident/ca-plan | incidentId | field access | |
| POST | /api/field/current/hse/incident/ca-plan | CreateCAPlanSubmission | incidentId | field access |
| GET | /api/field/current/hse/incidents/{incidentId}/restrictions/review | field access | ||
| POST | /api/field/current/hse/incidents/{incidentId}/cas | AddCASubmission | field access; permission HSE.ManageIncidents; field access HSE.ManageIncidents, true | |
| GET | /api/field/current/hse/incidents/{incidentId}/cas/options | field access; permission HSE.ManageIncidents; field access HSE.ManageIncidents, true | ||
| PUT | /api/field/current/hse/incidents/{incidentId}/cas/{stepSeq}/responsible | AssignCorrectiveActionResponsibleRequest | field access | |
| GET | /api/field/current/hse/incidents/{incidentId}/cas/verification-review | field access; permission HSE.ManageIncidents; field access HSE.ManageIncidents, true | ||
| POST | /api/field/current/hse/incidents/{incidentId}/cas/verification-decision | CAVerificationDecision | field access; permission HSE.ManageIncidents; field access HSE.ManageIncidents, true | |
| GET | /api/field/current/hse/incidents/{incidentId}/closure-review | field access; permission HSE.ManageIncidents; field access HSE.ManageIncidents, true | ||
| GET | /api/field/current/hse/incidents/{incidentId}/cas/{stepSeq}/completion-review | field access; permission HSE.ManageIncidents; field access HSE.ManageIncidents, true | ||
| POST | /api/field/current/hse/incidents/{incidentId}/cas/{stepSeq}/complete | CompleteCASubmission | field access; permission HSE.ManageIncidents; field access HSE.ManageIncidents, true | |
| GET | /api/field/current/hse/hazop | field access | ||
| POST | /api/field/current/hse/hazop | CreateHAZOPStudyRequest | field access | |
| GET | /api/field/current/hse/hazop/{studyId} | field access | ||
| GET | /api/field/current/hse/hazop/{studyId}/nodes | field access | ||
| POST | /api/field/current/hse/hazop/{studyId}/nodes | AddNodeRequest | field access | |
| POST | /api/field/current/hse/hazop/{studyId}/nodes/{nodeSeq}/deviations | AddDeviationRequest | field access | |
| PUT | /api/field/current/hse/hazop/{studyId}/nodes/{nodeSeq}/deviations/{condSeq}/status | status | field access | |
| GET | /api/field/current/hse/kpi | from, to | field access | |
| GET | /api/field/current/hse/kpi/trend | months | field access | |
| GET | /api/field/current/hse/assigned-overdue-actions | field access HSE.View | ||
| POST | /api/field/current/hse/reports | IncidentReportIntent | permission HSE.ReportIncident; field access HSE.ReportIncident, true | |
| GET | /api/field/current/hse/report-options | permission HSE.ReportIncident; field access HSE.ReportIncident, true | ||
| GET | /api/field/current/hse/workflow/closure/resolution-review | incidentId | permission HSE.ManageIncidents; field access HSE.ManageIncidents, true; permission Workflow.Approve | |
| POST | /api/field/current/hse/workflow/closure/resolve-native-history | IncidentClosureResolution | permission HSE.ManageIncidents; field access HSE.ManageIncidents, true; permission Workflow.Approve | |
| GET | /api/field/current/hse/workflow/closure/review | incidentId | permission HSE.ManageIncidents; field access HSE.ManageIncidents, true; permission Workflow.Approve | |
| POST | /api/field/current/hse/workflow/closure/complete-stage | CompanyHseClosureCommand | permission HSE.ManageIncidents; field access HSE.ManageIncidents, true; permission Workflow.Approve | |
| POST | /api/field/current/hse/workflow/closure/record-native | CompanyHseClosureRecovery | permission HSE.ManageIncidents; field access HSE.ManageIncidents, true; permission Workflow.Approve | |
| GET | /api/field/current/hse/workflow/closure/correction-review | incidentId | permission HSE.ManageIncidents; field access HSE.ManageIncidents, true; permission Workflow.Approve | |
| POST | /api/field/current/hse/workflow/closure/return-for-correction | CompanyHseCorrectionCommand | permission HSE.ManageIncidents; field access HSE.ManageIncidents, true; permission Workflow.Approve | |
| GET | /api/field/current/hse/workflow/closure/recovery | incidentId | permission HSE.ManageIncidents; field access HSE.ManageIncidents, true; permission Workflow.Approve | |
| GET | /api/field/current/hse/workflow/review | incidentId | permission HSE.ManageIncidents; field access HSE.ManageIncidents, true | |
| POST | /api/field/current/hse/workflow/start | CompanyHseWorkflowStart | permission HSE.ManageIncidents; field access HSE.ManageIncidents, true | |
| GET | /api/field/current/hse/workflow/rca/review | incidentId | permission HSE.ManageIncidents; field access HSE.ManageIncidents, true | |
| POST | /api/field/current/hse/workflow/rca/record-cause | IncidentRcaIntent | permission HSE.ManageIncidents; field access HSE.ManageIncidents, true | |
| GET | /api/field/current/hse/workflow/rca/recorded | incidentId | permission HSE.ManageIncidents; field access HSE.ManageIncidents, true | |
| GET | /api/field/current/hse/workflow/rca/shared | incidentId | permission HSE.ManageIncidents; field access HSE.ManageIncidents, true | |
| GET | /api/field/current/hse/workflow/rca/handoff-review | incidentId, intentId | permission HSE.ManageIncidents; field access HSE.ManageIncidents, true | |
| POST | /api/field/current/hse/workflow/rca/handoff | CompanyHseRcaHandoffCommand | permission HSE.ManageIncidents; field access HSE.ManageIncidents, true | |
| GET | /api/field/current/hse/workflow/rca/handoff-recovery | incidentId | permission HSE.ManageIncidents; field access HSE.ManageIncidents, true |
2. HAZOP studies and KPIs
A HAZOP study is created, nodes are added to it, deviations are added to nodes, and a deviation status can be updated. The routes are hazop, hazop/{studyId}, hazop/{studyId}/nodes and .../nodes/{nodeSeq}/deviations in the table above. HSE KPIs are read from kpi for a date range and from kpi/trend for a number of months (default 12).
3. Permit applications
Permit applications are created from a catalog of form templates, edited through commands, supported by attached documents and checked for compliance. Read routes need HSE.ViewPermits; creation review needs HSE.IssuePermit and write access.
| Method | Route | Body | Query | Access |
|---|---|---|---|---|
| GET | /api/field/current/permits/application-catalog | field access HSE.ViewPermits | ||
| GET | /api/field/current/permits | status, authority | field access HSE.ViewPermits | |
| GET | /api/field/current/permits/application | applicationId | field access HSE.ViewPermits | |
| GET | /api/field/current/permits/application-inbox | field access HSE.ViewPermits | ||
| POST | /api/field/current/permits/application-creation-review | PermitApplicationCreationProposal | field access HSE.ViewPermits; field access HSE.IssuePermit, true | |
| GET | /api/field/current/permits/application-review | applicationId | field access HSE.ViewPermits | |
| POST | /api/field/current/permits/application-command | PermitApplicationCommand | field access HSE.ViewPermits | |
| POST | /api/field/current/permits/application-command/recovery | PermitApplicationCommand | field access HSE.ViewPermits | |
| POST | /api/field/current/permits/application-document-stage | PermitDocumentStageRequest | field access HSE.ViewPermits | |
| POST | /api/field/current/permits/application-document-stage/recovery | PermitDocumentStageOriginal | field access HSE.ViewPermits | |
| POST | /api/field/current/permits/application-attachment-content | PermitAttachmentContentQuery | field access HSE.ViewPermits | |
| POST | /api/field/current/permits/application-attachment-download | PermitAttachmentContentQuery | field access HSE.ViewPermits | |
| GET | /api/field/current/permits/application-check | applicationId | field access HSE.ViewPermits |
Statuses
The status of an application is one of DRAFT, SUBMITTED, UNDER_REVIEW, ADDITIONAL_INFO_REQUIRED, APPROVED, REJECTED, WITHDRAWN, EXPIRED and RENEWED. The code allows only these moves:
| From | Allowed next statuses |
|---|---|
| DRAFT | SUBMITTED, WITHDRAWN |
| SUBMITTED | UNDER_REVIEW, APPROVED, REJECTED, ADDITIONAL_INFO_REQUIRED, WITHDRAWN |
| UNDER_REVIEW | APPROVED, REJECTED, ADDITIONAL_INFO_REQUIRED, WITHDRAWN |
| ADDITIONAL_INFO_REQUIRED | SUBMITTED, WITHDRAWN |
| APPROVED | RENEWED, EXPIRED |
| REJECTED | WITHDRAWN |
| RENEWED | APPROVED, EXPIRED |
| EXPIRED | RENEWED |
| WITHDRAWN | None |
Jurisdiction forms
The permits project ships 27 jurisdiction configuration files. Each names an authority, a country and its form templates, and each template lists a form code, an application type (DRILLING, ENVIRONMENTAL or INJECTION) and the field keys of the form. One file is a sample copy of the CNH configuration. Forms are rendered to HTML, and a separate project writes the PDF packet with wkhtmltopdf.
| Authority code | Name | Country | Application types |
|---|---|---|---|
| ANP | Brazil ANP | Brazil | DRILLING, ENVIRONMENTAL |
| AOGCC | Alaska Oil and Gas Conservation Commission | UnitedStates | DRILLING, ENVIRONMENTAL |
| ARG_MENDOZA | Argentina Mendoza | Argentina | DRILLING, ENVIRONMENTAL |
| ARG_NEUQUEN | Argentina Neuquen | Argentina | DRILLING, ENVIRONMENTAL |
| ASEA | Mexico ASEA | Mexico | ENVIRONMENTAL |
| BLM | US Bureau of Land Management | UnitedStates | DRILLING, ENVIRONMENTAL |
| CEC | California Energy Commission | UnitedStates | DRILLING, ENVIRONMENTAL |
| CNH | Mexico CNH | Mexico | DRILLING, ENVIRONMENTAL, INJECTION |
| COGCC | Colorado Oil and Gas Conservation Commission | UnitedStates | DRILLING, ENVIRONMENTAL |
| DPR | Nigeria Department of Petroleum Resources | Nigeria | DRILLING, ENVIRONMENTAL |
| EPA | US Environmental Protection Agency | UnitedStates | ENVIRONMENTAL |
| KZ_MOE | Kazakhstan Ministry of Energy | Kazakhstan | DRILLING, ENVIRONMENTAL |
| LADNR | Louisiana Department of Natural Resources | UnitedStates | DRILLING, ENVIRONMENTAL |
| NDIC | North Dakota Industrial Commission | UnitedStates | DRILLING, INJECTION |
| NLDET | Newfoundland and Labrador Department of Industry, Energy and Technology | Canada | DRILLING, ENVIRONMENTAL |
| NMOCD | New Mexico Oil Conservation Division | UnitedStates | DRILLING, ENVIRONMENTAL |
| NOPSEMA | Australia NOPSEMA | Australia | DRILLING, ENVIRONMENTAL |
| NPD | Norwegian Petroleum Directorate | Norway | DRILLING, ENVIRONMENTAL |
| NSTA | UK North Sea Transition Authority | UnitedKingdom | DRILLING, ENVIRONMENTAL |
| OCC | Oklahoma Corporation Commission | UnitedStates | DRILLING, INJECTION |
| QLD_DNRME | Queensland DNRME | Australia | DRILLING, ENVIRONMENTAL |
| SER | Saskatchewan Energy and Resources | Canada | DRILLING, ENVIRONMENTAL |
| SKKMigas | Indonesia SKK Migas | Indonesia | DRILLING, ENVIRONMENTAL |
| USACE | US Army Corps of Engineers | UnitedStates | ENVIRONMENTAL |
| WA_DMIRS | Western Australia DMIRS | Australia | DRILLING, ENVIRONMENTAL |
| WOGCC | Wyoming Oil and Gas Conservation Commission | UnitedStates | DRILLING, ENVIRONMENTAL |
4. Compliance obligations
Compliance obligations are dated duties recorded for the field. They can be listed, listed as upcoming or overdue, read, created, submitted, waived and paid. A score card is calculated for a year.
| Method | Route | Body | Query | Access |
|---|---|---|---|---|
| GET | /api/field/current/compliance/obligations | year | field access | |
| GET | /api/field/current/compliance/obligations/upcoming | daysAhead | field access | |
| GET | /api/field/current/compliance/obligations/overdue | field access | ||
| GET | /api/field/current/compliance/obligations/{obligationId} | field access | ||
| POST | /api/field/current/compliance/obligations | CreateObligationRequest | field access | |
| POST | /api/field/current/compliance/obligations/{obligationId}/submit | submitDate | field access | |
| POST | /api/field/current/compliance/obligations/{obligationId}/waive | reason | field access | |
| POST | /api/field/current/compliance/obligations/{obligationId}/payment | RecordPaymentRequest | field access | |
| GET | /api/field/current/compliance/score | year | field access | |
| POST | /api/field/current/compliance/royalty/usa | year, month | field access | |
| POST | /api/field/current/compliance/royalty/canada | year, quarter | field access | |
| GET | /api/field/current/compliance/royalty/variance | year | field access | |
| POST | /api/field/current/compliance/ghg/report | year, jurisdiction | field access | |
| GET | /api/field/current/compliance/ghg/total | year, jurisdiction | field access | |
| GET | /api/field/current/compliance/obligation-creation/options | field access Regulatory.ManageFilings | ||
| POST | /api/field/current/compliance/obligation-creation | CreateFieldObligation | field access Regulatory.ManageFilings | |
| GET | /api/field/current/compliance/ghg/production-sources | GhgDispositionQuery | field access Regulatory.ViewCompliance | |
| GET | /api/field/current/compliance/ghg/production-sources/calculation-basis | field access Regulatory.ViewCompliance | ||
| POST | /api/field/current/compliance/ghg/production-sources/calculation-check | GhgArithmeticRequest | field access Regulatory.ViewCompliance | |
| GET | /api/field/current/compliance/recorded-obligations | field access Regulatory.ViewCompliance |
POST royalty/usa takes a year and month and POST royalty/canada takes a year and quarter. The Canada route calls the Alberta Crown royalty calculation. GET royalty/variance returns the variance history for a year.
GHG reporting depends on verified data.
POST ghg/reportandGET ghg/totalneed ajurisdictionand answer 400 without it. When the report cannot be produced they answer 503 with the text "GHG reporting requires verified company-scoped activity data and emission factors." The web application has a GHG factor setup page (/setup/ghg-factors) and a GHG report page (/ppdm39/compliance/ghg).
5. Web pages
| Page | Route |
|---|---|
| HSE workspace | /hse/dashboard, /ppdm39/hse, /lifecycle/hse/dashboard |
| HSE Incidents | /hse/incidents |
| Corrective action plan | /hse/incidents/corrective-plan |
| Incident investigator | /hse/incidents/investigator |
| Manage HSE Incidents and incident detail | /ppdm39/hse/incidents, /ppdm39/hse/incident-detail |
| HAZOP Study | /ppdm39/hse/hazop/{StudyId} |
| Compliance calendar | /hse/compliance |
| Compliance dashboard | /ppdm39/compliance, /compliance/dashboard |
| Recorded compliance obligations, one obligation, record a FIELD obligation | /ppdm39/compliance/obligations, /ppdm39/compliance/obligation/{ObligationId}, /ppdm39/compliance/obligations/new |
| Start compliance report process | /ppdm39/compliance/report |
| GHG reporting and GHG factor setup | /ppdm39/compliance/ghg, /setup/ghg-factors |
| Permit applications, new application, recorded application | /ppdm39/permits, /ppdm39/permits/new, /ppdm39/permits/detail |