/obj/machinery/computer/med_data//TODO:SANITY
name = "medical records console"
desc = "This can be used to check medical records."
icon_screen = "medcomp"
icon_keyboard = "med_key"
req_one_access = list(ACCESS_MEDICAL, ACCESS_FORENSICS_LOCKERS)
circuit = /obj/item/circuitboard/computer/med_data
light_color = LIGHT_COLOR_BLUE
var/rank = null
var/screen = null
var/datum/data/record/active1
var/datum/data/record/active2
var/temp = null
var/printing = null
//Sorting Variables
var/sortBy = "name"
var/order = 1 // -1 = Descending - 1 = Ascending
/obj/machinery/computer/med_data/syndie
icon_keyboard = "syndie_key"
/obj/machinery/computer/med_data/ui_interact(mob/user)
. = ..()
/* - SKYRAT EDIT REMOVAL - AESTHETICS
if(isliving(user))
playsound(src, 'sound/machines/terminal_prompt_confirm.ogg', 50, FALSE)
*/
var/dat
if(temp)
dat = text("[temp]
Clear Screen")
else
if(authenticated)
switch(screen)
if(1)
dat += {"
Search Records
List Records
Virus Database
Medbot Tracking
Record Maintenance
{Log Out}
"}
if(2)
dat += {"
| Records: |
|---|
| Name | ID | Fingerprints (F) | DNA UE (D) | Blood Type | Physical Status | Mental Status |
|---|---|---|---|---|---|
| [] | ", background, R.fields["id"], R.fields["name"]) dat += text("[] | ", R.fields["id"]) dat += text("F: [] D: [] | ", R.fields["fingerprint"], b_dna)
dat += text("[] | ", blood_type) dat += text("[] | ", R.fields["p_stat"]) dat += text("[] |
| Medical Record | |||
| Name: | [active1.fields["name"]] | " dat += "||
| ID: | [active1.fields["id"]] | ||
| Gender: | [active1.fields["gender"]] | ||
| Age: | [active1.fields["age"]] | ||
| Species: | [active1.fields["species"]] | ||
| Fingerprint: | [active1.fields["fingerprint"]] | ||
| Physical Status: | [active1.fields["p_stat"]] | ||
| Mental Status: | [active1.fields["m_stat"]] | ||
| General Record Lost! | |||
Medical Data | |||
| Blood Type: | [active2.fields["blood_type"]] | ||
| DNA: | [active2.fields["b_dna"]] | ||
Minor Disabilities: | [active2.fields["mi_dis"]] | ||
| Details: | [active2.fields["mi_dis_d"]] | ||
Major Disabilities: | [active2.fields["ma_dis"]] | ||
| Details: | [active2.fields["ma_dis_d"]] | ||
Current Diseases: | [active2.fields["cdi"]] | ||
| Details: | [active2.fields["cdi_d"]] | ||
Important Notes: | [active2.fields["notes"]] | ||
Notes Cont'd: | [active2.fields["notes_d"]] | ||
Comments/Log | |||
| [active2.fields[text("com_[]", counter)]] | |||
| Delete Entry | |||
| Add Entry | |||
Delete Record (Medical Only) | |||
| Medical Record Lost! | |||
New Record | |||
| Print Record | |||
| Back |