Show / Hide Table of Contents

Class ServerConnector

A FHIR server connector.

Inheritance
System.Object
ServerConnector
Namespace: Microsoft.Health.Fhir.SpecManager.Manager
Assembly: Microsoft.Health.Fhir.SpecManager.dll
Syntax
public static class ServerConnector : object

Methods

| Improve this Doc View Source

ParseCapabilityJson(String, String)

Parse capability JSON.

Declaration
public static FhirCapabiltyStatement ParseCapabilityJson(string json, string smartConfigJson = "")
Parameters
Type Name Description
System.String json

[out] The JSON.

System.String smartConfigJson

The smart configuration JSON.

Returns
Type Description
FhirCapabiltyStatement

A FhirCapabiltyStatement.

| Improve this Doc View Source

TryDownloadResource(String, out String)

Attempt to download an instance from the specified FULL url.

Declaration
public static bool TryDownloadResource(string instanceUrl, out string fhirJson)
Parameters
Type Name Description
System.String instanceUrl

Full URL for the instance content.

System.String fhirJson

Downloaded JSON or null if download fails.

Returns
Type Description
System.Boolean
| Improve this Doc View Source

TryGetServerInfo(String, Boolean, Dictionary<String, IEnumerable<String>>, out FhirCapabiltyStatement)

Attempts to get server information a FhirServerInfo from the given string.

Declaration
public static bool TryGetServerInfo(string serverUrl, bool resolveExternal, Dictionary<string, IEnumerable<string>> headers, out FhirCapabiltyStatement serverInfo)
Parameters
Type Name Description
System.String serverUrl

URL of the server.

System.Boolean resolveExternal

True to resolve external references.

Dictionary<System.String, IEnumerable<System.String>> headers

The headers.

FhirCapabiltyStatement serverInfo

[out] Information describing the server.

Returns
Type Description
System.Boolean

True if it succeeds, false if it fails.

| Improve this Doc View Source

TryGetServerInfo(String, Boolean, Dictionary<String, IEnumerable<String>>, out String, out FhirCapabiltyStatement)

Attempts to get server information a FhirServerInfo from the given string.

Declaration
public static bool TryGetServerInfo(string serverUrl, bool resolveExternal, Dictionary<string, IEnumerable<string>> headers, out string json, out FhirCapabiltyStatement serverInfo)
Parameters
Type Name Description
System.String serverUrl

URL of the server.

System.Boolean resolveExternal

True to resolve external references.

Dictionary<System.String, IEnumerable<System.String>> headers

The headers.

System.String json

[out] The JSON.

FhirCapabiltyStatement serverInfo

[out] Information describing the server.

Returns
Type Description
System.Boolean

True if it succeeds, false if it fails.

| Improve this Doc View Source

TrySearchForCanonical(String, String, String, out String)

Attempts to search for canonical.

Declaration
public static bool TrySearchForCanonical(string serverUrl, string resourceType, string canonicalUrl, out string fhirJson)
Parameters
Type Name Description
System.String serverUrl
System.String resourceType

Type of the resource.

System.String canonicalUrl

URL of the canonical.

System.String fhirJson

[out] Downloaded JSON or null if download fails.

Returns
Type Description
System.Boolean

True if it succeeds, false if it fails.

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