C# Class Spark.Service.FhirService

Show file Open project: raysearchlabs/spark Class Usage Examples

Protected Properties

Property Type Description
generator IGenerator
index IFhirIndex
listener IServiceListener
localhost ILocalhost
pager Pager
snapshotstore ISnapshotStore
store IFhirStore
transfer Transfer

Public Methods

Method Description
AddMeta ( Key key, Hl7.Fhir.Model.Parameters parameters ) : Spark.Engine.Core.FhirResponse
ConditionalCreate ( IKey key, Hl7.Fhir.Model.Resource resource, string>.IEnumerable query ) : Spark.Engine.Core.FhirResponse
ConditionalDelete ( Key key, string>.IEnumerable parameters ) : Spark.Engine.Core.FhirResponse
ConditionalUpdate ( Key key, Hl7.Fhir.Model.Resource resource, Hl7.Fhir.Rest.SearchParams _params ) : Spark.Engine.Core.FhirResponse
Conformance ( ) : Spark.Engine.Core.FhirResponse
Create ( IKey key, Hl7.Fhir.Model.Resource resource ) : Spark.Engine.Core.FhirResponse

Create a new resource with a server assigned id.

Delete ( IKey key ) : Spark.Engine.Core.FhirResponse

Delete a resource.

Upon successful deletion the server should return * 204 (No Content). * If the resource does not exist on the server, the server must return 404 (Not found). * Performing this operation on a resource that is already deleted has no effect, and should return 204 (No Content).

FhirService ( Infrastructure infrastructure ) : System
GetPage ( string snapshotkey, int index, int count ) : Spark.Engine.Core.FhirResponse
HandleInteraction ( Spark.Engine.Core.Interaction interaction ) : Spark.Engine.Core.FhirResponse
History ( DateTimeOffset since, string sortby ) : Spark.Engine.Core.FhirResponse
History ( Key key, DateTimeOffset since, string sortby ) : Spark.Engine.Core.FhirResponse
History ( string type, DateTimeOffset since, string sortby ) : Spark.Engine.Core.FhirResponse
Mailbox ( Hl7.Fhir.Model.Bundle bundle, Hl7.Fhir.Model.Binary body ) : Spark.Engine.Core.FhirResponse
Put ( IKey key, Hl7.Fhir.Model.Resource resource ) : Spark.Engine.Core.FhirResponse
Read ( Key key ) : Spark.Engine.Core.FhirResponse
ReadMeta ( Key key ) : Spark.Engine.Core.FhirResponse
Search ( string type, string>.IEnumerable parameters, int pageSize, string sortby ) : Spark.Engine.Core.FhirResponse
Search ( string type, Hl7.Fhir.Rest.SearchParams searchCommand ) : Spark.Engine.Core.FhirResponse
Transaction ( Hl7.Fhir.Model.Bundle bundle ) : Spark.Engine.Core.FhirResponse
Transaction ( IList interactions ) : Spark.Engine.Core.FhirResponse
Update ( IKey key, Hl7.Fhir.Model.Resource resource ) : Spark.Engine.Core.FhirResponse

Updates a resource if it exist on the given id, or creates the resource if it is new. If a VersionId is included a version specific update will be attempted.

ValidateOperation ( Key key, Hl7.Fhir.Model.Resource resource ) : Spark.Engine.Core.FhirResponse
VersionRead ( Key key ) : Spark.Engine.Core.FhirResponse

Read the state of a specific version of the resource.

If the version referred to is actually one where the resource was deleted, the server should return a 410 status code.

VersionSpecificUpdate ( IKey versionedkey, Hl7.Fhir.Model.Resource resource ) : Spark.Engine.Core.FhirResponse

Private Methods

Method Description
Store ( Spark.Engine.Core.Interaction interaction ) : void

Method Details

AddMeta() public method

public AddMeta ( Key key, Hl7.Fhir.Model.Parameters parameters ) : Spark.Engine.Core.FhirResponse
key Key
parameters Hl7.Fhir.Model.Parameters
return Spark.Engine.Core.FhirResponse

ConditionalCreate() public method

public ConditionalCreate ( IKey key, Hl7.Fhir.Model.Resource resource, string>.IEnumerable query ) : Spark.Engine.Core.FhirResponse
key IKey
resource Hl7.Fhir.Model.Resource
query string>.IEnumerable
return Spark.Engine.Core.FhirResponse

ConditionalDelete() public method

public ConditionalDelete ( Key key, string>.IEnumerable parameters ) : Spark.Engine.Core.FhirResponse
key Key
parameters string>.IEnumerable
return Spark.Engine.Core.FhirResponse

ConditionalUpdate() public method

public ConditionalUpdate ( Key key, Hl7.Fhir.Model.Resource resource, Hl7.Fhir.Rest.SearchParams _params ) : Spark.Engine.Core.FhirResponse
key Key
resource Hl7.Fhir.Model.Resource
_params Hl7.Fhir.Rest.SearchParams
return Spark.Engine.Core.FhirResponse

Conformance() public method

public Conformance ( ) : Spark.Engine.Core.FhirResponse
return Spark.Engine.Core.FhirResponse

Create() public method

Create a new resource with a server assigned id.
public Create ( IKey key, Hl7.Fhir.Model.Resource resource ) : Spark.Engine.Core.FhirResponse
key IKey
resource Hl7.Fhir.Model.Resource The data for the Resource to be created
return Spark.Engine.Core.FhirResponse

Delete() public method

Delete a resource.
Upon successful deletion the server should return * 204 (No Content). * If the resource does not exist on the server, the server must return 404 (Not found). * Performing this operation on a resource that is already deleted has no effect, and should return 204 (No Content).
public Delete ( IKey key ) : Spark.Engine.Core.FhirResponse
key IKey
return Spark.Engine.Core.FhirResponse

FhirService() public method

public FhirService ( Infrastructure infrastructure ) : System
infrastructure Spark.Core.Infrastructure
return System

GetPage() public method

public GetPage ( string snapshotkey, int index, int count ) : Spark.Engine.Core.FhirResponse
snapshotkey string
index int
count int
return Spark.Engine.Core.FhirResponse

HandleInteraction() public method

public HandleInteraction ( Spark.Engine.Core.Interaction interaction ) : Spark.Engine.Core.FhirResponse
interaction Spark.Engine.Core.Interaction
return Spark.Engine.Core.FhirResponse

History() public method

public History ( DateTimeOffset since, string sortby ) : Spark.Engine.Core.FhirResponse
since DateTimeOffset
sortby string
return Spark.Engine.Core.FhirResponse

History() public method

public History ( Key key, DateTimeOffset since, string sortby ) : Spark.Engine.Core.FhirResponse
key Key
since DateTimeOffset
sortby string
return Spark.Engine.Core.FhirResponse

History() public method

public History ( string type, DateTimeOffset since, string sortby ) : Spark.Engine.Core.FhirResponse
type string
since DateTimeOffset
sortby string
return Spark.Engine.Core.FhirResponse

Mailbox() public method

public Mailbox ( Hl7.Fhir.Model.Bundle bundle, Hl7.Fhir.Model.Binary body ) : Spark.Engine.Core.FhirResponse
bundle Hl7.Fhir.Model.Bundle
body Hl7.Fhir.Model.Binary
return Spark.Engine.Core.FhirResponse

Put() public method

public Put ( IKey key, Hl7.Fhir.Model.Resource resource ) : Spark.Engine.Core.FhirResponse
key IKey
resource Hl7.Fhir.Model.Resource
return Spark.Engine.Core.FhirResponse

Read() public method

public Read ( Key key ) : Spark.Engine.Core.FhirResponse
key Key
return Spark.Engine.Core.FhirResponse

ReadMeta() public method

public ReadMeta ( Key key ) : Spark.Engine.Core.FhirResponse
key Key
return Spark.Engine.Core.FhirResponse

Search() public method

public Search ( string type, string>.IEnumerable parameters, int pageSize, string sortby ) : Spark.Engine.Core.FhirResponse
type string
parameters string>.IEnumerable
pageSize int
sortby string
return Spark.Engine.Core.FhirResponse

Search() public method

public Search ( string type, Hl7.Fhir.Rest.SearchParams searchCommand ) : Spark.Engine.Core.FhirResponse
type string
searchCommand Hl7.Fhir.Rest.SearchParams
return Spark.Engine.Core.FhirResponse

Transaction() public method

public Transaction ( Hl7.Fhir.Model.Bundle bundle ) : Spark.Engine.Core.FhirResponse
bundle Hl7.Fhir.Model.Bundle
return Spark.Engine.Core.FhirResponse

Transaction() public method

public Transaction ( IList interactions ) : Spark.Engine.Core.FhirResponse
interactions IList
return Spark.Engine.Core.FhirResponse

Update() public method

Updates a resource if it exist on the given id, or creates the resource if it is new. If a VersionId is included a version specific update will be attempted.
public Update ( IKey key, Hl7.Fhir.Model.Resource resource ) : Spark.Engine.Core.FhirResponse
key IKey
resource Hl7.Fhir.Model.Resource
return Spark.Engine.Core.FhirResponse

ValidateOperation() public method

public ValidateOperation ( Key key, Hl7.Fhir.Model.Resource resource ) : Spark.Engine.Core.FhirResponse
key Key
resource Hl7.Fhir.Model.Resource
return Spark.Engine.Core.FhirResponse

VersionRead() public method

Read the state of a specific version of the resource.
If the version referred to is actually one where the resource was deleted, the server should return a 410 status code.
public VersionRead ( Key key ) : Spark.Engine.Core.FhirResponse
key Key
return Spark.Engine.Core.FhirResponse

VersionSpecificUpdate() public method

public VersionSpecificUpdate ( IKey versionedkey, Hl7.Fhir.Model.Resource resource ) : Spark.Engine.Core.FhirResponse
versionedkey IKey
resource Hl7.Fhir.Model.Resource
return Spark.Engine.Core.FhirResponse

Property Details

generator protected property

protected IGenerator generator
return IGenerator

index protected property

protected IFhirIndex index
return IFhirIndex

listener protected property

protected IServiceListener listener
return IServiceListener

localhost protected property

protected ILocalhost localhost
return ILocalhost

pager protected property

protected Pager,Spark.Service pager
return Pager

snapshotstore protected property

protected ISnapshotStore snapshotstore
return ISnapshotStore

store protected property

protected IFhirStore store
return IFhirStore

transfer protected property

protected Transfer,Spark.Service transfer
return Transfer