1 /*
2 * Copyright 2018 the original author or authors.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 package org.openehealth.ipf.commons.ihe.fhir.pcc44;
18
19 import ca.uhn.fhir.context.FhirContext;
20 import ca.uhn.fhir.model.api.Include;
21 import ca.uhn.fhir.rest.api.SortSpec;
22 import ca.uhn.fhir.rest.param.*;
23 import lombok.Builder;
24 import lombok.Getter;
25 import lombok.ToString;
26
27 import java.util.Set;
28
29 /**
30 * @author Christian Ohr
31 * @since 3.5
32 */
33 @ToString
34 public class ObservationSearchParameters extends Pcc44CommonSearchParameters {
35
36 @Getter
37 private DateRangeParam date;
38
39 @Getter
40 private TokenAndListParam category;
41
42 @Getter
43 private TokenOrListParam code;
44
45 @Builder
46 ObservationSearchParameters(ReferenceParam patientReference,
47 DateRangeParam date,
48 TokenAndListParam category,
49 TokenOrListParam code,
50 TokenParam _id,
51 SortSpec sortSpec,
52 Set<Include> includeSpec,
53 Set<Include> revIncludeSpec,
54 FhirContext fhirContext) {
55 super(patientReference, _id, sortSpec, includeSpec, revIncludeSpec, fhirContext);
56 this.date = date;
57 this.category = category;
58 this.code = code;
59 }
60 }