702 lines
36 KiB
Plaintext
702 lines
36 KiB
Plaintext
|
|
{
|
|||
|
|
"cells": [
|
|||
|
|
{
|
|||
|
|
"cell_type": "code",
|
|||
|
|
"execution_count": 3,
|
|||
|
|
"id": "30bd0387-b182-49a0-9591-6136df91f9b7",
|
|||
|
|
"metadata": {
|
|||
|
|
"tags": []
|
|||
|
|
},
|
|||
|
|
"outputs": [
|
|||
|
|
{
|
|||
|
|
"name": "stdout",
|
|||
|
|
"output_type": "stream",
|
|||
|
|
"text": [
|
|||
|
|
"Requirement already satisfied: xhtml2pdf in c:\\users\\acer\\anaconda3\\lib\\site-packages (0.2.11)\n",
|
|||
|
|
"Requirement already satisfied: arabic-reshaper>=3.0.0 in c:\\users\\acer\\anaconda3\\lib\\site-packages (from xhtml2pdf) (3.0.0)\n",
|
|||
|
|
"Requirement already satisfied: html5lib>=1.0.1 in c:\\users\\acer\\anaconda3\\lib\\site-packages (from xhtml2pdf) (1.1)\n",
|
|||
|
|
"Requirement already satisfied: Pillow>=8.1.1 in c:\\users\\acer\\anaconda3\\lib\\site-packages (from xhtml2pdf) (9.4.0)\n",
|
|||
|
|
"Requirement already satisfied: pyHanko>=0.12.1 in c:\\users\\acer\\anaconda3\\lib\\site-packages (from xhtml2pdf) (0.20.0)\n",
|
|||
|
|
"Requirement already satisfied: pyhanko-certvalidator>=0.19.5 in c:\\users\\acer\\anaconda3\\lib\\site-packages (from xhtml2pdf) (0.23.0)\n",
|
|||
|
|
"Requirement already satisfied: pypdf>=3.1.0 in c:\\users\\acer\\anaconda3\\lib\\site-packages (from xhtml2pdf) (3.15.2)\n",
|
|||
|
|
"Requirement already satisfied: python-bidi>=0.4.2 in c:\\users\\acer\\anaconda3\\lib\\site-packages (from xhtml2pdf) (0.4.2)\n",
|
|||
|
|
"Requirement already satisfied: reportlab<4,>=3.5.53 in c:\\users\\acer\\anaconda3\\lib\\site-packages (from xhtml2pdf) (3.6.13)\n",
|
|||
|
|
"Requirement already satisfied: svglib>=1.2.1 in c:\\users\\acer\\anaconda3\\lib\\site-packages (from xhtml2pdf) (1.5.1)\n",
|
|||
|
|
"Requirement already satisfied: six>=1.9 in c:\\users\\acer\\anaconda3\\lib\\site-packages (from html5lib>=1.0.1->xhtml2pdf) (1.16.0)\n",
|
|||
|
|
"Requirement already satisfied: webencodings in c:\\users\\acer\\anaconda3\\lib\\site-packages (from html5lib>=1.0.1->xhtml2pdf) (0.5.1)\n",
|
|||
|
|
"Requirement already satisfied: asn1crypto>=1.5.1 in c:\\users\\acer\\anaconda3\\lib\\site-packages (from pyHanko>=0.12.1->xhtml2pdf) (1.5.1)\n",
|
|||
|
|
"Requirement already satisfied: qrcode>=6.1 in c:\\users\\acer\\anaconda3\\lib\\site-packages (from pyHanko>=0.12.1->xhtml2pdf) (7.4.2)\n",
|
|||
|
|
"Requirement already satisfied: tzlocal>=4.3 in c:\\users\\acer\\anaconda3\\lib\\site-packages (from pyHanko>=0.12.1->xhtml2pdf) (5.0.1)\n",
|
|||
|
|
"Requirement already satisfied: click>=7.1.2 in c:\\users\\acer\\anaconda3\\lib\\site-packages (from pyHanko>=0.12.1->xhtml2pdf) (8.0.4)\n",
|
|||
|
|
"Requirement already satisfied: requests>=2.24.0 in c:\\users\\acer\\anaconda3\\lib\\site-packages (from pyHanko>=0.12.1->xhtml2pdf) (2.29.0)\n",
|
|||
|
|
"Requirement already satisfied: pyyaml>=5.3.1 in c:\\users\\acer\\anaconda3\\lib\\site-packages (from pyHanko>=0.12.1->xhtml2pdf) (6.0)\n",
|
|||
|
|
"Requirement already satisfied: cryptography>=3.3.1 in c:\\users\\acer\\anaconda3\\lib\\site-packages (from pyHanko>=0.12.1->xhtml2pdf) (39.0.1)\n",
|
|||
|
|
"Requirement already satisfied: oscrypto>=1.1.0 in c:\\users\\acer\\anaconda3\\lib\\site-packages (from pyhanko-certvalidator>=0.19.5->xhtml2pdf) (1.3.0)\n",
|
|||
|
|
"Requirement already satisfied: uritools>=3.0.1 in c:\\users\\acer\\anaconda3\\lib\\site-packages (from pyhanko-certvalidator>=0.19.5->xhtml2pdf) (4.0.1)\n",
|
|||
|
|
"Requirement already satisfied: lxml in c:\\users\\acer\\anaconda3\\lib\\site-packages (from svglib>=1.2.1->xhtml2pdf) (4.9.2)\n",
|
|||
|
|
"Requirement already satisfied: tinycss2>=0.6.0 in c:\\users\\acer\\anaconda3\\lib\\site-packages (from svglib>=1.2.1->xhtml2pdf) (1.2.1)\n",
|
|||
|
|
"Requirement already satisfied: cssselect2>=0.2.0 in c:\\users\\acer\\anaconda3\\lib\\site-packages (from svglib>=1.2.1->xhtml2pdf) (0.7.0)\n",
|
|||
|
|
"Requirement already satisfied: colorama in c:\\users\\acer\\anaconda3\\lib\\site-packages (from click>=7.1.2->pyHanko>=0.12.1->xhtml2pdf) (0.4.6)\n",
|
|||
|
|
"Requirement already satisfied: cffi>=1.12 in c:\\users\\acer\\anaconda3\\lib\\site-packages (from cryptography>=3.3.1->pyHanko>=0.12.1->xhtml2pdf) (1.15.1)\n",
|
|||
|
|
"Requirement already satisfied: typing-extensions in c:\\users\\acer\\anaconda3\\lib\\site-packages (from qrcode>=6.1->pyHanko>=0.12.1->xhtml2pdf) (4.6.3)\n",
|
|||
|
|
"Requirement already satisfied: pypng in c:\\users\\acer\\anaconda3\\lib\\site-packages (from qrcode>=6.1->pyHanko>=0.12.1->xhtml2pdf) (0.20220715.0)\n",
|
|||
|
|
"Requirement already satisfied: charset-normalizer<4,>=2 in c:\\users\\acer\\anaconda3\\lib\\site-packages (from requests>=2.24.0->pyHanko>=0.12.1->xhtml2pdf) (2.0.4)\n",
|
|||
|
|
"Requirement already satisfied: idna<4,>=2.5 in c:\\users\\acer\\anaconda3\\lib\\site-packages (from requests>=2.24.0->pyHanko>=0.12.1->xhtml2pdf) (3.4)\n",
|
|||
|
|
"Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\\users\\acer\\anaconda3\\lib\\site-packages (from requests>=2.24.0->pyHanko>=0.12.1->xhtml2pdf) (1.26.16)\n",
|
|||
|
|
"Requirement already satisfied: certifi>=2017.4.17 in c:\\users\\acer\\anaconda3\\lib\\site-packages (from requests>=2.24.0->pyHanko>=0.12.1->xhtml2pdf) (2023.5.7)\n",
|
|||
|
|
"Requirement already satisfied: tzdata in c:\\users\\acer\\anaconda3\\lib\\site-packages (from tzlocal>=4.3->pyHanko>=0.12.1->xhtml2pdf) (2023.3)\n",
|
|||
|
|
"Requirement already satisfied: pycparser in c:\\users\\acer\\anaconda3\\lib\\site-packages (from cffi>=1.12->cryptography>=3.3.1->pyHanko>=0.12.1->xhtml2pdf) (2.21)\n",
|
|||
|
|
"C:\\Users\\acer\\Desktop\\SMI\n",
|
|||
|
|
"Creating report 224321944144PADGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 224321944144PADGMC.pdf.\n",
|
|||
|
|
"Creating report 226183001745JAHGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 226183001745JAHGMC.pdf.\n",
|
|||
|
|
"Creating report 226878454892ROSGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 226878454892ROSGMC.pdf.\n",
|
|||
|
|
"Creating report 229745607482KAHGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 229745607482KAHGMC.pdf.\n",
|
|||
|
|
"Creating report 237087936489DEEGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 237087936489DEEGMC.pdf.\n",
|
|||
|
|
"Creating report 237203051990AMAGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 237203051990AMAGMC.pdf.\n",
|
|||
|
|
"Creating report 255647157660SAUGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 255647157660SAUGMC.pdf.\n",
|
|||
|
|
"Creating report 263271759284SANGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 263271759284SANGMC.pdf.\n",
|
|||
|
|
"Creating report 268796021035MONGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 268796021035MONGMC.pdf.\n",
|
|||
|
|
"Creating report 269278670283SASGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 269278670283SASGMC.pdf.\n",
|
|||
|
|
"Creating report 271596197534ISHGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 271596197534ISHGMC.pdf.\n",
|
|||
|
|
"Creating report 272237948944PRAGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 272237948944PRAGMC.pdf.\n",
|
|||
|
|
"Creating report 278272632291SHOGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 278272632291SHOGMC.pdf.\n",
|
|||
|
|
"Creating report 283856462155ABDGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 283856462155ABDGMC.pdf.\n",
|
|||
|
|
"Creating report 284146609891KUSGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 284146609891KUSGMC.pdf.\n",
|
|||
|
|
"Creating report 285846592059GAUGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 285846592059GAUGMC.pdf.\n",
|
|||
|
|
"Creating report 287500935512MANGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 287500935512MANGMC.pdf.\n",
|
|||
|
|
"Creating report 294917378637PRAGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 294917378637PRAGMC.pdf.\n",
|
|||
|
|
"Creating report 296362702170SAHGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 296362702170SAHGMC.pdf.\n",
|
|||
|
|
"Creating report 298781876459RITGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 298781876459RITGMC.pdf.\n",
|
|||
|
|
"Creating report 299644159567ROSGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 299644159567ROSGMC.pdf.\n",
|
|||
|
|
"Creating report 307721259755AMOGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 307721259755AMOGMC.pdf.\n",
|
|||
|
|
"Creating report 310010093502PRAGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 310010093502PRAGMC.pdf.\n",
|
|||
|
|
"Creating report 311128923689HARGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 311128923689HARGMC.pdf.\n",
|
|||
|
|
"Creating report 311606424900VIJGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 311606424900VIJGMC.pdf.\n",
|
|||
|
|
"Creating report 314426028466NIRGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 314426028466NIRGMC.pdf.\n",
|
|||
|
|
"Creating report 317380302501TRUGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 317380302501TRUGMC.pdf.\n",
|
|||
|
|
"Creating report 319753488845SARGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 319753488845SARGMC.pdf.\n",
|
|||
|
|
"Creating report 319753488845SARGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 319753488845SARGMC.pdf.\n",
|
|||
|
|
"Creating report 325603399153CHIGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 325603399153CHIGMC.pdf.\n",
|
|||
|
|
"Creating report 327678894405SANGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 327678894405SANGMC.pdf.\n",
|
|||
|
|
"Creating report 337846930324RANGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 337846930324RANGMC.pdf.\n",
|
|||
|
|
"Creating report 341450969561PURGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 341450969561PURGMC.pdf.\n",
|
|||
|
|
"Creating report 342593460393PRAGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 342593460393PRAGMC.pdf.\n",
|
|||
|
|
"Creating report 353279260573AJAGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 353279260573AJAGMC.pdf.\n",
|
|||
|
|
"Creating report 353306947152ZAKGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 353306947152ZAKGMC.pdf.\n",
|
|||
|
|
"Creating report 355360873978PRAGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 355360873978PRAGMC.pdf.\n",
|
|||
|
|
"Creating report 359765748394SAKGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 359765748394SAKGMC.pdf.\n",
|
|||
|
|
"Creating report 360535868118MANGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 360535868118MANGMC.pdf.\n",
|
|||
|
|
"Creating report 360908191249SHUGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 360908191249SHUGMC.pdf.\n",
|
|||
|
|
"Creating report 373377473748MANGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 373377473748MANGMC.pdf.\n",
|
|||
|
|
"Creating report 389121687339RIDGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 389121687339RIDGMC.pdf.\n",
|
|||
|
|
"Creating report 393597721191BHAGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 393597721191BHAGMC.pdf.\n",
|
|||
|
|
"Creating report 405674149187NEEGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 405674149187NEEGMC.pdf.\n",
|
|||
|
|
"Creating report 417508588250ARCGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 417508588250ARCGMC.pdf.\n",
|
|||
|
|
"Creating report 421583296569AARGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 421583296569AARGMC.pdf.\n",
|
|||
|
|
"Creating report 433985179851ANKGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 433985179851ANKGMC.pdf.\n",
|
|||
|
|
"Creating report 443279685870SWAGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 443279685870SWAGMC.pdf.\n",
|
|||
|
|
"Creating report 455600775837SHEGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 455600775837SHEGMC.pdf.\n",
|
|||
|
|
"Creating report 459277955751SHUGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 459277955751SHUGMC.pdf.\n",
|
|||
|
|
"Creating report 465580226263RIKGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 465580226263RIKGMC.pdf.\n",
|
|||
|
|
"Creating report 471615484151ABHGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 471615484151ABHGMC.pdf.\n",
|
|||
|
|
"Creating report 475525838861YASGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 475525838861YASGMC.pdf.\n",
|
|||
|
|
"Creating report 479202598101RIDGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 479202598101RIDGMC.pdf.\n",
|
|||
|
|
"Creating report 479442143845MUKGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 479442143845MUKGMC.pdf.\n",
|
|||
|
|
"Creating report 488029920533PRIGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 488029920533PRIGMC.pdf.\n",
|
|||
|
|
"Creating report 489219388428SHAGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 489219388428SHAGMC.pdf.\n",
|
|||
|
|
"Creating report 490503954532JATGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 490503954532JATGMC.pdf.\n",
|
|||
|
|
"Creating report 491019906660RITGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 491019906660RITGMC.pdf.\n",
|
|||
|
|
"Creating report 492125075012NISGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 492125075012NISGMC.pdf.\n",
|
|||
|
|
"Creating report 493341165989RUPGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 493341165989RUPGMC.pdf.\n",
|
|||
|
|
"Creating report 494297417882ANIGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 494297417882ANIGMC.pdf.\n",
|
|||
|
|
"Creating report 506852177535SAPGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 506852177535SAPGMC.pdf.\n",
|
|||
|
|
"Creating report 509244275563RASGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 509244275563RASGMC.pdf.\n",
|
|||
|
|
"Creating report 512348509509YASGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 512348509509YASGMC.pdf.\n",
|
|||
|
|
"Creating report 513119622787SUPGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 513119622787SUPGMC.pdf.\n",
|
|||
|
|
"Creating report 514901607969DULGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 514901607969DULGMC.pdf.\n",
|
|||
|
|
"Creating report 519280474150UPLGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 519280474150UPLGMC.pdf.\n",
|
|||
|
|
"Creating report 538108658900SAMGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 538108658900SAMGMC.pdf.\n",
|
|||
|
|
"Creating report 541941536175AKAGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 541941536175AKAGMC.pdf.\n",
|
|||
|
|
"Creating report 550461542642NITGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 550461542642NITGMC.pdf.\n",
|
|||
|
|
"Creating report 560034121333SACGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 560034121333SACGMC.pdf.\n",
|
|||
|
|
"Creating report 565038512261AKSGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 565038512261AKSGMC.pdf.\n",
|
|||
|
|
"Creating report 567222979316VANGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 567222979316VANGMC.pdf.\n",
|
|||
|
|
"Creating report 567798756109NITGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 567798756109NITGMC.pdf.\n",
|
|||
|
|
"Creating report 575462464598KAJGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 575462464598KAJGMC.pdf.\n",
|
|||
|
|
"Creating report 580350702718KESGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 580350702718KESGMC.pdf.\n",
|
|||
|
|
"Creating report 585270001058AADGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 585270001058AADGMC.pdf.\n",
|
|||
|
|
"Creating report 587938357479DURGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 587938357479DURGMC.pdf.\n",
|
|||
|
|
"Creating report 590553453852YOGGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 590553453852YOGGMC.pdf.\n",
|
|||
|
|
"Creating report 590890585020CHEGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 590890585020CHEGMC.pdf.\n",
|
|||
|
|
"Creating report 591363992210DURGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 591363992210DURGMC.pdf.\n",
|
|||
|
|
"Creating report 594841376463KRIGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 594841376463KRIGMC.pdf.\n",
|
|||
|
|
"Creating report 597085427787SAUGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 597085427787SAUGMC.pdf.\n",
|
|||
|
|
"Creating report 600608817741JITGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 600608817741JITGMC.pdf.\n",
|
|||
|
|
"Creating report 603297566444CHAGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 603297566444CHAGMC.pdf.\n",
|
|||
|
|
"Creating report 603297566444CHAGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 603297566444CHAGMC.pdf.\n",
|
|||
|
|
"Creating report 616513617547SHAGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 616513617547SHAGMC.pdf.\n",
|
|||
|
|
"Creating report 616520778409KASGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 616520778409KASGMC.pdf.\n",
|
|||
|
|
"Creating report 622752150758SINGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 622752150758SINGMC.pdf.\n",
|
|||
|
|
"Creating report 626223576285SANGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 626223576285SANGMC.pdf.\n",
|
|||
|
|
"Creating report 626223576285SANGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 626223576285SANGMC.pdf.\n",
|
|||
|
|
"Creating report 626683507657ROSGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 626683507657ROSGMC.pdf.\n",
|
|||
|
|
"Creating report 638267012322ANCGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 638267012322ANCGMC.pdf.\n",
|
|||
|
|
"Creating report 642098628989VANGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 642098628989VANGMC.pdf.\n",
|
|||
|
|
"Creating report 643701315855RAJGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 643701315855RAJGMC.pdf.\n",
|
|||
|
|
"Creating report 647499673461DURGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 647499673461DURGMC.pdf.\n",
|
|||
|
|
"Creating report 653065092904CHAGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 653065092904CHAGMC.pdf.\n",
|
|||
|
|
"Creating report 669591213509DIPGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 669591213509DIPGMC.pdf.\n",
|
|||
|
|
"Creating report 670035450038ABHGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 670035450038ABHGMC.pdf.\n",
|
|||
|
|
"Creating report 670376336482MOIGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 670376336482MOIGMC.pdf.\n",
|
|||
|
|
"Creating report 674393517322HARGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 674393517322HARGMC.pdf.\n",
|
|||
|
|
"Creating report 681272836240SHUGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 681272836240SHUGMC.pdf.\n",
|
|||
|
|
"Creating report 684874896145KU.GMC.pdf ...\n",
|
|||
|
|
"Created PDF report 684874896145KU.GMC.pdf.\n",
|
|||
|
|
"Creating report 697644331965VAIGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 697644331965VAIGMC.pdf.\n",
|
|||
|
|
"Creating report 720576449689ANNGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 720576449689ANNGMC.pdf.\n",
|
|||
|
|
"Creating report 725974004210JITGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 725974004210JITGMC.pdf.\n",
|
|||
|
|
"Creating report 728666171817KAJGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 728666171817KAJGMC.pdf.\n",
|
|||
|
|
"Creating report 733220053897AKSGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 733220053897AKSGMC.pdf.\n",
|
|||
|
|
"Creating report 750322934305SARGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 750322934305SARGMC.pdf.\n",
|
|||
|
|
"Creating report 750853208769PRIGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 750853208769PRIGMC.pdf.\n",
|
|||
|
|
"Creating report 758907770937DHAGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 758907770937DHAGMC.pdf.\n",
|
|||
|
|
"Creating report 759014921528SUMGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 759014921528SUMGMC.pdf.\n",
|
|||
|
|
"Creating report 765225110445VAIGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 765225110445VAIGMC.pdf.\n",
|
|||
|
|
"Creating report 771905165783SHAGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 771905165783SHAGMC.pdf.\n",
|
|||
|
|
"Creating report 774602363978SHLGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 774602363978SHLGMC.pdf.\n",
|
|||
|
|
"Creating report 782614827816HARGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 782614827816HARGMC.pdf.\n",
|
|||
|
|
"Creating report 789364502481S AGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 789364502481S AGMC.pdf.\n",
|
|||
|
|
"Creating report 792467787662SHRGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 792467787662SHRGMC.pdf.\n",
|
|||
|
|
"Creating report 805043473836SUMGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 805043473836SUMGMC.pdf.\n",
|
|||
|
|
"Creating report 815306073532MUSGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 815306073532MUSGMC.pdf.\n",
|
|||
|
|
"Creating report 819077305910KHAGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 819077305910KHAGMC.pdf.\n",
|
|||
|
|
"Creating report 827465570428ZEEGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 827465570428ZEEGMC.pdf.\n",
|
|||
|
|
"Creating report 831357896529CHAGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 831357896529CHAGMC.pdf.\n",
|
|||
|
|
"Creating report 834051733492PRAGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 834051733492PRAGMC.pdf.\n",
|
|||
|
|
"Creating report 838194370051GAUGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 838194370051GAUGMC.pdf.\n",
|
|||
|
|
"Creating report 844097319729SHAGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 844097319729SHAGMC.pdf.\n",
|
|||
|
|
"Creating report 846948594390YASGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 846948594390YASGMC.pdf.\n",
|
|||
|
|
"Creating report 848136889726MUGGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 848136889726MUGGMC.pdf.\n",
|
|||
|
|
"Creating report 849079906443RAHGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 849079906443RAHGMC.pdf.\n",
|
|||
|
|
"Creating report 877147864729AKAGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 877147864729AKAGMC.pdf.\n",
|
|||
|
|
"Creating report 888760045335RAKGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 888760045335RAKGMC.pdf.\n",
|
|||
|
|
"Creating report 892921681188ASHGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 892921681188ASHGMC.pdf.\n",
|
|||
|
|
"Creating report 895316097017RAKGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 895316097017RAKGMC.pdf.\n",
|
|||
|
|
"Creating report 895989269042TILGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 895989269042TILGMC.pdf.\n",
|
|||
|
|
"Creating report 900769653784TARGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 900769653784TARGMC.pdf.\n",
|
|||
|
|
"Creating report 903247738868VAIGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 903247738868VAIGMC.pdf.\n",
|
|||
|
|
"Creating report 908300994257SATGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 908300994257SATGMC.pdf.\n",
|
|||
|
|
"Creating report 908300994257SATGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 908300994257SATGMC.pdf.\n",
|
|||
|
|
"Creating report 910605003271SUJGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 910605003271SUJGMC.pdf.\n",
|
|||
|
|
"Creating report 918039154000ANTGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 918039154000ANTGMC.pdf.\n",
|
|||
|
|
"Creating report 920680985699ABHGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 920680985699ABHGMC.pdf.\n",
|
|||
|
|
"Creating report 921761502414SUNGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 921761502414SUNGMC.pdf.\n",
|
|||
|
|
"Creating report 942751311120ABHGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 942751311120ABHGMC.pdf.\n",
|
|||
|
|
"Creating report 949461709290SNEGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 949461709290SNEGMC.pdf.\n",
|
|||
|
|
"Creating report 950292912605HEMGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 950292912605HEMGMC.pdf.\n",
|
|||
|
|
"Creating report 960105176414RITGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 960105176414RITGMC.pdf.\n",
|
|||
|
|
"Creating report 964003970313MANGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 964003970313MANGMC.pdf.\n",
|
|||
|
|
"Creating report 992346311078SHUGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 992346311078SHUGMC.pdf.\n",
|
|||
|
|
"Creating report 995305552243MOHGMC.pdf ...\n",
|
|||
|
|
"Created PDF report 995305552243MOHGMC.pdf.\n"
|
|||
|
|
]
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
"source": [
|
|||
|
|
"\n",
|
|||
|
|
"import sys\n",
|
|||
|
|
"import csv\n",
|
|||
|
|
"#import qrcode\n",
|
|||
|
|
"! pip install xhtml2pdf\n",
|
|||
|
|
"from xhtml2pdf import pisa\n",
|
|||
|
|
"from jinja2 import Environment, FileSystemLoader\n",
|
|||
|
|
"import os\n",
|
|||
|
|
"import pandas as pd\n",
|
|||
|
|
"\n",
|
|||
|
|
"# Capture our current directory\n",
|
|||
|
|
"THIS_DIR = os.path.dirname(os.path.abspath(r\"C:\\Users\\acer\\Desktop\\SMI\"))\n",
|
|||
|
|
"print(os.getcwd())\n",
|
|||
|
|
"\n",
|
|||
|
|
"#def generateQRCode(rptD):\n",
|
|||
|
|
" # qrc = qrcode.QRCode(version=10,error_correction=qrcode.constants.ERROR_CORRECT_H)\n",
|
|||
|
|
" # data = \"SRF ID : {} \\n ICMR ID: {} \\n IISc ID: {} \\n Name: {} \\n Age: {} \\n Gender: {} \\n Swab Collected On: {} \\n Lab Name: Indian Institute of Science, Bangalore\\n Result Date: {} \\n Test Type: RT-PCR\\n Test Result: {}.\\n\".format(rptD['srfid'],rptD['sampleICMRID'],rptD['sampleIIScID'],rptD['patientName'],rptD['patientAge'],rptD['patientGender'],rptD['sampleCollectionDate'],rptD['testDate'],rptD['testResult'])\n",
|
|||
|
|
" # qrc.add_data(data)\n",
|
|||
|
|
" #qrImg = qrc.make_image(fill_color=\"black\", back_color=\"white\")\n",
|
|||
|
|
" #qrImg.save(rptD['qrcodeImgFile'])\n",
|
|||
|
|
" #return\n",
|
|||
|
|
"\n",
|
|||
|
|
"def prepareData(row):\n",
|
|||
|
|
" rptData = {}\n",
|
|||
|
|
"\n",
|
|||
|
|
" rptData['Person Name'] = row['Name']\n",
|
|||
|
|
" rptData['Age'] = row['Age']\n",
|
|||
|
|
" rptData['Gender'] = row['Gender']\n",
|
|||
|
|
" rptData['Age / Sex'] = f\"{rptData['Age']} ({rptData['Gender']})\"\n",
|
|||
|
|
" rptData['Sample type'] = 'Capillary Whole Blood'\n",
|
|||
|
|
" rptData['Family History of Sickle Cell Anemia'] = 'Unknown'\n",
|
|||
|
|
" rptData['Marital Status'] = row['Marital Status']\n",
|
|||
|
|
" rptData['Test Date'] = pd.to_datetime(row['testTime']).date()\n",
|
|||
|
|
" rptData['Patient ID'] = row['ABHA ID']\n",
|
|||
|
|
" rptData['Sample ID'] = row['_id']\n",
|
|||
|
|
" rptData['value'] = row['Measured Deovix Ratio']\n",
|
|||
|
|
" #rptData['qrcodeImgFile'] = 'qr_' + row['SRF ID'] + '.png'\n",
|
|||
|
|
" # generateQRCode(rptData)\n",
|
|||
|
|
" return rptData\n",
|
|||
|
|
"\n",
|
|||
|
|
"def generatePDFReport(row):\n",
|
|||
|
|
" outFilename = row['_id'] + '.pdf'\n",
|
|||
|
|
" # fill template with sample result values\n",
|
|||
|
|
" # generate report\n",
|
|||
|
|
" # generate qr code\n",
|
|||
|
|
" # convert to pdf\n",
|
|||
|
|
" print(\"Creating report %s ...\" % outFilename)\n",
|
|||
|
|
" j2_env = Environment(loader=FileSystemLoader(THIS_DIR),\n",
|
|||
|
|
" trim_blocks=True)\n",
|
|||
|
|
" rd = prepareData(row)\n",
|
|||
|
|
" # template_path = os.path.join(THIS_DIR, 'report_template.html')\n",
|
|||
|
|
"\n",
|
|||
|
|
" report_template =r'''\n",
|
|||
|
|
"<!DOCTYPE html>\n",
|
|||
|
|
"<html>\n",
|
|||
|
|
"\n",
|
|||
|
|
"<head>\n",
|
|||
|
|
" <style>\n",
|
|||
|
|
" @media print {\n",
|
|||
|
|
" body {\n",
|
|||
|
|
" -webkit-print-color-adjust: exact;\n",
|
|||
|
|
" }\n",
|
|||
|
|
" }\n",
|
|||
|
|
"\n",
|
|||
|
|
" .person-details-row {\n",
|
|||
|
|
" display: flex;\n",
|
|||
|
|
" flex-direction: row;\n",
|
|||
|
|
" }\n",
|
|||
|
|
"\n",
|
|||
|
|
" .person-details-col {\n",
|
|||
|
|
" display: flex;\n",
|
|||
|
|
" flex-direction: column;\n",
|
|||
|
|
" height: 90px;\n",
|
|||
|
|
" width: 50%;\n",
|
|||
|
|
" margin: 1px;\n",
|
|||
|
|
" border: 0;\n",
|
|||
|
|
" }\n",
|
|||
|
|
"\n",
|
|||
|
|
" .test-details-row {\n",
|
|||
|
|
" border: 0;\n",
|
|||
|
|
" }\n",
|
|||
|
|
"\n",
|
|||
|
|
" .test-details-col {\n",
|
|||
|
|
" height: 100px;\n",
|
|||
|
|
" }\n",
|
|||
|
|
"\n",
|
|||
|
|
" .test-cell-div {\n",
|
|||
|
|
" /* border: 1px solid black; */\n",
|
|||
|
|
" border-collapse: collapse;\n",
|
|||
|
|
" height: 20px;\n",
|
|||
|
|
" padding: 10px;\n",
|
|||
|
|
" }\n",
|
|||
|
|
"\n",
|
|||
|
|
" .table-header {\n",
|
|||
|
|
" border: 1px solid black;\n",
|
|||
|
|
" margin: 0 0 -10px 10px;\n",
|
|||
|
|
" background-color: rgb(191, 191, 191);\n",
|
|||
|
|
" text-align: center;\n",
|
|||
|
|
" justify-content: center;\n",
|
|||
|
|
" align-items: center;\n",
|
|||
|
|
" display: flex;\n",
|
|||
|
|
" font-weight: 600;\n",
|
|||
|
|
" height: 50px;\n",
|
|||
|
|
" width: 98%;\n",
|
|||
|
|
" }\n",
|
|||
|
|
"\n",
|
|||
|
|
" @media print {\n",
|
|||
|
|
" .table-header {\n",
|
|||
|
|
" background-color: rgb(191, 191, 191) !important;\n",
|
|||
|
|
" print-color-adjust: exact;\n",
|
|||
|
|
" }\n",
|
|||
|
|
" }\n",
|
|||
|
|
"\n",
|
|||
|
|
" @media print {\n",
|
|||
|
|
" .vendorListHeading th {\n",
|
|||
|
|
" color: white !important;\n",
|
|||
|
|
" }\n",
|
|||
|
|
" }\n",
|
|||
|
|
"\n",
|
|||
|
|
" .test-method {\n",
|
|||
|
|
" font-weight: 200 !important;\n",
|
|||
|
|
" color: rgb(191, 191, 191);\n",
|
|||
|
|
" }\n",
|
|||
|
|
"\n",
|
|||
|
|
" .result-value {\n",
|
|||
|
|
" justify-content: center;\n",
|
|||
|
|
" align-items: center;\n",
|
|||
|
|
" display: flex;\n",
|
|||
|
|
" }\n",
|
|||
|
|
"\n",
|
|||
|
|
" .end-of-report {\n",
|
|||
|
|
" display: flex;\n",
|
|||
|
|
" align-items: center;\n",
|
|||
|
|
" justify-content: center;\n",
|
|||
|
|
" }\n",
|
|||
|
|
"\n",
|
|||
|
|
" .logo {\n",
|
|||
|
|
" display: flex;\n",
|
|||
|
|
" justify-content: center;\n",
|
|||
|
|
" align-items: center;\n",
|
|||
|
|
" }\n",
|
|||
|
|
"\n",
|
|||
|
|
" table,\n",
|
|||
|
|
" th,\n",
|
|||
|
|
" td {\n",
|
|||
|
|
" border: 1px solid black;\n",
|
|||
|
|
" border-collapse: collapse;\n",
|
|||
|
|
" }\n",
|
|||
|
|
"\n",
|
|||
|
|
" ul {\n",
|
|||
|
|
" list-style-type: none;\n",
|
|||
|
|
" /* margin: 0; */\n",
|
|||
|
|
" /* padding: 0; */\n",
|
|||
|
|
" }\n",
|
|||
|
|
" </style>\n",
|
|||
|
|
"</head>\n",
|
|||
|
|
"\n",
|
|||
|
|
"<body>\n",
|
|||
|
|
" <div>\n",
|
|||
|
|
" <div class=\"logo\">\n",
|
|||
|
|
" <img src=\"C:\\Users\\acer\\Desktop\\SMI\\logo_nobg.png\" width=\"128\" height=\"128\" alt=\"sickle cell logo\" />\n",
|
|||
|
|
" </div>\n",
|
|||
|
|
" <table style=\"border: 1px solid black; margin: 10px; width: 98%;\">\n",
|
|||
|
|
" <tr class=\"person-details-row\">\n",
|
|||
|
|
" <td class=\"person-details-col\" style=\"border-right: 2; width: 70%;\">\n",
|
|||
|
|
" <div><strong>Person Name:</strong> {{ reportData[\"Person Name\"] }}</div>\n",
|
|||
|
|
" <div><strong>Age / Sex:</strong> {{reportData['Age']}} / {{reportData['Gender']}}</div>\n",
|
|||
|
|
" <div><strong>Sample type:</strong>{{ reportData[\"Sample type\"] }}</div>\n",
|
|||
|
|
" <div><strong>Family History of Sickle Cell Anemia:</strong>{{ reportData[\"Family History of Sickle Cell Anemia\"] }}</div>\n",
|
|||
|
|
" </td>\n",
|
|||
|
|
" <td class=\"person-details-col\" style=\"width: 30%;\">\n",
|
|||
|
|
" <div><strong>Marital Status:</strong>{{ reportData[\"Marital Status\"] }}</div>\n",
|
|||
|
|
" <div><strong>Test Date:</strong>{{ reportData[\"Test Date\"] }}</div> \n",
|
|||
|
|
" <div><strong>ABHA ID:</strong>{{ reportData[\"Patient ID\"] }}</div>\n",
|
|||
|
|
" <div><strong>Sample ID:</strong>{{ reportData[\"Sample ID\"] }}</div>\n",
|
|||
|
|
" </td>\n",
|
|||
|
|
" </tr>\n",
|
|||
|
|
" </table>\n",
|
|||
|
|
" </div>\n",
|
|||
|
|
"\n",
|
|||
|
|
"\n",
|
|||
|
|
" <div style=\"height: 2px;width: 98%; background-color: rgb(56, 105, 166); margin: 30px 10px 40px 10px;\"></div>\n",
|
|||
|
|
"\n",
|
|||
|
|
"\n",
|
|||
|
|
" <div>\n",
|
|||
|
|
" <div class=\"table-header\">POINT OF CARE SICKLE CELL ANEMIA TEST</div>\n",
|
|||
|
|
" <table class=\"test-details-table\" style=\"border: 1px solid black; margin: 10px; width: 98%;\">\n",
|
|||
|
|
" <tr style=\"height: 50px;\">\n",
|
|||
|
|
" <th>\n",
|
|||
|
|
" Test Description\n",
|
|||
|
|
" </th>\n",
|
|||
|
|
" <th>\n",
|
|||
|
|
" RESULT\n",
|
|||
|
|
" </th>\n",
|
|||
|
|
" <th>\n",
|
|||
|
|
" REFERENCE RANGES\n",
|
|||
|
|
" </th>\n",
|
|||
|
|
" </tr>\n",
|
|||
|
|
" <tr class=\"test-details-row\">\n",
|
|||
|
|
" <td class=\"test-details-col\" style=\"width: 20%; margin: 10px;\">\n",
|
|||
|
|
" <div style=\"margin: 10px;\">Sickle Cell\n",
|
|||
|
|
" Anemia\n",
|
|||
|
|
" <div class=\"test-method\">(Method: HPOS)</div>\n",
|
|||
|
|
" </div>\n",
|
|||
|
|
" </td>\n",
|
|||
|
|
" <td style=\"width: 30%;\">\n",
|
|||
|
|
" <div class=\"result-value\">Ra = {{ reportData[\"value\"] }}</div>\n",
|
|||
|
|
" <!-- <div class=\"test-cell-div\">Normal</div>\n",
|
|||
|
|
" <div class=\"test-cell-div\">Sickle Cell Trait</div>\n",
|
|||
|
|
" <div class=\"test-cell-div\">Sickle Cell Disease</div>\n",
|
|||
|
|
" <div class=\"test-cell-div\">Negative Borderline</div>\n",
|
|||
|
|
" <div class=\"test-cell-div\">Positive Borderline</div> -->\n",
|
|||
|
|
" </td>\n",
|
|||
|
|
" <td style=\"width: 50%;\">\n",
|
|||
|
|
" <div class=\"test-cell-div\">\n",
|
|||
|
|
" < 0.16: Normal (HbA)</div>\n",
|
|||
|
|
" <div class=\"test-cell-div\">0.165 – 0.235: Sickle-cell Trait (HbAS)</div>\n",
|
|||
|
|
" <div class=\"test-cell-div\">> 0.24: Sickle-cell Disease (HbSS)</div>\n",
|
|||
|
|
" <div class=\"test-cell-div\">0.16-0.165: Inconclusive (Negative Borderline)</div>\n",
|
|||
|
|
" <div class=\"test-cell-div\">0.235 – 0.24: Inconclusive (Positive Borderline)</div>\n",
|
|||
|
|
" </td>\n",
|
|||
|
|
" <!-- <td style=\"width: 25%;\">\n",
|
|||
|
|
" <div class=\"test-cell-div\">Normal</div>\n",
|
|||
|
|
" <div class=\"test-cell-div\">Sickle Cell Trait</div>\n",
|
|||
|
|
" <div class=\"test-cell-div\">Sickle Cell Disease</div>\n",
|
|||
|
|
" <div class=\"test-cell-div\">Recommended for HPLC or Electrophoresis Tests</div>\n",
|
|||
|
|
" <div class=\"test-cell-div\">Recommended for HPLC or Electrophore</div>\n",
|
|||
|
|
" </td> -->\n",
|
|||
|
|
" </tr>\n",
|
|||
|
|
" </table>\n",
|
|||
|
|
" </div>\n",
|
|||
|
|
"\n",
|
|||
|
|
" <div>\n",
|
|||
|
|
" <!-- <div style=\"font-weight: 600; margin: 10px;\">INTERPRETATION:</div> -->\n",
|
|||
|
|
"\n",
|
|||
|
|
" <div style=\"margin: 10px;\">\n",
|
|||
|
|
" <strong>Test Principle:</strong> This point of care quantitative diagnostic test for sickle-cell anemia\n",
|
|||
|
|
" works on the principle of absorption\n",
|
|||
|
|
" spectroscopy. The test helps in differentiating heterozygous/homozygous hemoglobin from normal hemoglobin.\n",
|
|||
|
|
" </div>\n",
|
|||
|
|
"\n",
|
|||
|
|
" <div style=\"margin: 10px;\">\n",
|
|||
|
|
" <strong>Method:</strong> High Performance Optical Spectroscopy (HPOS) for detection of Sickle cell trait and\n",
|
|||
|
|
" sickle cell disease in whole blood capillary blood samples.\n",
|
|||
|
|
" </div>\n",
|
|||
|
|
"\n",
|
|||
|
|
" <div style=\"margin: 10px;\">\n",
|
|||
|
|
" <strong> Note:</strong>\n",
|
|||
|
|
" <!-- <ul>\n",
|
|||
|
|
" <li>a. Blood transfusion may have an impact on the test results.</li>\n",
|
|||
|
|
"\n",
|
|||
|
|
" <li>\n",
|
|||
|
|
" b. Patients already on sickle-cell medications may impact test results.\n",
|
|||
|
|
" </li>\n",
|
|||
|
|
" </ul> -->\n",
|
|||
|
|
"\n",
|
|||
|
|
" Borderline cases are reported as inconclusive. It may occur due to several factors such as medication,\n",
|
|||
|
|
" transfusion, field conditions and assay process. Further clinical tests are recommended in these cases for\n",
|
|||
|
|
" diagnosis.\n",
|
|||
|
|
" </div>\n",
|
|||
|
|
"\n",
|
|||
|
|
" <!-- <div\n",
|
|||
|
|
" style=\"margin: 80px 10px 20px 50px; width: 88%; display: flex; flex-direction: row; justify-content: space-between; align-items: center;\">\n",
|
|||
|
|
" <div style=\"margin: 5px;\">DATE:</div>\n",
|
|||
|
|
" <div style=\"margin: 5px;\">Hematologist</div>\n",
|
|||
|
|
" </div> -->\n",
|
|||
|
|
"\n",
|
|||
|
|
" <!-- <div style=\"margin: 30px;\">\n",
|
|||
|
|
" This report is for the perusal of doctor only. Not for medico legal cases. Clinical correlation is\n",
|
|||
|
|
" essential.\n",
|
|||
|
|
" Please contact us in case of unexpected result.\n",
|
|||
|
|
" </div> -->\n",
|
|||
|
|
" <div style=\"height: 3px;width: 98%; background-color: black; margin-top: 150px;\"></div>\n",
|
|||
|
|
" <div class=\"end-of-report\">\n",
|
|||
|
|
" *** END OF REPORT ***</div>\n",
|
|||
|
|
" <div style=\"display: flex; justify-content: center; align-items: center; flex-direction: column;\">\n",
|
|||
|
|
" <div style=\"font-style: italic; color: rgb(191, 191, 191);\">\n",
|
|||
|
|
" This is an electronically generated report. Generated at HH:MM hrs on DD-MMM-YYYY.\n",
|
|||
|
|
" </div>\n",
|
|||
|
|
" <div>\n",
|
|||
|
|
" Note: Assay results should be correlated clinically with other clinical findings\n",
|
|||
|
|
" </div>\n",
|
|||
|
|
" </div>\n",
|
|||
|
|
" </div>\n",
|
|||
|
|
"</body>\n",
|
|||
|
|
"\n",
|
|||
|
|
"</html>\n",
|
|||
|
|
"'''\n",
|
|||
|
|
" rptHtml = j2_env.from_string(report_template).render(reportData=rd)\n",
|
|||
|
|
" reportFile = open('reports/' + rd['Sample ID'] + '.pdf','w+b')\n",
|
|||
|
|
" pisa_status = pisa.CreatePDF(rptHtml, dest=reportFile)\n",
|
|||
|
|
" if not pisa_status.err:\n",
|
|||
|
|
" print(\"Created PDF report %s.\" % outFilename)\n",
|
|||
|
|
" #os.remove(rd['qrcodeImgFile'])\n",
|
|||
|
|
" return\n",
|
|||
|
|
"\n",
|
|||
|
|
"if (len(sys.argv) < 2):\n",
|
|||
|
|
" print(\"Usage: genLabReport.py <results_file.csv>\")\n",
|
|||
|
|
" sys.exit(1)\n",
|
|||
|
|
"\n",
|
|||
|
|
"csv_file_path = r\"C:\\Users\\acer\\Desktop\\SMI\\TILL AUG5.csv\" # Replace this with the actual path to your CSV file\n",
|
|||
|
|
"\n",
|
|||
|
|
"\n",
|
|||
|
|
"with open(csv_file_path) as resultsCSVFile:\n",
|
|||
|
|
" reader = csv.DictReader(resultsCSVFile)\n",
|
|||
|
|
" for row in reader:\n",
|
|||
|
|
" generatePDFReport(row)"
|
|||
|
|
]
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"cell_type": "code",
|
|||
|
|
"execution_count": null,
|
|||
|
|
"id": "90a2f709-7521-41ed-ba1b-99cbbf108ab0",
|
|||
|
|
"metadata": {},
|
|||
|
|
"outputs": [],
|
|||
|
|
"source": []
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"cell_type": "code",
|
|||
|
|
"execution_count": null,
|
|||
|
|
"id": "3e31b418-eb4c-48e1-9a4f-bdfdc50365f4",
|
|||
|
|
"metadata": {},
|
|||
|
|
"outputs": [],
|
|||
|
|
"source": []
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
"metadata": {
|
|||
|
|
"kernelspec": {
|
|||
|
|
"display_name": "Python 3 (ipykernel)",
|
|||
|
|
"language": "python",
|
|||
|
|
"name": "python3"
|
|||
|
|
},
|
|||
|
|
"language_info": {
|
|||
|
|
"codemirror_mode": {
|
|||
|
|
"name": "ipython",
|
|||
|
|
"version": 3
|
|||
|
|
},
|
|||
|
|
"file_extension": ".py",
|
|||
|
|
"mimetype": "text/x-python",
|
|||
|
|
"name": "python",
|
|||
|
|
"nbconvert_exporter": "python",
|
|||
|
|
"pygments_lexer": "ipython3",
|
|||
|
|
"version": "3.11.3"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"nbformat": 4,
|
|||
|
|
"nbformat_minor": 5
|
|||
|
|
}
|