VRDR .NET
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Properties | List of all members
VRDR.Client Class Reference

Client library for interacting with the NVSS FHIR API More...

Public Member Functions

 Client (String url, bool local, Credentials credentials)
 Instantiate a new instance of the Client
 
async Task< HttpResponseMessage > GetMessageResponsesAsync ()
 GetMessageResponsesAsync makes a GET request to the NVSS FHIR API server for any new messages responses
 
async Task< HttpResponseMessage > PostMessageAsync (BaseMessage message)
 PostMessageAsync POSTS a single message to the NVSS FHIR API server for processing
 
async Task< List< HttpResponseMessage > > PostMessagesAsync (IEnumerable< BaseMessage > messages, int batchSize)
 PostMessageAsync POSTS a list of messages to the NVSS FHIR API server for processing using bulk upload
 
async Task< HttpResponseMessage > GetAuthorizeTokenAsync ()
 Returns the token for the client's credientials
 

Static Public Member Functions

static string CreateBulkUploadPayload (IEnumerable< BaseMessage > messages, string url, bool prettyPrint=false)
 Create the payload for submission to the NVSS FHIR API for bulk upload
 

Properties

String Url [get]
 The API url
 
bool LocalTesting [get]
 Whether the client is running locally
 
Credentials Credentials [get]
 The credentials to access the API server
 
string? Token [get, set]
 The token to access the API server
 

Detailed Description

Client library for interacting with the NVSS FHIR API


The documentation for this class was generated from the following file: