Military health

Search military medical records, rank imaging for a clinician to review, and plan beds and staff in military hospitals.

Updated CompTech Team

Military hospitals carry a service's medical history in systems built for billing and filing, not for questions. A clinician looking for "this soldier's last reaction to this drug" clicks through encounters. A radiologist's worklist is the order in which scans arrived, not the order in which a person should look at them. The bed state is a phone call to each ward.

This lab searches the records the clinician is allowed to see, ranks imaging for review, and drafts a bed and staff picture. It does not diagnose, it does not prescribe, and it does not admit a patient. A clinician does those things in the clinical system and signs them. The principles apply, with one addition: health data is governed by clinical confidentiality as well as by military clearance.

Search the record

The corpus is the longitudinal record: encounters, notes, labs, medication lists, imaging reports. In the lab, use synthetic notes or a de-identified teaching set, never a live extract on a laptop. Parsing and chunking follow the RAG lab. Chunk on the encounter, and keep the encounter id, the author, the time and the patient id as metadata.

Access is not a single clearance. A clinician sees a patient they are treating or a record their role allows. The filter is the patient's treating relationship, enforced in the query from the identity token, the same way the records lab enforces clearance. A question does not widen it. Break-glass access, when policy allows it, is a separate audited role with an expiry, not a prompt.

Answers cite the encounter. "No entry in the retrieved record" is a valid and expected answer. The model must not supply a drug dose, a differential or a history from anywhere except the retrieved notes. Guardrails from the NeMo Guardrails lab should refuse prescribing questions outright and point the user back to the clinical system.

Bangla and English both appear in notes. Test OCR and embeddings on handwritten Bangla abbreviations before you believe a retrieval score. The original note image opens next to the citation, as in the archive lab.

A worklist, not a finding

For imaging, a model may rank the unscored queue so that scans with features the radiologist has asked to see sooner are near the top. The rank is a sort key on the existing worklist. The radiologist opens the scan in the imaging system, reads it, and writes the report there. The model does not write a finding into the record, and it does not hide a scan: everything still on the queue remains visible, only the order changes.

Judge a ranker on a retrospective set the radiology lead labels: of the scans they say should have been read first, how many did the ranker place in the first portion of the list, compared with arrival order? Use your own set. Do not import a sensitivity number from a paper about a different scanner and a different disease. A ranker that cannot beat arrival order on that set does not ship.

Store the model version on the worklist audit row, with the patient id and the radiologist who read it. That is the record you will want if a ranking is ever questioned.

Beds and staff

The bed picture is a table, not a language problem. From the hospital system, take each ward's beds, how many are occupied, how many are staffed, and the expected discharges and admissions already on the board. A small forecast — expected occupancy over the next day or two, from that board plus the recent arrival rate — is enough to show a matron where the gap is. Present the inputs beside the number so a bad census is obvious.

select ward,
       beds,
       occupied,
       staffed_beds,
       expected_admissions,
       expected_discharges
from bed_state
where hospital = :hospital;

Staff planning uses the same table plus who is on the roster. The draft might say which ward falls short of its staffed-bed number if the expected admissions arrive. A matron confirms before any roster changes. The assistant does not message staff and does not move a patient.

During a disaster response, this picture is an input to the relief picture, still with clinical access controls. A logistics user sees capacity numbers the hospital agrees to release, not the record of who is in the bed.

Synthetic notes, real controls

Build the first index from synthetic encounters or a teaching set that contains no real patient. The controls are what you are proving.

  1. Two patients, two clinicians. Clinician A asks about patient B and receives no encounter text. The audit row records the refusal.
  2. Clinician A asks about their own patient. The answer cites the encounter id. A question about a drug that is not in the notes returns "no entry", not a dose.
  3. A prescribing question is refused by the guardrail before retrieval.
  4. Ten synthetic scans, three of which a radiologist has marked "read first". The ranker puts those three ahead of arrival order, or it does not ship. Every scan remains on the list.
  5. The bed query returns the census table with admissions and discharges visible beside any forecast. A matron can see a bad input without asking you to read the SQL.

Break-glass, if you implement it, is a role with an expiry and an audit row that names the patient and the reason code. It is not a checkbox in the prompt.

Only after those five pass do you discuss a de-identified extract from the hospital system, on the sovereign platform, with the hospital's information governance in the room. The laptop workbench is not that discussion.

Fields the clinician actually needs

Keep the chunk metadata small and clinical. Extra fields become extra ways to leak.

  • patient_id and encounter_id, so the citation opens the note.
  • author and authored_at, so a later note is not buried under an older one.
  • doc_type: note, lab, medication list, imaging report.
  • language, because Bangla abbreviations will not survive a parser you only tested in English.
  • The treating relationship used for the filter, taken from the token and the hospital system's care list, not from the question.

Do not store a model's rank score inside the legal record. The score can sit on the worklist audit row with the model version. The finding, when there is one, is the radiologist's report in the imaging system. Bed numbers shown to a logistics user during a disaster are the capacity figures the hospital agreed to release, with no patient id attached.

Confidentiality beside clearance

Military clearance is not a substitute for clinical access.

  • A logistics account never receives a patient id, even during a disaster. It receives the capacity numbers the hospital released.
  • A clinician's filter is the care relationship, re-read from the hospital system, not cached for a week in the notebook.
  • Break-glass expires, and the reason code is mandatory.
  • The worklist rank is not written into the imaging report.
  • Synthetic data is the only data on a laptop. A live extract lives on the sovereign platform or it does not live in this lab.

What's next

  1. Records and archives: the clearance-style filter, applied here to treating relationships.
  2. Disaster response: where hospital capacity meets the relief routes.
  3. Principles and safeguards: audit and human decision, restated for clinical data.