001package org.hl7.fhir.r5.model;
002
003
004/*
005 * #%L
006 * org.hl7.fhir.r5
007 * %%
008 * Copyright (C) 2014 - 2019 Health Level 7
009 * %%
010 * Licensed under the Apache License, Version 2.0 (the \"License\");
011 * you may not use this file except in compliance with the License.
012 * You may obtain a copy of the License at
013 * 
014 *      http://www.apache.org/licenses/LICENSE-2.0
015 * 
016 * Unless required by applicable law or agreed to in writing, software
017 * distributed under the License is distributed on an \"AS IS\" BASIS,
018 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
019 * See the License for the specific language governing permissions and
020 * limitations under the License.
021 * #L%
022 */
023
024/*
025  Copyright (c) 2011+, HL7, Inc.
026  All rights reserved.
027  
028  Redistribution and use in source and binary forms, with or without modification, \
029  are permitted provided that the following conditions are met:
030  
031   * Redistributions of source code must retain the above copyright notice, this \
032     list of conditions and the following disclaimer.
033   * Redistributions in binary form must reproduce the above copyright notice, \
034     this list of conditions and the following disclaimer in the documentation \
035     and/or other materials provided with the distribution.
036   * Neither the name of HL7 nor the names of its contributors may be used to 
037     endorse or promote products derived from this software without specific 
038     prior written permission.
039  
040  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND \
041  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED \
042  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. \
043  IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, \
044  INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT \
045  NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR \
046  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, \
047  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) \
048  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE \
049  POSSIBILITY OF SUCH DAMAGE.
050  */
051
052// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
053
054import java.util.ArrayList;
055import java.util.Date;
056import java.util.List;
057import org.hl7.fhir.utilities.Utilities;
058import org.hl7.fhir.r5.model.Enumerations.*;
059import org.hl7.fhir.instance.model.api.IBaseBackboneElement;
060import org.hl7.fhir.exceptions.FHIRException;
061import org.hl7.fhir.instance.model.api.ICompositeType;
062import ca.uhn.fhir.model.api.annotation.ResourceDef;
063import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
064import org.hl7.fhir.instance.model.api.IBaseBackboneElement;
065import ca.uhn.fhir.model.api.annotation.Child;
066import ca.uhn.fhir.model.api.annotation.ChildOrder;
067import ca.uhn.fhir.model.api.annotation.Description;
068import ca.uhn.fhir.model.api.annotation.Block;
069
070/**
071 * Indicates an actual or potential clinical issue with or between one or more active or proposed clinical actions for a patient; e.g. Drug-drug interaction, Ineffective treatment frequency, Procedure-condition conflict, etc.
072 */
073@ResourceDef(name="DetectedIssue", profile="http://hl7.org/fhir/StructureDefinition/DetectedIssue")
074public class DetectedIssue extends DomainResource {
075
076    public enum DetectedIssueSeverity {
077        /**
078         * Indicates the issue may be life-threatening or has the potential to cause permanent injury.
079         */
080        HIGH, 
081        /**
082         * Indicates the issue may result in noticeable adverse consequences but is unlikely to be life-threatening or cause permanent injury.
083         */
084        MODERATE, 
085        /**
086         * Indicates the issue may result in some adverse consequences but is unlikely to substantially affect the situation of the subject.
087         */
088        LOW, 
089        /**
090         * added to help the parsers with the generic types
091         */
092        NULL;
093        public static DetectedIssueSeverity fromCode(String codeString) throws FHIRException {
094            if (codeString == null || "".equals(codeString))
095                return null;
096        if ("high".equals(codeString))
097          return HIGH;
098        if ("moderate".equals(codeString))
099          return MODERATE;
100        if ("low".equals(codeString))
101          return LOW;
102        if (Configuration.isAcceptInvalidEnums())
103          return null;
104        else
105          throw new FHIRException("Unknown DetectedIssueSeverity code '"+codeString+"'");
106        }
107        public String toCode() {
108          switch (this) {
109            case HIGH: return "high";
110            case MODERATE: return "moderate";
111            case LOW: return "low";
112            default: return "?";
113          }
114        }
115        public String getSystem() {
116          switch (this) {
117            case HIGH: return "http://hl7.org/fhir/detectedissue-severity";
118            case MODERATE: return "http://hl7.org/fhir/detectedissue-severity";
119            case LOW: return "http://hl7.org/fhir/detectedissue-severity";
120            default: return "?";
121          }
122        }
123        public String getDefinition() {
124          switch (this) {
125            case HIGH: return "Indicates the issue may be life-threatening or has the potential to cause permanent injury.";
126            case MODERATE: return "Indicates the issue may result in noticeable adverse consequences but is unlikely to be life-threatening or cause permanent injury.";
127            case LOW: return "Indicates the issue may result in some adverse consequences but is unlikely to substantially affect the situation of the subject.";
128            default: return "?";
129          }
130        }
131        public String getDisplay() {
132          switch (this) {
133            case HIGH: return "High";
134            case MODERATE: return "Moderate";
135            case LOW: return "Low";
136            default: return "?";
137          }
138        }
139    }
140
141  public static class DetectedIssueSeverityEnumFactory implements EnumFactory<DetectedIssueSeverity> {
142    public DetectedIssueSeverity fromCode(String codeString) throws IllegalArgumentException {
143      if (codeString == null || "".equals(codeString))
144            if (codeString == null || "".equals(codeString))
145                return null;
146        if ("high".equals(codeString))
147          return DetectedIssueSeverity.HIGH;
148        if ("moderate".equals(codeString))
149          return DetectedIssueSeverity.MODERATE;
150        if ("low".equals(codeString))
151          return DetectedIssueSeverity.LOW;
152        throw new IllegalArgumentException("Unknown DetectedIssueSeverity code '"+codeString+"'");
153        }
154        public Enumeration<DetectedIssueSeverity> fromType(Base code) throws FHIRException {
155          if (code == null)
156            return null;
157          if (code.isEmpty())
158            return new Enumeration<DetectedIssueSeverity>(this);
159          String codeString = ((PrimitiveType) code).asStringValue();
160          if (codeString == null || "".equals(codeString))
161            return null;
162        if ("high".equals(codeString))
163          return new Enumeration<DetectedIssueSeverity>(this, DetectedIssueSeverity.HIGH);
164        if ("moderate".equals(codeString))
165          return new Enumeration<DetectedIssueSeverity>(this, DetectedIssueSeverity.MODERATE);
166        if ("low".equals(codeString))
167          return new Enumeration<DetectedIssueSeverity>(this, DetectedIssueSeverity.LOW);
168        throw new FHIRException("Unknown DetectedIssueSeverity code '"+codeString+"'");
169        }
170    public String toCode(DetectedIssueSeverity code) {
171      if (code == DetectedIssueSeverity.HIGH)
172        return "high";
173      if (code == DetectedIssueSeverity.MODERATE)
174        return "moderate";
175      if (code == DetectedIssueSeverity.LOW)
176        return "low";
177      return "?";
178      }
179    public String toSystem(DetectedIssueSeverity code) {
180      return code.getSystem();
181      }
182    }
183
184    @Block()
185    public static class DetectedIssueEvidenceComponent extends BackboneElement implements IBaseBackboneElement {
186        /**
187         * A manifestation that led to the recording of this detected issue.
188         */
189        @Child(name = "code", type = {CodeableConcept.class}, order=1, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
190        @Description(shortDefinition="Manifestation", formalDefinition="A manifestation that led to the recording of this detected issue." )
191        @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/manifestation-or-symptom")
192        protected List<CodeableConcept> code;
193
194        /**
195         * Links to resources that constitute evidence for the detected issue such as a GuidanceResponse or MeasureReport.
196         */
197        @Child(name = "detail", type = {Reference.class}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
198        @Description(shortDefinition="Supporting information", formalDefinition="Links to resources that constitute evidence for the detected issue such as a GuidanceResponse or MeasureReport." )
199        protected List<Reference> detail;
200
201        private static final long serialVersionUID = -672691342L;
202
203    /**
204     * Constructor
205     */
206      public DetectedIssueEvidenceComponent() {
207        super();
208      }
209
210        /**
211         * @return {@link #code} (A manifestation that led to the recording of this detected issue.)
212         */
213        public List<CodeableConcept> getCode() { 
214          if (this.code == null)
215            this.code = new ArrayList<CodeableConcept>();
216          return this.code;
217        }
218
219        /**
220         * @return Returns a reference to <code>this</code> for easy method chaining
221         */
222        public DetectedIssueEvidenceComponent setCode(List<CodeableConcept> theCode) { 
223          this.code = theCode;
224          return this;
225        }
226
227        public boolean hasCode() { 
228          if (this.code == null)
229            return false;
230          for (CodeableConcept item : this.code)
231            if (!item.isEmpty())
232              return true;
233          return false;
234        }
235
236        public CodeableConcept addCode() { //3
237          CodeableConcept t = new CodeableConcept();
238          if (this.code == null)
239            this.code = new ArrayList<CodeableConcept>();
240          this.code.add(t);
241          return t;
242        }
243
244        public DetectedIssueEvidenceComponent addCode(CodeableConcept t) { //3
245          if (t == null)
246            return this;
247          if (this.code == null)
248            this.code = new ArrayList<CodeableConcept>();
249          this.code.add(t);
250          return this;
251        }
252
253        /**
254         * @return The first repetition of repeating field {@link #code}, creating it if it does not already exist {3}
255         */
256        public CodeableConcept getCodeFirstRep() { 
257          if (getCode().isEmpty()) {
258            addCode();
259          }
260          return getCode().get(0);
261        }
262
263        /**
264         * @return {@link #detail} (Links to resources that constitute evidence for the detected issue such as a GuidanceResponse or MeasureReport.)
265         */
266        public List<Reference> getDetail() { 
267          if (this.detail == null)
268            this.detail = new ArrayList<Reference>();
269          return this.detail;
270        }
271
272        /**
273         * @return Returns a reference to <code>this</code> for easy method chaining
274         */
275        public DetectedIssueEvidenceComponent setDetail(List<Reference> theDetail) { 
276          this.detail = theDetail;
277          return this;
278        }
279
280        public boolean hasDetail() { 
281          if (this.detail == null)
282            return false;
283          for (Reference item : this.detail)
284            if (!item.isEmpty())
285              return true;
286          return false;
287        }
288
289        public Reference addDetail() { //3
290          Reference t = new Reference();
291          if (this.detail == null)
292            this.detail = new ArrayList<Reference>();
293          this.detail.add(t);
294          return t;
295        }
296
297        public DetectedIssueEvidenceComponent addDetail(Reference t) { //3
298          if (t == null)
299            return this;
300          if (this.detail == null)
301            this.detail = new ArrayList<Reference>();
302          this.detail.add(t);
303          return this;
304        }
305
306        /**
307         * @return The first repetition of repeating field {@link #detail}, creating it if it does not already exist {3}
308         */
309        public Reference getDetailFirstRep() { 
310          if (getDetail().isEmpty()) {
311            addDetail();
312          }
313          return getDetail().get(0);
314        }
315
316        protected void listChildren(List<Property> children) {
317          super.listChildren(children);
318          children.add(new Property("code", "CodeableConcept", "A manifestation that led to the recording of this detected issue.", 0, java.lang.Integer.MAX_VALUE, code));
319          children.add(new Property("detail", "Reference(Any)", "Links to resources that constitute evidence for the detected issue such as a GuidanceResponse or MeasureReport.", 0, java.lang.Integer.MAX_VALUE, detail));
320        }
321
322        @Override
323        public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
324          switch (_hash) {
325          case 3059181: /*code*/  return new Property("code", "CodeableConcept", "A manifestation that led to the recording of this detected issue.", 0, java.lang.Integer.MAX_VALUE, code);
326          case -1335224239: /*detail*/  return new Property("detail", "Reference(Any)", "Links to resources that constitute evidence for the detected issue such as a GuidanceResponse or MeasureReport.", 0, java.lang.Integer.MAX_VALUE, detail);
327          default: return super.getNamedProperty(_hash, _name, _checkValid);
328          }
329
330        }
331
332      @Override
333      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
334        switch (hash) {
335        case 3059181: /*code*/ return this.code == null ? new Base[0] : this.code.toArray(new Base[this.code.size()]); // CodeableConcept
336        case -1335224239: /*detail*/ return this.detail == null ? new Base[0] : this.detail.toArray(new Base[this.detail.size()]); // Reference
337        default: return super.getProperty(hash, name, checkValid);
338        }
339
340      }
341
342      @Override
343      public Base setProperty(int hash, String name, Base value) throws FHIRException {
344        switch (hash) {
345        case 3059181: // code
346          this.getCode().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept
347          return value;
348        case -1335224239: // detail
349          this.getDetail().add(TypeConvertor.castToReference(value)); // Reference
350          return value;
351        default: return super.setProperty(hash, name, value);
352        }
353
354      }
355
356      @Override
357      public Base setProperty(String name, Base value) throws FHIRException {
358        if (name.equals("code")) {
359          this.getCode().add(TypeConvertor.castToCodeableConcept(value));
360        } else if (name.equals("detail")) {
361          this.getDetail().add(TypeConvertor.castToReference(value));
362        } else
363          return super.setProperty(name, value);
364        return value;
365      }
366
367      @Override
368      public Base makeProperty(int hash, String name) throws FHIRException {
369        switch (hash) {
370        case 3059181:  return addCode(); 
371        case -1335224239:  return addDetail(); 
372        default: return super.makeProperty(hash, name);
373        }
374
375      }
376
377      @Override
378      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
379        switch (hash) {
380        case 3059181: /*code*/ return new String[] {"CodeableConcept"};
381        case -1335224239: /*detail*/ return new String[] {"Reference"};
382        default: return super.getTypesForProperty(hash, name);
383        }
384
385      }
386
387      @Override
388      public Base addChild(String name) throws FHIRException {
389        if (name.equals("code")) {
390          return addCode();
391        }
392        else if (name.equals("detail")) {
393          return addDetail();
394        }
395        else
396          return super.addChild(name);
397      }
398
399      public DetectedIssueEvidenceComponent copy() {
400        DetectedIssueEvidenceComponent dst = new DetectedIssueEvidenceComponent();
401        copyValues(dst);
402        return dst;
403      }
404
405      public void copyValues(DetectedIssueEvidenceComponent dst) {
406        super.copyValues(dst);
407        if (code != null) {
408          dst.code = new ArrayList<CodeableConcept>();
409          for (CodeableConcept i : code)
410            dst.code.add(i.copy());
411        };
412        if (detail != null) {
413          dst.detail = new ArrayList<Reference>();
414          for (Reference i : detail)
415            dst.detail.add(i.copy());
416        };
417      }
418
419      @Override
420      public boolean equalsDeep(Base other_) {
421        if (!super.equalsDeep(other_))
422          return false;
423        if (!(other_ instanceof DetectedIssueEvidenceComponent))
424          return false;
425        DetectedIssueEvidenceComponent o = (DetectedIssueEvidenceComponent) other_;
426        return compareDeep(code, o.code, true) && compareDeep(detail, o.detail, true);
427      }
428
429      @Override
430      public boolean equalsShallow(Base other_) {
431        if (!super.equalsShallow(other_))
432          return false;
433        if (!(other_ instanceof DetectedIssueEvidenceComponent))
434          return false;
435        DetectedIssueEvidenceComponent o = (DetectedIssueEvidenceComponent) other_;
436        return true;
437      }
438
439      public boolean isEmpty() {
440        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(code, detail);
441      }
442
443  public String fhirType() {
444    return "DetectedIssue.evidence";
445
446  }
447
448  }
449
450    @Block()
451    public static class DetectedIssueMitigationComponent extends BackboneElement implements IBaseBackboneElement {
452        /**
453         * Describes the action that was taken or the observation that was made that reduces/eliminates the risk associated with the identified issue.
454         */
455        @Child(name = "action", type = {CodeableConcept.class}, order=1, min=1, max=1, modifier=false, summary=false)
456        @Description(shortDefinition="What mitigation?", formalDefinition="Describes the action that was taken or the observation that was made that reduces/eliminates the risk associated with the identified issue." )
457        @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/detectedissue-mitigation-action")
458        protected CodeableConcept action;
459
460        /**
461         * Indicates when the mitigating action was documented.
462         */
463        @Child(name = "date", type = {DateTimeType.class}, order=2, min=0, max=1, modifier=false, summary=false)
464        @Description(shortDefinition="Date committed", formalDefinition="Indicates when the mitigating action was documented." )
465        protected DateTimeType date;
466
467        /**
468         * Identifies the practitioner who determined the mitigation and takes responsibility for the mitigation step occurring.
469         */
470        @Child(name = "author", type = {Practitioner.class, PractitionerRole.class}, order=3, min=0, max=1, modifier=false, summary=false)
471        @Description(shortDefinition="Who is committing?", formalDefinition="Identifies the practitioner who determined the mitigation and takes responsibility for the mitigation step occurring." )
472        protected Reference author;
473
474        private static final long serialVersionUID = -1797436956L;
475
476    /**
477     * Constructor
478     */
479      public DetectedIssueMitigationComponent() {
480        super();
481      }
482
483    /**
484     * Constructor
485     */
486      public DetectedIssueMitigationComponent(CodeableConcept action) {
487        super();
488        this.setAction(action);
489      }
490
491        /**
492         * @return {@link #action} (Describes the action that was taken or the observation that was made that reduces/eliminates the risk associated with the identified issue.)
493         */
494        public CodeableConcept getAction() { 
495          if (this.action == null)
496            if (Configuration.errorOnAutoCreate())
497              throw new Error("Attempt to auto-create DetectedIssueMitigationComponent.action");
498            else if (Configuration.doAutoCreate())
499              this.action = new CodeableConcept(); // cc
500          return this.action;
501        }
502
503        public boolean hasAction() { 
504          return this.action != null && !this.action.isEmpty();
505        }
506
507        /**
508         * @param value {@link #action} (Describes the action that was taken or the observation that was made that reduces/eliminates the risk associated with the identified issue.)
509         */
510        public DetectedIssueMitigationComponent setAction(CodeableConcept value) { 
511          this.action = value;
512          return this;
513        }
514
515        /**
516         * @return {@link #date} (Indicates when the mitigating action was documented.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value
517         */
518        public DateTimeType getDateElement() { 
519          if (this.date == null)
520            if (Configuration.errorOnAutoCreate())
521              throw new Error("Attempt to auto-create DetectedIssueMitigationComponent.date");
522            else if (Configuration.doAutoCreate())
523              this.date = new DateTimeType(); // bb
524          return this.date;
525        }
526
527        public boolean hasDateElement() { 
528          return this.date != null && !this.date.isEmpty();
529        }
530
531        public boolean hasDate() { 
532          return this.date != null && !this.date.isEmpty();
533        }
534
535        /**
536         * @param value {@link #date} (Indicates when the mitigating action was documented.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value
537         */
538        public DetectedIssueMitigationComponent setDateElement(DateTimeType value) { 
539          this.date = value;
540          return this;
541        }
542
543        /**
544         * @return Indicates when the mitigating action was documented.
545         */
546        public Date getDate() { 
547          return this.date == null ? null : this.date.getValue();
548        }
549
550        /**
551         * @param value Indicates when the mitigating action was documented.
552         */
553        public DetectedIssueMitigationComponent setDate(Date value) { 
554          if (value == null)
555            this.date = null;
556          else {
557            if (this.date == null)
558              this.date = new DateTimeType();
559            this.date.setValue(value);
560          }
561          return this;
562        }
563
564        /**
565         * @return {@link #author} (Identifies the practitioner who determined the mitigation and takes responsibility for the mitigation step occurring.)
566         */
567        public Reference getAuthor() { 
568          if (this.author == null)
569            if (Configuration.errorOnAutoCreate())
570              throw new Error("Attempt to auto-create DetectedIssueMitigationComponent.author");
571            else if (Configuration.doAutoCreate())
572              this.author = new Reference(); // cc
573          return this.author;
574        }
575
576        public boolean hasAuthor() { 
577          return this.author != null && !this.author.isEmpty();
578        }
579
580        /**
581         * @param value {@link #author} (Identifies the practitioner who determined the mitigation and takes responsibility for the mitigation step occurring.)
582         */
583        public DetectedIssueMitigationComponent setAuthor(Reference value) { 
584          this.author = value;
585          return this;
586        }
587
588        protected void listChildren(List<Property> children) {
589          super.listChildren(children);
590          children.add(new Property("action", "CodeableConcept", "Describes the action that was taken or the observation that was made that reduces/eliminates the risk associated with the identified issue.", 0, 1, action));
591          children.add(new Property("date", "dateTime", "Indicates when the mitigating action was documented.", 0, 1, date));
592          children.add(new Property("author", "Reference(Practitioner|PractitionerRole)", "Identifies the practitioner who determined the mitigation and takes responsibility for the mitigation step occurring.", 0, 1, author));
593        }
594
595        @Override
596        public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
597          switch (_hash) {
598          case -1422950858: /*action*/  return new Property("action", "CodeableConcept", "Describes the action that was taken or the observation that was made that reduces/eliminates the risk associated with the identified issue.", 0, 1, action);
599          case 3076014: /*date*/  return new Property("date", "dateTime", "Indicates when the mitigating action was documented.", 0, 1, date);
600          case -1406328437: /*author*/  return new Property("author", "Reference(Practitioner|PractitionerRole)", "Identifies the practitioner who determined the mitigation and takes responsibility for the mitigation step occurring.", 0, 1, author);
601          default: return super.getNamedProperty(_hash, _name, _checkValid);
602          }
603
604        }
605
606      @Override
607      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
608        switch (hash) {
609        case -1422950858: /*action*/ return this.action == null ? new Base[0] : new Base[] {this.action}; // CodeableConcept
610        case 3076014: /*date*/ return this.date == null ? new Base[0] : new Base[] {this.date}; // DateTimeType
611        case -1406328437: /*author*/ return this.author == null ? new Base[0] : new Base[] {this.author}; // Reference
612        default: return super.getProperty(hash, name, checkValid);
613        }
614
615      }
616
617      @Override
618      public Base setProperty(int hash, String name, Base value) throws FHIRException {
619        switch (hash) {
620        case -1422950858: // action
621          this.action = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
622          return value;
623        case 3076014: // date
624          this.date = TypeConvertor.castToDateTime(value); // DateTimeType
625          return value;
626        case -1406328437: // author
627          this.author = TypeConvertor.castToReference(value); // Reference
628          return value;
629        default: return super.setProperty(hash, name, value);
630        }
631
632      }
633
634      @Override
635      public Base setProperty(String name, Base value) throws FHIRException {
636        if (name.equals("action")) {
637          this.action = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
638        } else if (name.equals("date")) {
639          this.date = TypeConvertor.castToDateTime(value); // DateTimeType
640        } else if (name.equals("author")) {
641          this.author = TypeConvertor.castToReference(value); // Reference
642        } else
643          return super.setProperty(name, value);
644        return value;
645      }
646
647      @Override
648      public Base makeProperty(int hash, String name) throws FHIRException {
649        switch (hash) {
650        case -1422950858:  return getAction();
651        case 3076014:  return getDateElement();
652        case -1406328437:  return getAuthor();
653        default: return super.makeProperty(hash, name);
654        }
655
656      }
657
658      @Override
659      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
660        switch (hash) {
661        case -1422950858: /*action*/ return new String[] {"CodeableConcept"};
662        case 3076014: /*date*/ return new String[] {"dateTime"};
663        case -1406328437: /*author*/ return new String[] {"Reference"};
664        default: return super.getTypesForProperty(hash, name);
665        }
666
667      }
668
669      @Override
670      public Base addChild(String name) throws FHIRException {
671        if (name.equals("action")) {
672          this.action = new CodeableConcept();
673          return this.action;
674        }
675        else if (name.equals("date")) {
676          throw new FHIRException("Cannot call addChild on a primitive type DetectedIssue.mitigation.date");
677        }
678        else if (name.equals("author")) {
679          this.author = new Reference();
680          return this.author;
681        }
682        else
683          return super.addChild(name);
684      }
685
686      public DetectedIssueMitigationComponent copy() {
687        DetectedIssueMitigationComponent dst = new DetectedIssueMitigationComponent();
688        copyValues(dst);
689        return dst;
690      }
691
692      public void copyValues(DetectedIssueMitigationComponent dst) {
693        super.copyValues(dst);
694        dst.action = action == null ? null : action.copy();
695        dst.date = date == null ? null : date.copy();
696        dst.author = author == null ? null : author.copy();
697      }
698
699      @Override
700      public boolean equalsDeep(Base other_) {
701        if (!super.equalsDeep(other_))
702          return false;
703        if (!(other_ instanceof DetectedIssueMitigationComponent))
704          return false;
705        DetectedIssueMitigationComponent o = (DetectedIssueMitigationComponent) other_;
706        return compareDeep(action, o.action, true) && compareDeep(date, o.date, true) && compareDeep(author, o.author, true)
707          ;
708      }
709
710      @Override
711      public boolean equalsShallow(Base other_) {
712        if (!super.equalsShallow(other_))
713          return false;
714        if (!(other_ instanceof DetectedIssueMitigationComponent))
715          return false;
716        DetectedIssueMitigationComponent o = (DetectedIssueMitigationComponent) other_;
717        return compareValues(date, o.date, true);
718      }
719
720      public boolean isEmpty() {
721        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(action, date, author);
722      }
723
724  public String fhirType() {
725    return "DetectedIssue.mitigation";
726
727  }
728
729  }
730
731    /**
732     * Business identifier associated with the detected issue record.
733     */
734    @Child(name = "identifier", type = {Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
735    @Description(shortDefinition="Unique id for the detected issue", formalDefinition="Business identifier associated with the detected issue record." )
736    protected List<Identifier> identifier;
737
738    /**
739     * Indicates the status of the detected issue.
740     */
741    @Child(name = "status", type = {CodeType.class}, order=1, min=1, max=1, modifier=true, summary=true)
742    @Description(shortDefinition="registered | preliminary | final | amended +", formalDefinition="Indicates the status of the detected issue." )
743    @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/observation-status")
744    protected Enumeration<ObservationStatus> status;
745
746    /**
747     * Identifies the general type of issue identified.
748     */
749    @Child(name = "code", type = {CodeableConcept.class}, order=2, min=0, max=1, modifier=false, summary=true)
750    @Description(shortDefinition="Issue Category, e.g. drug-drug, duplicate therapy, etc.", formalDefinition="Identifies the general type of issue identified." )
751    @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/detectedissue-category")
752    protected CodeableConcept code;
753
754    /**
755     * Indicates the degree of importance associated with the identified issue based on the potential impact on the patient.
756     */
757    @Child(name = "severity", type = {CodeType.class}, order=3, min=0, max=1, modifier=false, summary=true)
758    @Description(shortDefinition="high | moderate | low", formalDefinition="Indicates the degree of importance associated with the identified issue based on the potential impact on the patient." )
759    @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/detectedissue-severity")
760    protected Enumeration<DetectedIssueSeverity> severity;
761
762    /**
763     * Indicates the patient whose record the detected issue is associated with.
764     */
765    @Child(name = "patient", type = {Patient.class}, order=4, min=0, max=1, modifier=false, summary=true)
766    @Description(shortDefinition="Associated patient", formalDefinition="Indicates the patient whose record the detected issue is associated with." )
767    protected Reference patient;
768
769    /**
770     * The date or period when the detected issue was initially identified.
771     */
772    @Child(name = "identified", type = {DateTimeType.class, Period.class}, order=5, min=0, max=1, modifier=false, summary=true)
773    @Description(shortDefinition="When identified", formalDefinition="The date or period when the detected issue was initially identified." )
774    protected DataType identified;
775
776    /**
777     * Individual or device responsible for the issue being raised.  For example, a decision support application or a pharmacist conducting a medication review.
778     */
779    @Child(name = "author", type = {Practitioner.class, PractitionerRole.class, Device.class}, order=6, min=0, max=1, modifier=false, summary=true)
780    @Description(shortDefinition="The provider or device that identified the issue", formalDefinition="Individual or device responsible for the issue being raised.  For example, a decision support application or a pharmacist conducting a medication review." )
781    protected Reference author;
782
783    /**
784     * Indicates the resource representing the current activity or proposed activity that is potentially problematic.
785     */
786    @Child(name = "implicated", type = {Reference.class}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
787    @Description(shortDefinition="Problem resource", formalDefinition="Indicates the resource representing the current activity or proposed activity that is potentially problematic." )
788    protected List<Reference> implicated;
789
790    /**
791     * Supporting evidence or manifestations that provide the basis for identifying the detected issue such as a GuidanceResponse or MeasureReport.
792     */
793    @Child(name = "evidence", type = {}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
794    @Description(shortDefinition="Supporting evidence", formalDefinition="Supporting evidence or manifestations that provide the basis for identifying the detected issue such as a GuidanceResponse or MeasureReport." )
795    protected List<DetectedIssueEvidenceComponent> evidence;
796
797    /**
798     * A textual explanation of the detected issue.
799     */
800    @Child(name = "detail", type = {StringType.class}, order=9, min=0, max=1, modifier=false, summary=false)
801    @Description(shortDefinition="Description and context", formalDefinition="A textual explanation of the detected issue." )
802    protected StringType detail;
803
804    /**
805     * The literature, knowledge-base or similar reference that describes the propensity for the detected issue identified.
806     */
807    @Child(name = "reference", type = {UriType.class}, order=10, min=0, max=1, modifier=false, summary=false)
808    @Description(shortDefinition="Authority for issue", formalDefinition="The literature, knowledge-base or similar reference that describes the propensity for the detected issue identified." )
809    protected UriType reference;
810
811    /**
812     * Indicates an action that has been taken or is committed to reduce or eliminate the likelihood of the risk identified by the detected issue from manifesting.  Can also reflect an observation of known mitigating factors that may reduce/eliminate the need for any action.
813     */
814    @Child(name = "mitigation", type = {}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
815    @Description(shortDefinition="Step taken to address", formalDefinition="Indicates an action that has been taken or is committed to reduce or eliminate the likelihood of the risk identified by the detected issue from manifesting.  Can also reflect an observation of known mitigating factors that may reduce/eliminate the need for any action." )
816    protected List<DetectedIssueMitigationComponent> mitigation;
817
818    private static final long serialVersionUID = -781032584L;
819
820  /**
821   * Constructor
822   */
823    public DetectedIssue() {
824      super();
825    }
826
827  /**
828   * Constructor
829   */
830    public DetectedIssue(ObservationStatus status) {
831      super();
832      this.setStatus(status);
833    }
834
835    /**
836     * @return {@link #identifier} (Business identifier associated with the detected issue record.)
837     */
838    public List<Identifier> getIdentifier() { 
839      if (this.identifier == null)
840        this.identifier = new ArrayList<Identifier>();
841      return this.identifier;
842    }
843
844    /**
845     * @return Returns a reference to <code>this</code> for easy method chaining
846     */
847    public DetectedIssue setIdentifier(List<Identifier> theIdentifier) { 
848      this.identifier = theIdentifier;
849      return this;
850    }
851
852    public boolean hasIdentifier() { 
853      if (this.identifier == null)
854        return false;
855      for (Identifier item : this.identifier)
856        if (!item.isEmpty())
857          return true;
858      return false;
859    }
860
861    public Identifier addIdentifier() { //3
862      Identifier t = new Identifier();
863      if (this.identifier == null)
864        this.identifier = new ArrayList<Identifier>();
865      this.identifier.add(t);
866      return t;
867    }
868
869    public DetectedIssue addIdentifier(Identifier t) { //3
870      if (t == null)
871        return this;
872      if (this.identifier == null)
873        this.identifier = new ArrayList<Identifier>();
874      this.identifier.add(t);
875      return this;
876    }
877
878    /**
879     * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist {3}
880     */
881    public Identifier getIdentifierFirstRep() { 
882      if (getIdentifier().isEmpty()) {
883        addIdentifier();
884      }
885      return getIdentifier().get(0);
886    }
887
888    /**
889     * @return {@link #status} (Indicates the status of the detected issue.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
890     */
891    public Enumeration<ObservationStatus> getStatusElement() { 
892      if (this.status == null)
893        if (Configuration.errorOnAutoCreate())
894          throw new Error("Attempt to auto-create DetectedIssue.status");
895        else if (Configuration.doAutoCreate())
896          this.status = new Enumeration<ObservationStatus>(new ObservationStatusEnumFactory()); // bb
897      return this.status;
898    }
899
900    public boolean hasStatusElement() { 
901      return this.status != null && !this.status.isEmpty();
902    }
903
904    public boolean hasStatus() { 
905      return this.status != null && !this.status.isEmpty();
906    }
907
908    /**
909     * @param value {@link #status} (Indicates the status of the detected issue.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
910     */
911    public DetectedIssue setStatusElement(Enumeration<ObservationStatus> value) { 
912      this.status = value;
913      return this;
914    }
915
916    /**
917     * @return Indicates the status of the detected issue.
918     */
919    public ObservationStatus getStatus() { 
920      return this.status == null ? null : this.status.getValue();
921    }
922
923    /**
924     * @param value Indicates the status of the detected issue.
925     */
926    public DetectedIssue setStatus(ObservationStatus value) { 
927        if (this.status == null)
928          this.status = new Enumeration<ObservationStatus>(new ObservationStatusEnumFactory());
929        this.status.setValue(value);
930      return this;
931    }
932
933    /**
934     * @return {@link #code} (Identifies the general type of issue identified.)
935     */
936    public CodeableConcept getCode() { 
937      if (this.code == null)
938        if (Configuration.errorOnAutoCreate())
939          throw new Error("Attempt to auto-create DetectedIssue.code");
940        else if (Configuration.doAutoCreate())
941          this.code = new CodeableConcept(); // cc
942      return this.code;
943    }
944
945    public boolean hasCode() { 
946      return this.code != null && !this.code.isEmpty();
947    }
948
949    /**
950     * @param value {@link #code} (Identifies the general type of issue identified.)
951     */
952    public DetectedIssue setCode(CodeableConcept value) { 
953      this.code = value;
954      return this;
955    }
956
957    /**
958     * @return {@link #severity} (Indicates the degree of importance associated with the identified issue based on the potential impact on the patient.). This is the underlying object with id, value and extensions. The accessor "getSeverity" gives direct access to the value
959     */
960    public Enumeration<DetectedIssueSeverity> getSeverityElement() { 
961      if (this.severity == null)
962        if (Configuration.errorOnAutoCreate())
963          throw new Error("Attempt to auto-create DetectedIssue.severity");
964        else if (Configuration.doAutoCreate())
965          this.severity = new Enumeration<DetectedIssueSeverity>(new DetectedIssueSeverityEnumFactory()); // bb
966      return this.severity;
967    }
968
969    public boolean hasSeverityElement() { 
970      return this.severity != null && !this.severity.isEmpty();
971    }
972
973    public boolean hasSeverity() { 
974      return this.severity != null && !this.severity.isEmpty();
975    }
976
977    /**
978     * @param value {@link #severity} (Indicates the degree of importance associated with the identified issue based on the potential impact on the patient.). This is the underlying object with id, value and extensions. The accessor "getSeverity" gives direct access to the value
979     */
980    public DetectedIssue setSeverityElement(Enumeration<DetectedIssueSeverity> value) { 
981      this.severity = value;
982      return this;
983    }
984
985    /**
986     * @return Indicates the degree of importance associated with the identified issue based on the potential impact on the patient.
987     */
988    public DetectedIssueSeverity getSeverity() { 
989      return this.severity == null ? null : this.severity.getValue();
990    }
991
992    /**
993     * @param value Indicates the degree of importance associated with the identified issue based on the potential impact on the patient.
994     */
995    public DetectedIssue setSeverity(DetectedIssueSeverity value) { 
996      if (value == null)
997        this.severity = null;
998      else {
999        if (this.severity == null)
1000          this.severity = new Enumeration<DetectedIssueSeverity>(new DetectedIssueSeverityEnumFactory());
1001        this.severity.setValue(value);
1002      }
1003      return this;
1004    }
1005
1006    /**
1007     * @return {@link #patient} (Indicates the patient whose record the detected issue is associated with.)
1008     */
1009    public Reference getPatient() { 
1010      if (this.patient == null)
1011        if (Configuration.errorOnAutoCreate())
1012          throw new Error("Attempt to auto-create DetectedIssue.patient");
1013        else if (Configuration.doAutoCreate())
1014          this.patient = new Reference(); // cc
1015      return this.patient;
1016    }
1017
1018    public boolean hasPatient() { 
1019      return this.patient != null && !this.patient.isEmpty();
1020    }
1021
1022    /**
1023     * @param value {@link #patient} (Indicates the patient whose record the detected issue is associated with.)
1024     */
1025    public DetectedIssue setPatient(Reference value) { 
1026      this.patient = value;
1027      return this;
1028    }
1029
1030    /**
1031     * @return {@link #identified} (The date or period when the detected issue was initially identified.)
1032     */
1033    public DataType getIdentified() { 
1034      return this.identified;
1035    }
1036
1037    /**
1038     * @return {@link #identified} (The date or period when the detected issue was initially identified.)
1039     */
1040    public DateTimeType getIdentifiedDateTimeType() throws FHIRException { 
1041      if (this.identified == null)
1042        this.identified = new DateTimeType();
1043      if (!(this.identified instanceof DateTimeType))
1044        throw new FHIRException("Type mismatch: the type DateTimeType was expected, but "+this.identified.getClass().getName()+" was encountered");
1045      return (DateTimeType) this.identified;
1046    }
1047
1048    public boolean hasIdentifiedDateTimeType() { 
1049      return this != null && this.identified instanceof DateTimeType;
1050    }
1051
1052    /**
1053     * @return {@link #identified} (The date or period when the detected issue was initially identified.)
1054     */
1055    public Period getIdentifiedPeriod() throws FHIRException { 
1056      if (this.identified == null)
1057        this.identified = new Period();
1058      if (!(this.identified instanceof Period))
1059        throw new FHIRException("Type mismatch: the type Period was expected, but "+this.identified.getClass().getName()+" was encountered");
1060      return (Period) this.identified;
1061    }
1062
1063    public boolean hasIdentifiedPeriod() { 
1064      return this != null && this.identified instanceof Period;
1065    }
1066
1067    public boolean hasIdentified() { 
1068      return this.identified != null && !this.identified.isEmpty();
1069    }
1070
1071    /**
1072     * @param value {@link #identified} (The date or period when the detected issue was initially identified.)
1073     */
1074    public DetectedIssue setIdentified(DataType value) { 
1075      if (value != null && !(value instanceof DateTimeType || value instanceof Period))
1076        throw new Error("Not the right type for DetectedIssue.identified[x]: "+value.fhirType());
1077      this.identified = value;
1078      return this;
1079    }
1080
1081    /**
1082     * @return {@link #author} (Individual or device responsible for the issue being raised.  For example, a decision support application or a pharmacist conducting a medication review.)
1083     */
1084    public Reference getAuthor() { 
1085      if (this.author == null)
1086        if (Configuration.errorOnAutoCreate())
1087          throw new Error("Attempt to auto-create DetectedIssue.author");
1088        else if (Configuration.doAutoCreate())
1089          this.author = new Reference(); // cc
1090      return this.author;
1091    }
1092
1093    public boolean hasAuthor() { 
1094      return this.author != null && !this.author.isEmpty();
1095    }
1096
1097    /**
1098     * @param value {@link #author} (Individual or device responsible for the issue being raised.  For example, a decision support application or a pharmacist conducting a medication review.)
1099     */
1100    public DetectedIssue setAuthor(Reference value) { 
1101      this.author = value;
1102      return this;
1103    }
1104
1105    /**
1106     * @return {@link #implicated} (Indicates the resource representing the current activity or proposed activity that is potentially problematic.)
1107     */
1108    public List<Reference> getImplicated() { 
1109      if (this.implicated == null)
1110        this.implicated = new ArrayList<Reference>();
1111      return this.implicated;
1112    }
1113
1114    /**
1115     * @return Returns a reference to <code>this</code> for easy method chaining
1116     */
1117    public DetectedIssue setImplicated(List<Reference> theImplicated) { 
1118      this.implicated = theImplicated;
1119      return this;
1120    }
1121
1122    public boolean hasImplicated() { 
1123      if (this.implicated == null)
1124        return false;
1125      for (Reference item : this.implicated)
1126        if (!item.isEmpty())
1127          return true;
1128      return false;
1129    }
1130
1131    public Reference addImplicated() { //3
1132      Reference t = new Reference();
1133      if (this.implicated == null)
1134        this.implicated = new ArrayList<Reference>();
1135      this.implicated.add(t);
1136      return t;
1137    }
1138
1139    public DetectedIssue addImplicated(Reference t) { //3
1140      if (t == null)
1141        return this;
1142      if (this.implicated == null)
1143        this.implicated = new ArrayList<Reference>();
1144      this.implicated.add(t);
1145      return this;
1146    }
1147
1148    /**
1149     * @return The first repetition of repeating field {@link #implicated}, creating it if it does not already exist {3}
1150     */
1151    public Reference getImplicatedFirstRep() { 
1152      if (getImplicated().isEmpty()) {
1153        addImplicated();
1154      }
1155      return getImplicated().get(0);
1156    }
1157
1158    /**
1159     * @return {@link #evidence} (Supporting evidence or manifestations that provide the basis for identifying the detected issue such as a GuidanceResponse or MeasureReport.)
1160     */
1161    public List<DetectedIssueEvidenceComponent> getEvidence() { 
1162      if (this.evidence == null)
1163        this.evidence = new ArrayList<DetectedIssueEvidenceComponent>();
1164      return this.evidence;
1165    }
1166
1167    /**
1168     * @return Returns a reference to <code>this</code> for easy method chaining
1169     */
1170    public DetectedIssue setEvidence(List<DetectedIssueEvidenceComponent> theEvidence) { 
1171      this.evidence = theEvidence;
1172      return this;
1173    }
1174
1175    public boolean hasEvidence() { 
1176      if (this.evidence == null)
1177        return false;
1178      for (DetectedIssueEvidenceComponent item : this.evidence)
1179        if (!item.isEmpty())
1180          return true;
1181      return false;
1182    }
1183
1184    public DetectedIssueEvidenceComponent addEvidence() { //3
1185      DetectedIssueEvidenceComponent t = new DetectedIssueEvidenceComponent();
1186      if (this.evidence == null)
1187        this.evidence = new ArrayList<DetectedIssueEvidenceComponent>();
1188      this.evidence.add(t);
1189      return t;
1190    }
1191
1192    public DetectedIssue addEvidence(DetectedIssueEvidenceComponent t) { //3
1193      if (t == null)
1194        return this;
1195      if (this.evidence == null)
1196        this.evidence = new ArrayList<DetectedIssueEvidenceComponent>();
1197      this.evidence.add(t);
1198      return this;
1199    }
1200
1201    /**
1202     * @return The first repetition of repeating field {@link #evidence}, creating it if it does not already exist {3}
1203     */
1204    public DetectedIssueEvidenceComponent getEvidenceFirstRep() { 
1205      if (getEvidence().isEmpty()) {
1206        addEvidence();
1207      }
1208      return getEvidence().get(0);
1209    }
1210
1211    /**
1212     * @return {@link #detail} (A textual explanation of the detected issue.). This is the underlying object with id, value and extensions. The accessor "getDetail" gives direct access to the value
1213     */
1214    public StringType getDetailElement() { 
1215      if (this.detail == null)
1216        if (Configuration.errorOnAutoCreate())
1217          throw new Error("Attempt to auto-create DetectedIssue.detail");
1218        else if (Configuration.doAutoCreate())
1219          this.detail = new StringType(); // bb
1220      return this.detail;
1221    }
1222
1223    public boolean hasDetailElement() { 
1224      return this.detail != null && !this.detail.isEmpty();
1225    }
1226
1227    public boolean hasDetail() { 
1228      return this.detail != null && !this.detail.isEmpty();
1229    }
1230
1231    /**
1232     * @param value {@link #detail} (A textual explanation of the detected issue.). This is the underlying object with id, value and extensions. The accessor "getDetail" gives direct access to the value
1233     */
1234    public DetectedIssue setDetailElement(StringType value) { 
1235      this.detail = value;
1236      return this;
1237    }
1238
1239    /**
1240     * @return A textual explanation of the detected issue.
1241     */
1242    public String getDetail() { 
1243      return this.detail == null ? null : this.detail.getValue();
1244    }
1245
1246    /**
1247     * @param value A textual explanation of the detected issue.
1248     */
1249    public DetectedIssue setDetail(String value) { 
1250      if (Utilities.noString(value))
1251        this.detail = null;
1252      else {
1253        if (this.detail == null)
1254          this.detail = new StringType();
1255        this.detail.setValue(value);
1256      }
1257      return this;
1258    }
1259
1260    /**
1261     * @return {@link #reference} (The literature, knowledge-base or similar reference that describes the propensity for the detected issue identified.). This is the underlying object with id, value and extensions. The accessor "getReference" gives direct access to the value
1262     */
1263    public UriType getReferenceElement() { 
1264      if (this.reference == null)
1265        if (Configuration.errorOnAutoCreate())
1266          throw new Error("Attempt to auto-create DetectedIssue.reference");
1267        else if (Configuration.doAutoCreate())
1268          this.reference = new UriType(); // bb
1269      return this.reference;
1270    }
1271
1272    public boolean hasReferenceElement() { 
1273      return this.reference != null && !this.reference.isEmpty();
1274    }
1275
1276    public boolean hasReference() { 
1277      return this.reference != null && !this.reference.isEmpty();
1278    }
1279
1280    /**
1281     * @param value {@link #reference} (The literature, knowledge-base or similar reference that describes the propensity for the detected issue identified.). This is the underlying object with id, value and extensions. The accessor "getReference" gives direct access to the value
1282     */
1283    public DetectedIssue setReferenceElement(UriType value) { 
1284      this.reference = value;
1285      return this;
1286    }
1287
1288    /**
1289     * @return The literature, knowledge-base or similar reference that describes the propensity for the detected issue identified.
1290     */
1291    public String getReference() { 
1292      return this.reference == null ? null : this.reference.getValue();
1293    }
1294
1295    /**
1296     * @param value The literature, knowledge-base or similar reference that describes the propensity for the detected issue identified.
1297     */
1298    public DetectedIssue setReference(String value) { 
1299      if (Utilities.noString(value))
1300        this.reference = null;
1301      else {
1302        if (this.reference == null)
1303          this.reference = new UriType();
1304        this.reference.setValue(value);
1305      }
1306      return this;
1307    }
1308
1309    /**
1310     * @return {@link #mitigation} (Indicates an action that has been taken or is committed to reduce or eliminate the likelihood of the risk identified by the detected issue from manifesting.  Can also reflect an observation of known mitigating factors that may reduce/eliminate the need for any action.)
1311     */
1312    public List<DetectedIssueMitigationComponent> getMitigation() { 
1313      if (this.mitigation == null)
1314        this.mitigation = new ArrayList<DetectedIssueMitigationComponent>();
1315      return this.mitigation;
1316    }
1317
1318    /**
1319     * @return Returns a reference to <code>this</code> for easy method chaining
1320     */
1321    public DetectedIssue setMitigation(List<DetectedIssueMitigationComponent> theMitigation) { 
1322      this.mitigation = theMitigation;
1323      return this;
1324    }
1325
1326    public boolean hasMitigation() { 
1327      if (this.mitigation == null)
1328        return false;
1329      for (DetectedIssueMitigationComponent item : this.mitigation)
1330        if (!item.isEmpty())
1331          return true;
1332      return false;
1333    }
1334
1335    public DetectedIssueMitigationComponent addMitigation() { //3
1336      DetectedIssueMitigationComponent t = new DetectedIssueMitigationComponent();
1337      if (this.mitigation == null)
1338        this.mitigation = new ArrayList<DetectedIssueMitigationComponent>();
1339      this.mitigation.add(t);
1340      return t;
1341    }
1342
1343    public DetectedIssue addMitigation(DetectedIssueMitigationComponent t) { //3
1344      if (t == null)
1345        return this;
1346      if (this.mitigation == null)
1347        this.mitigation = new ArrayList<DetectedIssueMitigationComponent>();
1348      this.mitigation.add(t);
1349      return this;
1350    }
1351
1352    /**
1353     * @return The first repetition of repeating field {@link #mitigation}, creating it if it does not already exist {3}
1354     */
1355    public DetectedIssueMitigationComponent getMitigationFirstRep() { 
1356      if (getMitigation().isEmpty()) {
1357        addMitigation();
1358      }
1359      return getMitigation().get(0);
1360    }
1361
1362      protected void listChildren(List<Property> children) {
1363        super.listChildren(children);
1364        children.add(new Property("identifier", "Identifier", "Business identifier associated with the detected issue record.", 0, java.lang.Integer.MAX_VALUE, identifier));
1365        children.add(new Property("status", "code", "Indicates the status of the detected issue.", 0, 1, status));
1366        children.add(new Property("code", "CodeableConcept", "Identifies the general type of issue identified.", 0, 1, code));
1367        children.add(new Property("severity", "code", "Indicates the degree of importance associated with the identified issue based on the potential impact on the patient.", 0, 1, severity));
1368        children.add(new Property("patient", "Reference(Patient)", "Indicates the patient whose record the detected issue is associated with.", 0, 1, patient));
1369        children.add(new Property("identified[x]", "dateTime|Period", "The date or period when the detected issue was initially identified.", 0, 1, identified));
1370        children.add(new Property("author", "Reference(Practitioner|PractitionerRole|Device)", "Individual or device responsible for the issue being raised.  For example, a decision support application or a pharmacist conducting a medication review.", 0, 1, author));
1371        children.add(new Property("implicated", "Reference(Any)", "Indicates the resource representing the current activity or proposed activity that is potentially problematic.", 0, java.lang.Integer.MAX_VALUE, implicated));
1372        children.add(new Property("evidence", "", "Supporting evidence or manifestations that provide the basis for identifying the detected issue such as a GuidanceResponse or MeasureReport.", 0, java.lang.Integer.MAX_VALUE, evidence));
1373        children.add(new Property("detail", "string", "A textual explanation of the detected issue.", 0, 1, detail));
1374        children.add(new Property("reference", "uri", "The literature, knowledge-base or similar reference that describes the propensity for the detected issue identified.", 0, 1, reference));
1375        children.add(new Property("mitigation", "", "Indicates an action that has been taken or is committed to reduce or eliminate the likelihood of the risk identified by the detected issue from manifesting.  Can also reflect an observation of known mitigating factors that may reduce/eliminate the need for any action.", 0, java.lang.Integer.MAX_VALUE, mitigation));
1376      }
1377
1378      @Override
1379      public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
1380        switch (_hash) {
1381        case -1618432855: /*identifier*/  return new Property("identifier", "Identifier", "Business identifier associated with the detected issue record.", 0, java.lang.Integer.MAX_VALUE, identifier);
1382        case -892481550: /*status*/  return new Property("status", "code", "Indicates the status of the detected issue.", 0, 1, status);
1383        case 3059181: /*code*/  return new Property("code", "CodeableConcept", "Identifies the general type of issue identified.", 0, 1, code);
1384        case 1478300413: /*severity*/  return new Property("severity", "code", "Indicates the degree of importance associated with the identified issue based on the potential impact on the patient.", 0, 1, severity);
1385        case -791418107: /*patient*/  return new Property("patient", "Reference(Patient)", "Indicates the patient whose record the detected issue is associated with.", 0, 1, patient);
1386        case 569355781: /*identified[x]*/  return new Property("identified[x]", "dateTime|Period", "The date or period when the detected issue was initially identified.", 0, 1, identified);
1387        case -1618432869: /*identified*/  return new Property("identified[x]", "dateTime|Period", "The date or period when the detected issue was initially identified.", 0, 1, identified);
1388        case -968788650: /*identifiedDateTime*/  return new Property("identified[x]", "dateTime", "The date or period when the detected issue was initially identified.", 0, 1, identified);
1389        case 520482364: /*identifiedPeriod*/  return new Property("identified[x]", "Period", "The date or period when the detected issue was initially identified.", 0, 1, identified);
1390        case -1406328437: /*author*/  return new Property("author", "Reference(Practitioner|PractitionerRole|Device)", "Individual or device responsible for the issue being raised.  For example, a decision support application or a pharmacist conducting a medication review.", 0, 1, author);
1391        case -810216884: /*implicated*/  return new Property("implicated", "Reference(Any)", "Indicates the resource representing the current activity or proposed activity that is potentially problematic.", 0, java.lang.Integer.MAX_VALUE, implicated);
1392        case 382967383: /*evidence*/  return new Property("evidence", "", "Supporting evidence or manifestations that provide the basis for identifying the detected issue such as a GuidanceResponse or MeasureReport.", 0, java.lang.Integer.MAX_VALUE, evidence);
1393        case -1335224239: /*detail*/  return new Property("detail", "string", "A textual explanation of the detected issue.", 0, 1, detail);
1394        case -925155509: /*reference*/  return new Property("reference", "uri", "The literature, knowledge-base or similar reference that describes the propensity for the detected issue identified.", 0, 1, reference);
1395        case 1293793087: /*mitigation*/  return new Property("mitigation", "", "Indicates an action that has been taken or is committed to reduce or eliminate the likelihood of the risk identified by the detected issue from manifesting.  Can also reflect an observation of known mitigating factors that may reduce/eliminate the need for any action.", 0, java.lang.Integer.MAX_VALUE, mitigation);
1396        default: return super.getNamedProperty(_hash, _name, _checkValid);
1397        }
1398
1399      }
1400
1401      @Override
1402      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
1403        switch (hash) {
1404        case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier
1405        case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration<ObservationStatus>
1406        case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeableConcept
1407        case 1478300413: /*severity*/ return this.severity == null ? new Base[0] : new Base[] {this.severity}; // Enumeration<DetectedIssueSeverity>
1408        case -791418107: /*patient*/ return this.patient == null ? new Base[0] : new Base[] {this.patient}; // Reference
1409        case -1618432869: /*identified*/ return this.identified == null ? new Base[0] : new Base[] {this.identified}; // DataType
1410        case -1406328437: /*author*/ return this.author == null ? new Base[0] : new Base[] {this.author}; // Reference
1411        case -810216884: /*implicated*/ return this.implicated == null ? new Base[0] : this.implicated.toArray(new Base[this.implicated.size()]); // Reference
1412        case 382967383: /*evidence*/ return this.evidence == null ? new Base[0] : this.evidence.toArray(new Base[this.evidence.size()]); // DetectedIssueEvidenceComponent
1413        case -1335224239: /*detail*/ return this.detail == null ? new Base[0] : new Base[] {this.detail}; // StringType
1414        case -925155509: /*reference*/ return this.reference == null ? new Base[0] : new Base[] {this.reference}; // UriType
1415        case 1293793087: /*mitigation*/ return this.mitigation == null ? new Base[0] : this.mitigation.toArray(new Base[this.mitigation.size()]); // DetectedIssueMitigationComponent
1416        default: return super.getProperty(hash, name, checkValid);
1417        }
1418
1419      }
1420
1421      @Override
1422      public Base setProperty(int hash, String name, Base value) throws FHIRException {
1423        switch (hash) {
1424        case -1618432855: // identifier
1425          this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); // Identifier
1426          return value;
1427        case -892481550: // status
1428          value = new ObservationStatusEnumFactory().fromType(TypeConvertor.castToCode(value));
1429          this.status = (Enumeration) value; // Enumeration<ObservationStatus>
1430          return value;
1431        case 3059181: // code
1432          this.code = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
1433          return value;
1434        case 1478300413: // severity
1435          value = new DetectedIssueSeverityEnumFactory().fromType(TypeConvertor.castToCode(value));
1436          this.severity = (Enumeration) value; // Enumeration<DetectedIssueSeverity>
1437          return value;
1438        case -791418107: // patient
1439          this.patient = TypeConvertor.castToReference(value); // Reference
1440          return value;
1441        case -1618432869: // identified
1442          this.identified = TypeConvertor.castToType(value); // DataType
1443          return value;
1444        case -1406328437: // author
1445          this.author = TypeConvertor.castToReference(value); // Reference
1446          return value;
1447        case -810216884: // implicated
1448          this.getImplicated().add(TypeConvertor.castToReference(value)); // Reference
1449          return value;
1450        case 382967383: // evidence
1451          this.getEvidence().add((DetectedIssueEvidenceComponent) value); // DetectedIssueEvidenceComponent
1452          return value;
1453        case -1335224239: // detail
1454          this.detail = TypeConvertor.castToString(value); // StringType
1455          return value;
1456        case -925155509: // reference
1457          this.reference = TypeConvertor.castToUri(value); // UriType
1458          return value;
1459        case 1293793087: // mitigation
1460          this.getMitigation().add((DetectedIssueMitigationComponent) value); // DetectedIssueMitigationComponent
1461          return value;
1462        default: return super.setProperty(hash, name, value);
1463        }
1464
1465      }
1466
1467      @Override
1468      public Base setProperty(String name, Base value) throws FHIRException {
1469        if (name.equals("identifier")) {
1470          this.getIdentifier().add(TypeConvertor.castToIdentifier(value));
1471        } else if (name.equals("status")) {
1472          value = new ObservationStatusEnumFactory().fromType(TypeConvertor.castToCode(value));
1473          this.status = (Enumeration) value; // Enumeration<ObservationStatus>
1474        } else if (name.equals("code")) {
1475          this.code = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
1476        } else if (name.equals("severity")) {
1477          value = new DetectedIssueSeverityEnumFactory().fromType(TypeConvertor.castToCode(value));
1478          this.severity = (Enumeration) value; // Enumeration<DetectedIssueSeverity>
1479        } else if (name.equals("patient")) {
1480          this.patient = TypeConvertor.castToReference(value); // Reference
1481        } else if (name.equals("identified[x]")) {
1482          this.identified = TypeConvertor.castToType(value); // DataType
1483        } else if (name.equals("author")) {
1484          this.author = TypeConvertor.castToReference(value); // Reference
1485        } else if (name.equals("implicated")) {
1486          this.getImplicated().add(TypeConvertor.castToReference(value));
1487        } else if (name.equals("evidence")) {
1488          this.getEvidence().add((DetectedIssueEvidenceComponent) value);
1489        } else if (name.equals("detail")) {
1490          this.detail = TypeConvertor.castToString(value); // StringType
1491        } else if (name.equals("reference")) {
1492          this.reference = TypeConvertor.castToUri(value); // UriType
1493        } else if (name.equals("mitigation")) {
1494          this.getMitigation().add((DetectedIssueMitigationComponent) value);
1495        } else
1496          return super.setProperty(name, value);
1497        return value;
1498      }
1499
1500      @Override
1501      public Base makeProperty(int hash, String name) throws FHIRException {
1502        switch (hash) {
1503        case -1618432855:  return addIdentifier(); 
1504        case -892481550:  return getStatusElement();
1505        case 3059181:  return getCode();
1506        case 1478300413:  return getSeverityElement();
1507        case -791418107:  return getPatient();
1508        case 569355781:  return getIdentified();
1509        case -1618432869:  return getIdentified();
1510        case -1406328437:  return getAuthor();
1511        case -810216884:  return addImplicated(); 
1512        case 382967383:  return addEvidence(); 
1513        case -1335224239:  return getDetailElement();
1514        case -925155509:  return getReferenceElement();
1515        case 1293793087:  return addMitigation(); 
1516        default: return super.makeProperty(hash, name);
1517        }
1518
1519      }
1520
1521      @Override
1522      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
1523        switch (hash) {
1524        case -1618432855: /*identifier*/ return new String[] {"Identifier"};
1525        case -892481550: /*status*/ return new String[] {"code"};
1526        case 3059181: /*code*/ return new String[] {"CodeableConcept"};
1527        case 1478300413: /*severity*/ return new String[] {"code"};
1528        case -791418107: /*patient*/ return new String[] {"Reference"};
1529        case -1618432869: /*identified*/ return new String[] {"dateTime", "Period"};
1530        case -1406328437: /*author*/ return new String[] {"Reference"};
1531        case -810216884: /*implicated*/ return new String[] {"Reference"};
1532        case 382967383: /*evidence*/ return new String[] {};
1533        case -1335224239: /*detail*/ return new String[] {"string"};
1534        case -925155509: /*reference*/ return new String[] {"uri"};
1535        case 1293793087: /*mitigation*/ return new String[] {};
1536        default: return super.getTypesForProperty(hash, name);
1537        }
1538
1539      }
1540
1541      @Override
1542      public Base addChild(String name) throws FHIRException {
1543        if (name.equals("identifier")) {
1544          return addIdentifier();
1545        }
1546        else if (name.equals("status")) {
1547          throw new FHIRException("Cannot call addChild on a primitive type DetectedIssue.status");
1548        }
1549        else if (name.equals("code")) {
1550          this.code = new CodeableConcept();
1551          return this.code;
1552        }
1553        else if (name.equals("severity")) {
1554          throw new FHIRException("Cannot call addChild on a primitive type DetectedIssue.severity");
1555        }
1556        else if (name.equals("patient")) {
1557          this.patient = new Reference();
1558          return this.patient;
1559        }
1560        else if (name.equals("identifiedDateTime")) {
1561          this.identified = new DateTimeType();
1562          return this.identified;
1563        }
1564        else if (name.equals("identifiedPeriod")) {
1565          this.identified = new Period();
1566          return this.identified;
1567        }
1568        else if (name.equals("author")) {
1569          this.author = new Reference();
1570          return this.author;
1571        }
1572        else if (name.equals("implicated")) {
1573          return addImplicated();
1574        }
1575        else if (name.equals("evidence")) {
1576          return addEvidence();
1577        }
1578        else if (name.equals("detail")) {
1579          throw new FHIRException("Cannot call addChild on a primitive type DetectedIssue.detail");
1580        }
1581        else if (name.equals("reference")) {
1582          throw new FHIRException("Cannot call addChild on a primitive type DetectedIssue.reference");
1583        }
1584        else if (name.equals("mitigation")) {
1585          return addMitigation();
1586        }
1587        else
1588          return super.addChild(name);
1589      }
1590
1591  public String fhirType() {
1592    return "DetectedIssue";
1593
1594  }
1595
1596      public DetectedIssue copy() {
1597        DetectedIssue dst = new DetectedIssue();
1598        copyValues(dst);
1599        return dst;
1600      }
1601
1602      public void copyValues(DetectedIssue dst) {
1603        super.copyValues(dst);
1604        if (identifier != null) {
1605          dst.identifier = new ArrayList<Identifier>();
1606          for (Identifier i : identifier)
1607            dst.identifier.add(i.copy());
1608        };
1609        dst.status = status == null ? null : status.copy();
1610        dst.code = code == null ? null : code.copy();
1611        dst.severity = severity == null ? null : severity.copy();
1612        dst.patient = patient == null ? null : patient.copy();
1613        dst.identified = identified == null ? null : identified.copy();
1614        dst.author = author == null ? null : author.copy();
1615        if (implicated != null) {
1616          dst.implicated = new ArrayList<Reference>();
1617          for (Reference i : implicated)
1618            dst.implicated.add(i.copy());
1619        };
1620        if (evidence != null) {
1621          dst.evidence = new ArrayList<DetectedIssueEvidenceComponent>();
1622          for (DetectedIssueEvidenceComponent i : evidence)
1623            dst.evidence.add(i.copy());
1624        };
1625        dst.detail = detail == null ? null : detail.copy();
1626        dst.reference = reference == null ? null : reference.copy();
1627        if (mitigation != null) {
1628          dst.mitigation = new ArrayList<DetectedIssueMitigationComponent>();
1629          for (DetectedIssueMitigationComponent i : mitigation)
1630            dst.mitigation.add(i.copy());
1631        };
1632      }
1633
1634      protected DetectedIssue typedCopy() {
1635        return copy();
1636      }
1637
1638      @Override
1639      public boolean equalsDeep(Base other_) {
1640        if (!super.equalsDeep(other_))
1641          return false;
1642        if (!(other_ instanceof DetectedIssue))
1643          return false;
1644        DetectedIssue o = (DetectedIssue) other_;
1645        return compareDeep(identifier, o.identifier, true) && compareDeep(status, o.status, true) && compareDeep(code, o.code, true)
1646           && compareDeep(severity, o.severity, true) && compareDeep(patient, o.patient, true) && compareDeep(identified, o.identified, true)
1647           && compareDeep(author, o.author, true) && compareDeep(implicated, o.implicated, true) && compareDeep(evidence, o.evidence, true)
1648           && compareDeep(detail, o.detail, true) && compareDeep(reference, o.reference, true) && compareDeep(mitigation, o.mitigation, true)
1649          ;
1650      }
1651
1652      @Override
1653      public boolean equalsShallow(Base other_) {
1654        if (!super.equalsShallow(other_))
1655          return false;
1656        if (!(other_ instanceof DetectedIssue))
1657          return false;
1658        DetectedIssue o = (DetectedIssue) other_;
1659        return compareValues(status, o.status, true) && compareValues(severity, o.severity, true) && compareValues(detail, o.detail, true)
1660           && compareValues(reference, o.reference, true);
1661      }
1662
1663      public boolean isEmpty() {
1664        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, status, code
1665          , severity, patient, identified, author, implicated, evidence, detail, reference
1666          , mitigation);
1667      }
1668
1669  @Override
1670  public ResourceType getResourceType() {
1671    return ResourceType.DetectedIssue;
1672   }
1673
1674 /**
1675   * Search parameter: <b>author</b>
1676   * <p>
1677   * Description: <b>The provider or device that identified the issue</b><br>
1678   * Type: <b>reference</b><br>
1679   * Path: <b>DetectedIssue.author</b><br>
1680   * </p>
1681   */
1682  @SearchParamDefinition(name="author", path="DetectedIssue.author", description="The provider or device that identified the issue", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Device"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Practitioner") }, target={Device.class, Practitioner.class, PractitionerRole.class } )
1683  public static final String SP_AUTHOR = "author";
1684 /**
1685   * <b>Fluent Client</b> search parameter constant for <b>author</b>
1686   * <p>
1687   * Description: <b>The provider or device that identified the issue</b><br>
1688   * Type: <b>reference</b><br>
1689   * Path: <b>DetectedIssue.author</b><br>
1690   * </p>
1691   */
1692  public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam AUTHOR = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_AUTHOR);
1693
1694/**
1695   * Constant for fluent queries to be used to add include statements. Specifies
1696   * the path value of "<b>DetectedIssue:author</b>".
1697   */
1698  public static final ca.uhn.fhir.model.api.Include INCLUDE_AUTHOR = new ca.uhn.fhir.model.api.Include("DetectedIssue:author").toLocked();
1699
1700 /**
1701   * Search parameter: <b>code</b>
1702   * <p>
1703   * Description: <b>Issue Category, e.g. drug-drug, duplicate therapy, etc.</b><br>
1704   * Type: <b>token</b><br>
1705   * Path: <b>DetectedIssue.code</b><br>
1706   * </p>
1707   */
1708  @SearchParamDefinition(name="code", path="DetectedIssue.code", description="Issue Category, e.g. drug-drug, duplicate therapy, etc.", type="token" )
1709  public static final String SP_CODE = "code";
1710 /**
1711   * <b>Fluent Client</b> search parameter constant for <b>code</b>
1712   * <p>
1713   * Description: <b>Issue Category, e.g. drug-drug, duplicate therapy, etc.</b><br>
1714   * Type: <b>token</b><br>
1715   * Path: <b>DetectedIssue.code</b><br>
1716   * </p>
1717   */
1718  public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CODE);
1719
1720 /**
1721   * Search parameter: <b>identified</b>
1722   * <p>
1723   * Description: <b>When identified</b><br>
1724   * Type: <b>date</b><br>
1725   * Path: <b>DetectedIssue.identified</b><br>
1726   * </p>
1727   */
1728  @SearchParamDefinition(name="identified", path="DetectedIssue.identified", description="When identified", type="date" )
1729  public static final String SP_IDENTIFIED = "identified";
1730 /**
1731   * <b>Fluent Client</b> search parameter constant for <b>identified</b>
1732   * <p>
1733   * Description: <b>When identified</b><br>
1734   * Type: <b>date</b><br>
1735   * Path: <b>DetectedIssue.identified</b><br>
1736   * </p>
1737   */
1738  public static final ca.uhn.fhir.rest.gclient.DateClientParam IDENTIFIED = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_IDENTIFIED);
1739
1740 /**
1741   * Search parameter: <b>implicated</b>
1742   * <p>
1743   * Description: <b>Problem resource</b><br>
1744   * Type: <b>reference</b><br>
1745   * Path: <b>DetectedIssue.implicated</b><br>
1746   * </p>
1747   */
1748  @SearchParamDefinition(name="implicated", path="DetectedIssue.implicated", description="Problem resource", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, Topic.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } )
1749  public static final String SP_IMPLICATED = "implicated";
1750 /**
1751   * <b>Fluent Client</b> search parameter constant for <b>implicated</b>
1752   * <p>
1753   * Description: <b>Problem resource</b><br>
1754   * Type: <b>reference</b><br>
1755   * Path: <b>DetectedIssue.implicated</b><br>
1756   * </p>
1757   */
1758  public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam IMPLICATED = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_IMPLICATED);
1759
1760/**
1761   * Constant for fluent queries to be used to add include statements. Specifies
1762   * the path value of "<b>DetectedIssue:implicated</b>".
1763   */
1764  public static final ca.uhn.fhir.model.api.Include INCLUDE_IMPLICATED = new ca.uhn.fhir.model.api.Include("DetectedIssue:implicated").toLocked();
1765
1766 /**
1767   * Search parameter: <b>identifier</b>
1768   * <p>
1769   * Description: <b>Multiple Resources: 
1770
1771* [AllergyIntolerance](allergyintolerance.html): External ids for this item
1772* [CarePlan](careplan.html): External Ids for this plan
1773* [CareTeam](careteam.html): External Ids for this team
1774* [Composition](composition.html): Version-independent identifier for the Composition
1775* [Condition](condition.html): A unique identifier of the condition record
1776* [Consent](consent.html): Identifier for this record (external references)
1777* [DetectedIssue](detectedissue.html): Unique id for the detected issue
1778* [DeviceRequest](devicerequest.html): Business identifier for request/order
1779* [DiagnosticReport](diagnosticreport.html): An identifier for the report
1780* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents
1781* [DocumentReference](documentreference.html): Master Version Specific Identifier
1782* [Encounter](encounter.html): Identifier(s) by which this encounter is known
1783* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare
1784* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier
1785* [Goal](goal.html): External Ids for this goal
1786* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number
1787* [Immunization](immunization.html): Business identifier
1788* [List](list.html): Business identifier
1789* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier
1790* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier
1791* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier
1792* [MedicationUsage](medicationusage.html): Return statements with this external identifier
1793* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier
1794* [Observation](observation.html): The unique id for a particular observation
1795* [Procedure](procedure.html): A unique identifier for a procedure
1796* [RiskAssessment](riskassessment.html): Unique identifier for the assessment
1797* [ServiceRequest](servicerequest.html): Identifiers assigned to this order
1798* [SupplyDelivery](supplydelivery.html): External identifier
1799* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest
1800* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier
1801</b><br>
1802   * Type: <b>token</b><br>
1803   * Path: <b>AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.masterIdentifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier</b><br>
1804   * </p>
1805   */
1806  @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.masterIdentifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Master Version Specific Identifier\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" )
1807  public static final String SP_IDENTIFIER = "identifier";
1808 /**
1809   * <b>Fluent Client</b> search parameter constant for <b>identifier</b>
1810   * <p>
1811   * Description: <b>Multiple Resources: 
1812
1813* [AllergyIntolerance](allergyintolerance.html): External ids for this item
1814* [CarePlan](careplan.html): External Ids for this plan
1815* [CareTeam](careteam.html): External Ids for this team
1816* [Composition](composition.html): Version-independent identifier for the Composition
1817* [Condition](condition.html): A unique identifier of the condition record
1818* [Consent](consent.html): Identifier for this record (external references)
1819* [DetectedIssue](detectedissue.html): Unique id for the detected issue
1820* [DeviceRequest](devicerequest.html): Business identifier for request/order
1821* [DiagnosticReport](diagnosticreport.html): An identifier for the report
1822* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents
1823* [DocumentReference](documentreference.html): Master Version Specific Identifier
1824* [Encounter](encounter.html): Identifier(s) by which this encounter is known
1825* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare
1826* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier
1827* [Goal](goal.html): External Ids for this goal
1828* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number
1829* [Immunization](immunization.html): Business identifier
1830* [List](list.html): Business identifier
1831* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier
1832* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier
1833* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier
1834* [MedicationUsage](medicationusage.html): Return statements with this external identifier
1835* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier
1836* [Observation](observation.html): The unique id for a particular observation
1837* [Procedure](procedure.html): A unique identifier for a procedure
1838* [RiskAssessment](riskassessment.html): Unique identifier for the assessment
1839* [ServiceRequest](servicerequest.html): Identifiers assigned to this order
1840* [SupplyDelivery](supplydelivery.html): External identifier
1841* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest
1842* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier
1843</b><br>
1844   * Type: <b>token</b><br>
1845   * Path: <b>AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.masterIdentifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier</b><br>
1846   * </p>
1847   */
1848  public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER);
1849
1850 /**
1851   * Search parameter: <b>patient</b>
1852   * <p>
1853   * Description: <b>Multiple Resources: 
1854
1855* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for
1856* [CarePlan](careplan.html): Who the care plan is for
1857* [CareTeam](careteam.html): Who care team is for
1858* [ClinicalImpression](clinicalimpression.html): Patient or group assessed
1859* [Composition](composition.html): Who and/or what the composition is about
1860* [Condition](condition.html): Who has the condition?
1861* [Consent](consent.html): Who the consent applies to
1862* [DetectedIssue](detectedissue.html): Associated patient
1863* [DeviceRequest](devicerequest.html): Individual the service is ordered for
1864* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient
1865* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient
1866* [DocumentManifest](documentmanifest.html): The subject of the set of documents
1867* [DocumentReference](documentreference.html): Who/what is the subject of the document
1868* [Encounter](encounter.html): The patient or group present at the encounter
1869* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care
1870* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for
1871* [Flag](flag.html): The identity of a subject to list flags for
1872* [Goal](goal.html): Who this goal is intended for
1873* [ImagingStudy](imagingstudy.html): Who the study is about
1874* [Immunization](immunization.html): The patient for the vaccination record
1875* [List](list.html): If all resources have the same subject
1876* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations  for
1877* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses  for
1878* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient
1879* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.
1880* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement
1881* [Observation](observation.html): The subject that the observation is about (if patient)
1882* [Procedure](procedure.html): Search by subject - a patient
1883* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?
1884* [ServiceRequest](servicerequest.html): Search by subject - a patient
1885* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied
1886* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for
1887</b><br>
1888   * Type: <b>reference</b><br>
1889   * Path: <b>AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.patient | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient</b><br>
1890   * </p>
1891   */
1892  @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.patient | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations  for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses  for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Group.class, Patient.class } )
1893  public static final String SP_PATIENT = "patient";
1894 /**
1895   * <b>Fluent Client</b> search parameter constant for <b>patient</b>
1896   * <p>
1897   * Description: <b>Multiple Resources: 
1898
1899* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for
1900* [CarePlan](careplan.html): Who the care plan is for
1901* [CareTeam](careteam.html): Who care team is for
1902* [ClinicalImpression](clinicalimpression.html): Patient or group assessed
1903* [Composition](composition.html): Who and/or what the composition is about
1904* [Condition](condition.html): Who has the condition?
1905* [Consent](consent.html): Who the consent applies to
1906* [DetectedIssue](detectedissue.html): Associated patient
1907* [DeviceRequest](devicerequest.html): Individual the service is ordered for
1908* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient
1909* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient
1910* [DocumentManifest](documentmanifest.html): The subject of the set of documents
1911* [DocumentReference](documentreference.html): Who/what is the subject of the document
1912* [Encounter](encounter.html): The patient or group present at the encounter
1913* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care
1914* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for
1915* [Flag](flag.html): The identity of a subject to list flags for
1916* [Goal](goal.html): Who this goal is intended for
1917* [ImagingStudy](imagingstudy.html): Who the study is about
1918* [Immunization](immunization.html): The patient for the vaccination record
1919* [List](list.html): If all resources have the same subject
1920* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations  for
1921* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses  for
1922* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient
1923* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.
1924* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement
1925* [Observation](observation.html): The subject that the observation is about (if patient)
1926* [Procedure](procedure.html): Search by subject - a patient
1927* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?
1928* [ServiceRequest](servicerequest.html): Search by subject - a patient
1929* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied
1930* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for
1931</b><br>
1932   * Type: <b>reference</b><br>
1933   * Path: <b>AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.patient | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient</b><br>
1934   * </p>
1935   */
1936  public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT);
1937
1938/**
1939   * Constant for fluent queries to be used to add include statements. Specifies
1940   * the path value of "<b>DetectedIssue:patient</b>".
1941   */
1942  public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("DetectedIssue:patient").toLocked();
1943
1944
1945}
1946