diff --git a/src/Microsoft.Health.Fhir.SpecManager/Manager/FhirManager.cs b/src/Microsoft.Health.Fhir.SpecManager/Manager/FhirManager.cs index 3334062c3..bd6195dad 100644 --- a/src/Microsoft.Health.Fhir.SpecManager/Manager/FhirManager.cs +++ b/src/Microsoft.Health.Fhir.SpecManager/Manager/FhirManager.cs @@ -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 { @@ -47,7 +45,7 @@ private FhirManager(string npmDirectory) { 2, new SortedSet() { "1.0.2" } }, { 3, new SortedSet() { "3.0.2" } }, { 4, new SortedSet() { "4.0.1" } }, - { 5, new SortedSet() { "4.4.0" } }, + { 5, new SortedSet() { "4.4.0", "4.5.0" } }, }; // build the dictionary of published versions* @@ -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 @@ -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 { @@ -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;