-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Merge patient UI * Database functionality and UI for both databases * Update report templates
- Loading branch information
Showing
46 changed files
with
496 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-174 Bytes
(100%)
HaemophilusWeb/ReportTemplates/Fax - Kein Wachstum v1.docx
Binary file not shown.
Binary file modified
BIN
-112 Bytes
(100%)
HaemophilusWeb/ReportTemplates/Fax - Nicht Invasiv v1.docx
Binary file not shown.
Binary file modified
BIN
-107 Bytes
(100%)
HaemophilusWeb/ReportTemplates/Fax - Sonstige - Ampi-S Cipro-R v3.docx
Binary file not shown.
Binary file modified
BIN
-262 Bytes
(100%)
HaemophilusWeb/ReportTemplates/Fax - Sonstige - Ampi-S Imi-R v3.docx
Binary file not shown.
Binary file modified
BIN
+3 Bytes
(100%)
HaemophilusWeb/ReportTemplates/Fax - Sonstige - Kein Haemophilus v3.docx
Binary file not shown.
Binary file modified
BIN
+8 Bytes
(100%)
HaemophilusWeb/ReportTemplates/Fax - Sonstige - lowBLNAR CTX-R Imi-R v3.docx
Binary file not shown.
Binary file modified
BIN
+55 Bytes
(100%)
HaemophilusWeb/ReportTemplates/Fax - Teilbefund - Serotyp v4.docx
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-37 Bytes
(100%)
HaemophilusWeb/ReportTemplates/Meningo/Fax - Nativmaterial v2.docx
Binary file not shown.
Binary file modified
BIN
-349 Bytes
(100%)
HaemophilusWeb/ReportTemplates/Meningo/Fax - Teilbefund - v2.docx
Binary file not shown.
Binary file modified
BIN
-27 Bytes
(100%)
HaemophilusWeb/ReportTemplates/Meningo/Fax - Untersuchungsbefund v2.docx
Binary file not shown.
Binary file modified
BIN
-1.36 KB
(98%)
HaemophilusWeb/ReportTemplates/Meningo/Nativmaterial v2.docx
Binary file not shown.
Binary file modified
BIN
-1.37 KB
(98%)
HaemophilusWeb/ReportTemplates/Meningo/Untersuchungsbefund v2.docx
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-1013 Bytes
(99%)
HaemophilusWeb/ReportTemplates/Sonstige - Ampi-S Cipro-R v3.docx
Binary file not shown.
Binary file modified
BIN
+35 Bytes
(100%)
HaemophilusWeb/ReportTemplates/Sonstige - Ampi-S Imi-R v3.docx
Binary file not shown.
Binary file modified
BIN
-1.39 KB
(98%)
HaemophilusWeb/ReportTemplates/Sonstige - Kein Haemophilus v3.docx
Binary file not shown.
Binary file modified
BIN
-39 Bytes
(100%)
HaemophilusWeb/ReportTemplates/Sonstige - lowBLNAR CTX-R Imi-R v3.docx
Binary file not shown.
Binary file modified
BIN
+95 Bytes
(100%)
HaemophilusWeb/ReportTemplates/includes/Kopfzeile - Kontakt.docx
Binary file not shown.
Binary file modified
BIN
+233 Bytes
(100%)
HaemophilusWeb/ReportTemplates/includes/Kopfzeile - Kurz.docx
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using FluentValidation; | ||
using HaemophilusWeb.Models; | ||
using HaemophilusWeb.ViewModels; | ||
|
||
namespace HaemophilusWeb.Validators | ||
{ | ||
public class MergePatientRequestValidator : AbstractValidator<MergePatientRequest> | ||
{ | ||
public MergePatientRequestValidator() | ||
{ | ||
RuleFor(m => m.PatientOneId).NotEqual(m => m.PatientTwoId) | ||
.WithMessage("Bitte geben Sie zum Zusammenfügen zwei verschiedenen Patientennummern ein"); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.ComponentModel; | ||
using System.ComponentModel.DataAnnotations; | ||
using DocumentFormat.OpenXml.Office2010.ExcelAc; | ||
using HaemophilusWeb.Models; | ||
|
||
namespace HaemophilusWeb.ViewModels | ||
{ | ||
public class MergePatientConfirmation : MergePatientRequest | ||
{ | ||
[Display(Name = "Patient 1")] | ||
public string PatientOne { get; set; } | ||
|
||
[Display(Name = "Einsendungen Patient 1")] | ||
public List<string> PatientOneSendings { get; set; } | ||
|
||
[Display(Name = "Patient 2")] | ||
public string PatientTwo { get; set; } | ||
|
||
[Display(Name = "Einsendungen Patient 2")] | ||
public List<string> PatientTwoSendings { get; set; } | ||
|
||
} | ||
|
||
public enum MainPatientSelector | ||
{ | ||
[Description("Patient 1")] | ||
PatientOne, | ||
[Description("Patient 2")] | ||
PatientTwo | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using System; | ||
using System.ComponentModel.DataAnnotations; | ||
using FluentValidation.Attributes; | ||
using HaemophilusWeb.Validators; | ||
|
||
namespace HaemophilusWeb.ViewModels | ||
{ | ||
[Validator(typeof (MergePatientRequestValidator))] | ||
public class MergePatientRequest | ||
{ | ||
[Display(Name = "Patienten-Nr. 1")] | ||
public int PatientOneId { get; set; } | ||
|
||
[Display(Name = "Patienten-Nr. 2")] | ||
public int PatientTwoId { get; set; } | ||
|
||
[Display(Name = "Zusammenfügen zu")] | ||
public MainPatientSelector MainPatient { get; set; } | ||
|
||
public bool Confirmation { get; set; } | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
HaemophilusWeb/Views/MeningoPatientSending/MergePatient.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
@using HaemophilusWeb.Views.Utils | ||
@model HaemophilusWeb.ViewModels.MergePatientRequest | ||
|
||
@{ | ||
ViewBag.Title = "Patienten Zusammenfügen (Meningokokken)"; | ||
} | ||
|
||
<h3>Patientennummern</h3> | ||
|
||
@using (Html.BeginForm()) | ||
{ | ||
@Html.AntiForgeryToken() | ||
|
||
<div class="form-horizontal"> | ||
@Html.ValidationSummary(true) | ||
|
||
@Html.TextEditorFor(m => m.PatientOneId) | ||
@Html.TextEditorFor(m => m.PatientTwoId) | ||
|
||
<div class="form-group"> | ||
<div class="col-md-offset-2 col-md-10"> | ||
<input type="submit" name="primary-submit" value="Zusammenfügen vorbereiten" class="btn btn-primary" /> | ||
</div> | ||
</div> | ||
</div> | ||
} | ||
|
57 changes: 57 additions & 0 deletions
57
HaemophilusWeb/Views/MeningoPatientSending/MergePatientConfirmation.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
@using HaemophilusWeb.Views.Utils | ||
@model HaemophilusWeb.ViewModels.MergePatientConfirmation | ||
|
||
@{ | ||
ViewBag.Title = "Patienten Zusammenfügen (Meningokokken)"; | ||
} | ||
|
||
<h3>Bestätigung</h3> | ||
|
||
@using (Html.BeginForm()) | ||
{ | ||
@Html.AntiForgeryToken() | ||
|
||
<div class="form-horizontal"> | ||
@Html.ValidationSummary(true) | ||
|
||
@Html.HiddenFor(m => m.PatientOneId) | ||
@Html.HiddenFor(m => m.PatientTwoId) | ||
@Html.HiddenFor(m => m.Confirmation) | ||
|
||
@Html.ReadonlyFor(m => m.PatientOne, smXClass: "col-sm-10") | ||
<div class="form-group"> | ||
<div class="col-sm-2 control-label">@Html.LabelFor(m => m.PatientOneSendings)</div> | ||
<div class="col-sm-10 form-control-static"> | ||
<ul> | ||
@foreach (var sending in Model.PatientOneSendings) | ||
{ | ||
<li>@sending</li> | ||
} | ||
</ul> | ||
</div> | ||
</div> | ||
<hr /> | ||
@Html.ReadonlyFor(m => m.PatientTwo, smXClass: "col-sm-10") | ||
<div class="form-group"> | ||
<div class="col-sm-2 control-label">@Html.LabelFor(m => m.PatientTwoSendings)</div> | ||
<div class="col-sm-10 form-control-static"> | ||
<ul> | ||
@foreach (var sending in Model.PatientTwoSendings) | ||
{ | ||
<li>@sending</li> | ||
} | ||
</ul> | ||
</div> | ||
</div> | ||
<hr /> | ||
@Html.EnumRadioEditorFor(m => m.MainPatient) | ||
<hr /> | ||
<div class="form-group"> | ||
<div class="col-md-offset-2 col-md-10"> | ||
<input type="submit" name="primary-submit" value="Zusammenfügen und doppelten Patienten löschen" class="btn btn-danger" /> | ||
@Html.ActionLink("Abbrechen", "MergePatient", "MeningoPatientSending", null, new { @class = "btn btn-secondary" }) | ||
</div> | ||
</div> | ||
</div> | ||
} | ||
|
Oops, something went wrong.