View Javadoc
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.ReferenceParam;
23  import ca.uhn.fhir.rest.param.TokenAndListParam;
24  import ca.uhn.fhir.rest.param.TokenOrListParam;
25  import ca.uhn.fhir.rest.param.TokenParam;
26  import lombok.Builder;
27  import lombok.Getter;
28  import lombok.Setter;
29  import lombok.ToString;
30  import org.openehealth.ipf.commons.ihe.fhir.FhirSearchParameters;
31  
32  import java.util.Collections;
33  import java.util.List;
34  import java.util.Set;
35  
36  /**
37   * @author Christian Ohr
38   * @since 3.5
39   */
40  @ToString
41  public class ConditionSearchParameters extends Pcc44CommonSearchParameters {
42  
43      @Getter @Setter
44      private TokenAndListParam category;
45      @Getter @Setter
46      private TokenOrListParam clinicalStatus;
47  
48      @Builder
49      ConditionSearchParameters(TokenAndListParam category,
50                                TokenOrListParam clinicalStatus, ReferenceParam patientReference,
51                                TokenParam _id,
52                                SortSpec sortSpec,
53                                Set<Include> includeSpec,
54                                Set<Include> revIncludeSpec,
55                                FhirContext fhirContext
56                                ) {
57          super(patientReference, _id, sortSpec, includeSpec, revIncludeSpec, fhirContext);
58          this.category = category;
59          this.clinicalStatus = clinicalStatus;
60      }
61  }