|
27 | 27 | import ca.uhn.fhir.rest.api.SortSpec; |
28 | 28 | import ca.uhn.fhir.rest.api.server.IBundleProvider; |
29 | 29 | import ca.uhn.fhir.rest.api.server.RequestDetails; |
| 30 | +import ca.uhn.fhir.rest.param.DateParam; |
30 | 31 | import ca.uhn.fhir.rest.param.DateRangeParam; |
31 | 32 | import ca.uhn.fhir.rest.param.ReferenceAndListParam; |
32 | 33 | import ca.uhn.fhir.rest.param.ReferenceOrListParam; |
33 | 34 | import ca.uhn.fhir.rest.param.ReferenceParam; |
34 | 35 | import ca.uhn.fhir.rest.param.TokenOrListParam; |
35 | 36 | import ca.uhn.fhir.rest.param.TokenParam; |
36 | 37 | import ca.uhn.fhir.rest.server.exceptions.InvalidRequestException; |
| 38 | +import jakarta.servlet.http.HttpServletRequest; |
| 39 | +import jakarta.servlet.http.HttpServletResponse; |
37 | 40 | import org.hl7.fhir.instance.model.api.IAnyResource; |
38 | 41 | import org.hl7.fhir.r4.model.DocumentReference; |
39 | 42 | import org.hl7.fhir.r4.model.IdType; |
|
42 | 45 | import org.hl7.fhir.r4.model.ResourceType; |
43 | 46 | import org.openehealth.ipf.commons.ihe.fhir.AbstractPlainProvider; |
44 | 47 |
|
45 | | -import jakarta.servlet.http.HttpServletRequest; |
46 | | -import jakarta.servlet.http.HttpServletResponse; |
47 | 48 | import java.util.Set; |
48 | 49 |
|
49 | 50 | /** |
|
54 | 55 | */ |
55 | 56 | public class Iti67StrictResourceProvider extends AbstractPlainProvider { |
56 | 57 |
|
| 58 | + private static final String SP_CREATION = "creation"; |
57 | 59 |
|
58 | 60 | @SuppressWarnings("unused") |
59 | 61 | @Search(type = DocumentReference.class) |
60 | 62 | public IBundleProvider documentReferenceSearch( |
61 | 63 | @RequiredParam(name = DocumentReference.SP_PATIENT, chainWhitelist = {"", Patient.SP_IDENTIFIER}) ReferenceParam patient, |
62 | 64 | @RequiredParam(name = DocumentReference.SP_STATUS) TokenOrListParam status, |
63 | 65 | @OptionalParam(name = DocumentReference.SP_IDENTIFIER) TokenParam identifier, |
| 66 | + @OptionalParam(name = SP_CREATION) DateParam creation, |
64 | 67 | @OptionalParam(name = DocumentReference.SP_DATE) DateRangeParam date, |
65 | 68 | @OptionalParam(name = DocumentReference.SP_AUTHOR, chainWhitelist = { Practitioner.SP_FAMILY, Practitioner.SP_GIVEN }) ReferenceAndListParam author, |
66 | 69 | @OptionalParam(name = DocumentReference.SP_CATEGORY) TokenOrListParam category, |
@@ -103,6 +106,7 @@ public IBundleProvider documentReferenceSearch( |
103 | 106 | var searchParameters = Iti67SearchParameters.builder() |
104 | 107 | .status(status) |
105 | 108 | .identifier(identifier) |
| 109 | + .creation(creation) |
106 | 110 | .date(date) |
107 | 111 | .category(category) |
108 | 112 | .type(type) |
|
0 commit comments