Extract all git question, with there value , it's a laq or a saq , mk dk or nk ?

Reading File
Reading File
Browsing Directory

~/

Searching the Web

medical exam question classification MK DK NK LAQ SAQ meaning

Browsing Directory

~/attachments/17fe309c-8645-423e-a664-c786c1b3e9d0

Running Command

mkdir -p "/tmp/workspace/git-question-extraction/output" && python -c "import pdfplumber; p='/tmp/workspace/attachments/17fe309c-8645-423e-a664-c786c1b3e9d0/Practice of Medicine (2).pdf'; out='/tmp/workspace/git-question-extraction/output/extracted.txt'; pdf=pdfplumber.open(p); f=open(out,'w',encoding='utf-8'); [f.write('\\n\\n===== PAGE %d =====\\n%s' % (i+1, page.extract_text() or '')) for i,page in enumerate(pdf.pages)]; f.close(); print('pages',len(pdf.pages),'out',out)"

Searching Content

"GIT" in ~/git-question-extraction/output

Reading File
Searching Content

"LAQ" in ~/git-question-extraction/output

Searching Content

"SAQ" in ~/git-question-extraction/output

Searching Content

"MK" in ~/git-question-extraction/output

Searching Content

"DK" in ~/git-question-extraction/output

Searching Content

"NK" in ~/git-question-extraction/output

Reading File
Searching Content

"5.5." in ~/git-question-extraction/output

Reading File
Reading File
Running Command

python -c "import re; t=open('/tmp/workspace/git-question-extraction/output/extracted.txt',encoding='utf8').read(); s=t.index('HomUG-PM II.42.'); e=t.index('5.5. Disorders of Liver'); x=t[s:e]; parts=re.split(r'(?=HomUG-)',x); out='\\n\\n'.join(p.replace('\\n',' ') for p in parts if p.strip()); open('/tmp/workspace/git-question-extraction/output/git_rows_raw.txt','w',encoding='utf8').write(out); print('parts',len(parts)); print('chars',len(x))" && python -c "import re; x=open('/tmp/workspace/git-question-extraction/output/git_rows_raw.txt',encoding='utf8').read(); print('\\n'.join(x.split('\\n')[:35]))"

Running Command

python - <<'PY' import re p='/tmp/workspace/git-question-extraction/output/git_rows_raw.txt' x=open(p,encoding='utf8').read() # Split on section heading secs=re.split(r'(?=HomUG-PM II\.\d+\.)',x) for sec in secs: h=re.match(r'(HomUG-PM II\.\d+\.\s*[^\n]+)',sec) if not h: continue title=h.group(1).replace('HomUG-PM ','') rows=re.split(r'(?=HomUG-)',sec)[1:] print('\n###',title,'ROWS',len(rows)) for r in rows: r=' '.join(r.split()) code=re.search(r'II\.\d+\.\d+',r) pri=re.search(r'\b(?:MK|DK|NK)\b',r) assess=[] # rough: everything after priority tail=r[pri.end():] if pri else '' if 'SAQ' in tail: assess.append('SAQ') if 'LAQ' in tail: assess.append('LAQ') if assess: print(code.group() if code else '?','|',pri.group() if pri else '?','|','/'.join(assess),'|',r[:240]) PY

Reading File
Running Command

python - <<'PY' import pdfplumber p='/tmp/workspace/attachments/17fe309c-8645-423e-a664-c786c1b3e9d0/Practice of Medicine (2).pdf' with pdfplumber.open(p) as pdf: for ix in [97,98,99,100]: page=pdf.pages[ix] print('\nPAGE',ix+1) tabs=page.extract_tables() print('tables',len(tabs)) for t in tabs: for r in t[:3]: print(r) PY

Running Command

python - <<'PY' import re x=open('/tmp/workspace/git-question-extraction/output/git_rows_raw.txt',encoding='utf8').read() for sec in re.split(r'(?=HomUG-PM II\.\d+\.)',x): h=re.match(r'HomUG-PM (II\.\d+(?:\.[AB])?\.\s*[^\n]+)',sec) if not h: continue title=h.group(1) rows=re.split(r'(?=HomUG-)',sec)[1:] print('\n##',title) for r in rows: r=' '.join(r.split()) # identify code permits 52.A code=re.search(r'II\.\d+(?:\.[AB])?\.\d+',r) pri=re.search(r'\b(MK|DK|NK)\b',r) # take from priority to integration, summative appears after T-L method words # identify all sequence occurrences SAQ LAQ. Print compact if pri and ('SAQ' in r[pri.end():] or 'LAQ' in r[pri.end():]): # content around before SLO at priority: crude capture after competency code but order corrupted print(code.group() if code else '?', pri.group(), 'SAQ' if 'SAQ' in r[pri.end():] else '', 'LAQ' if 'LAQ' in r[pri.end():] else '', ' :: ', r[:150]) PY > "/tmp/workspace/git-question-extraction/output/summary.txt"

Running Command

python - <<'PY' import re, os from openpyxl import Workbook from openpyxl.styles import Font, PatternFill, Alignment src='/tmp/workspace/git-question-extraction/output/git_rows_raw.txt' x=open(src,encoding='utf8').read() sections=re.split(r'(?=HomUG-PM II\.\d+)',x) rows=[] for sec in sections: hm=re.match(r'HomUG-PM (II\.\d+(?:\.[AB])?\.\s*[^\n]+)',sec) if not hm: continue topic=re.sub(r'\s+\d+\s*=+.*','',hm.group(1)).strip() # derive clean title after code title=re.sub(r'^II\.\d+(?:\.[AB])?\.\s*','',topic).strip() for r in re.split(r'(?=HomUG-)',sec)[1:]: clean=' '.join(r.split()) cm=re.search(r'II\.\d+(?:\.[AB])?\.\d+',clean) pm=re.search(r'\b(MK|DK|NK)\b',clean) if not (cm and pm): continue tail=clean[pm.end():] # Include only if published assessment fields include SAQ/LAQ anywhere after priority if not ('SAQ' in tail or 'LAQ' in tail): continue # SLO begins around a) and ends before Bloom level before priority pre=clean[:pm.start()] slo='' m=re.search(r'(\([abc]\)\s*.*)$',pre) if m: slo=m.group(1) else: # use competency title before likely code, ignore attributes slo=pre slo=re.sub(r'\s+\d+\s+=+ PAGE \d+ =+\s*',' ',slo) # infer assessment appearance exactly as recorded. This document does not assign marks. fmt=[] if 'SAQ' in tail: fmt.append('SAQ') if 'LAQ' in tail: fmt.append('LAQ') rows.append([cm.group(), title, slo[:1200], pm.group(), ' / '.join(fmt), 'Not specified in PDF']) # duplicates eliminate by code (rows unique) seen=set(); data=[] for r in rows: if r[0] not in seen: data.append(r);seen.add(r[0]) out='/tmp/workspace/git-question-extraction/output/GIT_question_classification.xlsx' wb=Workbook(); ws=wb.active; ws.title='GIT questions' ws.append(['Competency code','Topic','Question / learning outcome','Priority','Written assessment shown','Marks / value']) for r in data: ws.append(r) for c in ws[1]: c.font=Font(bold=True,color='FFFFFF');c.fill=PatternFill('solid',fgColor='1F4E78');c.alignment=Alignment(wrap_text=True) for row in ws.iter_rows(min_row=2): for c in row: c.alignment=Alignment(wrap_text=True,vertical='top') ws.freeze_panes='A2'; ws.auto_filter.ref=ws.dimensions for col,width in {'A':18,'B':38,'C':80,'D':11,'E':25,'F':22}.items(): ws.column_dimensions[col].width=width for i in range(2,ws.max_row+1): ws.row_dimensions[i].height=55 # summary s=wb.create_sheet('Summary') s.append(['Item','Count']) s.append(['Competencies with SAQ and/or LAQ listed',len(data)]) s.append(['SAQ listed',sum('SAQ' in r[4] for r in data)]) s.append(['LAQ listed',sum('LAQ' in r[4] for r in data)]) for tag in ['MK','DK','NK']: s.append([tag,sum(r[3]==tag for r in data)]) s.append(['Note','The PDF provides priority labels and assessment formats, but no numeric marks or values.']) for c in s[1]:c.font=Font(bold=True,color='FFFFFF');c.fill=PatternFill('solid',fgColor='1F4E78') s.column_dimensions['A'].width=48;s.column_dimensions['B'].width=85 for row in s.iter_rows(): for c in row:c.alignment=Alignment(wrap_text=True,vertical='top') wb.save(out) print(len(data),out) PY

I extracted the GIT (Gastrointestinal Tract) competency questions from the PDF into an Excel sheet.
  • 97 GIT competency items have SAQ and/or LAQ mentioned in the assessment columns.
  • The PDF does not give numeric marks/value for individual questions. I have marked this as “Not specified in PDF.”
  • MK = Must Know
  • DK = Desirable to Know
  • NK = Nice to Know
  • SAQ = Short Answer Question
  • LAQ = Long Answer Question
Download the extracted, sortable file here:

GIT question classification

Spreadsheet · XLSX

The file includes:
  1. Competency code
  2. GIT topic
  3. Question / learning outcome
  4. Priority: MK, DK, or NK
  5. SAQ / LAQ shown in the PDF
  6. Marks/value status
Note: The PDF’s table separates formative and summative assessments, but text extraction sometimes merges those columns. Therefore, the spreadsheet preserves whether SAQ and/or LAQ is listed for that competency, rather than inventing marks or a single exam format where the source is unclear.
Reply with a topic name or "continue" to go deeper with a fresh budget.

Can you make a list in the chat and not a doc

Below is the GIT question list from the PDF, classified by the assessment shown and priority.
Key:
  • SAQ: Short Answer Question
  • LAQ: Long Answer Question
  • MK: Must Know
  • NK: Nice to Know
  • The PDF does not specify numerical marks for individual questions.

1. Applied Anatomy and Physiology of GIT

CodeQuestion areaTypePriority
II.42.1Anatomy, organization, blood/nerve supply, lymphatics, and landmarks of GITSAQ, LAQMK
II.42.2Digestion, absorption, enzymes, hormones, neurotransmitters, absorption sitesSAQMK
II.42.3Aetiology, pathogenesis and clinical features of common GI disordersSAQMK

2. Aphthous Ulceration

CodeQuestion areaTypePriority
II.43.1Definition, aetiology and classification of aphthous ulcersSAQMK
II.43.2Symptoms, morphology and differential diagnosisSAQMK
II.43.3Predisposing factors, triggers and systemic/genetic factorsSAQ, LAQMK
II.43.6Oral hygiene, dietary advice and prevention counsellingSAQ, LAQNK
II.43.7Homoeopathic principles/remedies for aphthous ulcersSAQMK

3. Stomatitis

CodeQuestion areaTypePriority
II.44.1Definition, aetiology and classificationSAQMK
II.44.2Symptoms, morphology and differential diagnosisSAQMK
II.44.3Infectious agents, systemic diseases and irritantsSAQ, LAQMK
II.44.6Medication adherence, lifestyle modification and preventionSAQ, LAQNK
II.44.7Homoeopathic principles/remedies for stomatitisSAQMK

4. Parotitis

CodeQuestion areaTypePriority
II.45.1Definition, aetiology and types of parotitisSAQMK
II.45.2Symptoms, signs and complicationsSAQMK
II.45.3Infectious agents and obstructive factorsSAQ, LAQMK
II.45.6Medication adherence and preventive measuresSAQ, LAQNK
II.45.7Homoeopathic principles/remedies for parotitisSAQMK

5. Achalasia Cardia

CodeQuestion areaTypePriority
II.46.1Definition, epidemiology and pathophysiologySAQMK
II.46.2Symptoms, signs and diagnostic criteriaSAQMK
II.46.3Barium swallow, manometry and endoscopySAQ, LAQMK
II.46.6Prognosis, lifestyle modification and counsellingSAQ, LAQNK
II.46.7Homoeopathic principles/remedies for achalasiaSAQMK

6. Hiatus Hernia

CodeQuestion areaTypePriority
II.47.1Definition, types and prevalenceSAQMK
II.47.2Symptoms, signs and diagnostic criteriaSAQMK
II.47.3Imaging modalities and endoscopySAQ, LAQMK
II.47.6Prognosis and preventive measuresSAQ, LAQNK
II.47.7Homoeopathic principles/remedies for hiatus herniaSAQMK

7. GERD and Esophagitis

CodeQuestion areaTypePriority
II.48.1Definition, aetiology and pathophysiology of GERD/esophagitisSAQMK
II.48.2Clinical presentation and diagnostic criteriaSAQMK
II.48.3Barium swallow, endoscopy and pH monitoringSAQ, LAQMK
II.48.6Disease-management education and preventionSAQ, LAQNK
II.48.7Homoeopathic principles/remedies for GERDSAQMK

8. Acute and Chronic Gastritis

CodeQuestion areaTypePriority
II.49.1Definition, classification and aetiologySAQMK
II.49.2Symptoms, signs and diagnostic criteriaSAQMK
II.49.3Imaging, endoscopy and biopsySAQ, LAQMK
II.49.6Prognosis, prevention and patient educationSAQ, LAQNK
II.49.7Homoeopathic principles/remedies for gastritisSAQMK

9. Peptic Ulcer Disease

CodeQuestion areaTypePriority
II.50.1Definition and classification of peptic ulcersSAQMK
II.50.3Symptoms, signs and diagnostic criteriaSAQMK
II.50.4Endoscopy, biopsy and H. pylori testsSAQ, LAQMK
II.50.7Prognosis, prevention and disease-management counsellingSAQ, LAQNK
II.50.8Homoeopathic principles/remedies for peptic ulcersSAQMK

10. Gastric Carcinoma

CodeQuestion areaTypePriority
II.51.1Definition and classification of gastric carcinomaSAQMK
II.51.2Aetiology and risk factorsSAQMK
II.51.3Symptoms, signs and diagnostic criteriaSAQMK
II.51.4Imaging, biopsy and staging investigationsSAQ, LAQMK
II.51.7Prognosis, prevention and patient counsellingSAQ, LAQMK
II.51.8Homoeopathic principles/remedies for gastric carcinomaSAQMK

11. Malabsorption Syndromes

CodeQuestion areaTypePriority
II.52.1Definition and classification of malabsorption syndromesSAQMK
II.52.2Aetiology and pathogenesisSAQMK
II.52.3Symptoms, signs and diagnostic criteriaSAQMK
II.52.4Laboratory tests and imaging investigationsSAQ, LAQMK
II.52.7Prognosis, prevention and patient educationSAQ, LAQNK

Coeliac Disease

CodeQuestion areaTypePriority
II.52.A.1Definition, pathophysiology and epidemiologySAQMK
II.52.A.2Immune pathophysiology of coeliac diseaseSAQMK
II.52.A.3Symptoms, signs and diagnostic criteriaSAQMK
II.52.A.4Serology and intestinal biopsySAQ, LAQMK
II.52.A.7Gluten-free diet, prognosis and counsellingSAQ, LAQNK

Lactose Intolerance

CodeQuestion areaTypePriority
II.52.B.1Definition and epidemiologySAQMK
II.52.B.2Pathophysiology of lactose intoleranceSAQMK
II.52.B.3Symptoms, signs and diagnostic criteriaSAQMK
II.52.B.4Hydrogen breath test and lactose-tolerance testSAQ, LAQMK
II.52.B.7Dietary modification, prognosis and counsellingSAQ, LAQNK
II.52.B.8Homoeopathic principles/remedies for lactose intoleranceSAQMK

12. Irritable Bowel Syndrome

CodeQuestion areaTypePriority
II.53.1Definition, pathophysiology and epidemiology of IBSSAQMK
II.53.2Pathophysiology of IBSSAQMK
II.53.3Symptoms, signs and diagnostic criteriaSAQMK
II.53.4Rome criteria and exclusion of other conditionsSAQ, LAQMK
II.53.7Prognosis, education and preventive adviceSAQ, LAQNK

13. Inflammatory Bowel Disease

Crohn's Disease

CodeQuestion areaTypePriority
II.54.1Definition of inflammatory bowel diseaseSAQMK
II.54.2Definition and epidemiology of Crohn's diseaseSAQMK
II.54.3Pathophysiology of Crohn's diseaseSAQMK
II.54.4Symptoms, signs and complications of Crohn's diseaseSAQMK
II.54.5Endoscopy, imaging, laboratory tests and biopsy in Crohn's diseaseSAQ, LAQMK

Ulcerative Colitis

CodeQuestion areaTypePriority
II.54.8Definition and epidemiology of ulcerative colitisSAQMK
II.54.9Pathophysiology of ulcerative colitisSAQMK
II.54.10Symptoms, signs and complications of ulcerative colitisSAQMK
II.54.11Endoscopy, imaging, laboratory tests and biopsy in ulcerative colitisSAQ, LAQMK

14. Abdominal Tuberculosis

CodeQuestion areaTypePriority
II.55.1Definition and epidemiology of abdominal tuberculosisSAQMK
II.55.2Pathophysiology of abdominal tuberculosisSAQMK
II.55.3Symptoms, signs and complicationsSAQMK
II.55.4Imaging, laboratory tests, endoscopy and biopsySAQ, LAQMK

15. Neoplasia of the Bowel

CodeQuestion areaTypePriority
II.56.1Definition and types of bowel neoplasiaSAQMK
II.56.2Pathophysiology of bowel neoplasiaSAQMK
II.56.3Symptoms, signs and complicationsSAQMK
II.56.4Imaging, laboratory tests, biopsy and endoscopySAQ, LAQMK

16. Anorectal Disorders

CodeQuestion areaTypePriority
II.57.1Definition, types and pathophysiology of anorectal disordersSAQMK
II.57.2Symptoms, signs and complicationsSAQMK
II.57.4Physical examination, imaging and laboratory testsSAQ, LAQMK

17. Diverticulitis

CodeQuestion areaTypePriority
II.58.1Definition and types of diverticulitisSAQMK
II.58.2Pathophysiology of diverticulitisSAQMK
II.58.3Symptoms, signs and complicationsSAQMK
II.58.4Physical examination, imaging and laboratory testsSAQ, LAQMK

18. Homoeopathic Therapeutics for GI Disorders

CodeQuestion areaTypePriority
II.59.1Major homoeopathic remedies for GI disordersSAQMK
II.59.2Indications, symptoms and signs for remedy selectionSAQMK
II.59.3Remedy selection based on symptoms, case-taking and repertorisationSAQMK

High-yield LAQ list

These are the competencies where LAQ is explicitly listed:
  • II.42.1: GIT anatomy and organisation
  • II.43.3: Aphthous ulcer predisposing factors and triggers
  • II.43.6: Prevention of aphthous ulceration
  • II.44.3: Causes of stomatitis
  • II.44.6: Stomatitis prevention and counselling
  • II.45.3: Infectious/obstructive causes of parotitis
  • II.45.6: Parotitis prevention and counselling
  • II.46.3: Achalasia investigations
  • II.46.6: Achalasia prognosis and lifestyle measures
  • II.47.3: Hiatus-hernia investigation
  • II.47.6: Hiatus-hernia prevention
  • II.48.3: GERD investigations
  • II.48.6: GERD prevention and counselling
  • II.49.3: Gastritis investigations
  • II.49.6: Gastritis prevention
  • II.50.4: Peptic-ulcer investigations and H. pylori testing
  • II.50.7: Peptic-ulcer prevention
  • II.51.4: Gastric-carcinoma investigations and staging
  • II.51.7: Gastric-carcinoma prognosis and prevention
  • II.52.4: Malabsorption investigations
  • II.52.7: Malabsorption counselling
  • II.52.A.4: Coeliac disease serology and biopsy
  • II.52.A.7: Coeliac disease diet counselling
  • II.52.B.4: Lactose-intolerance diagnostic tests
  • II.52.B.7: Lactose-intolerance dietary counselling
  • II.53.4: Rome criteria and IBS work-up
  • II.53.7: IBS counselling
  • II.54.5: Crohn's disease investigations
  • II.54.11: Ulcerative-colitis investigations
  • II.55.4: Abdominal-TB investigations
  • II.56.4: Bowel-neoplasia investigations
  • II.57.4: Anorectal-disorder evaluation
  • II.58.4: Diverticulitis evaluation
This is a shared conversation. Sign in to Orris to start your own chat.