Rename test results
This commit is contained in:
parent
d1da98a9e4
commit
1cbaccdf82
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue