Show / Hide Table of Contents

Class FromR2

Convert FHIR R2 into local definitions.

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

Constructors

| Improve this Doc View Source

FromR2()

Initializes a new instance of the FromR2 class.

Declaration
public FromR2()

Methods

| Improve this Doc View Source

DisplayIssues()

Displays the issues.

Declaration
public void DisplayIssues()
| Improve this Doc View Source

HasIssues(out Int32, out Int32)

Query if this object has issues.

Declaration
public bool 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

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.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