Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added version 4.5.0 #32

Merged
merged 2 commits into from
Aug 25, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 18 additions & 6 deletions src/Microsoft.Health.Fhir.SpecManager/Manager/FhirManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net.Http;
using System.Text;

namespace Microsoft.Health.Fhir.SpecManager.Manager
{
Expand Down Expand Up @@ -47,7 +45,7 @@ private FhirManager(string npmDirectory)
{ 2, new SortedSet<string>() { "1.0.2" } },
{ 3, new SortedSet<string>() { "3.0.2" } },
{ 4, new SortedSet<string>() { "4.0.1" } },
{ 5, new SortedSet<string>() { "4.4.0" } },
{ 5, new SortedSet<string>() { "4.4.0", "4.5.0" } },
};

// build the dictionary of published versions*
Expand Down Expand Up @@ -109,6 +107,20 @@ private FhirManager(string npmDirectory)
IsOnDisk = false,
}
},
{
"4.5.0",
new FhirVersionInfo(5)
{
ReleaseName = "2020Sep",
PackageName = "hl7.fhir.r5.core",
ExamplesPackageName = string.Empty, // "hl7.fhir.r5.examples",
ExpansionsPackageName = "hl7.fhir.r5.expansions",
VersionString = "4.5.0",
IsDevBuild = false,
IsLocalBuild = false,
IsOnDisk = false,
}
},
};

// create a dictionary for dev builds
Expand Down Expand Up @@ -201,7 +213,7 @@ public FhirVersionInfo LoadPublished(
// figure out which version(s) we are loading
if (string.IsNullOrEmpty(versions) || (versions == "latest"))
{
versionsToLoad.Add(_knownVersions[majorRelease].ElementAt(0));
versionsToLoad.Add(_knownVersions[majorRelease].Max);
}
else
{
Expand All @@ -212,9 +224,9 @@ public FhirVersionInfo LoadPublished(
{
if (version == "latest")
{
if (!versionsToLoad.Contains(_knownVersions[majorRelease].ElementAt(0)))
if (!versionsToLoad.Contains(_knownVersions[majorRelease].Max))
{
versionsToLoad.Add(_knownVersions[majorRelease].ElementAt(0));
versionsToLoad.Add(_knownVersions[majorRelease].Max);
}

continue;
Expand Down