Rename test results

This commit is contained in:
Marvin Sextro 2021-12-26 00:18:56 +01:00
parent d1da98a9e4
commit 1cbaccdf82
1 changed files with 11 additions and 1 deletions

View File

@ -235,7 +235,17 @@ export class Payload {
throw new Error('invalidTestType')
}
const testResult = valueSets.testResults[testResultKey].display;
let testResult = valueSets.testResults[testResultKey].display;
switch (testResult) {
case 'Not detected':
testResult = 'Negative';
break;
case 'Detected':
testResult = 'Positive';
break;
}
const testType = valueSets.testTypes[testTypeKey].display;
const testTime = testDateTimeString.replace(/.*T/, '').replace('Z', ' ') + 'UTC';