Class FhirManager
FHIR version manager.
Inheritance
Namespace: Microsoft.Health.Fhir.SpecManager.Manager
Assembly: Microsoft.Health.Fhir.SpecManager.dll
Syntax
public class FhirManager : IDisposable
Properties
| Improve this Doc View SourceCurrent
Gets the current.
Declaration
public static FhirManager Current { get; }
Property Value
Type | Description |
---|---|
Fhir |
InfoByDirective
Gets the information by directive.
Declaration
public Dictionary<string, FhirVersionInfo> InfoByDirective { get; }
Property Value
Type | Description |
---|---|
Dictionary<System. |
Methods
| Improve this Doc View SourceDispose(Boolean)
Releases the unmanaged resources used by the Fhir
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System. |
disposing | True to release both managed and unmanaged resources; false to release only unmanaged resources. |
GetLoadedCorePackages()
Gets the loaded core packages in this collection.
Declaration
public List<FhirVersionInfo> GetLoadedCorePackages()
Returns
Type | Description |
---|---|
List<Fhir |
An enumerator that allows foreach to be used to process the loaded core packages in this collection. |
GetLoadedPackages()
Gets the loaded core packages in this collection.
Declaration
public List<FhirVersionInfo> GetLoadedPackages()
Returns
Type | Description |
---|---|
List<Fhir |
An enumerator that allows foreach to be used to process the loaded core packages in this collection. |
HasLoadedPackage(String, out String)
Test to see if the manager has a package matching a given id.
Declaration
public bool HasLoadedPackage(string packageId, out string version)
Parameters
Type | Name | Description |
---|---|---|
System. |
packageId | |
System. |
version |
Returns
Type | Description |
---|---|
System. |
Init()
Initializes the FhirManager.
Declaration
public static void Init()
IsLoaded(String)
Query if 'directive' is loaded.
Declaration
public bool IsLoaded(string directive)
Parameters
Type | Name | Description |
---|---|---|
System. |
directive | The directive. |
Returns
Type | Description |
---|---|
System. |
True if loaded, false if not. |
LoadPackages(IEnumerable<String>, Boolean, Boolean, Boolean, Boolean, String, out List<String>, Boolean)
Loads the packages.
Declaration
public void LoadPackages(IEnumerable<string> packageDirectives, bool offlineMode, bool officialExpansionsOnly, bool loadDependencies, bool skipFhirCore, string ciBranch, out List<string> failedPackages, bool areDependencies = false)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<System. |
packageDirectives | The package directives. |
System. |
offlineMode | True to allow, false to suppress the download. |
System. |
officialExpansionsOnly | True to official expansions only. |
System. |
loadDependencies | True to load dependencies. |
System. |
skipFhirCore | True to skip loading FHIR core packages. |
System. |
ciBranch | The CI branch. |
List<System. |
failedPackages | [out] The failed packages. |
System. |
areDependencies | (Optional) True if are dependencies. |
TryGetLoaded(String, out FhirVersionInfo)
Attempts to get loaded a FhirVersionInfo from the given string.
Declaration
public bool TryGetLoaded(string directive, out FhirVersionInfo info)
Parameters
Type | Name | Description |
---|---|---|
System. |
directive | The directive. |
Fhir |
info | [out] The information. |
Returns
Type | Description |
---|---|
System. |
True if it succeeds, false if it fails. |
TryResolveCanonical(FhirPackageCommon.FhirSequenceEnum, String, String, String, Boolean, out FhirArtifactClassEnum, out Object)
Tries to see if the manager can resolve a canonical URL in any loaded packages.
Declaration
public bool TryResolveCanonical(FhirPackageCommon.FhirSequenceEnum fhirSequence, string serverUrl, string resourceType, string canonical, bool resolveExternal, out FhirArtifactClassEnum canonicalClass, out object resource)
Parameters
Type | Name | Description |
---|---|---|
Fhir |
fhirSequence | |
System. |
serverUrl | |
System. |
resourceType | |
System. |
canonical | |
System. |
resolveExternal | |
Fhir |
canonicalClass | |
System. |
resource |
Returns
Type | Description |
---|---|
System. |
TryResolveCanonicals(String, FhirCapabiltyStatement, Boolean)
Attempts to resolve canonicals.
Declaration
public bool TryResolveCanonicals(string serverUrl, FhirCapabiltyStatement caps, bool resolveExternal)
Parameters
Type | Name | Description |
---|---|---|
System. |
serverUrl | URL of the server. |
Fhir |
caps | The capabilities. |
System. |
resolveExternal | True to resolve external. |
Returns
Type | Description |
---|---|
System. |
True if it succeeds, false if it fails. |
UnloadPackage(String)
Unload package.
Declaration
public void UnloadPackage(string directive)
Parameters
Type | Name | Description |
---|---|---|
System. |
directive | The directive. |