C# Class public_sfs.Program

Show file Open project: veterinarium/public-sfs

Public Properties

Property Type Description
clinicApiKey string
emrApiKey string
sbConnectionString string
sbQueueName string
serverUrl string

Public Methods

Method Description
CreateHospitalization ( HttpClient httpClient, string hospitalizationExternalId ) : Hospitalization
CreateInventoryItem ( HttpClient httpClient, string emrInventoryItemId ) : void
DeleteInventoryItem ( HttpClient httpClient, string emrInventoryItemId ) : void
DischargeHospitalization ( HttpClient httpClient, string hospitalizationExternalId ) : void
DownloadMedicalRecordsReport ( HttpClient httpClient, Hospitalization hosp ) : void
GetAnesthetics ( HttpClient httpClient, string hospitalizationExternalId ) : void
GetDepartments ( HttpClient httpClient ) : void
GetEventsFromServiceBus ( ) : void
GetHospitalization ( HttpClient httpClient, string hospitalizationExternalId ) : void
GetTreatmentTemplates ( HttpClient httpClient ) : void
UpdateHospitalization ( HttpClient httpClient, Hospitalization hosp ) : void
UploadMedics ( HttpClient httpClient ) : void

Private Methods

Method Description
Main ( string args ) : void

Method Details

CreateHospitalization() public static method

public static CreateHospitalization ( HttpClient httpClient, string hospitalizationExternalId ) : Hospitalization
httpClient System.Net.Http.HttpClient
hospitalizationExternalId string
return Hospitalization

CreateInventoryItem() public static method

public static CreateInventoryItem ( HttpClient httpClient, string emrInventoryItemId ) : void
httpClient System.Net.Http.HttpClient
emrInventoryItemId string
return void

DeleteInventoryItem() public static method

public static DeleteInventoryItem ( HttpClient httpClient, string emrInventoryItemId ) : void
httpClient System.Net.Http.HttpClient
emrInventoryItemId string
return void

DischargeHospitalization() public static method

public static DischargeHospitalization ( HttpClient httpClient, string hospitalizationExternalId ) : void
httpClient System.Net.Http.HttpClient
hospitalizationExternalId string
return void

DownloadMedicalRecordsReport() public static method

public static DownloadMedicalRecordsReport ( HttpClient httpClient, Hospitalization hosp ) : void
httpClient System.Net.Http.HttpClient
hosp Hospitalization
return void

GetAnesthetics() public static method

public static GetAnesthetics ( HttpClient httpClient, string hospitalizationExternalId ) : void
httpClient System.Net.Http.HttpClient
hospitalizationExternalId string
return void

GetDepartments() public static method

public static GetDepartments ( HttpClient httpClient ) : void
httpClient System.Net.Http.HttpClient
return void

GetEventsFromServiceBus() public static method

public static GetEventsFromServiceBus ( ) : void
return void

GetHospitalization() public static method

public static GetHospitalization ( HttpClient httpClient, string hospitalizationExternalId ) : void
httpClient System.Net.Http.HttpClient
hospitalizationExternalId string
return void

GetTreatmentTemplates() public static method

public static GetTreatmentTemplates ( HttpClient httpClient ) : void
httpClient System.Net.Http.HttpClient
return void

UpdateHospitalization() public static method

public static UpdateHospitalization ( HttpClient httpClient, Hospitalization hosp ) : void
httpClient System.Net.Http.HttpClient
hosp Hospitalization
return void

UploadMedics() public static method

public static UploadMedics ( HttpClient httpClient ) : void
httpClient System.Net.Http.HttpClient
return void

Property Details

clinicApiKey public static property

Each clinic has a special key to be used for integration with EMR. This key is generated after clinic registration and available at account page (https://www.smartflowsheet.com/Account/Info)
public static string clinicApiKey
return string

emrApiKey public static property

Each EMR has special developer key received from Smart Flow Sheet support
public static string emrApiKey
return string

sbConnectionString public static property

Each clinic has special connection string which used for receive clinic's events via Azure Service Bus. This connection string received from Smart Flow Sheet support
public static string sbConnectionString
return string

sbQueueName public static property

Each clinic has special queue name which used for receive clinic's events via Azure Service Bus. Queue name received from Smart Flow Sheet support (usually it's equal to clinicApiKey).
public static string sbQueueName
return string

serverUrl public static property

Base server url: - sandbox : "https://sfs-public.azurewebsites.net/api/v3"; - production: "https://www.smartflowsheet.com/api/v3"
public static string serverUrl
return string