C# Class cvp.DBConnection

Mostra file Open project: hres/api-cvp

Private Properties

Property Type Description
GetAgeRange List

Public Methods

Method Description
DBConnection ( string lang ) : System
GetAEExportReportByDrugName ( string drugName, string lang ) : List
GetAEReportByDrugName ( string drugName ) : List
GetAllDrugProduct ( string lang ) : List
GetAllDrugProductIngredient ( string lang ) : List
GetAllGender ( string lang ) : List
GetAllOutcome ( string lang ) : List
GetAllReaction ( string lang ) : List
GetAllReport ( string lang ) : List
GetAllReportByIngredientName ( string ingredientName, string ageRange, string gender, string seriousReport, string lang ) : List
GetAllReportDrug ( string lang ) : List
GetAllReportInfo ( string lang ) : List
GetAllReportLink ( string lang ) : List
GetAllReportType ( string lang ) : List
GetAllSeriousness ( string lang ) : List
GetAllSource ( string lang ) : List
GetDrugProductByDrugName ( string drugName, string lang ) : List
GetDrugProductById ( int id, string lang ) : DrugProduct
GetDrugProductIngredientById ( int id, string lang ) : DrugProductIngredient
GetGenderById ( int id, string lang ) : Gender
GetOutcomeById ( int id, string lang ) : Outcome
GetReactionById ( int id, string lang ) : Reaction
GetReactionByReportId ( string reportId, string lang ) : List
GetReportByAllCriteria ( string searchTerm, string ageRange, string gender, string seriousReport, string lang ) : List
GetReportById ( int id, string lang ) : Report
GetReportById ( string id, string lang ) : Report
GetReportDrugById ( int reportId, string lang ) : ReportDrug
GetReportDrugByReportId ( string reportId, string lang ) : List
GetReportInfoByDrugName ( string drugName, string lang ) : List
GetReportInfoById ( int id, string lang ) : ReportInfo
GetReportLinkById ( int id, string lang ) : ReportLink
GetReportTypeById ( int id, string lang ) : ReportType
GetSeriousnessById ( int id, string lang ) : Seriousness
GetSourceById ( int id, string lang ) : Source

Private Methods

Method Description
GetAgeRange ( string ageRangeSelected ) : List

Method that parses and age range string and returns the "to" and "from" values in the List

Method Details

DBConnection() public method

public DBConnection ( string lang ) : System
lang string
return System

GetAEExportReportByDrugName() public method

public GetAEExportReportByDrugName ( string drugName, string lang ) : List
drugName string
lang string
return List

GetAEReportByDrugName() public method

public GetAEReportByDrugName ( string drugName ) : List
drugName string
return List

GetAllDrugProduct() public method

public GetAllDrugProduct ( string lang ) : List
lang string
return List

GetAllDrugProductIngredient() public method

public GetAllDrugProductIngredient ( string lang ) : List
lang string
return List

GetAllGender() public method

public GetAllGender ( string lang ) : List
lang string
return List

GetAllOutcome() public method

public GetAllOutcome ( string lang ) : List
lang string
return List

GetAllReaction() public method

public GetAllReaction ( string lang ) : List
lang string
return List

GetAllReport() public method

public GetAllReport ( string lang ) : List
lang string
return List

GetAllReportByIngredientName() public method

public GetAllReportByIngredientName ( string ingredientName, string ageRange, string gender, string seriousReport, string lang ) : List
ingredientName string
ageRange string
gender string
seriousReport string
lang string
return List

GetAllReportDrug() public method

public GetAllReportDrug ( string lang ) : List
lang string
return List

GetAllReportInfo() public method

public GetAllReportInfo ( string lang ) : List
lang string
return List

GetAllReportLink() public method

public GetAllReportLink ( string lang ) : List
lang string
return List

GetAllReportType() public method

public GetAllReportType ( string lang ) : List
lang string
return List

GetAllSeriousness() public method

public GetAllSeriousness ( string lang ) : List
lang string
return List

GetAllSource() public method

public GetAllSource ( string lang ) : List
lang string
return List

GetDrugProductByDrugName() public method

public GetDrugProductByDrugName ( string drugName, string lang ) : List
drugName string
lang string
return List

GetDrugProductById() public method

public GetDrugProductById ( int id, string lang ) : DrugProduct
id int
lang string
return cvpWebApi.Models.DrugProduct

GetDrugProductIngredientById() public method

public GetDrugProductIngredientById ( int id, string lang ) : DrugProductIngredient
id int
lang string
return cvpWebApi.Models.DrugProductIngredient

GetGenderById() public method

public GetGenderById ( int id, string lang ) : Gender
id int
lang string
return cvpWebApi.Models.Gender

GetOutcomeById() public method

public GetOutcomeById ( int id, string lang ) : Outcome
id int
lang string
return cvpWebApi.Models.Outcome

GetReactionById() public method

public GetReactionById ( int id, string lang ) : Reaction
id int
lang string
return cvpWebApi.Models.Reaction

GetReactionByReportId() public method

public GetReactionByReportId ( string reportId, string lang ) : List
reportId string
lang string
return List

GetReportByAllCriteria() public method

public GetReportByAllCriteria ( string searchTerm, string ageRange, string gender, string seriousReport, string lang ) : List
searchTerm string
ageRange string
gender string
seriousReport string
lang string
return List

GetReportById() public method

public GetReportById ( int id, string lang ) : Report
id int
lang string
return cvpWebApi.Models.Report

GetReportById() public method

public GetReportById ( string id, string lang ) : Report
id string
lang string
return cvpWebApi.Models.Report

GetReportDrugById() public method

public GetReportDrugById ( int reportId, string lang ) : ReportDrug
reportId int
lang string
return cvpWebApi.Models.ReportDrug

GetReportDrugByReportId() public method

public GetReportDrugByReportId ( string reportId, string lang ) : List
reportId string
lang string
return List

GetReportInfoByDrugName() public method

public GetReportInfoByDrugName ( string drugName, string lang ) : List
drugName string
lang string
return List

GetReportInfoById() public method

public GetReportInfoById ( int id, string lang ) : ReportInfo
id int
lang string
return cvpWebApi.Models.ReportInfo

GetReportLinkById() public method

public GetReportLinkById ( int id, string lang ) : ReportLink
id int
lang string
return cvpWebApi.Models.ReportLink

GetReportTypeById() public method

public GetReportTypeById ( int id, string lang ) : ReportType
id int
lang string
return cvpWebApi.Models.ReportType

GetSeriousnessById() public method

public GetSeriousnessById ( int id, string lang ) : Seriousness
id int
lang string
return cvpWebApi.Models.Seriousness

GetSourceById() public method

public GetSourceById ( int id, string lang ) : Source
id int
lang string
return cvpWebApi.Models.Source