public FhirResponse Document(IKey key) { Validate.HasResourceType(key, ResourceType.Composition); var searchCommand = new SearchParams(); searchCommand.Add("_id", key.ResourceId); var includes = new List <string>() { "Composition:subject" , "Composition:author" , "Composition:attester" //Composition.attester.party , "Composition:custodian" , "Composition:eventdetail" //Composition.event.detail , "Composition:encounter" , "Composition:entry" //Composition.section.entry }; foreach (var inc in includes) { searchCommand.Include.Add(inc); } return(Search(key.TypeName, searchCommand)); }
public FhirResponse Delete(Entry entry) { Validate.Key(entry.Key); Store(entry); return(Respond.WithCode(HttpStatusCode.NoContent)); }
public FhirResponse Put(IKey key, Resource resource) { Validate.HasResourceId(resource); Validate.IsResourceIdEqual(key, resource); return(Put(Entry.PUT(key, resource))); }