Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: SKFP-1127 add hardcoded cbtn instructions #122

Merged
merged 1 commit into from
Jun 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ import { BioRequestConfig, SheetConfig } from '../types';
import generateTxtFile from '../utils/generateTxtFile';
import { addConditionAvailableInSqon } from '../utils/getAvailableBiospecimensFromSqon';

// eslint-disable-next-line max-len
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 research@cbtn.org.';

/**
* Generate and write locally.
*/
Expand Down Expand Up @@ -71,6 +74,11 @@ export default async function generateFiles(
if ((row as any).study.note) {
readmeContents.push(`### ${study_code} - ${(row as any).study.study_name}`);
readmeContents.push(`${(row as any).study.note}`);

// TODO remove this part when instructions will be in FHIR for CBTN.
} else if (study_code === 'CBTN') {
readmeContents.push(`### ${study_code} - ${(row as any).study.study_name}`);
readmeContents.push(cbtn_instructions_mock);
}
}

Expand Down
Loading