Class FhirVersionInfo
Information about a FHIR package.
Inheritance
Namespace: Microsoft.Health.Fhir.SpecManager.Manager
Assembly: Microsoft.Health.Fhir.SpecManager.dll
Syntax
public class FhirVersionInfo : object, IPackageImportable, IPackageExportable
Constructors
| Improve this Doc View SourceFhirVersionInfo()
Initializes a new instance of the Fhir
Declaration
public FhirVersionInfo()
FhirVersionInfo(FhirPackageCommon.FhirSequenceEnum)
Declaration
public FhirVersionInfo(FhirPackageCommon.FhirSequenceEnum fhirSequence)
Parameters
Type | Name | Description |
---|---|---|
Fhir |
fhirSequence |
FhirVersionInfo(FhirVersionInfo, PackageCopyOptions, Boolean)
Initializes a new instance of the Fhir
Declaration
public FhirVersionInfo(FhirVersionInfo source, PackageCopyOptions options, bool resolveExternal)
Parameters
Type | Name | Description |
---|---|---|
Fhir |
source | Source for the. |
Package |
options | Options for controlling the operation. |
System. |
resolveExternal |
FhirVersionInfo(String)
Initializes a new instance of the Fhir
Declaration
public FhirVersionInfo(string packageDirectory)
Parameters
Type | Name | Description |
---|---|---|
System. |
packageDirectory | Pathname of the package directory. |
Properties
| Improve this Doc View SourceAllInteractionParameters
Gets search parameters defined for all interactions.
Declaration
public Dictionary<string, FhirSearchParam> AllInteractionParameters { get; }
Property Value
Type | Description |
---|---|
Dictionary<System. |
AllResourceParameters
Gets search parameters defined for all resources.
Declaration
public Dictionary<string, FhirSearchParam> AllResourceParameters { get; }
Property Value
Type | Description |
---|---|
Dictionary<System. |
ArtifactClassByUrl
Gets URL of the artifact class by.
Declaration
public Dictionary<string, FhirArtifactClassEnum> ArtifactClassByUrl { get; }
Property Value
Type | Description |
---|---|
Dictionary<System. |
ArtifactRecordsByClass
Gets the artifacts by class.
Declaration
public Dictionary<FhirArtifactClassEnum, List<FhirArtifactRecord>> ArtifactRecordsByClass { get; }
Property Value
Type | Description |
---|---|
Dictionary<Fhir |
BallotPrefix
Gets or sets the ballot prefix (e.g., 2021Jan).
Declaration
public string BallotPrefix { get; set; }
Property Value
Type | Description |
---|---|
System. |
BuildId
Gets or sets the identifier of the build.
Declaration
public string BuildId { get; set; }
Property Value
Type | Description |
---|---|
System. |
CanonicalUrl
Gets or sets canonical URL of this package.
Declaration
public Uri CanonicalUrl { get; set; }
Property Value
Type | Description |
---|---|
Uri |
CapabilitiesByUrl
Gets known capability statements, keyed by URL.
Declaration
public Dictionary<string, FhirCapabiltyStatement> CapabilitiesByUrl { get; }
Property Value
Type | Description |
---|---|
Dictionary<System. |
CodeSystems
Gets the code systems by URL dictionary.
Declaration
public Dictionary<string, FhirCodeSystem> CodeSystems { get; }
Property Value
Type | Description |
---|---|
Dictionary<System. |
CompartmentsByUrl
Gets the compartments by URL.
Declaration
public Dictionary<string, FhirCompartment> CompartmentsByUrl { get; }
Property Value
Type | Description |
---|---|
Dictionary<System. |
ComplexTypes
Gets a dictionary with the known complex types for this version of FHIR.
Declaration
public Dictionary<string, FhirComplex> ComplexTypes { get; }
Property Value
Type | Description |
---|---|
Dictionary<System. |
DevBranch
Gets or sets the development branch.
Declaration
public string DevBranch { get; set; }
Property Value
Type | Description |
---|---|
System. |
ExamplesPackageName
Gets or sets the name of the examples package.
Declaration
public string ExamplesPackageName { get; set; }
Property Value
Type | Description |
---|---|
System. |
ExcludedKeys
Gets the excluded keys.
Declaration
public HashSet<string> ExcludedKeys { get; }
Property Value
Type | Description |
---|---|
Hash |
ExpansionsPackageName
Gets or sets the name of the expansions package.
Declaration
public string ExpansionsPackageName { get; set; }
Property Value
Type | Description |
---|---|
System. |
ExtensionsByPath
Gets the extensions per path, in a dictionary keyed by URL.
Declaration
public Dictionary<string, Dictionary<string, FhirComplex>> ExtensionsByPath { get; }
Property Value
Type | Description |
---|---|
Dictionary<System. |
ExtensionsByUrl
Gets an extensions by URL dictionary.
Declaration
public Dictionary<string, FhirComplex> ExtensionsByUrl { get; }
Property Value
Type | Description |
---|---|
Dictionary<System. |
FhirSequence
Gets or sets the major version.
Declaration
public FhirPackageCommon.FhirSequenceEnum FhirSequence { get; set; }
Property Value
Type | Description |
---|---|
Fhir |
ImplementationGuidesByUrl
Gets known implementation guides, keyed by URL.
Declaration
public Dictionary<string, FhirImplementationGuide> ImplementationGuidesByUrl { get; }
Property Value
Type | Description |
---|---|
Dictionary<System. |
IsDevBuild
Gets or sets a value indicating whether this object is development build.
Declaration
public bool IsDevBuild { get; set; }
Property Value
Type | Description |
---|---|
System. |
IsLocalBuild
Gets or sets a value indicating whether this object is local build.
Declaration
public bool IsLocalBuild { get; set; }
Property Value
Type | Description |
---|---|
System. |
IsOnDisk
Gets or sets a value indicating whether this object is on disk.
Declaration
public bool IsOnDisk { get; set; }
Property Value
Type | Description |
---|---|
System. |
LastDownloaded
Gets or sets the Date/Time of the last downloaded.
Declaration
public DateTime? LastDownloaded { get; set; }
Property Value
Type | Description |
---|---|
System. |
LocalDirectory
Gets or sets the pathname of the local directory.
Declaration
public string LocalDirectory { get; set; }
Property Value
Type | Description |
---|---|
System. |
LogicalModels
Gets a dictionary with the known logical models by name.
Declaration
public Dictionary<string, FhirComplex> LogicalModels { get; }
Property Value
Type | Description |
---|---|
Dictionary<System. |
MajorVersion
Gets or sets the name of the release.
Declaration
public int MajorVersion { get; set; }
Property Value
Type | Description |
---|---|
System. |
NodeByPath
Gets the node info by path dictionary.
Declaration
public Dictionary<string, FhirNodeInfo> NodeByPath { get; }
Property Value
Type | Description |
---|---|
Dictionary<System. |
OperationsByUrl
Gets known operations, keyed by URL.
Declaration
public Dictionary<string, FhirOperation> OperationsByUrl { get; }
Property Value
Type | Description |
---|---|
Dictionary<System. |
PackageDetails
Gets or sets the package details.
Declaration
public NpmPackageDetails PackageDetails { get; set; }
Property Value
Type | Description |
---|---|
Npm |
PackageName
Gets or sets the name of the package.
Declaration
public string PackageName { get; set; }
Property Value
Type | Description |
---|---|
System. |
PackageType
Gets or sets the type of the package group.
Declaration
public FhirPackageCommon.FhirPackageTypeEnum PackageType { get; set; }
Property Value
Type | Description |
---|---|
Fhir |
PrimitiveTypes
Gets a dictionary with the known primitive types for this version of FHIR.
Declaration
public Dictionary<string, FhirPrimitive> PrimitiveTypes { get; }
Property Value
Type | Description |
---|---|
Dictionary<System. |
Profiles
Gets the profiles by id dictionary.
Declaration
public Dictionary<string, FhirComplex> Profiles { get; }
Property Value
Type | Description |
---|---|
Dictionary<System. |
ProfilesByBaseType
Gets a profiles by base type dictionary.
Declaration
public Dictionary<string, Dictionary<string, FhirComplex>> ProfilesByBaseType { get; }
Property Value
Type | Description |
---|---|
Dictionary<System. |
ReleaseName
Gets or sets the name of the package release.
Declaration
public string ReleaseName { get; set; }
Property Value
Type | Description |
---|---|
System. |
Resources
Gets a dictionary with the known resources for this version of FHIR.
Declaration
public Dictionary<string, FhirComplex> Resources { get; }
Property Value
Type | Description |
---|---|
Dictionary<System. |
SearchParametersByUrl
Gets known search parameters, keyed by URL.
Declaration
public Dictionary<string, FhirSearchParam> SearchParametersByUrl { get; }
Property Value
Type | Description |
---|---|
Dictionary<System. |
SearchResultParameters
Gets search parameters that control search results.
Declaration
public Dictionary<string, FhirSearchParam> SearchResultParameters { get; }
Property Value
Type | Description |
---|---|
Dictionary<System. |
SystemOperations
Gets the system operations.
Declaration
public Dictionary<string, FhirOperation> SystemOperations { get; }
Property Value
Type | Description |
---|---|
Dictionary<System. |
ValueSetsByUrl
Gets the value sets by URL dictionary.
Declaration
public Dictionary<string, FhirValueSetCollection> ValueSetsByUrl { get; }
Property Value
Type | Description |
---|---|
Dictionary<System. |
VersionString
Gets or sets the version string.
Declaration
public string VersionString { get; set; }
Property Value
Type | Description |
---|---|
System. |
Methods
| Improve this Doc View SourceAddCanonicalAlias(String, String)
Declaration
public bool AddCanonicalAlias(string canonicalUrl, string canonicalAlias)
Parameters
Type | Name | Description |
---|---|---|
System. |
canonicalUrl | |
System. |
canonicalAlias |
Returns
Type | Description |
---|---|
System. |
AddCapabilityStatement(FhirCapabiltyStatement)
Adds a capability statement.
Declaration
public void AddCapabilityStatement(FhirCapabiltyStatement cap)
Parameters
Type | Name | Description |
---|---|---|
Fhir |
cap | The capability. |
AddCodeSystem(FhirCodeSystem)
Adds a code system.
Declaration
public void AddCodeSystem(FhirCodeSystem codeSystem)
Parameters
Type | Name | Description |
---|---|---|
Fhir |
codeSystem | The code system. |
AddCompartment(FhirCompartment)
Declaration
public void AddCompartment(FhirCompartment compartment)
Parameters
Type | Name | Description |
---|---|---|
Fhir |
compartment |
AddComplexType(FhirComplex)
Adds a complex type.
Declaration
public void AddComplexType(FhirComplex complex)
Parameters
Type | Name | Description |
---|---|---|
Fhir |
complex | The complex. |
AddExtension(FhirComplex)
Adds an extension.
Declaration
public void AddExtension(FhirComplex extension)
Parameters
Type | Name | Description |
---|---|---|
Fhir |
extension | The extension. |
AddImplementationGuide(FhirImplementationGuide)
Adds an implementation guide.
Declaration
public void AddImplementationGuide(FhirImplementationGuide ig)
Parameters
Type | Name | Description |
---|---|---|
Fhir |
ig | The ig. |
AddLogicalModel(FhirComplex)
Adds a logical model.
Declaration
public void AddLogicalModel(FhirComplex logicalModel)
Parameters
Type | Name | Description |
---|---|---|
Fhir |
logicalModel | The logical model. |
AddOperation(FhirOperation)
Adds an operation.
Declaration
public void AddOperation(FhirOperation operation)
Parameters
Type | Name | Description |
---|---|---|
Fhir |
operation | The operation. |
AddPrimitive(FhirPrimitive)
Adds a primitive.
Declaration
public void AddPrimitive(FhirPrimitive primitive)
Parameters
Type | Name | Description |
---|---|---|
Fhir |
primitive | The primitive. |
AddProfile(FhirComplex)
Adds a profile.
Declaration
public void AddProfile(FhirComplex complex)
Parameters
Type | Name | Description |
---|---|---|
Fhir |
complex | The complex. |
AddResource(FhirComplex)
Adds a resource.
Declaration
public void AddResource(FhirComplex resource)
Parameters
Type | Name | Description |
---|---|---|
Fhir |
resource | The resource object. |
AddSearchParameter(FhirSearchParam)
Adds a search parameter.
Declaration
public void AddSearchParameter(FhirSearchParam searchParam)
Parameters
Type | Name | Description |
---|---|---|
Fhir |
searchParam | The search parameter. |
AddValueSet(FhirValueSet)
Adds a value set.
Declaration
public void AddValueSet(FhirValueSet valueSet)
Parameters
Type | Name | Description |
---|---|---|
Fhir |
valueSet | Set the value belongs to. |
AddVersionedParam(FhirSearchParam.ParameterGrouping, String, String)
Adds a versioned parameter.
Declaration
public void AddVersionedParam(FhirSearchParam.ParameterGrouping searchMagicType, string name, string parameterType)
Parameters
Type | Name | Description |
---|---|---|
Fhir |
searchMagicType | Type of the search magic. |
System. |
name | The name. |
System. |
parameterType | Type of the parameter. |
ConverterHasIssues(out Int32, out Int32)
Determines if we can converter has issues.
Declaration
public bool ConverterHasIssues(out int errorCount, out int warningCount)
Parameters
Type | Name | Description |
---|---|---|
System. |
errorCount | [out] Number of errors. |
System. |
warningCount | [out] Number of warnings. |
Returns
Type | Description |
---|---|
System. |
True if it succeeds, false if it fails. |
DisplayConverterIssues()
Displays the converter issues.
Declaration
public void DisplayConverterIssues()
GetArtifactClass(String)
Gets artifact class.
Declaration
public FhirArtifactClassEnum GetArtifactClass(string token)
Parameters
Type | Name | Description |
---|---|---|
System. |
token | The ID or URL of the artifact. |
Returns
Type | Description |
---|---|
Fhir |
The artifact class. |
GetArtifacts(String)
Gets the artifacts in this collection.
Declaration
public IEnumerable<FhirVersionInfo.ResolvedArtifactRecord> GetArtifacts(string token)
Parameters
Type | Name | Description |
---|---|---|
System. |
token | The ID or URL of the artifact. |
Returns
Type | Description |
---|---|
IEnumerable<Microsoft. |
An enumerator that allows foreach to be used to process the artifacts in this collection. |
GetInheritanceNamesHash(String)
Gets inheritance names hash.
Declaration
public HashSet<string> GetInheritanceNamesHash(string key)
Parameters
Type | Name | Description |
---|---|---|
System. |
key | The key. |
Returns
Type | Description |
---|---|
Hash |
The inheritance names hash. |
HasComplex(String)
Query if 'key' is a known complex data type.
Declaration
public bool HasComplex(string key)
Parameters
Type | Name | Description |
---|---|---|
System. |
key | The key. |
Returns
Type | Description |
---|---|
System. |
True if 'key' exists, false if not. |
HasValueSet(String)
Query if 'urlOrKey' has value set.
Declaration
public bool HasValueSet(string urlOrKey)
Parameters
Type | Name | Description |
---|---|---|
System. |
urlOrKey | The URL or key. |
Returns
Type | Description |
---|---|
System. |
True if value set, false if not. |
ProcessResource(Object)
Attempts to process resource.
Declaration
public void ProcessResource(object resource)
Parameters
Type | Name | Description |
---|---|---|
System. |
resource | [out] The resource object. |
ProcessResource(Object, out String, out FhirArtifactClassEnum)
Attempts to process resource.
Declaration
public void ProcessResource(object resource, out string resourceCanonical, out FhirArtifactClassEnum artifactClass)
Parameters
Type | Name | Description |
---|---|---|
System. |
resource | [out] The resource object. |
System. |
resourceCanonical | Canonical of the processed resource, or string.Empty if not processed. |
Fhir |
artifactClass | Class of the resource parsed |
ReplaceParsedValue(Object, String[], Object)
Replace a value in a parsed but not-yet processed resource
Declaration
public void ReplaceParsedValue(object resource, string[] path, object value)
Parameters
Type | Name | Description |
---|---|---|
System. |
resource | |
System. |
path | |
System. |
value |
ShouldIgnoreResource(String)
Determine if we should ignore resource.
Declaration
public bool ShouldIgnoreResource(string resourceName)
Parameters
Type | Name | Description |
---|---|---|
System. |
resourceName | Name of the resource. |
Returns
Type | Description |
---|---|
System. |
True if it succeeds, false if it fails. |
ShouldProcessResource(String)
Determine if we should process resource.
Declaration
public bool ShouldProcessResource(string resourceName)
Parameters
Type | Name | Description |
---|---|---|
System. |
resourceName | Name of the resource. |
Returns
Type | Description |
---|---|
System. |
True if it succeeds, false if it fails. |
ShouldSkipFile(String)
Determine if we should skip file.
Declaration
public bool ShouldSkipFile(string filename)
Parameters
Type | Name | Description |
---|---|---|
System. |
filename | Filename of the file. |
Returns
Type | Description |
---|---|
System. |
True if it succeeds, false if it fails. |
TryGetArtifact(String, out Object, out FhirArtifactClassEnum, out String, Boolean, FhirArtifactClassEnum)
Attempts to get artifact.
Declaration
public bool TryGetArtifact(string token, out object artifact, out FhirArtifactClassEnum artifactClass, out string resolvedPackage, bool resolveParentLinks = true, FhirArtifactClassEnum knownArtifactClass = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
token | The ID or URL of the artifact. |
System. |
artifact | [out] The artifact. |
Fhir |
artifactClass | [out] The artifact class enum. |
System. |
resolvedPackage | [out] The resolved package. |
System. |
resolveParentLinks | (Optional) True to resolve parent links. |
Fhir |
knownArtifactClass | (Optional) Class hint to resolve artifacts |
Returns
Type | Description |
---|---|
System. |
True if it succeeds, false if it fails. |
TryGetArtifactValues<T>(FhirArtifactClassEnum, out IEnumerable<T>)
Attempts to get artifact complexes an IEnumerable<FhirComplex> from the given FhirArtifactClassEnum.
Declaration
public bool TryGetArtifactValues<T>(FhirArtifactClassEnum artifactClass, out IEnumerable<T> values)
Parameters
Type | Name | Description |
---|---|---|
Fhir |
artifactClass | [out] The artifact class enum. |
IEnumerable<T> | values | [out] The artifact values. |
Returns
Type | Description |
---|---|
System. |
True if it succeeds, false if it fails. |
Type Parameters
Name | Description |
---|---|
T | Generic type parameter. |
TryGetExplicitName(String, out String)
Attempts to get explicit name a string from the given string.
Declaration
public bool TryGetExplicitName(string path, out string explicitName)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | Full pathname of the file. |
System. |
explicitName | [out] Name of the explicit. |
Returns
Type | Description |
---|---|
System. |
True if it succeeds, false if it fails. |
TryGetFirstFromBundle(String, out Object, out String)
Attempts to get first from bundle.
Declaration
public bool TryGetFirstFromBundle(string json, out object resource, out string resourceType)
Parameters
Type | Name | Description |
---|---|---|
System. |
json | The JSON. |
System. |
resource | [out] The resource object. |
System. |
resourceType | [out] Type of the resource. |
Returns
Type | Description |
---|---|
System. |
True if it succeeds, false if it fails. |
TryGetNodeInfo(String, out FhirNodeInfo)
Attempts to get node information about the node described by the path.
Declaration
public bool TryGetNodeInfo(string path, out FhirNodeInfo node)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | Full pathname of the file. |
Fhir |
node | [out] The node information. |
Returns
Type | Description |
---|---|
System. |
True if it succeeds, false if it fails. |
TryGetValueSet(String, out FhirValueSet)
Attempts to get value set a FhirValueSet from the given string.
Declaration
public bool TryGetValueSet(string urlOrKey, out FhirValueSet vs)
Parameters
Type | Name | Description |
---|---|---|
System. |
urlOrKey | The URL or key. |
Fhir |
vs | [out] The vs. |
Returns
Type | Description |
---|---|
System. |
True if it succeeds, false if it fails. |
TryParseResource(String, out Object, out String)
Parses resource an object from the given string.
Declaration
public bool TryParseResource(string json, out object resource, out string resourceType)
Parameters
Type | Name | Description |
---|---|---|
System. |
json | The JSON. |
System. |
resource | |
System. |
resourceType |
Returns
Type | Description |
---|---|
System. |
A typed Resource object. |