@@ -22358,6 +22358,298 @@ public ConsentEnforcementStatus set(String parameterName, Object value) {
22358
22358
return (ConsentEnforcementStatus) super.set(parameterName, value);
22359
22359
}
22360
22360
}
22361
+ /**
22362
+ * Retrieves an Encounter resource and resources related to that Encounter. Implements the FHIR
22363
+ * extended operation Encounter-everything
22364
+ * ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/encounter-operations.html#everything),
22365
+ * [STU3](http://hl7.org/implement/standards/fhir/STU3/encounter-operations.html#everything), or
22366
+ * [R4](https://hl7.org/implement/standards/fhir/R4/encounter-operation-everything.html). On
22367
+ * success, the response body contains a JSON-encoded representation of a `Bundle` resource of type
22368
+ * `searchset`, containing the results of the operation. Errors generated by the FHIR store contain
22369
+ * a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request
22370
+ * cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned
22371
+ * instead. The resources in scope for the response are: * The Encounter resource itself. * All the
22372
+ * resources directly referenced by the Encounter resource, including attachments and binaries. *
22373
+ * Resources directly referencing the Encounter resource that meet the inclusion criteria. The
22374
+ * inclusion criteria are based on the membership rules in the Encounter Compartment definition
22375
+ * ([DSTU2](http://hl7.org/fhir/DSTU2/compartment-encounter.html),
22376
+ * [STU3](http://www.hl7.org/fhir/stu3/compartmentdefinition-encounter.html),
22377
+ * [R4](http://hl7.org/fhir/R4/compartmentdefinition-encounter.html)), which details the eligible
22378
+ * resource types and referencing search parameters. * Resources referencing to the Encounter
22379
+ * resource through the "http://hl7.org/fhir/StructureDefinition/encounter-associatedEncounter"
22380
+ * extension.
22381
+ *
22382
+ * Create a request for the method "fhir.Encounter-everything".
22383
+ *
22384
+ * This request holds the parameters needed by the healthcare server. After setting any optional
22385
+ * parameters, call the {@link EncounterEverything#execute()} method to invoke the remote operation.
22386
+ *
22387
+ * @param name Required. Name of the Encounter resource for which the information is required.
22388
+ * @return the request
22389
+ */
22390
+ public EncounterEverything encounterEverything(java.lang.String name) throws java.io.IOException {
22391
+ EncounterEverything result = new EncounterEverything(name);
22392
+ initialize(result);
22393
+ return result;
22394
+ }
22395
+
22396
+ public class EncounterEverything extends CloudHealthcareRequest<com.google.api.services.healthcare.v1beta1.model.HttpBody> {
22397
+
22398
+ private static final String REST_PATH = "v1beta1/{+name}/$everything";
22399
+
22400
+ private final java.util.regex.Pattern NAME_PATTERN =
22401
+ java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+/fhir/Encounter/[^/]+$");
22402
+
22403
+ /**
22404
+ * Retrieves an Encounter resource and resources related to that Encounter. Implements the FHIR
22405
+ * extended operation Encounter-everything
22406
+ * ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/encounter-operations.html#everything),
22407
+ * [STU3](http://hl7.org/implement/standards/fhir/STU3/encounter-operations.html#everything), or
22408
+ * [R4](https://hl7.org/implement/standards/fhir/R4/encounter-operation-everything.html). On
22409
+ * success, the response body contains a JSON-encoded representation of a `Bundle` resource of
22410
+ * type `searchset`, containing the results of the operation. Errors generated by the FHIR store
22411
+ * contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the
22412
+ * request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be
22413
+ * returned instead. The resources in scope for the response are: * The Encounter resource itself.
22414
+ * * All the resources directly referenced by the Encounter resource, including attachments and
22415
+ * binaries. * Resources directly referencing the Encounter resource that meet the inclusion
22416
+ * criteria. The inclusion criteria are based on the membership rules in the Encounter Compartment
22417
+ * definition ([DSTU2](http://hl7.org/fhir/DSTU2/compartment-encounter.html),
22418
+ * [STU3](http://www.hl7.org/fhir/stu3/compartmentdefinition-encounter.html),
22419
+ * [R4](http://hl7.org/fhir/R4/compartmentdefinition-encounter.html)), which details the eligible
22420
+ * resource types and referencing search parameters. * Resources referencing to the Encounter
22421
+ * resource through the "http://hl7.org/fhir/StructureDefinition/encounter-associatedEncounter"
22422
+ * extension.
22423
+ *
22424
+ * Create a request for the method "fhir.Encounter-everything".
22425
+ *
22426
+ * This request holds the parameters needed by the the healthcare server. After setting any
22427
+ * optional parameters, call the {@link EncounterEverything#execute()} method to invoke the remote
22428
+ * operation. <p> {@link EncounterEverything#initialize(com.google.api.client.googleapis.services.
22429
+ * AbstractGoogleClientRequest)} must be called to initialize this instance immediately after
22430
+ * invoking the constructor. </p>
22431
+ *
22432
+ * @param name Required. Name of the Encounter resource for which the information is required.
22433
+ * @since 1.13
22434
+ */
22435
+ protected EncounterEverything(java.lang.String name) {
22436
+ super(CloudHealthcare.this, "GET", REST_PATH, null, com.google.api.services.healthcare.v1beta1.model.HttpBody.class);
22437
+ this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
22438
+ if (!getSuppressPatternChecks()) {
22439
+ com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
22440
+ "Parameter name must conform to the pattern " +
22441
+ "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+/fhir/Encounter/[^/]+$");
22442
+ }
22443
+ }
22444
+
22445
+ @Override
22446
+ public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
22447
+ return super.executeUsingHead();
22448
+ }
22449
+
22450
+ @Override
22451
+ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
22452
+ return super.buildHttpRequestUsingHead();
22453
+ }
22454
+
22455
+ @Override
22456
+ public EncounterEverything set$Xgafv(java.lang.String $Xgafv) {
22457
+ return (EncounterEverything) super.set$Xgafv($Xgafv);
22458
+ }
22459
+
22460
+ @Override
22461
+ public EncounterEverything setAccessToken(java.lang.String accessToken) {
22462
+ return (EncounterEverything) super.setAccessToken(accessToken);
22463
+ }
22464
+
22465
+ @Override
22466
+ public EncounterEverything setAlt(java.lang.String alt) {
22467
+ return (EncounterEverything) super.setAlt(alt);
22468
+ }
22469
+
22470
+ @Override
22471
+ public EncounterEverything setCallback(java.lang.String callback) {
22472
+ return (EncounterEverything) super.setCallback(callback);
22473
+ }
22474
+
22475
+ @Override
22476
+ public EncounterEverything setFields(java.lang.String fields) {
22477
+ return (EncounterEverything) super.setFields(fields);
22478
+ }
22479
+
22480
+ @Override
22481
+ public EncounterEverything setKey(java.lang.String key) {
22482
+ return (EncounterEverything) super.setKey(key);
22483
+ }
22484
+
22485
+ @Override
22486
+ public EncounterEverything setOauthToken(java.lang.String oauthToken) {
22487
+ return (EncounterEverything) super.setOauthToken(oauthToken);
22488
+ }
22489
+
22490
+ @Override
22491
+ public EncounterEverything setPrettyPrint(java.lang.Boolean prettyPrint) {
22492
+ return (EncounterEverything) super.setPrettyPrint(prettyPrint);
22493
+ }
22494
+
22495
+ @Override
22496
+ public EncounterEverything setQuotaUser(java.lang.String quotaUser) {
22497
+ return (EncounterEverything) super.setQuotaUser(quotaUser);
22498
+ }
22499
+
22500
+ @Override
22501
+ public EncounterEverything setUploadType(java.lang.String uploadType) {
22502
+ return (EncounterEverything) super.setUploadType(uploadType);
22503
+ }
22504
+
22505
+ @Override
22506
+ public EncounterEverything setUploadProtocol(java.lang.String uploadProtocol) {
22507
+ return (EncounterEverything) super.setUploadProtocol(uploadProtocol);
22508
+ }
22509
+
22510
+ /**
22511
+ * Required. Name of the Encounter resource for which the information is required.
22512
+ */
22513
+ @com.google.api.client.util.Key
22514
+ private java.lang.String name;
22515
+
22516
+ /** Required. Name of the Encounter resource for which the information is required.
22517
+ */
22518
+ public java.lang.String getName() {
22519
+ return name;
22520
+ }
22521
+
22522
+ /**
22523
+ * Required. Name of the Encounter resource for which the information is required.
22524
+ */
22525
+ public EncounterEverything setName(java.lang.String name) {
22526
+ if (!getSuppressPatternChecks()) {
22527
+ com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
22528
+ "Parameter name must conform to the pattern " +
22529
+ "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+/fhir/Encounter/[^/]+$");
22530
+ }
22531
+ this.name = name;
22532
+ return this;
22533
+ }
22534
+
22535
+ /**
22536
+ * Optional. Maximum number of resources in a page. If not specified, 100 is used. May
22537
+ * not be larger than 1000.
22538
+ */
22539
+ @com.google.api.client.util.Key("_count")
22540
+ private java.lang.Integer count;
22541
+
22542
+ /** Optional. Maximum number of resources in a page. If not specified, 100 is used. May not be larger
22543
+ than 1000.
22544
+ */
22545
+ public java.lang.Integer getCount() {
22546
+ return count;
22547
+ }
22548
+
22549
+ /**
22550
+ * Optional. Maximum number of resources in a page. If not specified, 100 is used. May
22551
+ * not be larger than 1000.
22552
+ */
22553
+ public EncounterEverything setCount(java.lang.Integer count) {
22554
+ this.count = count;
22555
+ return this;
22556
+ }
22557
+
22558
+ /**
22559
+ * Optional. Used to retrieve the next or previous page of results when using
22560
+ * pagination. Set `_page_token` to the value of _page_token set in next or previous
22561
+ * page links' url. Next and previous page are returned in the response bundle's links
22562
+ * field, where `link.relation` is "previous" or "next". Omit `_page_token` if no
22563
+ * previous request has been made.
22564
+ */
22565
+ @com.google.api.client.util.Key("_page_token")
22566
+ private java.lang.String pageToken;
22567
+
22568
+ /** Optional. Used to retrieve the next or previous page of results when using pagination. Set
22569
+ `_page_token` to the value of _page_token set in next or previous page links' url. Next and
22570
+ previous page are returned in the response bundle's links field, where `link.relation` is
22571
+ "previous" or "next". Omit `_page_token` if no previous request has been made.
22572
+ */
22573
+ public java.lang.String getPageToken() {
22574
+ return pageToken;
22575
+ }
22576
+
22577
+ /**
22578
+ * Optional. Used to retrieve the next or previous page of results when using
22579
+ * pagination. Set `_page_token` to the value of _page_token set in next or previous
22580
+ * page links' url. Next and previous page are returned in the response bundle's links
22581
+ * field, where `link.relation` is "previous" or "next". Omit `_page_token` if no
22582
+ * previous request has been made.
22583
+ */
22584
+ public EncounterEverything setPageToken(java.lang.String pageToken) {
22585
+ this.pageToken = pageToken;
22586
+ return this;
22587
+ }
22588
+
22589
+ /**
22590
+ * Optional. If provided, only resources updated after this time are returned. The
22591
+ * time uses the format YYYY-MM-DDThh:mm:ss.sss+zz:zz. For example,
22592
+ * `2015-02-07T13:28:17.239+02:00` or `2017-01-01T00:00:00Z`. The time must be
22593
+ * specified to the second and include a time zone.
22594
+ */
22595
+ @com.google.api.client.util.Key("_since")
22596
+ private java.lang.String since;
22597
+
22598
+ /** Optional. If provided, only resources updated after this time are returned. The time uses the
22599
+ format YYYY-MM-DDThh:mm:ss.sss+zz:zz. For example, `2015-02-07T13:28:17.239+02:00` or
22600
+ `2017-01-01T00:00:00Z`. The time must be specified to the second and include a time zone.
22601
+ */
22602
+ public java.lang.String getSince() {
22603
+ return since;
22604
+ }
22605
+
22606
+ /**
22607
+ * Optional. If provided, only resources updated after this time are returned. The
22608
+ * time uses the format YYYY-MM-DDThh:mm:ss.sss+zz:zz. For example,
22609
+ * `2015-02-07T13:28:17.239+02:00` or `2017-01-01T00:00:00Z`. The time must be
22610
+ * specified to the second and include a time zone.
22611
+ */
22612
+ public EncounterEverything setSince(java.lang.String since) {
22613
+ this.since = since;
22614
+ return this;
22615
+ }
22616
+
22617
+ /**
22618
+ * Optional. String of comma-delimited FHIR resource types. If provided, only
22619
+ * resources of the specified resource type(s) are returned. Specifying multiple
22620
+ * `_type` parameters isn't supported. For example, the result of
22621
+ * `_type=Observation&_type=Encounter` is undefined. Use `_type=Observation,Encounter`
22622
+ * instead.
22623
+ */
22624
+ @com.google.api.client.util.Key("_type")
22625
+ private java.lang.String type;
22626
+
22627
+ /** Optional. String of comma-delimited FHIR resource types. If provided, only resources of the
22628
+ specified resource type(s) are returned. Specifying multiple `_type` parameters isn't supported.
22629
+ For example, the result of `_type=Observation&_type=Encounter` is undefined. Use
22630
+ `_type=Observation,Encounter` instead.
22631
+ */
22632
+ public java.lang.String getType() {
22633
+ return type;
22634
+ }
22635
+
22636
+ /**
22637
+ * Optional. String of comma-delimited FHIR resource types. If provided, only
22638
+ * resources of the specified resource type(s) are returned. Specifying multiple
22639
+ * `_type` parameters isn't supported. For example, the result of
22640
+ * `_type=Observation&_type=Encounter` is undefined. Use `_type=Observation,Encounter`
22641
+ * instead.
22642
+ */
22643
+ public EncounterEverything setType(java.lang.String type) {
22644
+ this.type = type;
22645
+ return this;
22646
+ }
22647
+
22648
+ @Override
22649
+ public EncounterEverything set(String parameterName, Object value) {
22650
+ return (EncounterEverything) super.set(parameterName, value);
22651
+ }
22652
+ }
22361
22653
/**
22362
22654
* Retrieves the N most recent `Observation` resources for a subject matching search criteria
22363
22655
* specified as query parameters, grouped by `Observation.code`, sorted from most recent to oldest.
0 commit comments