110 lines · 7.8 KB · JSONRaw
{ "format_version": 1, "id": "health.layouts", "purpose": "How a lab report's PDF is laid out, as data: the words its result table's column heads print, the labels of its header fields, the words of its report status, the lines that start an interpretive paragraph and the lines that are page furniture. The reader tries each layout in order and takes the first whose table head it finds; the last is the generic one, any table with a name, a result and a unit or a range. A second lab is a new entry here, ahead of the generic one.", "layouts": [ { "id": "five_column", "name": "Test Name, Result, Unit, Bio. Ref. Interval, Method", "columns": { "name": ["Test Name"], "result": ["Result"], "unit": ["Unit"], "range": ["Bio. Ref. Interval", "Bio Ref Interval", "Bio. Ref Interval", "Bio Ref.Interval", "Bio. Ref. Range", "Bio Ref Range", "Biological Ref. Interval", "Biological Reference Interval"], "method": ["Method"] }, "needs": ["name", "result", "unit", "range"] }, { "id": "status_head", "name": "Test Report Status (with the status beside it), Results, Biological Reference Interval, Units", "columns": { "name": ["Test Report Status"], "result": ["Results", "Result"], "range": ["Biological Reference Interval", "Bio. Ref. Interval"], "unit": ["Units", "Unit"] }, "needs": ["name", "result", "range", "unit"], "head_words": ["Final", "Partial", "Preliminary", "Provisional", "Interim"], "left_of_heads": true }, { "id": "methodology_flag", "name": "Test Name (Methodology), Result (or In Range and Out of Range), Flag, Units, Biological Reference Interval over two lines", "columns": { "name": ["Test Name (Methodology)"], "result": ["Result", "In Range", "Out of Range"], "flag": ["Flag"], "unit": ["Units", "UOM", "Unit"], "range": ["Biological Reference", "Biological Reference Interval"] }, "needs": ["name", "result", "range"], "split": ["result"] }, { "id": "method_second", "name": "Test Name, Method, Results, Ref.Range, Units (each interval printed well left of its head)", "columns": { "name": ["Test Name"], "method": ["Method"], "result": ["Results"], "range": ["Ref.Range", "Ref. Range", "Reference Range"], "unit": ["Units"] }, "needs": ["name", "method", "result", "range", "unit"], "left_of_heads": true }, { "id": "observed_values", "name": "Test Name, Observed Values, Units, Biological Reference Intervals (a Sample Type on every page that names the order's last sample)", "columns": { "name": ["Test Name"], "result": ["Observed Values", "Observed Value"], "unit": ["Units", "Unit"], "range": ["Biological Reference Intervals", "Biological Reference Interval"] }, "needs": ["name", "result", "unit", "range"], "ignore_fields": ["sample_type"], "left_of_heads": true }, { "id": "generic", "name": "Any table with a name, a result and a unit or a range", "columns": { "name": ["Test Name", "Test", "Tests", "Test Description", "Investigation", "Investigations", "Parameter", "Parameters", "Test Parameter", "Examination", "Description", "Analyte"], "result": ["Result", "Results", "Value", "Observed Value", "Observed Values", "Result Value", "Your Value", "Patient Value"], "unit": ["Unit", "Units", "UOM"], "range": ["Bio. Ref. Interval", "Biological Reference Interval", "Biological Ref. Interval", "Bio. Ref. Range", "Reference Range", "Reference Ranges", "Ref. Range", "Ref Range", "Normal Range", "Normal Values", "Reference Interval", "Reference Value", "Reference Values", "Expected Values", "Biological Reference Range", "Biological Reference Ranges", "Bio Ref.Interval", "Bio. Ref. Range", "Biological Reference Intervals", "Bio. Ref. Intervals"], "method": ["Method", "Methodology", "Technology"], "flag": ["Flag", "Status"], "specimen": ["Specimen", "Sample Type"] }, "needs": ["name", "result"], "needs_one_of": ["unit", "range"] } ], "fields": { "name": ["Customer Name", "Patient Name", "Name", "Patient", "Patient's Name", "Name of Patient", "Patient Information"], "age_sex": ["Age/Gender", "Age / Gender", "Age/Sex", "Age / Sex", "Age & Gender", "Age & Sex", "Sex/Age", "Gender/Age", "Age-Gender"], "age": ["Age"], "sex": ["Gender", "Sex"], "dob": ["DOB", "Date of Birth", "D.O.B"], "order_id": ["Order Id", "Order ID", "Barcode ID/Order ID", "Barcode No/Order No", "Barcode/Order ID", "Order No", "Booking ID", "Booking Id", "Barcode", "Barcode No", "Accession No", "Accession Number", "Lab No", "Lab No.", "Sample ID", "Sample Id", "Visit ID", "Visit No", "Lab ID", "Registration No", "Reg. No", "SIN No", "SID No", "Bill No", "Order Req. No", "Lab Order No", "Req. No", "Req No"], "collected_via": ["Collected Via", "Collection Mode", "Collection Type"], "sample_type": ["Sample Type", "SampleType", "Specimen Type", "Specimen"], "status": ["Report Status", "Status"], "collected_at": ["Collected On", "Sample Collected On", "Sample Collected", "Collected At", "Collection Date", "Collection Date & Time", "Sample Collection Date", "Collected", "Collected Date", "Sample Drawn Date", "Sample Drawn On", "Drawn Date", "Drawn"], "received_at": ["Received On", "Sample Received On", "Sample Received", "Received", "Received At", "Registered On", "Registration Date", "Registered", "Sample Receive Date", "Sample Regd Date", "Sample Registration Date", "Regd Date"], "reported_at": ["Reported On", "Report Date", "Reported", "Reported At", "Report Released On", "Released On", "Approved On", "Report Generated On", "Authenticated On", "Sample Auth Date", "Authenticated Date", "Auth Date"], "referred_by": ["Referred By", "Ref. By", "Ref By", "Referring Doctor", "Ref. Doctor", "Referred Doctor", "Consultant"], "lab": ["Lab Name", "Processed At", "Processing Lab", "Testing Lab", "Processing Location"] }, "statuses": { "partial": ["Partial Report", "Partial", "Interim", "Interim Report", "Provisional", "Pending"], "final": ["Final", "Final Report", "Complete", "Completed", "Full Report"] }, "prose": ["Interpretation", "Interpretations", "Note", "Notes", "Comment", "Comments", "Remark", "Remarks", "Clinical Significance", "Clinical Use", "Clinical Information", "Disclaimer", "Limitations", "Kindly", "Please", "Advice", "Reference", "References", "Increased", "Decreased", "Test Description", "Conditions of Laboratory Testing"], "furniture": ["^page \\d+ of \\d+$", "^page \\d+$", "^-*\\s*end of report\\s*-*$", "^\\**\\s*end of (the )?report\\s*\\**$", "^authori[sz]ed (by|signatory)", "^this is a (computer|system) generated", "^scan (the )?qr", "^lab director", "^this test has been performed at", "^tata ?1 ?mg( [a-z]+)?$", "^kindly correlate clinically\\.?$", "^results relate only to the sample", "^consultant pathologist", "^checked by\\b", "^dr\\.? ?[a-z .]+\\b(md|mbbs|dnb|dcp|frcpath)\\b", "^(bio-?chemist|pathologist|microbiologist|group leader|lab technician|technologist|chief pathologist)( (bio-?chemist|pathologist|microbiologist|group leader|lab technician|technologist|chief pathologist))*$"], "date_formats": ["%d/%b/%Y %I:%M %p", "%d/%b/%Y %I:%M:%S %p", "%d/%b/%Y %H:%M", "%d/%b/%Y %H:%M:%S", "%d-%b-%Y %I:%M %p", "%d-%b-%Y %H:%M", "%d-%b-%Y %H:%M:%S", "%d %b %Y %I:%M %p", "%d %b %Y %H:%M", "%d %B %Y %I:%M %p", "%d/%m/%Y %I:%M %p", "%d/%m/%Y %I:%M:%S %p", "%d/%m/%Y %H:%M", "%d/%m/%Y %H:%M:%S", "%d-%m-%Y %I:%M %p", "%d-%m-%Y %H:%M", "%d-%m-%Y %H:%M:%S", "%d.%m.%Y %H:%M", "%Y-%m-%d %H:%M:%S", "%Y-%m-%d %H:%M", "%Y-%m-%dT%H:%M:%S"], "day_formats": ["%d/%b/%Y", "%d-%b-%Y", "%d %b %Y", "%d %B %Y", "%d/%m/%Y", "%d-%m-%Y", "%d.%m.%Y", "%Y-%m-%d"]}