Skip to content

Commit e0d6160

Browse files
fix: SKFP-1127 add hardcoded cbtn instructions
1 parent 2a8d029 commit e0d6160

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/reports/biospecimen-request/generateBiospecimenRequestFiles.ts

+8
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ import { BioRequestConfig, SheetConfig } from '../types';
1414
import generateTxtFile from '../utils/generateTxtFile';
1515
import { addConditionAvailableInSqon } from '../utils/getAvailableBiospecimensFromSqon';
1616

17+
// eslint-disable-next-line max-len
18+
const cbtn_instructions_mock = 'To request biospecimens from CBTN, please use the request form (https://airtable.com/apperYvVD82ti3021/pagdArwI0TxJQpiVW/form). General inquiries can be directed to [email protected].';
19+
1720
/**
1821
* Generate and write locally.
1922
*/
@@ -71,6 +74,11 @@ export default async function generateFiles(
7174
if ((row as any).study.note) {
7275
readmeContents.push(`### ${study_code} - ${(row as any).study.study_name}`);
7376
readmeContents.push(`${(row as any).study.note}`);
77+
78+
// TODO remove this part when instructions will be in FHIR for CBTN.
79+
} else if (study_code === 'CBTN') {
80+
readmeContents.push(`### ${study_code} - ${(row as any).study.study_name}`);
81+
readmeContents.push(cbtn_instructions_mock);
7482
}
7583
}
7684

0 commit comments

Comments
 (0)