Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/**
* Autogenerated by Avro
*
* DO NOT EDIT DIRECTLY
*/
package org.gel.models.report.avro;
@SuppressWarnings("all")
@org.apache.avro.specific.AvroGenerated
public class AdditionalFindingsExitQuestionnaire extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord {
public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"AdditionalFindingsExitQuestionnaire\",\"namespace\":\"org.gel.models.report.avro\",\"fields\":[{\"name\":\"eventDate\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The date when the questionnaire was submitted\"},{\"name\":\"reporter\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The person that submitted the questionnaire\"},{\"name\":\"additionalFindingsVariantGroupLevelQuestions\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"AdditionalFindingsVariantGroupLevelQuestions\",\"doc\":\"The additional findings variant group level questions\",\"fields\":[{\"name\":\"variantGroup\",\"type\":\"int\",\"doc\":\"This value groups variants that together could explain the phenotype according to the mode of inheritance used.\\n (e.g.: compound heterozygous). All the variants in the same report sharing the same value will be considered in\\n the same group (i.e.: reported together). This value is an integer unique in the whole report.\\n These values are only relevant within the same report.\"},{\"name\":\"variantLevelQuestions\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"VariantLevelQuestions\",\"doc\":\"The variant level questions\",\"fields\":[{\"name\":\"variantCoordinates\",\"type\":{\"type\":\"record\",\"name\":\"VariantCoordinates\",\"doc\":\"The variant coordinates representing uniquely a small variant.\\n No multi-allelic variant supported, alternate only represents one alternate allele.\",\"fields\":[{\"name\":\"chromosome\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Chromosome without \\\"chr\\\" prefix (e.g. X rather than chrX)\"},{\"name\":\"position\",\"type\":\"int\",\"doc\":\"Genomic position\"},{\"name\":\"reference\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The reference bases.\"},{\"name\":\"alternate\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The alternate bases\"},{\"name\":\"assembly\",\"type\":{\"type\":\"enum\",\"name\":\"Assembly\",\"doc\":\"The reference genome assembly\",\"symbols\":[\"GRCh38\",\"GRCh37\"]},\"doc\":\"The assembly to which this variant corresponds\"}]},\"doc\":\"Variant coordinates\"},{\"name\":\"confirmationDecision\",\"type\":{\"type\":\"enum\",\"name\":\"ConfirmationDecision\",\"symbols\":[\"yes\",\"no\",\"na\"]},\"doc\":\"Did you carry out technical confirmation of this variant via an alternative test?\"},{\"name\":\"confirmationOutcome\",\"type\":{\"type\":\"enum\",\"name\":\"ConfirmationOutcome\",\"symbols\":[\"yes\",\"no\",\"na\"]},\"doc\":\"Did the test confirm that the variant is present?\"},{\"name\":\"reportingQuestion\",\"type\":{\"type\":\"enum\",\"name\":\"ReportingQuestion\",\"symbols\":[\"yes\",\"no\",\"na\"]},\"doc\":\"Did you include the variant in your report to the clinician?\"},{\"name\":\"acmgClassification\",\"type\":{\"type\":\"enum\",\"name\":\"ACMGClassification\",\"symbols\":[\"pathogenic_variant\",\"likely_pathogenic_variant\",\"variant_of_unknown_clinical_significance\",\"likely_benign_variant\",\"benign_variant\",\"not_assessed\",\"na\"]},\"doc\":\"What ACMG pathogenicity score (1-5) did you assign to this variant?\"},{\"name\":\"publications\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Please provide PMIDs for papers which you have used to inform your assessment for this variant, separated by a `;` for multiple papers\"}]}}],\"doc\":\"Variant level questions for each of the variants in the group\"},{\"name\":\"shortTandemRepeatLevelQuestions\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"ShortTandemRepeatLevelQuestions\",\"doc\":\"The variant level questions\",\"fields\":[{\"name\":\"coordinates\",\"type\":{\"type\":\"record\",\"name\":\"Coordinates\",\"fields\":[{\"name\":\"assembly\",\"type\":\"Assembly\",\"doc\":\"The assembly to which this variant corresponds\"},{\"name\":\"chromosome\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Chromosome without \\\"chr\\\" prefix (e.g. X rather than chrX)\"},{\"name\":\"start\",\"type\":\"int\",\"doc\":\"Start genomic position for variant (1-based)\"},{\"name\":\"end\",\"type\":\"int\",\"doc\":\"End genomic position for variant\"},{\"name\":\"ciStart\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"ConfidenceInterval\",\"fields\":[{\"name\":\"left\",\"type\":\"int\"},{\"name\":\"right\",\"type\":\"int\"}]}]},{\"name\":\"ciEnd\",\"type\":[\"null\",\"ConfidenceInterval\"]}]},\"doc\":\"Variant coordinates\"},{\"name\":\"confirmationDecision\",\"type\":\"ConfirmationDecision\",\"doc\":\"Did you carry out technical confirmation of this variant via an alternative test?\"},{\"name\":\"confirmationOutcome\",\"type\":\"ConfirmationOutcome\",\"doc\":\"Did the test confirm that the variant is present?\"},{\"name\":\"reportingQuestion\",\"type\":\"ReportingQuestion\",\"doc\":\"Did you include the variant in your report to the clinician?\"},{\"name\":\"acmgClassification\",\"type\":\"ACMGClassification\",\"doc\":\"What ACMG pathogenicity score (1-5) did you assign to this variant?\"},{\"name\":\"publications\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Please provide PMIDs for papers which you have used to inform your assessment for this variant, separated by a `;` for multiple papers\"}]}}],\"doc\":\"STR level questions for each of the variants in the group\"},{\"name\":\"structuralVariantLevelQuestions\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"StructuralVariantLevelQuestions\",\"doc\":\"Structural variant level questions\",\"fields\":[{\"name\":\"variantType\",\"type\":{\"type\":\"enum\",\"name\":\"StructuralVariantType\",\"symbols\":[\"ins\",\"dup\",\"inv\",\"amplification\",\"deletion\",\"dup_tandem\",\"del_me\",\"ins_me\"]},\"doc\":\"Structural variant type\"},{\"name\":\"coordinates\",\"type\":\"Coordinates\",\"doc\":\"Variant coordinates\"},{\"name\":\"confirmationDecision\",\"type\":\"ConfirmationDecision\",\"doc\":\"Did you carry out technical confirmation of this variant via an alternative test?\"},{\"name\":\"confirmationOutcome\",\"type\":\"ConfirmationOutcome\",\"doc\":\"Did the test confirm that the variant is present?\"},{\"name\":\"reportingQuestion\",\"type\":\"ReportingQuestion\",\"doc\":\"Did you include the variant in your report to the clinician?\"},{\"name\":\"acmgClassification\",\"type\":\"ACMGClassification\",\"doc\":\"What ACMG pathogenicity score (1-5) did you assign to this variant?\"},{\"name\":\"publications\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Please provide PMIDs for papers which you have used to inform your assessment for this variant, separated by a `;` for multiple papers\"}]}}],\"doc\":\"Structural level questions for each of the variants in the group\"},{\"name\":\"familyHistoryCondition\",\"type\":{\"type\":\"enum\",\"name\":\"FamilyHistoryCondition\",\"symbols\":[\"yes\",\"no\",\"unknown\"]},\"doc\":\"Does this patient have a positive family history relevant to this condition?\"},{\"name\":\"familyHistoryPatient\",\"type\":{\"type\":\"enum\",\"name\":\"FamilyHistoryPatient\",\"symbols\":[\"yes\",\"no\",\"unknown\"]},\"doc\":\"In patient:\"},{\"name\":\"familyHistoryFamily\",\"type\":{\"type\":\"enum\",\"name\":\"FamilyHistoryFamily\",\"symbols\":[\"yes\",\"no\",\"unknown\"]},\"doc\":\"In family:\"},{\"name\":\"clinicalUtility\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"enum\",\"name\":\"ClinicalUtility\",\"symbols\":[\"none\",\"change_in_medication\",\"surgical_option\",\"additional_surveillance_for_proband_or_relatives\",\"clinical_trial_eligibility\",\"informs_reproductive_choice\",\"unknown\",\"other\"]}},\"doc\":\"Has the clinical team identified any changes to clinical care which could potentially arise as a result of this variant/variant pair?\"}]}},\"doc\":\"The list of variant group level variants (ungrouped variants are to be set in single variant group)\"}]}");
public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
/** The date when the questionnaire was submitted */
private java.lang.String eventDate;
/** The person that submitted the questionnaire */
private java.lang.String reporter;
/** The list of variant group level variants (ungrouped variants are to be set in single variant group) */
private java.util.List additionalFindingsVariantGroupLevelQuestions;
/**
* Default constructor. Note that this does not initialize fields
* to their default values from the schema. If that is desired then
* one should use newBuilder().
*/
public AdditionalFindingsExitQuestionnaire() {}
/**
* All-args constructor.
*/
public AdditionalFindingsExitQuestionnaire(java.lang.String eventDate, java.lang.String reporter, java.util.List additionalFindingsVariantGroupLevelQuestions) {
this.eventDate = eventDate;
this.reporter = reporter;
this.additionalFindingsVariantGroupLevelQuestions = additionalFindingsVariantGroupLevelQuestions;
}
public org.apache.avro.Schema getSchema() { return SCHEMA$; }
// Used by DatumWriter. Applications should not call.
public java.lang.Object get(int field$) {
switch (field$) {
case 0: return eventDate;
case 1: return reporter;
case 2: return additionalFindingsVariantGroupLevelQuestions;
default: throw new org.apache.avro.AvroRuntimeException("Bad index");
}
}
// Used by DatumReader. Applications should not call.
@SuppressWarnings(value="unchecked")
public void put(int field$, java.lang.Object value$) {
switch (field$) {
case 0: eventDate = (java.lang.String)value$; break;
case 1: reporter = (java.lang.String)value$; break;
case 2: additionalFindingsVariantGroupLevelQuestions = (java.util.List)value$; break;
default: throw new org.apache.avro.AvroRuntimeException("Bad index");
}
}
/**
* Gets the value of the 'eventDate' field.
* The date when the questionnaire was submitted */
public java.lang.String getEventDate() {
return eventDate;
}
/**
* Sets the value of the 'eventDate' field.
* The date when the questionnaire was submitted * @param value the value to set.
*/
public void setEventDate(java.lang.String value) {
this.eventDate = value;
}
/**
* Gets the value of the 'reporter' field.
* The person that submitted the questionnaire */
public java.lang.String getReporter() {
return reporter;
}
/**
* Sets the value of the 'reporter' field.
* The person that submitted the questionnaire * @param value the value to set.
*/
public void setReporter(java.lang.String value) {
this.reporter = value;
}
/**
* Gets the value of the 'additionalFindingsVariantGroupLevelQuestions' field.
* The list of variant group level variants (ungrouped variants are to be set in single variant group) */
public java.util.List getAdditionalFindingsVariantGroupLevelQuestions() {
return additionalFindingsVariantGroupLevelQuestions;
}
/**
* Sets the value of the 'additionalFindingsVariantGroupLevelQuestions' field.
* The list of variant group level variants (ungrouped variants are to be set in single variant group) * @param value the value to set.
*/
public void setAdditionalFindingsVariantGroupLevelQuestions(java.util.List value) {
this.additionalFindingsVariantGroupLevelQuestions = value;
}
/** Creates a new AdditionalFindingsExitQuestionnaire RecordBuilder */
public static org.gel.models.report.avro.AdditionalFindingsExitQuestionnaire.Builder newBuilder() {
return new org.gel.models.report.avro.AdditionalFindingsExitQuestionnaire.Builder();
}
/** Creates a new AdditionalFindingsExitQuestionnaire RecordBuilder by copying an existing Builder */
public static org.gel.models.report.avro.AdditionalFindingsExitQuestionnaire.Builder newBuilder(org.gel.models.report.avro.AdditionalFindingsExitQuestionnaire.Builder other) {
return new org.gel.models.report.avro.AdditionalFindingsExitQuestionnaire.Builder(other);
}
/** Creates a new AdditionalFindingsExitQuestionnaire RecordBuilder by copying an existing AdditionalFindingsExitQuestionnaire instance */
public static org.gel.models.report.avro.AdditionalFindingsExitQuestionnaire.Builder newBuilder(org.gel.models.report.avro.AdditionalFindingsExitQuestionnaire other) {
return new org.gel.models.report.avro.AdditionalFindingsExitQuestionnaire.Builder(other);
}
/**
* RecordBuilder for AdditionalFindingsExitQuestionnaire instances.
*/
public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase
implements org.apache.avro.data.RecordBuilder {
private java.lang.String eventDate;
private java.lang.String reporter;
private java.util.List additionalFindingsVariantGroupLevelQuestions;
/** Creates a new Builder */
private Builder() {
super(org.gel.models.report.avro.AdditionalFindingsExitQuestionnaire.SCHEMA$);
}
/** Creates a Builder by copying an existing Builder */
private Builder(org.gel.models.report.avro.AdditionalFindingsExitQuestionnaire.Builder other) {
super(other);
if (isValidValue(fields()[0], other.eventDate)) {
this.eventDate = data().deepCopy(fields()[0].schema(), other.eventDate);
fieldSetFlags()[0] = true;
}
if (isValidValue(fields()[1], other.reporter)) {
this.reporter = data().deepCopy(fields()[1].schema(), other.reporter);
fieldSetFlags()[1] = true;
}
if (isValidValue(fields()[2], other.additionalFindingsVariantGroupLevelQuestions)) {
this.additionalFindingsVariantGroupLevelQuestions = data().deepCopy(fields()[2].schema(), other.additionalFindingsVariantGroupLevelQuestions);
fieldSetFlags()[2] = true;
}
}
/** Creates a Builder by copying an existing AdditionalFindingsExitQuestionnaire instance */
private Builder(org.gel.models.report.avro.AdditionalFindingsExitQuestionnaire other) {
super(org.gel.models.report.avro.AdditionalFindingsExitQuestionnaire.SCHEMA$);
if (isValidValue(fields()[0], other.eventDate)) {
this.eventDate = data().deepCopy(fields()[0].schema(), other.eventDate);
fieldSetFlags()[0] = true;
}
if (isValidValue(fields()[1], other.reporter)) {
this.reporter = data().deepCopy(fields()[1].schema(), other.reporter);
fieldSetFlags()[1] = true;
}
if (isValidValue(fields()[2], other.additionalFindingsVariantGroupLevelQuestions)) {
this.additionalFindingsVariantGroupLevelQuestions = data().deepCopy(fields()[2].schema(), other.additionalFindingsVariantGroupLevelQuestions);
fieldSetFlags()[2] = true;
}
}
/** Gets the value of the 'eventDate' field */
public java.lang.String getEventDate() {
return eventDate;
}
/** Sets the value of the 'eventDate' field */
public org.gel.models.report.avro.AdditionalFindingsExitQuestionnaire.Builder setEventDate(java.lang.String value) {
validate(fields()[0], value);
this.eventDate = value;
fieldSetFlags()[0] = true;
return this;
}
/** Checks whether the 'eventDate' field has been set */
public boolean hasEventDate() {
return fieldSetFlags()[0];
}
/** Clears the value of the 'eventDate' field */
public org.gel.models.report.avro.AdditionalFindingsExitQuestionnaire.Builder clearEventDate() {
eventDate = null;
fieldSetFlags()[0] = false;
return this;
}
/** Gets the value of the 'reporter' field */
public java.lang.String getReporter() {
return reporter;
}
/** Sets the value of the 'reporter' field */
public org.gel.models.report.avro.AdditionalFindingsExitQuestionnaire.Builder setReporter(java.lang.String value) {
validate(fields()[1], value);
this.reporter = value;
fieldSetFlags()[1] = true;
return this;
}
/** Checks whether the 'reporter' field has been set */
public boolean hasReporter() {
return fieldSetFlags()[1];
}
/** Clears the value of the 'reporter' field */
public org.gel.models.report.avro.AdditionalFindingsExitQuestionnaire.Builder clearReporter() {
reporter = null;
fieldSetFlags()[1] = false;
return this;
}
/** Gets the value of the 'additionalFindingsVariantGroupLevelQuestions' field */
public java.util.List getAdditionalFindingsVariantGroupLevelQuestions() {
return additionalFindingsVariantGroupLevelQuestions;
}
/** Sets the value of the 'additionalFindingsVariantGroupLevelQuestions' field */
public org.gel.models.report.avro.AdditionalFindingsExitQuestionnaire.Builder setAdditionalFindingsVariantGroupLevelQuestions(java.util.List value) {
validate(fields()[2], value);
this.additionalFindingsVariantGroupLevelQuestions = value;
fieldSetFlags()[2] = true;
return this;
}
/** Checks whether the 'additionalFindingsVariantGroupLevelQuestions' field has been set */
public boolean hasAdditionalFindingsVariantGroupLevelQuestions() {
return fieldSetFlags()[2];
}
/** Clears the value of the 'additionalFindingsVariantGroupLevelQuestions' field */
public org.gel.models.report.avro.AdditionalFindingsExitQuestionnaire.Builder clearAdditionalFindingsVariantGroupLevelQuestions() {
additionalFindingsVariantGroupLevelQuestions = null;
fieldSetFlags()[2] = false;
return this;
}
@Override
public AdditionalFindingsExitQuestionnaire build() {
try {
AdditionalFindingsExitQuestionnaire record = new AdditionalFindingsExitQuestionnaire();
record.eventDate = fieldSetFlags()[0] ? this.eventDate : (java.lang.String) defaultValue(fields()[0]);
record.reporter = fieldSetFlags()[1] ? this.reporter : (java.lang.String) defaultValue(fields()[1]);
record.additionalFindingsVariantGroupLevelQuestions = fieldSetFlags()[2] ? this.additionalFindingsVariantGroupLevelQuestions : (java.util.List) defaultValue(fields()[2]);
return record;
} catch (Exception e) {
throw new org.apache.avro.AvroRuntimeException(e);
}
}
}
}