Show / Hide Table of Contents

Class FromFhirExpando

Load models from a core package. This class cannot be inherited.

Inheritance
System.Object
FromFhirExpando
Implements
IFhirConverter
Namespace: Microsoft.Health.Fhir.SpecManager.Converters
Assembly: Microsoft.Health.Fhir.SpecManager.dll
Syntax
public sealed class FromFhirExpando : object, IFhirConverter

Constructors

| Improve this Doc View Source

FromFhirExpando()

Initializes a new instance of the FromFhirExpando class.

Declaration
public FromFhirExpando()

Methods

| Improve this Doc View Source

ProcessMetadata(Object, out FhirCapabiltyStatement, String, IPackageImportable, SmartConfiguration)

Process a FHIR capabilities resource (CapabilityStatement or Conformance).

Declaration
public static void ProcessMetadata(object metadata, out FhirCapabiltyStatement capabilityStatement, string serverUrl = "", IPackageImportable info = null, SmartConfiguration smartConfig = null)
Parameters
Type Name Description
System.Object metadata

The metadata resource object (e.g., r4.CapabilitiesStatement).

FhirCapabiltyStatement capabilityStatement

[out] The capability statement.

System.String serverUrl

(Optional) URL of the server.

IPackageImportable info

(Optional) The information.

SmartConfiguration smartConfig

(Optional) The smart configuration.

| Improve this Doc View Source

ProcessMetadata(Object, String, SmartConfiguration, out FhirCapabiltyStatement)

Process a FHIR metadata resource into Server Information.

Declaration
public void ProcessMetadata(object metadata, string serverUrl, SmartConfiguration smartConfig, out FhirCapabiltyStatement capabilities)
Parameters
Type Name Description
System.Object metadata

The metadata resource object (e.g., r4.CapabilitiesStatement).

System.String serverUrl

URL of the server.

SmartConfiguration smartConfig

The smart configuration.

FhirCapabiltyStatement capabilities

[out] Information describing the server.

| Improve this Doc View Source

ProcessResource(Object, IPackageImportable)

Attempts to process resource.

Declaration
public void ProcessResource(object resourceToParse, IPackageImportable fhirVersionInfo)
Parameters
Type Name Description
System.Object resourceToParse

The resource object.

IPackageImportable fhirVersionInfo

Information describing the FHIR version.

| Improve this Doc View Source

ProcessResource(Object, IPackageImportable, out String, out FhirArtifactClassEnum)

Attempts to process resource.

Declaration
public void ProcessResource(object resourceToParse, IPackageImportable fhirVersionInfo, out string resourceCanonical, out FhirArtifactClassEnum artifactClass)
Parameters
Type Name Description
System.Object resourceToParse

The resource object.

IPackageImportable fhirVersionInfo

Information describing the FHIR version.

System.String resourceCanonical

Canonical URL of the processed resource, or string.Empty if not processed.

FhirArtifactClassEnum artifactClass

Class of the resource parsed

| Improve this Doc View Source

ReplaceValue(Object, String[], Object)

Replace a value in a parsed but not-yet processed resource

Declaration
public void ReplaceValue(object resource, string[] path, object value)
Parameters
Type Name Description
System.Object resource
System.String[] path
System.Object value

Explicit Interface Implementations

| Improve this Doc View Source

IFhirConverter.DisplayIssues()

Displays the issues.

Declaration
void IFhirConverter.DisplayIssues()
| Improve this Doc View Source

IFhirConverter.HasIssues(out Int32, out Int32)

Query if 'errorCount' has issues.

Declaration
bool IFhirConverter.HasIssues(out int errorCount, out int warningCount)
Parameters
Type Name Description
System.Int32 errorCount

[out] Number of errors.

System.Int32 warningCount

[out] Number of warnings.

Returns
Type Description
System.Boolean

True if issues, false if not.

| Improve this Doc View Source

IFhirConverter.TryGetFirstFromBundle(String, out Object, out String)

Attempts to get the first resource from a bundle.

Declaration
bool IFhirConverter.TryGetFirstFromBundle(string json, out object resource, out string resourceType)
Parameters
Type Name Description
System.String json

The JSON.

System.Object resource

[out].

System.String resourceType

[out] Type of the resource.

Returns
Type Description
System.Boolean

True if it succeeds, false if it fails.

| Improve this Doc View Source

IFhirConverter.TryParseResource(String, out Object, out String)

Try to parse a resource object from the given string.

Declaration
bool IFhirConverter.TryParseResource(string json, out object resource, out string resourceType)
Parameters
Type Name Description
System.String json

The JSON.

System.Object resource

[out].

System.String resourceType

[out] Type of the resource.

Returns
Type Description
System.Boolean

A typed Resource object.

Implements

IFhirConverter
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX