-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIFHIRService.java
83 lines (75 loc) · 2.51 KB
/
IFHIRService.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
package org.dew.fhir.services;
/**
*
* FHIR Service interface.
*
* @see <a href="https://www.hl7.org/fhir/http.html">RESTful API</a>
*/
public
interface IFHIRService
{
/**
* Read the current state of the resource.
*
* @param request FHIRRequest
* @return FHIRResponse with Resource or OperationOutcome
* @throws Exception Unexpected error
*/
public FHIRResponse read(FHIRRequest request) throws Exception;
/**
* Read the state of a specific version of the resource.
*
* @param request FHIRRequest
* @return FHIRResponse with Resource or OperationOutcome
* @throws Exception Unexpected error
*/
public FHIRResponse vread(FHIRRequest request) throws Exception;
/**
* Update an existing resource by its id (or create it if it is new).
*
* @param request FHIRRequest
* @return FHIRResponse with the Logical Id and the Version Id of the resource updated or OperationOutcome
* @throws Exception Unexpected error
*/
public FHIRResponse update(FHIRRequest request) throws Exception;
/**
* Update an existing resource by posting a set of changes to it.
*
* @param request FHIRRequest
* @return FHIRResponse with the Logical Id and the Version Id of the resource patched or OperationOutcome
* @throws Exception Unexpected error
*/
public FHIRResponse patch(FHIRRequest request) throws Exception;
/**
* Delete a resource.
*
* @param request FHIRRequest
* @return FHIRResponse with the Logical Id and the Version Id of the resource deleted or OperationOutcome
* @throws Exception Unexpected error
*/
public FHIRResponse delete(FHIRRequest request) throws Exception;
/**
* Retrieve the change history for a particular resource.
*
* @param request FHIRRequest
* @return FHIRResponse with Bundle or OperationOutcome
* @throws Exception Unexpected error
*/
public FHIRResponse history(FHIRRequest request) throws Exception;
/**
* Create a new resource with a server assigned id.
*
* @param request FHIRRequest
* @return FHIRResponse with the Logical Id and the Version Id of the resource created or OperationOutcome
* @throws Exception Unexpected error
*/
public FHIRResponse create(FHIRRequest request) throws Exception;
/**
* Search the resource type based on some filter criteria.
*
* @param request FHIRRequest
* @return FHIRResponse with Bundle or OperationOutcome
* @throws Exception Unexpected error
*/
public FHIRResponse search(FHIRRequest request) throws Exception;
}