private TagDto MapSpecialisation(long?id) { var importer = new TagImporter(this.Connection, this.Component, TagCategory.Doctor, "DoctorType"); this.Relay(importer); return(importer.Import(id)); }
private TagDto MapTag(long?id) { var importer = new TagImporter(this.Connection, this.Component, TagCategory.Drug, "DrugType"); this.Relay(importer); return(importer.Import(id)); }
private TagDto MapTag() { var tagImporter = new TagImporter(this.Connection, this.Component, TagCategory.PrescriptionDocument, string.Empty); tagImporter.Default = DefaultTag; this.Relay(tagImporter); return tagImporter.Import(-1); }
private TagDto MapTag() { var importer = new TagImporter(this.Connection, this.Component, TagCategory.Picture, string.Empty); importer.Default = DefaultTag; this.Relay(importer); return(importer.Import(-1)); }
private TagDto MapTag(long?id) { /* There's a typo in the table name ;) */ var importer = new TagImporter(this.Connection, this.Component, TagCategory.MedicalRecord, "MedicaCardlType"); this.Relay(importer); return(importer.Import(id)); }
private TagDto MapTag(long?id) { if (!id.HasValue) { return(DefaultTag); } var importer = new TagImporter(this.Connection, this.Component, TagCategory.Appointment, "MeetingType"); importer.Default = DefaultTag; this.Relay(importer); return(importer.Import(id.Value)); }
protected override PathologyDto Map(SQLiteDataReader reader) { var tagImporter = new TagImporter(this.Connection, this.Component, TagCategory.Pathology, "PathologyType"); var pathology = new PathologyDto() { IsImported = true }; pathology.Name = reader["Title"] as string; pathology.Notes = Messages.Msg_DoneByConverter; pathology.Tag = tagImporter.Import(reader["fk_PathologyType"] as long?); return(pathology); }