Unit bsFHIRClient

Description

A light-weight and fast FHIR client. It use Indy's HTTP component TIdHTTP for connecting. For FHIR object model, with support for efficiently parsing and writing in JSON and XML format.

Overview

Classes, Interfaces, Objects and Records

Name Description
Class TbsFHIRClient Creates a new client using a default url

Types

TBSFhirHTTPVerb = (...);
TBSOnBeforeExecuteVerbStream = procedure(const ABeforeStream: TStream) of object;
TBSOnAfterExecuteVerbStream = procedure(const AAfterStream: TStream) of object;
TBSOnSetHeader = procedure(const AVerb: TBSFhirHTTPVerb; const AUrl: String; const AHeaders: TStringList) of object;
TBSExecuteVerbStream = procedure(AVerb:TBSFhirHTTPVerb; AUrl:String; ARequest, AResponse:TStream; const ARequestHeaders, AResponseHeaders: TStrings; var AResponseCode:Integer; var AResponseText:String) of object;
TBSHttpComponentType = (...);

Constants

FHIRContentTypes : Array [TBSFHIRFormat, TBSFHIRVersion] of String = ( ('', 'application/json+fhir', 'application/json+fhir', 'application/fhir+json', 'application/fhir+json', 'application/fhir+json', 'application/fhir+json'), ('', 'application/xml+fhir', 'application/xml+fhir', 'application/fhir+xml', 'application/fhir+xml', 'application/fhir+xml', 'application/fhir+xml') );
FHIRFormatType: Array[TBSFHIRFormat] of String = ('_format=json', '_format=xml');

Description

Types

TBSFhirHTTPVerb = (...);
 
Values
  • fverbGet
  • fverbPost
  • fverbPut
  • fverbDelete
  • fverbOptions
  • fverbPatch
TBSOnBeforeExecuteVerbStream = procedure(const ABeforeStream: TStream) of object;
 
TBSOnAfterExecuteVerbStream = procedure(const AAfterStream: TStream) of object;
 
TBSOnSetHeader = procedure(const AVerb: TBSFhirHTTPVerb; const AUrl: String; const AHeaders: TStringList) of object;
 
TBSExecuteVerbStream = procedure(AVerb:TBSFhirHTTPVerb; AUrl:String; ARequest, AResponse:TStream; const ARequestHeaders, AResponseHeaders: TStrings; var AResponseCode:Integer; var AResponseText:String) of object;
 
TBSHttpComponentType = (...);
 
Values
  • hcNone
  • hcCustom
  • hcIndy
  • hcNetClient

Constants

FHIRContentTypes : Array [TBSFHIRFormat, TBSFHIRVersion] of String = ( ('', 'application/json+fhir', 'application/json+fhir', 'application/fhir+json', 'application/fhir+json', 'application/fhir+json', 'application/fhir+json'), ('', 'application/xml+fhir', 'application/xml+fhir', 'application/fhir+xml', 'application/fhir+xml', 'application/fhir+xml', 'application/fhir+xml') );
 
FHIRFormatType: Array[TBSFHIRFormat] of String = ('_format=json', '_format=xml');
 

Generated by PasDoc 0.15.0.