add text content in template

This commit is contained in:
Pritimay Sarkar
2023-08-06 14:01:52 +05:30
parent ca71641341
commit 29b7db446e
3 changed files with 100 additions and 52 deletions

View File

@@ -7,32 +7,39 @@ void loop() {
// put your main code here, to run repeatedly:
Serial.println("SN:182829");
while (Serial.available() == 0) {} //wait for data available
String bufferCommand = Serial.readString(); //read until timeout
bufferCommand.trim(); // remove any \r \n whitespace at the end of the String
if (bufferCommand == "B") {
Serial.println("#Start Buffer");
delay(2000);
Serial.println("#Buffer Completed");
}
// while (Serial.available() == 0) {} //wait for data available
// String bufferCommand = Serial.readString(); //read until timeout
// bufferCommand.trim(); // remove any \r \n whitespace at the end of the String
// if (bufferCommand == "B") {
// Serial.println("#Start Buffer");
// delay(2000);
// Serial.println("#Buffer Completed");
// }
while (Serial.available() == 0) {} //wait for data available
String SampleCommand = Serial.readString(); //read until timeout
SampleCommand.trim(); // remove any \r \n whitespace at the end of the String
if (SampleCommand == "S") {
Serial.println("#Sample Started");
delay(2000);
Serial.println("#Sample Completed");
}
// while (Serial.available() == 0) {} //wait for data available
// String SampleCommand = Serial.readString(); //read until timeout
// SampleCommand.trim(); // remove any \r \n whitespace at the end of the String
// if (SampleCommand == "S") {
// Serial.println("#Sample Started");
// delay(2000);
// Serial.println("#Sample Completed");
// }
// while (Serial.available() == 0) {} //wait for data available
// String resultCommand = Serial.readString(); //read until timeout
// resultCommand.trim(); // remove any \r \n whitespace at the end of the String
// if (resultCommand == "R") {
// delay(3000);
// Serial.println("RESULT SN 18291 1937.23 2828.11 28211.20 121829.12 REND");
// delay(15000);
// }
while (Serial.available() == 0) {} //wait for data available
String resultCommand = Serial.readString(); //read until timeout
resultCommand.trim(); // remove any \r \n whitespace at the end of the String
if (resultCommand == "R") {
if (resultCommand == "B") {
delay(3000);
Serial.println("RESULT SN 18291 1937.23 2828.11 28211.20 121829.12 REND");
Serial.println("ERROR 500 REND");
delay(15000);
}
// Serial.println("#ERROR 100");
}

View File

@@ -1,39 +1,68 @@
<!DOCTYPE html>
<html>
<head>
<title>Report</title>
<style>
.person-deatils-row {
display: flex;
flex-direction: row;
}
.person-details-col {
display: flex;
flex-direction: column;
height: 100px;
width: 350px;
}
</style>
<title>Report</title>
<style>
.person-details-row {
display: flex;
flex-direction: row;
}
.person-details-col {
display: flex;
flex-direction: column;
height: 90px;
width: 350px;
}
</style>
</head>
<body>
<table style="border: 1px solid black;">
<tr class="person-deatils-row">
<td class="person-details-col">
<div>Person Name : </div>
<div>Age & Sex : </div>
<div>Sample type : </div>
<div>Family History of Sickle Cell Anemia (Yes / No): </div>
</td>
<td class="person-details-col">
<div>Received on : </div>
<div>Reported on : </div>
<div>Ref. Doctor : </div>
<div>Serial No: </div>
</td>
</tr>
</table>
<table style="border: 1px solid black;">
<tr class="person-details-row">
<td class="person-details-col">
<div>Person Name : </div>
<div>Age & Sex : </div>
<div>Sample type : </div>
<div>Family History of Sickle Cell Anemia (Yes / No): </div>
</td>
<td class="person-details-col">
<div>Received on : </div>
<div>Reported on : </div>
<div>Ref. Doctor : </div>
<div>Serial No: </div>
</td>
</tr>
</table>
<div>
INTERPRETATION:
Test Principle: The diagnostic test work on the principle of absorption spectroscopy. The test helps in
differentiating heterozygous/homozygous hemoglobin from normal hemoglobin.
Method: High Performance Optical Spectroscopy for detection of Sickle cell trail and sickle cell disease
Note: a. Blood transfusion may have an impact on the test results.
b. Patients already on sickle-cell medications may impact test results.
DATE: Hematologist
This report is for the perusal of doctor only. Not for medico legal cases. Clinical correlation is essential.
Please contact us in case of unexpected result.
Test Description RESULT ABSORBANCE RATIO REFERENCE RANGE INTERPRETATION
Sickle Cell
Anemia Normal < 0.29 Normal Sickle Cell Trait 0.32 0.5 Sickle Cell Trait Sickle Cell Disease> 0.55 Sickle Cell
Disease Negative Borderline 0.29-0.32 Recommended for HPLC or Electrophoresis Tests Positive Borderline 0.5
0.55 Recommended for HPLC or Electrophore
</div>
</body>
</html>
</html>

View File

@@ -152,13 +152,25 @@ const Devices = () => {
<td>result</td> <td>{curTestData?.result}</td>
</tr>
{curTestData?.testType === 'HEMOCUBE' && <tr>
<td>device data</td>
<td>calculatedRatio</td>
<td>{curTestData?.calculatedRatio}</td>
</tr>}
{curTestData?.testType === 'HEMOCUBE' && <tr>
<td>device data</td>
<td>deviceRatio</td>
<td>{curTestData?.deviceRatio}</td>
</tr>}
{curTestData?.testType === 'HEMOCUBE' && <tr>
<td>green led Average</td>
<td>{curTestData?.led1Average}</td>
</tr>}
{curTestData?.testType === 'HEMOCUBE' && <tr>
<td>blue led Average</td>
<td>{curTestData?.led2Average}</td>
</tr>}
{curTestData?.testType === 'HEMOCUBE' && <tr>
<td>blue led Average</td>
<td>{curTestData?.led2Average}</td>
</tr>}
</table>
{/* <img src={curTestData?.userImageURL} width={100} height={150} /> */}
</div>}