Skip to content

Commit

Permalink
Merge pull request #327 from CBIIT/muzipovay2
Browse files Browse the repository at this point in the history
CHARMS - Verifying new Consent Form fields in Native View.
  • Loading branch information
Mariachaudhry authored Nov 21, 2024
2 parents a858c93 + 6e44a56 commit f876a25
Show file tree
Hide file tree
Showing 11 changed files with 975 additions and 280 deletions.
239 changes: 237 additions & 2 deletions src/test/java/ServiceNow/CHARMS/Constants/Native_View_Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
public class Native_View_Constants {

/**
* Subject Flags Columns
* Participant study Subject Flags Columns
*/
public static final List<String> subjectFlagsColumns = new ArrayList<>() {
{
Expand All @@ -19,4 +19,239 @@ public class Native_View_Constants {
add("Individual Genetic Status");
}
};
}

/**
* Participant consent record "Cohort" dropdown options
*/
public static final List<String> consentRecordCohortDropdownOptions = new ArrayList<>() {
{
add("-- None --");
add("Clinical");
add("Field");
}
};

/**
* Participant consent record "Consent Form" dropdown options
*/
public static final List<String> consentRecordConsentFormDropdownOptions = new ArrayList<>() {
{
add("-- None --");
add("Clinical");
add("Field");
}
};

/**
* Participant consent record "Collection Method" dropdown options
*/
public static final List<String> consentRecordCollectionMethodDropdownOptions = new ArrayList<>() {
{
add("-- None --");
add("CHARMS e-consent");
add("Participant upload to portal");
add("Mail/Fax/Email/Other");
add("iMed");
}
};

/**
* Participant consent record "Consent/Assent Status" dropdown options
*/
public static final List<String> consentRecordConsentAssentStatusDropdownOptions = new ArrayList<>() {
{
add("-- None --");
add("Pending");
add("Assented, pending Consent");
add("Consented, pending Assent");
add("Consented only");
add("Consented and Assented");
add("Declined");
add("N/A");
}
};

/**
* Participant consent record "Consent/Assent Category" dropdown options
*/
public static final List<String> consentRecordConsentAssentCategoryDropdownOptions = new ArrayList<>() {
{
add("-- None --");
add("Under 7");
add("Aged 7 - 10, verbal assent required");
add("Aged 11 - 13, signed assent required");
add("Aged 14 - 17, signed consent required");
add("Adult");
add("Adult - Needs LAR");
}
};

/**
* Participant consent record "Parent/Guardian Status" dropdown options
*/
public static final List<String> consentRecordParentGuardianStatusDropdownOptions = new ArrayList<>() {
{
add("-- None --");
add("Parents, Married");
add("Parents, Separated - Joint Custody");
add("Parent, Separated or Widowed - Single Custody");
add("Other Legal Guardian - 1");
add("Other Guardian - 2");
add("N/A");
}
};

/**
* Participant consent record "Number of Guardian Signatures Required" dropdown options
*/
public static final List<String> consentRecordGuardianSignaturesRequiredDropdownOptions = new ArrayList<>() {
{
add("-- None --");
add("1");
add("2");
add("None");
}
};

/**
* Participant consent record Parent/Guardian 1/2 Signed dropdown options
*/
public static final List<String> consentRecordGuardianSignedDropdownOptions = new ArrayList<>() {
{
add("-- None --");
add("Pending");
add("Yes");
add("No");
add("N/A");
}
};

/**
* Participant consent record "Number of LARs" dropdown options
*/
public static final List<String> consentRecordNumberOfLarsDropdownOptions = new ArrayList<>() {
{
add("-- None --");
add("1");
add("2");
add("N/A");
}
};

/**
* Participant consent record LAR 1/2 Signed dropdown options
*/
public static final List<String> consentRecordLARSignedDropdownOptions = new ArrayList<>() {
{
add("-- None --");
add("Pending");
add("Yes");
add("No");
add("N/A");
}
};

/**
* Participant consent record "Was verbal assent obtained?" dropdown options
*/
public static final List<String> consentRecordWasVerbalAssentObtainedDropdownOptions = new ArrayList<>() {
{
add("No");
add("Yes");
}
};

/**
* Participant consent record "Current/Previous" dropdown options
*/
public static final List<String> consentRecordCurrentPreviousDropdownOptions = new ArrayList<>() {
{
add("-- None --");
add("Current");
add("Previous");
}
};

/**
* Participant consent record None/Yes/No question dropdown options
*/
public static final List<String> consentRecordYesNoQuestionDropdownOptions = new ArrayList<>() {
{
add("-- None --");
add("No");
add("Yes");
}
};

/**
* Participant consent record "Interpreter Signed" dropdown options
*/
public static final List<String> consentRecordInterpreterSignedDropdownOptions = new ArrayList<>() {
{
add("-- None --");
add("N/A");
add("No");
add("Yes");
}
};

/**
* Participant consent record "Interpreter Witness?" dropdown options
*/
public static final List<String> consentRecordInterpreterWitnessDropdownOptions = new ArrayList<>() {
{
add("-- None --");
add("No");
add("Yes");
}
};

/**
* Participant consent record "Future Use of Specimens and Data by NIH" dropdown options
*/
public static final List<String> consentRecordFutureUseOfSpecimensAndDataByNIHDropdownOptions = new ArrayList<>() {
{
add("-- None --");
add("Dead End by PI");
add("Dead End by Study Manager");
add("No");
add("Yes");
}
};

/**
* Participant consent record "Future Use by Collaborators" dropdown options
*/
public static final List<String> consentRecordFutureUseByCollaboratorsDropdownOptions = new ArrayList<>() {
{
add("-- None --");
add("Dead End by PI");
add("Dead End by Study Manager");
add("No");
add("Yes");
}
};

/**
* Participant consent record "Future Identifiable Use by Collaborators" dropdown options
*/
public static final List<String> consentRecordFutureIdentifiableUseByCollaboratorsDropdownOptions = new ArrayList<>() {
{
add("-- None --");
add("Dead End by PI");
add("Dead End by Study Manager");
add("No");
add("Yes");
}
};

/**
* Participant consent record "Return of Genetic Findings" dropdown options
*/
public static final List<String> consentRecordReturnOfGeneticFindingsDropdownOptions = new ArrayList<>() {
{
add("No (verbal opt-out)");
add("Yes (default)");
}
};
}
Loading

0 comments on commit f876a25

Please sign in to comment.