Documentation
¶
Index ¶
- func AddComplication(complication *models.Complication) error
- func AddConsent(consent *models.Consent) error
- func AddDiagnosis(diagnosis *models.Diagnosis) error
- func AddEnrollment(enrollment *models.Enrollment) error
- func AddOutcome(outcome *models.Outcome) error
- func AddPatient(patient *models.Patient) error
- func AddTreatment(treatment *models.Treatment) error
- func AddTumourboard(tumourboard *models.Tumourboard) error
- func CheckIfComplicationExists(hash string) bool
- func CheckIfConsentExists(hash string) bool
- func CheckIfDiagnosisExists(hash string) bool
- func CheckIfEnrollmentExists(hash string) bool
- func CheckIfOutcomeExists(hash string) bool
- func CheckIfPatientExists(patientID string) bool
- func CheckIfSampleExists(sampleID string) bool
- func CheckIfTreatmentExists(hash string) bool
- func CheckIfTumourboardExists(hash string) bool
- func GetAllComplications(collection string) []*models.Complication
- func GetAllConsents(collection string) []*models.Consent
- func GetAllDiagnosis(collection string) []*models.Diagnosis
- func GetAllEnrollments(collection string) []*models.Enrollment
- func GetAllOutcomes(collection string) []*models.Outcome
- func GetAllPatients(collection string) []*models.Patient
- func GetAllSamples(collection string) []*models.Sample
- func GetAllTreatments(collection string) []*models.Treatment
- func GetAllTumourboards(collection string) []*models.Tumourboard
- func GetSampleByID(sampleID string) *models.Sample
- func GetSamplesByQuery(query *models.Query) []*models.Sample
- func InsertComplication(complication models.Complication) bool
- func InsertConsent(consent models.Consent) bool
- func InsertDiagnosis(diagnosis models.Diagnosis) bool
- func InsertEnrollment(enrollment models.Enrollment) bool
- func InsertOutcome(outcome models.Outcome) bool
- func InsertPatient(patient models.Patient) bool
- func InsertSample(sample models.Sample) bool
- func InsertTreatment(treatment models.Treatment) bool
- func InsertTumourboard(tumourboard models.Tumourboard) bool
- func UpdateSample(sample models.Sample) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddComplication ¶
func AddComplication(complication *models.Complication) error
AddComplication 4 comp
func AddEnrollment ¶
func AddEnrollment(enrollment *models.Enrollment) error
AddEnrollment repo add to sample
func AddTreatment ¶
AddTreatment for treatments
func AddTumourboard ¶
func AddTumourboard(tumourboard *models.Tumourboard) error
AddTumourboard 4 tum
func CheckIfComplicationExists ¶
CheckIfComplicationExists returns an object in a collection
func CheckIfConsentExists ¶
CheckIfConsentExists returns an object in a collection
func CheckIfDiagnosisExists ¶
CheckIfDiagnosisExists returns an object in a collection
func CheckIfEnrollmentExists ¶
CheckIfEnrollmentExists returns an object in a collection
func CheckIfOutcomeExists ¶
CheckIfOutcomeExists returns an object in a collection
func CheckIfPatientExists ¶
CheckIfPatientExists returns an object in a collection
func CheckIfSampleExists ¶
CheckIfSampleExists returns an object in a collection
func CheckIfTreatmentExists ¶
CheckIfTreatmentExists returns an object in a collection
func CheckIfTumourboardExists ¶
CheckIfTumourboardExists returns an object in a collection
func GetAllComplications ¶
func GetAllComplications(collection string) []*models.Complication
GetAllComplications returns an array of all objects in a collection
func GetAllConsents ¶
GetAllConsents returns an array of all objects in a collection
func GetAllDiagnosis ¶
GetAllDiagnosis returns an array of all objects in a collection
func GetAllEnrollments ¶
func GetAllEnrollments(collection string) []*models.Enrollment
GetAllEnrollments returns an array of all objects in a collection
func GetAllOutcomes ¶
GetAllOutcomes returns an array of all objects in a collection
func GetAllPatients ¶
GetAllPatients returns an array of all objects in a collection
func GetAllSamples ¶
GetAllSamples returns an array of all objects in a collection
func GetAllTreatments ¶
GetAllTreatments returns an array of all objects in a collection
func GetAllTumourboards ¶
func GetAllTumourboards(collection string) []*models.Tumourboard
GetAllTumourboards returns an array of all objects in a collection
func GetSampleByID ¶
GetSampleByID gets a sample by its id
func GetSamplesByQuery ¶
GetSamplesByQuery gets a sample by its id
func InsertComplication ¶
func InsertComplication(complication models.Complication) bool
InsertComplication inserts a patient to the patient collection
func InsertConsent ¶
InsertConsent inserts a patient to the patient collection
func InsertDiagnosis ¶
InsertDiagnosis inserts a patient to the patient collection
func InsertEnrollment ¶
func InsertEnrollment(enrollment models.Enrollment) bool
InsertEnrollment inserts a patient to the patient collection
func InsertOutcome ¶
InsertOutcome inserts a outcome to the outcome collection
func InsertPatient ¶
InsertPatient inserts a patient to the patient collection
func InsertSample ¶
InsertSample inserts a patient to the patient collection
func InsertTreatment ¶
InsertTreatment inserts a treatment to the treatment collection
func InsertTumourboard ¶
func InsertTumourboard(tumourboard models.Tumourboard) bool
InsertTumourboard inserts a tumourboard to the tumourboard collection
Types ¶
This section is empty.