def retry_transaction(self, transaction_id): """ :type transaction_id: str :rtype: Transaction """ results, _ = self._patch("{endpoint}/{identifier}".format( endpoint=self._BASE_ENDPOINT, identifier=transaction_id)) result = self._render_single_result(results, as_data_frame=False) return Transaction.fromJsonDict(result) if result else None
def post_exit_questionaire_cancer(self, exit_questionaire, params={}): """ :type exit_questionaire: ExitQuestionnaireInjectCancer :type params: dict :rtype: Transaction """ results, _ = self._post(self._EXIT_QUESTIONAIRES_CANCER_POST, exit_questionaire.toJsonDict(), params) result = self._render_single_result(results, as_data_frame=False) return Transaction.fromJsonDict(result) if result else None
def post_clinical_report(self, candidate_variant, params={}): """ :type candidate_variant: ClinicalReportInject :type params: dict :rtype: Transaction """ results, _ = self._post(self._CLINICAL_REPORT_POST, candidate_variant.toJsonDict(), params) result = self._render_single_result(results, as_data_frame=False) return Transaction.fromJsonDict(result) if result else None
def post_interpreted_genome(self, tiered_variant, params={}): """ :type tiered_variant: InterpretedGenomeInject :type params: dict :rtype: Transaction """ results, _ = self._post(self._INTERPRETED_GENOME_POST, tiered_variant.toJsonDict(), params) result = self._render_single_result(results, as_data_frame=False) return Transaction.fromJsonDict(result) if result else None
def post_participant(self, participant, params={}): """ :type participant: CancerParticipantInject :type params: dict :rtype: Transaction """ results, _ = self._post(self._PARTICIPANT_POST, participant.toJsonDict(), params) result = self._render_single_result(results, as_data_frame=False) return Transaction.fromJsonDict(result) if result else None
def post_pedigree(self, pedigree, params={}): """ :type pedigree: PedigreeInjectRD :type params: dict :rtype: Transaction """ results, _ = self._post(self._PEDIGREE_POST, pedigree.toJsonDict(), params) result = self._render_single_result(results, as_data_frame=False) return Transaction.fromJsonDict(result) if result else None
def post_variant_interpretation_log(self, variant_interpretation_log, params={}): """ :param variant_interpretation_log: :param params: :rtype: Transaction """ results, _ = self._post(self._VARIANT_INTERPRETATION_LOG, variant_interpretation_log.toJsonDict(), params) result = self._render_single_result(results, as_data_frame=False) return Transaction.fromJsonDict(result) if result else None