Technical Staff Management
Manage technical passes (pases técnicos) and vaccination records for technical staff members. These endpoints allow creating, updating, and deleting pass credentials and vaccination certificates required for field operations.Create or Update Technical Pass
Request Body
ID of the technical staff member
Block/company pass type. Valid options:
petroecuador- Tarjeta de Petroecuadorshaya- Shayaconsorcio_shushufindi- Consorcio Shushufindienap_sipec- ENAP SIPECorion- Tarjeta Orionandes_petroleum- Andes Petroleumpardalis_services- Pardalis Servicesfrontera_energy- Frontera Energygran_tierra- Gran Tierrapcr- PCRhalliburton- Halliburtongente_oil- Gente Oiltribiol_gas- Tribiol Gasadico- Adicocuyaveno_petro- Cuyaveno Petrogeopark- Geopark
Expiration date in YYYY-MM-DD format
Pass ID (required only for PUT requests)
Response
Indicates if the operation was successful
Human-readable message about the operation
Create or Update Vaccination Record
Request Body
ID of the technical staff member
Type of vaccine. Valid options:
HEPATITIS_A_B- Hepatitis A y BTETANUS- TétanosTYPHOID- TifoideaYELLOW_FEVER- Fiebre AmarillaINFLUENZA- InfluenzaMEASLES- SarampiónCOVID- Covid-19OTHER- Otra
Date vaccine was administered (YYYY-MM-DD)
Vaccine batch/lot number
Dose number (e.g., 1, 2, 3) if part of a series
Estimated date for next dose (YYYY-MM-DD)
Additional notes or observations
Vaccination record ID (required only for PUT requests)
Response
Indicates if the operation was successful
Human-readable message about the operation
The created or updated vaccination record
Vaccination record ID
Associated technical staff ID
Vaccine type code
Human-readable vaccine type name
Vaccine batch number
Date administered (YYYY-MM-DD)
Dose number in series
Next dose date (YYYY-MM-DD)
Additional notes
Delete Technical Pass
Request Body
Pass ID to delete (for single deletion with DELETE method)
Array of pass IDs to delete (for bulk deletion with POST method)
Response
Indicates if the operation was successful
Human-readable message about the operation
Delete Vaccination Record
Request Body
Vaccination record ID to delete (for single deletion)
Array of vaccination record IDs to delete (for bulk deletion)
Response
Indicates if the operation was successful
Human-readable message about the operation
Models
PassTechnical Model
The PassTechnical model represents access passes for technical staff to work in specific oil blocks or facilities. Fields:id(integer) - Primary keytechnical(foreign key) - Reference to Technical staff memberbloque(string) - Block/company identifier (max 32 chars)fecha_caducidad(date) - Expiration datepass_file(file) - PDF file of the pass documentis_active(boolean) - Soft delete flagcreated_at(datetime) - Creation timestampupdated_at(datetime) - Last update timestamp
get_by_technical(technical_id)- Retrieve pass for a specific technical staff member
VaccinationRecord Model
The VaccinationRecord model tracks vaccination history for technical staff members. Fields:id(integer) - Primary keytechnical(foreign key) - Reference to Technical staff membervaccine_type(string) - Type of vaccine (max 50 chars)batch_number(string) - Vaccine batch/lot number (max 50 chars)application_date(date) - Date vaccine was administereddose_number(integer) - Dose number in series (e.g., 1, 2, 3)next_dose_date(date) - Estimated date for next dosenotes(text) - Additional notesvaccine_file(file) - PDF file of vaccination certificateis_active(boolean) - Soft delete flagcreated_at(datetime) - Creation timestampupdated_at(datetime) - Last update timestamp
days_to_next_dose- Calculated days remaining until next dosenext_dose- Returns the next dose date
get_all_by_technical(technical_id)- Retrieve all active vaccination records for a technical staff member, ordered by application date (descending)