C# Class GuidanceService.Store.SimpleStore

Inheritance: IFhirStore, IGenerator, ISnapshotStore, IFhirIndex
Show file Open project: cqframework/cds-on-fhir Class Usage Examples

Public Methods

Method Description
Add ( IEnumerable entries ) : void
Add ( Interaction entry ) : void
AddSnapshot ( Spark.Core.Snapshot snapshot ) : void
Clean ( ) : void
CustomResourceIdAllowed ( string value ) : bool
Exists ( IKey key ) : bool
FindSingle ( string resource, Hl7 searchCommand ) : Spark.Core.Key
Get ( IEnumerable identifiers, string sortby ) : IList
Get ( IKey key ) : Interaction
Get ( string primarykey ) : Interaction
GetSnapshot ( string snapshotid ) : Spark.Core.Snapshot
History ( DateTimeOffset since = null ) : IList
History ( IKey key, DateTimeOffset since = null ) : IList
History ( string typename, DateTimeOffset since = null ) : IList
List ( string typename, DateTimeOffset since = null ) : IList
NextResourceId ( string resource ) : string
NextVersionId ( string resource ) : string
Process ( IEnumerable interactions ) : void
Process ( Interaction interaction ) : void
Replace ( Interaction entry ) : void
Search ( string resource, Hl7 searchCommand ) : SearchResults

Private Methods

Method Description
GetResourceDirectory ( string typeName ) : string
GetResourceFileName ( IKey key ) : string
LoadResourceFromXmlFile ( IKey key ) : Hl7.Fhir.Model.Resource
SaveResourceToXmlFile ( IKey key, Hl7.Fhir.Model.Resource resource ) : void

Method Details

Add() public method

public Add ( IEnumerable entries ) : void
entries IEnumerable
return void

Add() public method

public Add ( Interaction entry ) : void
entry Interaction
return void

AddSnapshot() public method

public AddSnapshot ( Spark.Core.Snapshot snapshot ) : void
snapshot Spark.Core.Snapshot
return void

Clean() public method

public Clean ( ) : void
return void

CustomResourceIdAllowed() public method

public CustomResourceIdAllowed ( string value ) : bool
value string
return bool

Exists() public method

public Exists ( IKey key ) : bool
key IKey
return bool

FindSingle() public method

public FindSingle ( string resource, Hl7 searchCommand ) : Spark.Core.Key
resource string
searchCommand Hl7
return Spark.Core.Key

Get() public method

public Get ( IEnumerable identifiers, string sortby ) : IList
identifiers IEnumerable
sortby string
return IList

Get() public method

public Get ( IKey key ) : Interaction
key IKey
return Interaction

Get() public method

public Get ( string primarykey ) : Interaction
primarykey string
return Interaction

GetSnapshot() public method

public GetSnapshot ( string snapshotid ) : Spark.Core.Snapshot
snapshotid string
return Spark.Core.Snapshot

History() public method

public History ( DateTimeOffset since = null ) : IList
since DateTimeOffset
return IList

History() public method

public History ( IKey key, DateTimeOffset since = null ) : IList
key IKey
since DateTimeOffset
return IList

History() public method

public History ( string typename, DateTimeOffset since = null ) : IList
typename string
since DateTimeOffset
return IList

List() public method

public List ( string typename, DateTimeOffset since = null ) : IList
typename string
since DateTimeOffset
return IList

NextResourceId() public method

public NextResourceId ( string resource ) : string
resource string
return string

NextVersionId() public method

public NextVersionId ( string resource ) : string
resource string
return string

Process() public method

public Process ( IEnumerable interactions ) : void
interactions IEnumerable
return void

Process() public method

public Process ( Interaction interaction ) : void
interaction Interaction
return void

Replace() public method

public Replace ( Interaction entry ) : void
entry Interaction
return void

Search() public method

public Search ( string resource, Hl7 searchCommand ) : SearchResults
resource string
searchCommand Hl7
return SearchResults