Exemple #1
0
 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
Exemple #2
0
 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
Exemple #3
0
 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
Exemple #4
0
 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
Exemple #5
0
 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
Exemple #6
0
 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
Exemple #7
0
 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