add text content in template
This commit is contained in:
@@ -7,32 +7,39 @@ void loop() {
|
|||||||
// put your main code here, to run repeatedly:
|
// put your main code here, to run repeatedly:
|
||||||
|
|
||||||
Serial.println("SN:182829");
|
Serial.println("SN:182829");
|
||||||
while (Serial.available() == 0) {} //wait for data available
|
// while (Serial.available() == 0) {} //wait for data available
|
||||||
String bufferCommand = Serial.readString(); //read until timeout
|
// String bufferCommand = Serial.readString(); //read until timeout
|
||||||
bufferCommand.trim(); // remove any \r \n whitespace at the end of the String
|
// bufferCommand.trim(); // remove any \r \n whitespace at the end of the String
|
||||||
if (bufferCommand == "B") {
|
// if (bufferCommand == "B") {
|
||||||
Serial.println("#Start Buffer");
|
// Serial.println("#Start Buffer");
|
||||||
delay(2000);
|
// delay(2000);
|
||||||
Serial.println("#Buffer Completed");
|
// Serial.println("#Buffer Completed");
|
||||||
}
|
// }
|
||||||
|
|
||||||
while (Serial.available() == 0) {} //wait for data available
|
// while (Serial.available() == 0) {} //wait for data available
|
||||||
String SampleCommand = Serial.readString(); //read until timeout
|
// String SampleCommand = Serial.readString(); //read until timeout
|
||||||
SampleCommand.trim(); // remove any \r \n whitespace at the end of the String
|
// SampleCommand.trim(); // remove any \r \n whitespace at the end of the String
|
||||||
if (SampleCommand == "S") {
|
// if (SampleCommand == "S") {
|
||||||
Serial.println("#Sample Started");
|
// Serial.println("#Sample Started");
|
||||||
delay(2000);
|
// delay(2000);
|
||||||
Serial.println("#Sample Completed");
|
// 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
|
while (Serial.available() == 0) {} //wait for data available
|
||||||
String resultCommand = Serial.readString(); //read until timeout
|
String resultCommand = Serial.readString(); //read until timeout
|
||||||
resultCommand.trim(); // remove any \r \n whitespace at the end of the String
|
resultCommand.trim(); // remove any \r \n whitespace at the end of the String
|
||||||
if (resultCommand == "R") {
|
if (resultCommand == "B") {
|
||||||
delay(3000);
|
delay(3000);
|
||||||
Serial.println("RESULT SN 18291 1937.23 2828.11 28211.20 121829.12 REND");
|
Serial.println("ERROR 500 REND");
|
||||||
delay(15000);
|
delay(15000);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Serial.println("#ERROR 100");
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,39 +1,68 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<title>Report</title>
|
<title>Report</title>
|
||||||
<style>
|
<style>
|
||||||
.person-deatils-row {
|
.person-details-row {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
}
|
}
|
||||||
.person-details-col {
|
|
||||||
display: flex;
|
.person-details-col {
|
||||||
flex-direction: column;
|
display: flex;
|
||||||
height: 100px;
|
flex-direction: column;
|
||||||
width: 350px;
|
height: 90px;
|
||||||
}
|
width: 350px;
|
||||||
</style>
|
}
|
||||||
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<table style="border: 1px solid black;">
|
<table style="border: 1px solid black;">
|
||||||
<tr class="person-deatils-row">
|
<tr class="person-details-row">
|
||||||
<td class="person-details-col">
|
<td class="person-details-col">
|
||||||
<div>Person Name : </div>
|
<div>Person Name : </div>
|
||||||
<div>Age & Sex : </div>
|
<div>Age & Sex : </div>
|
||||||
<div>Sample type : </div>
|
<div>Sample type : </div>
|
||||||
<div>Family History of Sickle Cell Anemia (Yes / No): </div>
|
<div>Family History of Sickle Cell Anemia (Yes / No): </div>
|
||||||
</td>
|
</td>
|
||||||
<td class="person-details-col">
|
<td class="person-details-col">
|
||||||
<div>Received on : </div>
|
<div>Received on : </div>
|
||||||
<div>Reported on : </div>
|
<div>Reported on : </div>
|
||||||
<div>Ref. Doctor : </div>
|
<div>Ref. Doctor : </div>
|
||||||
<div>Serial No: </div>
|
<div>Serial No: </div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</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>
|
</body>
|
||||||
</html>
|
|
||||||
|
|
||||||
|
</html>
|
||||||
@@ -152,13 +152,25 @@ const Devices = () => {
|
|||||||
<td>result</td> <td>{curTestData?.result}</td>
|
<td>result</td> <td>{curTestData?.result}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{curTestData?.testType === 'HEMOCUBE' && <tr>
|
{curTestData?.testType === 'HEMOCUBE' && <tr>
|
||||||
<td>device data</td>
|
<td>calculatedRatio</td>
|
||||||
<td>{curTestData?.calculatedRatio}</td>
|
<td>{curTestData?.calculatedRatio}</td>
|
||||||
</tr>}
|
</tr>}
|
||||||
{curTestData?.testType === 'HEMOCUBE' && <tr>
|
{curTestData?.testType === 'HEMOCUBE' && <tr>
|
||||||
<td>device data</td>
|
<td>deviceRatio</td>
|
||||||
<td>{curTestData?.deviceRatio}</td>
|
<td>{curTestData?.deviceRatio}</td>
|
||||||
</tr>}
|
</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>
|
</table>
|
||||||
{/* <img src={curTestData?.userImageURL} width={100} height={150} /> */}
|
{/* <img src={curTestData?.userImageURL} width={100} height={150} /> */}
|
||||||
</div>}
|
</div>}
|
||||||
|
|||||||
Reference in New Issue
Block a user