feat(MED-161): add jest for service tests
This commit is contained in:
@@ -833,282 +833,6 @@ const big2: AnalysisTestResponse = {
|
||||
],
|
||||
};
|
||||
|
||||
const big2: AnalysisTestResponse = {
|
||||
"id": 3,
|
||||
"orderedAnalysisElements": [
|
||||
{
|
||||
"analysisIdOriginal": "57021-8",
|
||||
"isWaitingForResults": false,
|
||||
"analysisName": "Hemogramm",
|
||||
"results": {
|
||||
"nestedElements": [
|
||||
{
|
||||
"status": 4,
|
||||
"unit": "g/L",
|
||||
"normLower": 134,
|
||||
"normUpper": 170,
|
||||
"normStatus": 0,
|
||||
"responseTime": "2025-09-12 14:02:03",
|
||||
"responseValue": 150,
|
||||
"normLowerIncluded": false,
|
||||
"normUpperIncluded": false,
|
||||
"analysisElementOriginalId": "718-7"
|
||||
},
|
||||
{
|
||||
"status": 4,
|
||||
"unit": "%",
|
||||
"normLower": 40,
|
||||
"normUpper": 49,
|
||||
"normStatus": 0,
|
||||
"responseTime": "2025-09-12 14:02:03",
|
||||
"responseValue": 45,
|
||||
"normLowerIncluded": false,
|
||||
"normUpperIncluded": false,
|
||||
"analysisElementOriginalId": "4544-3"
|
||||
},
|
||||
{
|
||||
"status": 4,
|
||||
"unit": "E9/L",
|
||||
"normLower": 4.1,
|
||||
"normUpper": 9.7,
|
||||
"normStatus": 0,
|
||||
"responseTime": "2025-09-12 14:02:03",
|
||||
"responseValue": 5,
|
||||
"normLowerIncluded": false,
|
||||
"normUpperIncluded": false,
|
||||
"analysisElementOriginalId": "6690-2"
|
||||
},
|
||||
{
|
||||
"status": 4,
|
||||
"unit": "E12/L",
|
||||
"normLower": 4.5,
|
||||
"normUpper": 5.7,
|
||||
"normStatus": 0,
|
||||
"responseTime": "2025-09-12 14:02:03",
|
||||
"responseValue": 5,
|
||||
"normLowerIncluded": false,
|
||||
"normUpperIncluded": false,
|
||||
"analysisElementOriginalId": "789-8"
|
||||
},
|
||||
{
|
||||
"status": 4,
|
||||
"unit": "fL",
|
||||
"normLower": 82,
|
||||
"normUpper": 95,
|
||||
"normStatus": 0,
|
||||
"responseTime": "2025-09-12 14:02:04",
|
||||
"responseValue": 85,
|
||||
"normLowerIncluded": false,
|
||||
"normUpperIncluded": false,
|
||||
"analysisElementOriginalId": "787-2"
|
||||
},
|
||||
{
|
||||
"status": 4,
|
||||
"unit": "pg",
|
||||
"normLower": 28,
|
||||
"normUpper": 33,
|
||||
"normStatus": 0,
|
||||
"responseTime": "2025-09-12 14:02:04",
|
||||
"responseValue": 30,
|
||||
"normLowerIncluded": false,
|
||||
"normUpperIncluded": false,
|
||||
"analysisElementOriginalId": "785-6"
|
||||
},
|
||||
{
|
||||
"status": 4,
|
||||
"unit": "g/L",
|
||||
"normLower": 322,
|
||||
"normUpper": 356,
|
||||
"normStatus": 0,
|
||||
"responseTime": "2025-09-12 14:02:04",
|
||||
"responseValue": 355,
|
||||
"normLowerIncluded": false,
|
||||
"normUpperIncluded": false,
|
||||
"analysisElementOriginalId": "786-4"
|
||||
},
|
||||
{
|
||||
"status": 4,
|
||||
"unit": "%",
|
||||
"normLower": 12,
|
||||
"normUpper": 15,
|
||||
"normStatus": 0,
|
||||
"responseTime": "2025-09-12 14:02:04",
|
||||
"responseValue": 15,
|
||||
"normLowerIncluded": false,
|
||||
"normUpperIncluded": false,
|
||||
"analysisElementOriginalId": "788-0"
|
||||
},
|
||||
{
|
||||
"status": 4,
|
||||
"unit": "E9/L",
|
||||
"normLower": 157,
|
||||
"normUpper": 372,
|
||||
"normStatus": 0,
|
||||
"responseTime": "2025-09-12 14:02:04",
|
||||
"responseValue": 255,
|
||||
"normLowerIncluded": false,
|
||||
"normUpperIncluded": false,
|
||||
"analysisElementOriginalId": "777-3"
|
||||
},
|
||||
{
|
||||
"status": 4,
|
||||
"unit": "%",
|
||||
"normLower": 0.18,
|
||||
"normUpper": 0.38,
|
||||
"normStatus": 0,
|
||||
"responseTime": "2025-09-12 14:02:04",
|
||||
"responseValue": 0.2,
|
||||
"normLowerIncluded": false,
|
||||
"normUpperIncluded": false,
|
||||
"analysisElementOriginalId": "51637-7"
|
||||
},
|
||||
{
|
||||
"status": 4,
|
||||
"unit": "fL",
|
||||
"normLower": 9.2,
|
||||
"normUpper": 12.3,
|
||||
"normStatus": 0,
|
||||
"responseTime": "2025-09-12 14:02:04",
|
||||
"responseValue": 10,
|
||||
"normLowerIncluded": false,
|
||||
"normUpperIncluded": false,
|
||||
"analysisElementOriginalId": "32623-1"
|
||||
},
|
||||
{
|
||||
"status": 4,
|
||||
"unit": "fL",
|
||||
"normLower": 10.1,
|
||||
"normUpper": 16.2,
|
||||
"normStatus": 0,
|
||||
"responseTime": "2025-09-12 14:02:04",
|
||||
"responseValue": 15,
|
||||
"normLowerIncluded": false,
|
||||
"normUpperIncluded": false,
|
||||
"analysisElementOriginalId": "32207-3"
|
||||
},
|
||||
{
|
||||
"status": 4,
|
||||
"unit": "E9/L",
|
||||
"normLower": 0.01,
|
||||
"normUpper": 0.08,
|
||||
"normStatus": 0,
|
||||
"responseTime": "2025-09-12 14:02:04",
|
||||
"responseValue": 0.05,
|
||||
"normLowerIncluded": false,
|
||||
"normUpperIncluded": false,
|
||||
"analysisElementOriginalId": "704-7"
|
||||
},
|
||||
{
|
||||
"status": 4,
|
||||
"unit": "E9/L",
|
||||
"normLower": 0.02,
|
||||
"normUpper": 0.4,
|
||||
"normStatus": 0,
|
||||
"responseTime": "2025-09-12 14:02:04",
|
||||
"responseValue": 0.05,
|
||||
"normLowerIncluded": false,
|
||||
"normUpperIncluded": false,
|
||||
"analysisElementOriginalId": "711-2"
|
||||
},
|
||||
{
|
||||
"status": 4,
|
||||
"unit": "E9/L",
|
||||
"normLower": 1.9,
|
||||
"normUpper": 6.7,
|
||||
"normStatus": 0,
|
||||
"responseTime": "2025-09-12 14:02:04",
|
||||
"responseValue": 5,
|
||||
"normLowerIncluded": false,
|
||||
"normUpperIncluded": false,
|
||||
"analysisElementOriginalId": "751-8"
|
||||
},
|
||||
{
|
||||
"status": 4,
|
||||
"unit": "E9/L",
|
||||
"normLower": 0.24,
|
||||
"normUpper": 0.8,
|
||||
"normStatus": 0,
|
||||
"responseTime": "2025-09-12 14:02:04",
|
||||
"responseValue": 0.5,
|
||||
"normLowerIncluded": false,
|
||||
"normUpperIncluded": false,
|
||||
"analysisElementOriginalId": "742-7"
|
||||
},
|
||||
{
|
||||
"status": 4,
|
||||
"unit": "E9/L",
|
||||
"normLower": 1.3,
|
||||
"normUpper": 3.1,
|
||||
"normStatus": 0,
|
||||
"responseTime": "2025-09-12 14:02:04",
|
||||
"responseValue": 1.5,
|
||||
"normLowerIncluded": false,
|
||||
"normUpperIncluded": false,
|
||||
"analysisElementOriginalId": "731-0"
|
||||
},
|
||||
{
|
||||
"status": 4,
|
||||
"unit": "E9/L",
|
||||
"normLower": 0,
|
||||
"normUpper": 0.03,
|
||||
"normStatus": 0,
|
||||
"responseTime": "2025-09-12 14:02:03",
|
||||
"responseValue": 0,
|
||||
"normLowerIncluded": false,
|
||||
"normUpperIncluded": false,
|
||||
"analysisElementOriginalId": "51584-1"
|
||||
},
|
||||
{
|
||||
"status": 4,
|
||||
"unit": "%",
|
||||
"normLower": 0,
|
||||
"normUpper": 0.5,
|
||||
"normStatus": 0,
|
||||
"responseTime": "2025-09-12 14:02:04",
|
||||
"responseValue": 0,
|
||||
"normLowerIncluded": false,
|
||||
"normUpperIncluded": false,
|
||||
"analysisElementOriginalId": "38518-7"
|
||||
},
|
||||
{
|
||||
"status": 4,
|
||||
"unit": "E9/L",
|
||||
"normStatus": 0,
|
||||
"responseTime": "2025-09-12 14:02:04",
|
||||
"responseValue": 0,
|
||||
"normLowerIncluded": false,
|
||||
"normUpperIncluded": false,
|
||||
"analysisElementOriginalId": "771-6"
|
||||
},
|
||||
{
|
||||
"status": 4,
|
||||
"unit": "/100WBC",
|
||||
"normStatus": 0,
|
||||
"responseTime": "2025-09-12 14:02:04",
|
||||
"responseValue": 0,
|
||||
"normLowerIncluded": false,
|
||||
"normUpperIncluded": false,
|
||||
"analysisElementOriginalId": "58413-6"
|
||||
}
|
||||
],
|
||||
"unit": null,
|
||||
"normLower": null,
|
||||
"normUpper": null,
|
||||
"normStatus": null,
|
||||
"responseTime": null,
|
||||
"responseValue": null,
|
||||
"normLowerIncluded": false,
|
||||
"normUpperIncluded": false,
|
||||
"responseValueIsNegative": false,
|
||||
"responseValueIsWithinNorm": false,
|
||||
"status": "4",
|
||||
"analysisElementOriginalId": "57021-8",
|
||||
"summary": 'test'
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
export const analysisResponses: AnalysisTestResponse[] = [
|
||||
empty1,
|
||||
big1,
|
||||
|
||||
Reference in New Issue
Block a user