Skip to content

Commit

Permalink
UI Info added
Browse files Browse the repository at this point in the history
  • Loading branch information
mayankthebest committed Feb 26, 2020
1 parent 7506cba commit 8193a25
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
6 changes: 3 additions & 3 deletions MayaMaker/MayaMaker.Services/Properties/launchSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"launchUrl": "api/messagemaker",
"launchUrl": "home",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"MayaMaker.Services": {
"commandName": "Project",
"launchBrowser": true,
"launchUrl": "api/messagemaker",
"launchUrl": "home",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
Expand All @@ -29,7 +29,7 @@
"Docker": {
"commandName": "Docker",
"launchBrowser": true,
"launchUrl": "{Scheme}://{ServiceHost}:{ServicePort}/api/messagemaker",
"launchUrl": "{Scheme}://{ServiceHost}:{ServicePort}/home",
"publishAllPorts": true,
"useSSL": true
}
Expand Down
2 changes: 1 addition & 1 deletion MayaMaker/MayaMaker.Services/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ public void ConfigureServices(IServiceCollection services)
services.AddTransient<IMessageManager, MessageManager>();
services.AddTransient<IMessageWriter, MessageWriter>();
services.AddControllers();
services.AddMvc();
services.AddTransient<MessageMakerController, MessageMakerController>();
}

Expand Down Expand Up @@ -59,6 +58,7 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
endpoints.MapControllers();
endpoints.MapRazorPages();
endpoints.MapFallbackToController("Index", "Home");
});
}
}
Expand Down
5 changes: 4 additions & 1 deletion MayaMaker/MayaMaker.Services/Views/Home/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
@model List<string>

<div>
<p>This tool generates realistic (fake) HL7 2.3 messages. You can generate messages for one encounter or all the encounters that a person may have in their lifetime.
It uses the output generated by <a href="https://github.com/synthetichealth/synthea">Synthea</a> and introduces a scheduling algorithm between consecutive encounters.
Each time you click the buttons below you will get data from one of the 1000 patients data loaded into the system.</p>
<input type="button" class="btn btn-info" value="Get life cycle for one encounter" onclick="location.href='@Url.Action("GetScenario", "Home")'" />
<input type="button" class="btn btn-info" value="Get patient's entire life encounters" onclick="location.href='@Url.Action("GetAllScenario", "Home")'" />
<br />
Expand All @@ -13,7 +16,7 @@
{

var normalizedMessage = message.Replace("\r", "\r\n");
<pre>@normalizedMessage</pre>
<pre style="margin:10px">@normalizedMessage</pre>
<br />
}
}
Expand Down
2 changes: 1 addition & 1 deletion MayaMaker/MayaMaker.Services/Views/Shared/_Layout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

<footer class="border-top footer text-muted">
<div class="container">
&copy; 2020 - MayaMaker.UI - <a asp-area="" asp-page="/Privacy">Privacy</a>
&copy; 2020 - Mayank Kumar
</div>
</footer>

Expand Down

0 comments on commit 8193a25

Please sign in to comment.