gta6/prompts
medical
Vaultadvancedmedical

Electronic Health Records — Patient History Database

ESX/QB persistent per-citizen medical record (allergies, history, blood type) queried at a hospital terminal with the database owned server-side.

NON-TESTÉ — the reference Lua is syntax-validated, not run in a live FiveM server. Adapt and test on your own dev server before shipping.
Est. Lua
~85 loc
Claude
Claude Opus 4.x / Sonnet 4.x
Validation
syntax-validated
Updated
2026-06-25

Description

An advanced electronic health records system for ESX or QB servers: every citizen has a persistent chart — blood type, allergies, treatment history — queried at a hospital terminal and owned entirely server-side. Servers sell it as the medical counterpart to the police MDT, giving EMS real continuity of care across sessions instead of an amnesiac respawn.

Prompt Template

You are writing a FiveM resource for esextended (stable, exports getSharedObject).

🔒 Eyes-only — locked prompt body

The full prompt template and its reference Lua are part of a one-time pack. Pick your depth — both are lifetime access, no subscription, ever.

Core$49one-time
  • 60 prompts + syntax-validated reference Lua
  • Lifetime access — pay once
Most Popular · Best Value
Vault$199one-time
  • All 510 prompts — the full library
  • Per-prompt profit/trend intelligence (CSV + playbook)
  • Lifetime free updates — new niches as the market moves
Get the Vault — $199

$49 for 60 · $199 for all 510 + intelligence — one-time, no subscription.

Expected Output

The reference Lua lives at content/expected-outputs/medical/14-ehr-patient-records.lua. It implements a server-owned records store keyed by citizen id, a fetch round-trip that returns a chart only to…

🔒 Eyes-only — locked prompt body

The full prompt template and its reference Lua are part of a one-time pack. Pick your depth — both are lifetime access, no subscription, ever.

Core$49one-time
  • 60 prompts + syntax-validated reference Lua
  • Lifetime access — pay once
Most Popular · Best Value
Vault$199one-time
  • All 510 prompts — the full library
  • Per-prompt profit/trend intelligence (CSV + playbook)
  • Lifetime free updates — new niches as the market moves
Get the Vault — $199

$49 for 60 · $199 for all 510 + intelligence — one-time, no subscription.

Known Failure Modes & Corrective Prompt

  • Client-held database — Claude caches charts on the client where anyone can read or edit them; keep the store server-side and only return a row to the requesting terminal.
  • Unvalidated notes — an append with no checks lets a crafted event inject a huge string; validate type and length server-side first.
  • One-sided net eventmedical:ehr:show on only one side means the chart never renders on restart; both sides use RegisterNetEvent + AddEventHandler.

Corrective re-prompt: "Keep the entire records table in server.lua keyed by citizen id, never send the full table to clients — only the single requested chart — and reject any note in medical:ehr:addNote that is not a string of 1-200 characters before appending."

Framework Integration

  • ESX: local ESX = exports['es_extended']:getSharedObject(); key records on xPlayer.identifier and persist with oxmysql.
  • QBCore: local QBCore = exports['qb-core']:GetCoreObject(); key on Player.PlayerData.citizenid and gate the terminal to the ambulance job.
  • QBox: use exports.qbx_core:GetPlayer(src) and the same citizenid key.

Profit Potential

$250–$3500/mo on Tebex (expected ~$900). [INFERRED] within the $50-389 script band against the signal-scraper tebex_snapshot corpus (n=100, median seller $11.85K/mo), lifted for a rising MDT-analogue niche.

Trend Signal

rising — corpus: Records-computer pattern proven by ox_mdt (named corpus exemplar); rising as the medical EHR analogue of the police MDT.

Sales Angle

Position as the medical MDT — persistent charts hand EMS the same record-keeping authority police already have, and continuity of care is a premium-server differentiator. Recommended Tebex price $249.

Difficulty & Ship Time

advanced · ships in 1-2 days.