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).
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.
- 60 prompts + syntax-validated reference Lua
- Lifetime access — pay once
- All 510 prompts — the full library
- Per-prompt profit/trend intelligence (CSV + playbook)
- Lifetime free updates — new niches as the market moves
$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…
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.
- 60 prompts + syntax-validated reference Lua
- Lifetime access — pay once
- All 510 prompts — the full library
- Per-prompt profit/trend intelligence (CSV + playbook)
- Lifetime free updates — new niches as the market moves
$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 event —
medical:ehr:showon only one side means the chart never renders on restart; both sides useRegisterNetEvent+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 onxPlayer.identifierand persist with oxmysql. - QBCore:
local QBCore = exports['qb-core']:GetCoreObject(); key onPlayer.PlayerData.citizenidand gate the terminal to the ambulance job. - QBox: use
exports.qbx_core:GetPlayer(src)and the samecitizenidkey.
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.