Class FhirPackageCommon
Information about the FHIR core package.
Inheritance
Namespace: Microsoft.Health.Fhir.SpecManager.Manager
Assembly: Microsoft.Health.Fhir.SpecManager.dll
Syntax
public static class FhirPackageCommon : object
Fields
| Improve this Doc View SourceUrlFhirType
Extension URL for FHIR type information (added R4).
Declaration
public const string UrlFhirType = null
Field Value
Type | Description |
---|---|
System. |
UrlJsonType
Extension URL for JSON type information.
Declaration
public const string UrlJsonType = null
Field Value
Type | Description |
---|---|
System. |
UrlXmlType
Extension URL for XML type information.
Declaration
public const string UrlXmlType = null
Field Value
Type | Description |
---|---|
System. |
Properties
| Improve this Doc View SourceCoreVersions
Gets the FHIR releases.
Declaration
public static List<FhirPackageCommon.PublishedReleaseInformation> CoreVersions { get; }
Property Value
Type | Description |
---|---|
List<Microsoft. |
Methods
| Improve this Doc View SourceBallotPrefixForVersion(String)
Ballot prefix for version.
Declaration
public static string BallotPrefixForVersion(string version)
Parameters
Type | Name | Description |
---|---|---|
System. |
version | The version string. |
Returns
Type | Description |
---|---|
System. |
A string. |
IsKnownVersion(String)
Query if 'version' is known version.
Declaration
public static bool IsKnownVersion(string version)
Parameters
Type | Name | Description |
---|---|---|
System. |
version | The version string. |
Returns
Type | Description |
---|---|
System. |
True if the version string represents a known version of FHIR, false if not. |
LatestVersionForRelease(FhirPackageCommon.FhirSequenceEnum)
Latest version for release.
Declaration
public static string LatestVersionForRelease(FhirPackageCommon.FhirSequenceEnum major)
Parameters
Type | Name | Description |
---|---|---|
Fhir |
major | The major. |
Returns
Type | Description |
---|---|
System. |
The current highest release number for a sequence. |
MajorIntForVersion(FhirPackageCommon.FhirSequenceEnum)
Major for release.
Declaration
public static int MajorIntForVersion(FhirPackageCommon.FhirSequenceEnum release)
Parameters
Type | Name | Description |
---|---|---|
Fhir |
release | The release. |
Returns
Type | Description |
---|---|
System. |
The sequence release number for a FHIR release (e.g., 2 for DSTU2). |
MajorReleaseForVersion(String)
Major release for version.
Declaration
public static FhirPackageCommon.FhirSequenceEnum MajorReleaseForVersion(string version)
Parameters
Type | Name | Description |
---|---|---|
System. |
version | The version string. |
Returns
Type | Description |
---|---|
Fhir |
The FhirMajorRelease that should be used for the specified version. |
PackageBaseForRelease(FhirPackageCommon.FhirSequenceEnum)
Package base for release.
Declaration
public static string PackageBaseForRelease(FhirPackageCommon.FhirSequenceEnum major)
Parameters
Type | Name | Description |
---|---|---|
Fhir |
major | The major. |
Returns
Type | Description |
---|---|
System. |
A string. |
PackageIsFhirCore(String)
Package is FHIR core.
Declaration
public static bool PackageIsFhirCore(string packageName)
Parameters
Type | Name | Description |
---|---|---|
System. |
packageName | Name of the package. |
Returns
Type | Description |
---|---|
System. |
True if the package represents a FHIR Core package, false if it is not. |
RForSequence(FhirPackageCommon.FhirSequenceEnum)
For sequence.
Declaration
public static string RForSequence(FhirPackageCommon.FhirSequenceEnum sequence)
Parameters
Type | Name | Description |
---|---|---|
Fhir |
sequence | [out] The sequence. |
Returns
Type | Description |
---|---|
System. |
A string. |
ShouldIgnoreResource(FhirPackageCommon.FhirSequenceEnum, String)
Determine if we should ignore resource.
Declaration
public static bool ShouldIgnoreResource(FhirPackageCommon.FhirSequenceEnum release, string resourceName)
Parameters
Type | Name | Description |
---|---|---|
Fhir |
release | The release. |
System. |
resourceName | Name of the resource. |
Returns
Type | Description |
---|---|
System. |
True if it succeeds, false if it fails. |
ShouldProcessResource(FhirPackageCommon.FhirSequenceEnum, String)
Determine if we should process resource.
Declaration
public static bool ShouldProcessResource(FhirPackageCommon.FhirSequenceEnum release, string resourceName)
Parameters
Type | Name | Description |
---|---|---|
Fhir |
release | The release. |
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 static 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(FhirPackageCommon.FhirSequenceEnum, String)
Determine if we should skip file.
Declaration
public static bool ShouldSkipFile(FhirPackageCommon.FhirSequenceEnum release, string filename)
Parameters
Type | Name | Description |
---|---|---|
Fhir |
release | The release. |
System. |
filename | Filename of the file. |
Returns
Type | Description |
---|---|
System. |
True if it succeeds, false if it fails. |
TryGetMajorReleaseForVersion(String, out FhirPackageCommon.FhirSequenceEnum)
Attempts to get major release for version a FhirSequenceEnum from the given string.
Declaration
public static bool TryGetMajorReleaseForVersion(string version, out FhirPackageCommon.FhirSequenceEnum sequence)
Parameters
Type | Name | Description |
---|---|---|
System. |
version | The version string. |
Fhir |
sequence | [out] The sequence. |
Returns
Type | Description |
---|---|
System. |
True if it succeeds, false if it fails. |
TryGetRelativeBaseForVersion(String, out String)
Attempts to get relative URL for version a string from the given string.
Declaration
public static bool TryGetRelativeBaseForVersion(string version, out string relative)
Parameters
Type | Name | Description |
---|---|---|
System. |
version | The version string. |
System. |
relative | [out] The relative. |
Returns
Type | Description |
---|---|
System. |
True if it succeeds, false if it fails. |
TryGetReleaseByPackage(String, out FhirPackageCommon.FhirSequenceEnum)
Attempts to get release by package a FhirSequence from the given string.
Declaration
public static bool TryGetReleaseByPackage(string packageName, out FhirPackageCommon.FhirSequenceEnum sequence)
Parameters
Type | Name | Description |
---|---|---|
System. |
packageName | Name of the package. |
Fhir |
sequence | [out] The sequence. |
Returns
Type | Description |
---|---|
System. |
True if it succeeds, false if it fails. |