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-options returns the choices for the report form and POST reports records an incident. Both need HSE.ReportIncident and 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 transition and its tier can be changed with PUT incidents/{incidentId}/tier.
  • Investigator. A review route shows who can be assigned and PUT incident/investigator assigns the investigator.
  • Causes and barriers. Causes are listed and added, and rca-complete says 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.ManageIncidents and write access.
  • Closure. The workflow routes under /hse/workflow hold 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-actions needs HSE.View.
MethodRouteBodyQueryAccess
GET/api/field/current/hse/incidentsfrom, tofield access
GET/api/field/current/hse/incidentincidentIdfield access
POST/api/field/current/hse/incidents/{incidentId}/transitionTransitionIncidentRequestfield access
PUT/api/field/current/hse/incidents/{incidentId}/tiertierfield access
GET/api/field/current/hse/incident/investigator-reviewincidentIdfield access
PUT/api/field/current/hse/incident/investigatorAssignIncidentInvestigatorRequestincidentIdfield access
GET/api/field/current/hse/incident/causesincidentIdfield access
POST/api/field/current/hse/incidents/{incidentId}/causesAddCauseRequestfield access
GET/api/field/current/hse/incidents/{incidentId}/rca-completefield access
GET/api/field/current/hse/incidents/{incidentId}/barriersfield access
POST/api/field/current/hse/incidents/{incidentId}/barriersAddBarrierRequestfield access
PUT/api/field/current/hse/incidents/{incidentId}/barriers/{equipId}/statusstatusfield access
GET/api/field/current/hse/incidents/{incidentId}/barriers/summaryfield access
GET/api/field/current/hse/incident/casincidentIdfield access
GET/api/field/current/hse/incident/ca-plan-reviewincidentIdfield access
GET/api/field/current/hse/incident/ca-planincidentIdfield access
POST/api/field/current/hse/incident/ca-planCreateCAPlanSubmissionincidentIdfield access
GET/api/field/current/hse/incidents/{incidentId}/restrictions/reviewfield access
POST/api/field/current/hse/incidents/{incidentId}/casAddCASubmissionfield access; permission HSE.ManageIncidents; field access HSE.ManageIncidents, true
GET/api/field/current/hse/incidents/{incidentId}/cas/optionsfield access; permission HSE.ManageIncidents; field access HSE.ManageIncidents, true
PUT/api/field/current/hse/incidents/{incidentId}/cas/{stepSeq}/responsibleAssignCorrectiveActionResponsibleRequestfield access
GET/api/field/current/hse/incidents/{incidentId}/cas/verification-reviewfield access; permission HSE.ManageIncidents; field access HSE.ManageIncidents, true
POST/api/field/current/hse/incidents/{incidentId}/cas/verification-decisionCAVerificationDecisionfield access; permission HSE.ManageIncidents; field access HSE.ManageIncidents, true
GET/api/field/current/hse/incidents/{incidentId}/closure-reviewfield access; permission HSE.ManageIncidents; field access HSE.ManageIncidents, true
GET/api/field/current/hse/incidents/{incidentId}/cas/{stepSeq}/completion-reviewfield access; permission HSE.ManageIncidents; field access HSE.ManageIncidents, true
POST/api/field/current/hse/incidents/{incidentId}/cas/{stepSeq}/completeCompleteCASubmissionfield access; permission HSE.ManageIncidents; field access HSE.ManageIncidents, true
GET/api/field/current/hse/hazopfield access
POST/api/field/current/hse/hazopCreateHAZOPStudyRequestfield access
GET/api/field/current/hse/hazop/{studyId}field access
GET/api/field/current/hse/hazop/{studyId}/nodesfield access
POST/api/field/current/hse/hazop/{studyId}/nodesAddNodeRequestfield access
POST/api/field/current/hse/hazop/{studyId}/nodes/{nodeSeq}/deviationsAddDeviationRequestfield access
PUT/api/field/current/hse/hazop/{studyId}/nodes/{nodeSeq}/deviations/{condSeq}/statusstatusfield access
GET/api/field/current/hse/kpifrom, tofield access
GET/api/field/current/hse/kpi/trendmonthsfield access
GET/api/field/current/hse/assigned-overdue-actionsfield access HSE.View
POST/api/field/current/hse/reportsIncidentReportIntentpermission HSE.ReportIncident; field access HSE.ReportIncident, true
GET/api/field/current/hse/report-optionspermission HSE.ReportIncident; field access HSE.ReportIncident, true
GET/api/field/current/hse/workflow/closure/resolution-reviewincidentIdpermission HSE.ManageIncidents; field access HSE.ManageIncidents, true; permission Workflow.Approve
POST/api/field/current/hse/workflow/closure/resolve-native-historyIncidentClosureResolutionpermission HSE.ManageIncidents; field access HSE.ManageIncidents, true; permission Workflow.Approve
GET/api/field/current/hse/workflow/closure/reviewincidentIdpermission HSE.ManageIncidents; field access HSE.ManageIncidents, true; permission Workflow.Approve
POST/api/field/current/hse/workflow/closure/complete-stageCompanyHseClosureCommandpermission HSE.ManageIncidents; field access HSE.ManageIncidents, true; permission Workflow.Approve
POST/api/field/current/hse/workflow/closure/record-nativeCompanyHseClosureRecoverypermission HSE.ManageIncidents; field access HSE.ManageIncidents, true; permission Workflow.Approve
GET/api/field/current/hse/workflow/closure/correction-reviewincidentIdpermission HSE.ManageIncidents; field access HSE.ManageIncidents, true; permission Workflow.Approve
POST/api/field/current/hse/workflow/closure/return-for-correctionCompanyHseCorrectionCommandpermission HSE.ManageIncidents; field access HSE.ManageIncidents, true; permission Workflow.Approve
GET/api/field/current/hse/workflow/closure/recoveryincidentIdpermission HSE.ManageIncidents; field access HSE.ManageIncidents, true; permission Workflow.Approve
GET/api/field/current/hse/workflow/reviewincidentIdpermission HSE.ManageIncidents; field access HSE.ManageIncidents, true
POST/api/field/current/hse/workflow/startCompanyHseWorkflowStartpermission HSE.ManageIncidents; field access HSE.ManageIncidents, true
GET/api/field/current/hse/workflow/rca/reviewincidentIdpermission HSE.ManageIncidents; field access HSE.ManageIncidents, true
POST/api/field/current/hse/workflow/rca/record-causeIncidentRcaIntentpermission HSE.ManageIncidents; field access HSE.ManageIncidents, true
GET/api/field/current/hse/workflow/rca/recordedincidentIdpermission HSE.ManageIncidents; field access HSE.ManageIncidents, true
GET/api/field/current/hse/workflow/rca/sharedincidentIdpermission HSE.ManageIncidents; field access HSE.ManageIncidents, true
GET/api/field/current/hse/workflow/rca/handoff-reviewincidentId, intentIdpermission HSE.ManageIncidents; field access HSE.ManageIncidents, true
POST/api/field/current/hse/workflow/rca/handoffCompanyHseRcaHandoffCommandpermission HSE.ManageIncidents; field access HSE.ManageIncidents, true
GET/api/field/current/hse/workflow/rca/handoff-recoveryincidentIdpermission 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.

MethodRouteBodyQueryAccess
GET/api/field/current/permits/application-catalogfield access HSE.ViewPermits
GET/api/field/current/permitsstatus, authorityfield access HSE.ViewPermits
GET/api/field/current/permits/applicationapplicationIdfield access HSE.ViewPermits
GET/api/field/current/permits/application-inboxfield access HSE.ViewPermits
POST/api/field/current/permits/application-creation-reviewPermitApplicationCreationProposalfield access HSE.ViewPermits; field access HSE.IssuePermit, true
GET/api/field/current/permits/application-reviewapplicationIdfield access HSE.ViewPermits
POST/api/field/current/permits/application-commandPermitApplicationCommandfield access HSE.ViewPermits
POST/api/field/current/permits/application-command/recoveryPermitApplicationCommandfield access HSE.ViewPermits
POST/api/field/current/permits/application-document-stagePermitDocumentStageRequestfield access HSE.ViewPermits
POST/api/field/current/permits/application-document-stage/recoveryPermitDocumentStageOriginalfield access HSE.ViewPermits
POST/api/field/current/permits/application-attachment-contentPermitAttachmentContentQueryfield access HSE.ViewPermits
POST/api/field/current/permits/application-attachment-downloadPermitAttachmentContentQueryfield access HSE.ViewPermits
GET/api/field/current/permits/application-checkapplicationIdfield 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:

FromAllowed next statuses
DRAFTSUBMITTED, WITHDRAWN
SUBMITTEDUNDER_REVIEW, APPROVED, REJECTED, ADDITIONAL_INFO_REQUIRED, WITHDRAWN
UNDER_REVIEWAPPROVED, REJECTED, ADDITIONAL_INFO_REQUIRED, WITHDRAWN
ADDITIONAL_INFO_REQUIREDSUBMITTED, WITHDRAWN
APPROVEDRENEWED, EXPIRED
REJECTEDWITHDRAWN
RENEWEDAPPROVED, EXPIRED
EXPIREDRENEWED
WITHDRAWNNone

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 codeNameCountryApplication types
ANPBrazil ANPBrazilDRILLING, ENVIRONMENTAL
AOGCCAlaska Oil and Gas Conservation CommissionUnitedStatesDRILLING, ENVIRONMENTAL
ARG_MENDOZAArgentina MendozaArgentinaDRILLING, ENVIRONMENTAL
ARG_NEUQUENArgentina NeuquenArgentinaDRILLING, ENVIRONMENTAL
ASEAMexico ASEAMexicoENVIRONMENTAL
BLMUS Bureau of Land ManagementUnitedStatesDRILLING, ENVIRONMENTAL
CECCalifornia Energy CommissionUnitedStatesDRILLING, ENVIRONMENTAL
CNHMexico CNHMexicoDRILLING, ENVIRONMENTAL, INJECTION
COGCCColorado Oil and Gas Conservation CommissionUnitedStatesDRILLING, ENVIRONMENTAL
DPRNigeria Department of Petroleum ResourcesNigeriaDRILLING, ENVIRONMENTAL
EPAUS Environmental Protection AgencyUnitedStatesENVIRONMENTAL
KZ_MOEKazakhstan Ministry of EnergyKazakhstanDRILLING, ENVIRONMENTAL
LADNRLouisiana Department of Natural ResourcesUnitedStatesDRILLING, ENVIRONMENTAL
NDICNorth Dakota Industrial CommissionUnitedStatesDRILLING, INJECTION
NLDETNewfoundland and Labrador Department of Industry, Energy and TechnologyCanadaDRILLING, ENVIRONMENTAL
NMOCDNew Mexico Oil Conservation DivisionUnitedStatesDRILLING, ENVIRONMENTAL
NOPSEMAAustralia NOPSEMAAustraliaDRILLING, ENVIRONMENTAL
NPDNorwegian Petroleum DirectorateNorwayDRILLING, ENVIRONMENTAL
NSTAUK North Sea Transition AuthorityUnitedKingdomDRILLING, ENVIRONMENTAL
OCCOklahoma Corporation CommissionUnitedStatesDRILLING, INJECTION
QLD_DNRMEQueensland DNRMEAustraliaDRILLING, ENVIRONMENTAL
SERSaskatchewan Energy and ResourcesCanadaDRILLING, ENVIRONMENTAL
SKKMigasIndonesia SKK MigasIndonesiaDRILLING, ENVIRONMENTAL
USACEUS Army Corps of EngineersUnitedStatesENVIRONMENTAL
WA_DMIRSWestern Australia DMIRSAustraliaDRILLING, ENVIRONMENTAL
WOGCCWyoming Oil and Gas Conservation CommissionUnitedStatesDRILLING, 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.

MethodRouteBodyQueryAccess
GET/api/field/current/compliance/obligationsyearfield access
GET/api/field/current/compliance/obligations/upcomingdaysAheadfield access
GET/api/field/current/compliance/obligations/overduefield access
GET/api/field/current/compliance/obligations/{obligationId}field access
POST/api/field/current/compliance/obligationsCreateObligationRequestfield access
POST/api/field/current/compliance/obligations/{obligationId}/submitsubmitDatefield access
POST/api/field/current/compliance/obligations/{obligationId}/waivereasonfield access
POST/api/field/current/compliance/obligations/{obligationId}/paymentRecordPaymentRequestfield access
GET/api/field/current/compliance/scoreyearfield access
POST/api/field/current/compliance/royalty/usayear, monthfield access
POST/api/field/current/compliance/royalty/canadayear, quarterfield access
GET/api/field/current/compliance/royalty/varianceyearfield access
POST/api/field/current/compliance/ghg/reportyear, jurisdictionfield access
GET/api/field/current/compliance/ghg/totalyear, jurisdictionfield access
GET/api/field/current/compliance/obligation-creation/optionsfield access Regulatory.ManageFilings
POST/api/field/current/compliance/obligation-creationCreateFieldObligationfield access Regulatory.ManageFilings
GET/api/field/current/compliance/ghg/production-sourcesGhgDispositionQueryfield access Regulatory.ViewCompliance
GET/api/field/current/compliance/ghg/production-sources/calculation-basisfield access Regulatory.ViewCompliance
POST/api/field/current/compliance/ghg/production-sources/calculation-checkGhgArithmeticRequestfield access Regulatory.ViewCompliance
GET/api/field/current/compliance/recorded-obligationsfield 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/report and GET ghg/total need a jurisdiction and 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

PageRoute
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