@azure-rest/health-insights-radiologyinsights 1.0.0-beta.1 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,15 +8,18 @@ import { Client } from '@azure-rest/core-client';
8
8
  import { ClientOptions } from '@azure-rest/core-client';
9
9
  import { CreateHttpPollerOptions } from '@azure/core-lro';
10
10
  import { ErrorModel } from '@azure-rest/core-client';
11
- import { ErrorResponse } from '@azure-rest/core-client';
12
11
  import { HttpResponse } from '@azure-rest/core-client';
13
- import { KeyCredential } from '@azure/core-auth';
14
12
  import { OperationState } from '@azure/core-lro';
15
13
  import { RawHttpHeaders } from '@azure/core-rest-pipeline';
16
- import { RawHttpHeadersInput } from '@azure/core-rest-pipeline';
17
14
  import { RequestParameters } from '@azure-rest/core-client';
18
15
  import { SimplePollerLike } from '@azure/core-lro';
19
16
  import { StreamableMethod } from '@azure-rest/core-client';
17
+ import { TokenCredential } from '@azure/core-auth';
18
+
19
+ // @public
20
+ export interface AgeMismatchInference extends RadiologyInsightsInferenceParent {
21
+ kind: "ageMismatch";
22
+ }
20
23
 
21
24
  // @public
22
25
  export interface AgeMismatchInferenceOutput extends RadiologyInsightsInferenceOutputParent {
@@ -37,11 +40,42 @@ export interface AnnotationOutput extends ElementOutput {
37
40
  time?: string;
38
41
  }
39
42
 
40
- // @public (undocumented)
43
+ // @public
41
44
  export type AzureHealthInsightsClient = Client & {
42
45
  path: Routes;
43
46
  };
44
47
 
48
+ // @public
49
+ export function buildMultiCollection(items: string[], parameterName: string): string;
50
+
51
+ // @public
52
+ export type ClinicalDocumentType = ClinicalDocumentTypeEnum;
53
+
54
+ // @public
55
+ export enum ClinicalDocumentTypeEnum {
56
+ Consultation = "consultation",
57
+ DischargeSummary = "dischargeSummary",
58
+ HistoryAndPhysical = "historyAndPhysical",
59
+ Laboratory = "laboratory",
60
+ Procedure = "procedure",
61
+ Progress = "progress",
62
+ RadiologyReport = "radiologyReport"
63
+ }
64
+
65
+ // @public
66
+ export type ClinicalDocumentTypeOutput = ClinicalDocumentTypeOutputEnum;
67
+
68
+ // @public
69
+ export enum ClinicalDocumentTypeOutputEnum {
70
+ Consultation = "consultation",
71
+ DischargeSummary = "dischargeSummary",
72
+ HistoryAndPhysical = "historyAndPhysical",
73
+ Laboratory = "laboratory",
74
+ Procedure = "procedure",
75
+ Progress = "progress",
76
+ RadiologyReport = "radiologyReport"
77
+ }
78
+
45
79
  // @public
46
80
  export interface CodeableConcept extends Element {
47
81
  coding?: Array<Coding>;
@@ -70,6 +104,14 @@ export interface CodingOutput extends ElementOutput {
70
104
  version?: string;
71
105
  }
72
106
 
107
+ // @public
108
+ export interface CompleteOrderDiscrepancyInference extends RadiologyInsightsInferenceParent {
109
+ kind: "completeOrderDiscrepancy";
110
+ missingBodyPartMeasurements?: Array<CodeableConcept>;
111
+ missingBodyParts?: Array<CodeableConcept>;
112
+ orderType: CodeableConcept;
113
+ }
114
+
73
115
  // @public
74
116
  export interface CompleteOrderDiscrepancyInferenceOutput extends RadiologyInsightsInferenceOutputParent {
75
117
  kind: "completeOrderDiscrepancy";
@@ -158,8 +200,8 @@ export interface ContactDetailOutput extends ElementOutput {
158
200
  export interface ContactPoint {
159
201
  period?: Period;
160
202
  rank?: number;
161
- system?: string;
162
- use?: string;
203
+ system?: ContactPointSystem;
204
+ use?: ContactPointUse;
163
205
  value?: string;
164
206
  }
165
207
 
@@ -167,80 +209,101 @@ export interface ContactPoint {
167
209
  export interface ContactPointOutput {
168
210
  period?: PeriodOutput;
169
211
  rank?: number;
170
- system?: string;
171
- use?: string;
212
+ system?: ContactPointSystemOutput;
213
+ use?: ContactPointUseOutput;
172
214
  value?: string;
173
215
  }
174
216
 
175
217
  // @public
176
- function createClient(endpoint: string, credentials: KeyCredential, options?: ClientOptions): AzureHealthInsightsClient;
218
+ export type ContactPointSystem = string | "phone" | "fax" | "email" | "pager" | "url" | "sms" | "other";
219
+
220
+ // @public
221
+ export type ContactPointSystemOutput = string | "phone" | "fax" | "email" | "pager" | "url" | "sms" | "other";
222
+
223
+ // @public
224
+ export type ContactPointUse = string | "home" | "work" | "temp" | "old" | "mobile";
225
+
226
+ // @public
227
+ export type ContactPointUseOutput = string | "home" | "work" | "temp" | "old" | "mobile";
228
+
229
+ // @public
230
+ function createClient(endpointParam: string, credentials: TokenCredential, options?: ClientOptions): AzureHealthInsightsClient;
177
231
  export default createClient;
178
232
 
179
- // @public (undocumented)
180
- export interface CreateJob {
181
- post(options?: CreateJobParameters): StreamableMethod<CreateJob202Response | CreateJobDefaultResponse>;
233
+ // @public
234
+ export interface CreateJob200Headers {
235
+ "operation-location": string;
236
+ "x-ms-request-id"?: string;
182
237
  }
183
238
 
184
- // @public (undocumented)
185
- export interface CreateJob202Headers {
239
+ // @public
240
+ export interface CreateJob200Response extends HttpResponse {
241
+ body: RadiologyInsightsJobOutput;
242
+ headers: RawHttpHeaders & CreateJob200Headers;
243
+ status: "200";
244
+ }
245
+
246
+ // @public
247
+ export interface CreateJob201Headers {
186
248
  "operation-location": string;
187
- "repeatability-result"?: RepeatabilityResultOutput;
188
- "retry-after"?: number;
249
+ "x-ms-request-id"?: string;
189
250
  }
190
251
 
191
252
  // @public
192
- export interface CreateJob202Response extends HttpResponse {
193
- // (undocumented)
194
- body: HealthInsightsOperationStatusOutput;
195
- // (undocumented)
196
- headers: RawHttpHeaders & CreateJob202Headers;
197
- // (undocumented)
198
- status: "202";
253
+ export interface CreateJob201Response extends HttpResponse {
254
+ body: RadiologyInsightsJobOutput;
255
+ headers: RawHttpHeaders & CreateJob201Headers;
256
+ status: "201";
199
257
  }
200
258
 
201
- // @public (undocumented)
259
+ // @public
202
260
  export interface CreateJobBodyParam {
203
- // (undocumented)
204
- body?: RadiologyInsightsData;
261
+ body: RadiologyInsightsJob;
205
262
  }
206
263
 
207
- // @public (undocumented)
264
+ // @public
208
265
  export interface CreateJobDefaultHeaders {
209
266
  "x-ms-error-code"?: string;
267
+ "x-ms-request-id"?: string;
210
268
  }
211
269
 
212
- // @public (undocumented)
270
+ // @public
213
271
  export interface CreateJobDefaultResponse extends HttpResponse {
214
- // (undocumented)
215
- body: ErrorResponse;
216
- // (undocumented)
272
+ body: HealthInsightsErrorResponseOutput;
217
273
  headers: RawHttpHeaders & CreateJobDefaultHeaders;
218
- // (undocumented)
219
274
  status: string;
220
275
  }
221
276
 
222
- // @public (undocumented)
223
- export interface CreateJobHeaderParam {
224
- // (undocumented)
225
- headers?: RawHttpHeadersInput & CreateJobHeaders;
277
+ // @public
278
+ export interface CreateJobLogicalResponse extends HttpResponse {
279
+ body: RadiologyInsightsJobOutput;
280
+ status: "200";
226
281
  }
227
282
 
228
- // @public (undocumented)
229
- export interface CreateJobHeaders {
230
- "Repeatability-First-Sent"?: string;
231
- "Repeatability-Request-ID"?: string;
283
+ // @public
284
+ export type CreateJobParameters = CreateJobQueryParam & CreateJobBodyParam & RequestParameters;
285
+
286
+ // @public
287
+ export interface CreateJobQueryParam {
288
+ queryParameters?: CreateJobQueryParamProperties;
232
289
  }
233
290
 
234
291
  // @public
235
- export interface CreateJobLogicalResponse extends HttpResponse {
236
- // (undocumented)
237
- body: HealthInsightsOperationStatusOutput;
238
- // (undocumented)
239
- status: "200";
292
+ export interface CreateJobQueryParamProperties {
293
+ expand?: string;
240
294
  }
241
295
 
242
- // @public (undocumented)
243
- export type CreateJobParameters = CreateJobHeaderParam & CreateJobBodyParam & RequestParameters;
296
+ // @public
297
+ export interface CriticalResult {
298
+ description: string;
299
+ finding?: Observation;
300
+ }
301
+
302
+ // @public
303
+ export interface CriticalResultInference extends RadiologyInsightsInferenceParent {
304
+ kind: "criticalResult";
305
+ result: CriticalResult;
306
+ }
244
307
 
245
308
  // @public
246
309
  export interface CriticalResultInferenceOutput extends RadiologyInsightsInferenceOutputParent {
@@ -280,16 +343,28 @@ export interface DocumentAuthorOutput {
280
343
 
281
344
  // @public
282
345
  export interface DocumentContent {
283
- sourceType: string;
346
+ sourceType: DocumentContentSourceType;
284
347
  value: string;
285
348
  }
286
349
 
287
350
  // @public
288
351
  export interface DocumentContentOutput {
289
- sourceType: string;
352
+ sourceType: DocumentContentSourceTypeOutput;
290
353
  value: string;
291
354
  }
292
355
 
356
+ // @public
357
+ export type DocumentContentSourceType = string | "inline" | "reference";
358
+
359
+ // @public
360
+ export type DocumentContentSourceTypeOutput = string | "inline" | "reference";
361
+
362
+ // @public
363
+ export type DocumentType = string | "note" | "fhirBundle" | "dicom" | "genomicSequencing";
364
+
365
+ // @public
366
+ export type DocumentTypeOutput = string | "note" | "fhirBundle" | "dicom" | "genomicSequencing";
367
+
293
368
  // @public
294
369
  export type DomainResource = DomainResourceParent | Observation | Condition | ResearchStudy;
295
370
 
@@ -301,7 +376,6 @@ export interface DomainResourceOutputParent extends ResourceOutput {
301
376
  contained?: Array<ResourceOutput>;
302
377
  extension?: Array<ExtensionOutput>;
303
378
  modifierExtension?: Array<ExtensionOutput>;
304
- // (undocumented)
305
379
  resourceType: string;
306
380
  text?: NarrativeOutput;
307
381
  }
@@ -311,7 +385,6 @@ export interface DomainResourceParent extends Resource {
311
385
  contained?: Array<Resource>;
312
386
  extension?: Array<Extension>;
313
387
  modifierExtension?: Array<Extension>;
314
- // (undocumented)
315
388
  resourceType: string;
316
389
  text?: Narrative;
317
390
  }
@@ -329,18 +402,10 @@ export interface ElementOutput {
329
402
  }
330
403
 
331
404
  // @public
332
- export interface Encounter {
333
- class?: string;
334
- id: string;
335
- period?: TimePeriod;
336
- }
405
+ export type EncounterClass = string | "inpatient" | "ambulatory" | "observation" | "emergency" | "virtual" | "healthHome";
337
406
 
338
407
  // @public
339
- export interface EncounterOutput {
340
- class?: string;
341
- id: string;
342
- period?: TimePeriodOutput;
343
- }
408
+ export type EncounterClassOutput = string | "inpatient" | "ambulatory" | "observation" | "emergency" | "virtual" | "healthHome";
344
409
 
345
410
  // @public
346
411
  export interface Extension extends Element {
@@ -376,6 +441,12 @@ export interface ExtensionOutput extends ElementOutput {
376
441
  valueTime?: string;
377
442
  }
378
443
 
444
+ // @public
445
+ export interface FindingInference extends RadiologyInsightsInferenceParent {
446
+ finding: Observation;
447
+ kind: "finding";
448
+ }
449
+
379
450
  // @public
380
451
  export interface FindingInferenceOutput extends RadiologyInsightsInferenceOutputParent {
381
452
  finding: ObservationOutput;
@@ -392,17 +463,38 @@ export interface FindingOptionsOutput {
392
463
  provideFocusedSentenceEvidence?: boolean;
393
464
  }
394
465
 
466
+ // @public
467
+ export interface FollowupCommunicationInference extends RadiologyInsightsInferenceParent {
468
+ communicatedAt?: Date[] | string[];
469
+ kind: "followupCommunication";
470
+ recipient?: MedicalProfessionalType[];
471
+ wasAcknowledged: boolean;
472
+ }
473
+
395
474
  // @public
396
475
  export interface FollowupCommunicationInferenceOutput extends RadiologyInsightsInferenceOutputParent {
397
- dateTime?: string[];
476
+ communicatedAt?: string[];
398
477
  kind: "followupCommunication";
399
- recipient?: string[];
478
+ recipient?: MedicalProfessionalTypeOutput[];
400
479
  wasAcknowledged: boolean;
401
480
  }
402
481
 
482
+ // @public
483
+ export interface FollowupRecommendationInference extends RadiologyInsightsInferenceParent {
484
+ effectiveAt?: string;
485
+ effectivePeriod?: Period;
486
+ findings?: Array<RecommendationFinding>;
487
+ isConditional: boolean;
488
+ isGuideline: boolean;
489
+ isHedging: boolean;
490
+ isOption: boolean;
491
+ kind: "followupRecommendation";
492
+ recommendedProcedure: ProcedureRecommendation;
493
+ }
494
+
403
495
  // @public
404
496
  export interface FollowupRecommendationInferenceOutput extends RadiologyInsightsInferenceOutputParent {
405
- effectiveDateTime?: string;
497
+ effectiveAt?: string;
406
498
  effectivePeriod?: PeriodOutput;
407
499
  findings?: Array<RecommendationFindingOutput>;
408
500
  isConditional: boolean;
@@ -427,6 +519,13 @@ export interface FollowupRecommendationOptionsOutput {
427
519
  provideFocusedSentenceEvidence?: boolean;
428
520
  }
429
521
 
522
+ // @public
523
+ export interface GenericProcedureRecommendation extends ProcedureRecommendationParent {
524
+ code: CodeableConcept;
525
+ description?: string;
526
+ kind: "genericProcedureRecommendation";
527
+ }
528
+
430
529
  // @public
431
530
  export interface GenericProcedureRecommendationOutput extends ProcedureRecommendationOutputParent {
432
531
  code: CodeableConceptOutput;
@@ -434,56 +533,60 @@ export interface GenericProcedureRecommendationOutput extends ProcedureRecommend
434
533
  kind: "genericProcedureRecommendation";
435
534
  }
436
535
 
437
- // @public (undocumented)
536
+ // @public
438
537
  export interface GetJob {
439
538
  get(options?: GetJobParameters): StreamableMethod<GetJob200Response | GetJobDefaultResponse>;
539
+ put(options: CreateJobParameters, requestOptions?: GetJobParameters): StreamableMethod<CreateJob200Response | CreateJob201Response | CreateJobDefaultResponse>;
440
540
  }
441
541
 
442
- // @public (undocumented)
542
+ // @public
443
543
  export interface GetJob200Headers {
444
544
  "retry-after"?: number;
545
+ "x-ms-request-id"?: string;
445
546
  }
446
547
 
447
548
  // @public
448
549
  export interface GetJob200Response extends HttpResponse {
449
- // (undocumented)
450
- body: RadiologyInsightsResultOutput;
451
- // (undocumented)
550
+ body: RadiologyInsightsJobOutput;
452
551
  headers: RawHttpHeaders & GetJob200Headers;
453
- // (undocumented)
454
552
  status: "200";
455
553
  }
456
554
 
457
- // @public (undocumented)
555
+ // @public
458
556
  export interface GetJobDefaultHeaders {
459
557
  "x-ms-error-code"?: string;
558
+ "x-ms-request-id"?: string;
460
559
  }
461
560
 
462
- // @public (undocumented)
561
+ // @public
463
562
  export interface GetJobDefaultResponse extends HttpResponse {
464
- // (undocumented)
465
- body: ErrorResponse;
466
- // (undocumented)
563
+ body: HealthInsightsErrorResponseOutput;
467
564
  headers: RawHttpHeaders & GetJobDefaultHeaders;
468
- // (undocumented)
469
565
  status: string;
470
566
  }
471
567
 
472
- // @public (undocumented)
473
- export type GetJobParameters = RequestParameters;
568
+ // @public
569
+ export type GetJobParameters = GetJobQueryParam & RequestParameters;
474
570
 
475
571
  // @public
476
- export function getLongRunningPoller<TResult extends CreateJobLogicalResponse | CreateJobDefaultResponse>(client: Client, initialResponse: CreateJob202Response | CreateJobDefaultResponse, options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;
572
+ export interface GetJobQueryParam {
573
+ queryParameters?: GetJobQueryParamProperties;
574
+ }
477
575
 
478
576
  // @public
479
- export interface HealthInsightsOperationStatusOutput {
480
- readonly createdDateTime?: string;
481
- error?: ErrorModel;
482
- readonly expirationDateTime?: string;
483
- readonly id: string;
484
- readonly lastUpdateDateTime?: string;
485
- result?: RadiologyInsightsInferenceResultOutput;
486
- readonly status: string;
577
+ export interface GetJobQueryParamProperties {
578
+ expand?: string;
579
+ }
580
+
581
+ // @public
582
+ export function getLongRunningPoller<TResult extends CreateJobLogicalResponse | CreateJobDefaultResponse>(client: Client, initialResponse: CreateJob200Response | CreateJob201Response | CreateJobDefaultResponse, options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;
583
+
584
+ // @public
585
+ export interface HealthInsightsErrorResponseOutput {
586
+ error: ErrorModel;
587
+ requestId: {
588
+ response: RequestIdResponseHeaderOutput;
589
+ };
487
590
  }
488
591
 
489
592
  // @public
@@ -506,6 +609,15 @@ export interface IdentifierOutput extends ElementOutput {
506
609
  value?: string;
507
610
  }
508
611
 
612
+ // @public
613
+ export interface ImagingProcedure {
614
+ anatomy: CodeableConcept;
615
+ contrast?: RadiologyCodeWithTypes;
616
+ laterality?: CodeableConcept;
617
+ modality: CodeableConcept;
618
+ view?: RadiologyCodeWithTypes;
619
+ }
620
+
509
621
  // @public
510
622
  export interface ImagingProcedureOutput {
511
623
  anatomy: CodeableConceptOutput;
@@ -515,6 +627,13 @@ export interface ImagingProcedureOutput {
515
627
  view?: RadiologyCodeWithTypesOutput;
516
628
  }
517
629
 
630
+ // @public
631
+ export interface ImagingProcedureRecommendation extends ProcedureRecommendationParent {
632
+ imagingProcedures: Array<ImagingProcedure>;
633
+ kind: "imagingProcedureRecommendation";
634
+ procedureCodes?: Array<CodeableConcept>;
635
+ }
636
+
518
637
  // @public
519
638
  export interface ImagingProcedureRecommendationOutput extends ProcedureRecommendationOutputParent {
520
639
  imagingProcedures: Array<ImagingProcedureOutput>;
@@ -522,19 +641,46 @@ export interface ImagingProcedureRecommendationOutput extends ProcedureRecommend
522
641
  procedureCodes?: Array<CodeableConceptOutput>;
523
642
  }
524
643
 
525
- // @public (undocumented)
644
+ // @public
526
645
  export function isUnexpected(response: GetJob200Response | GetJobDefaultResponse): response is GetJobDefaultResponse;
527
646
 
528
- // @public (undocumented)
529
- export function isUnexpected(response: CreateJob202Response | CreateJobLogicalResponse | CreateJobDefaultResponse): response is CreateJobDefaultResponse;
647
+ // @public
648
+ export function isUnexpected(response: CreateJob200Response | CreateJob201Response | CreateJobLogicalResponse | CreateJobDefaultResponse): response is CreateJobDefaultResponse;
649
+
650
+ // @public
651
+ export type JobStatus = string | "notStarted" | "running" | "succeeded" | "failed" | "canceled";
652
+
653
+ // @public
654
+ export type JobStatusOutput = string | "notStarted" | "running" | "succeeded" | "failed" | "canceled";
655
+
656
+ // @public
657
+ export interface LateralityDiscrepancyInference extends RadiologyInsightsInferenceParent {
658
+ discrepancyType: LateralityDiscrepancyType;
659
+ kind: "lateralityDiscrepancy";
660
+ lateralityIndication?: CodeableConcept;
661
+ }
530
662
 
531
663
  // @public
532
664
  export interface LateralityDiscrepancyInferenceOutput extends RadiologyInsightsInferenceOutputParent {
533
- discrepancyType: string;
665
+ discrepancyType: LateralityDiscrepancyTypeOutput;
534
666
  kind: "lateralityDiscrepancy";
535
667
  lateralityIndication?: CodeableConceptOutput;
536
668
  }
537
669
 
670
+ // @public
671
+ export type LateralityDiscrepancyType = string | "orderLateralityMismatch" | "textLateralityContradiction" | "textLateralityMissing";
672
+
673
+ // @public
674
+ export type LateralityDiscrepancyTypeOutput = string | "orderLateralityMismatch" | "textLateralityContradiction" | "textLateralityMissing";
675
+
676
+ // @public
677
+ export interface LimitedOrderDiscrepancyInference extends RadiologyInsightsInferenceParent {
678
+ kind: "limitedOrderDiscrepancy";
679
+ orderType: CodeableConcept;
680
+ presentBodyPartMeasurements?: Array<CodeableConcept>;
681
+ presentBodyParts?: Array<CodeableConcept>;
682
+ }
683
+
538
684
  // @public
539
685
  export interface LimitedOrderDiscrepancyInferenceOutput extends RadiologyInsightsInferenceOutputParent {
540
686
  kind: "limitedOrderDiscrepancy";
@@ -543,6 +689,12 @@ export interface LimitedOrderDiscrepancyInferenceOutput extends RadiologyInsight
543
689
  presentBodyParts?: Array<CodeableConceptOutput>;
544
690
  }
545
691
 
692
+ // @public
693
+ export type MedicalProfessionalType = string | "unknown" | "doctor" | "nurse" | "midwife" | "physicianAssistant";
694
+
695
+ // @public
696
+ export type MedicalProfessionalTypeOutput = string | "unknown" | "doctor" | "nurse" | "midwife" | "physicianAssistant";
697
+
546
698
  // @public
547
699
  export interface Meta {
548
700
  lastUpdated?: string;
@@ -595,7 +747,7 @@ export interface Observation extends DomainResourceParent {
595
747
  note?: Array<Annotation>;
596
748
  referenceRange?: Array<ObservationReferenceRange>;
597
749
  resourceType: "Observation";
598
- status: string;
750
+ status: ObservationStatusCodeType;
599
751
  subject?: Reference;
600
752
  valueBoolean?: boolean;
601
753
  valueCodeableConcept?: CodeableConcept;
@@ -670,7 +822,7 @@ export interface ObservationOutput extends DomainResourceOutputParent {
670
822
  note?: Array<AnnotationOutput>;
671
823
  referenceRange?: Array<ObservationReferenceRangeOutput>;
672
824
  resourceType: "Observation";
673
- status: string;
825
+ status: ObservationStatusCodeTypeOutput;
674
826
  subject?: ReferenceOutput;
675
827
  valueBoolean?: boolean;
676
828
  valueCodeableConcept?: CodeableConceptOutput;
@@ -705,6 +857,12 @@ export interface ObservationReferenceRangeOutput {
705
857
  type?: CodeableConceptOutput;
706
858
  }
707
859
 
860
+ // @public
861
+ export type ObservationStatusCodeType = string | "registered" | "preliminary" | "final" | "amended" | "corrected" | "cancelled" | "entered-in-error" | "unknown";
862
+
863
+ // @public
864
+ export type ObservationStatusCodeTypeOutput = string | "registered" | "preliminary" | "final" | "amended" | "corrected" | "cancelled" | "entered-in-error" | "unknown";
865
+
708
866
  // @public
709
867
  export interface OrderedProcedure {
710
868
  code?: CodeableConcept;
@@ -719,62 +877,82 @@ export interface OrderedProcedureOutput {
719
877
  extension?: Array<ExtensionOutput>;
720
878
  }
721
879
 
880
+ // @public
881
+ export interface PatientDetails {
882
+ birthDate?: Date | string;
883
+ clinicalInfo?: Array<Resource>;
884
+ sex?: PatientSex;
885
+ }
886
+
887
+ // @public
888
+ export interface PatientDetailsOutput {
889
+ birthDate?: string;
890
+ clinicalInfo?: Array<ResourceOutput>;
891
+ sex?: PatientSexOutput;
892
+ }
893
+
722
894
  // @public
723
895
  export interface PatientDocument {
724
896
  administrativeMetadata?: DocumentAdministrativeMetadata;
725
897
  authors?: Array<DocumentAuthor>;
726
- clinicalType?: string;
898
+ clinicalType?: ClinicalDocumentType;
727
899
  content: DocumentContent;
728
- createdDateTime?: Date | string;
900
+ createdAt?: Date | string;
729
901
  id: string;
730
902
  language?: string;
731
- specialtyType?: string;
732
- type: string;
903
+ specialtyType?: SpecialtyType;
904
+ type: DocumentType;
733
905
  }
734
906
 
735
907
  // @public
736
908
  export interface PatientDocumentOutput {
737
909
  administrativeMetadata?: DocumentAdministrativeMetadataOutput;
738
910
  authors?: Array<DocumentAuthorOutput>;
739
- clinicalType?: string;
911
+ clinicalType?: ClinicalDocumentTypeOutput;
740
912
  content: DocumentContentOutput;
741
- createdDateTime?: string;
913
+ createdAt?: string;
742
914
  id: string;
743
915
  language?: string;
744
- specialtyType?: string;
745
- type: string;
916
+ specialtyType?: SpecialtyTypeOutput;
917
+ type: DocumentTypeOutput;
746
918
  }
747
919
 
748
920
  // @public
749
- export interface PatientInfo {
750
- birthDate?: Date | string;
751
- clinicalInfo?: Array<Resource>;
752
- sex?: string;
921
+ export interface PatientEncounter {
922
+ class?: EncounterClass;
923
+ id: string;
924
+ period?: TimePeriod;
753
925
  }
754
926
 
755
927
  // @public
756
- export interface PatientInfoOutput {
757
- birthDate?: string;
758
- clinicalInfo?: Array<ResourceOutput>;
759
- sex?: string;
928
+ export interface PatientEncounterOutput {
929
+ class?: EncounterClassOutput;
930
+ id: string;
931
+ period?: TimePeriodOutput;
760
932
  }
761
933
 
762
934
  // @public
763
935
  export interface PatientRecord {
764
- encounters?: Array<Encounter>;
936
+ details?: PatientDetails;
937
+ encounters?: Array<PatientEncounter>;
765
938
  id: string;
766
- info?: PatientInfo;
767
939
  patientDocuments?: Array<PatientDocument>;
768
940
  }
769
941
 
770
942
  // @public
771
943
  export interface PatientRecordOutput {
772
- encounters?: Array<EncounterOutput>;
944
+ details?: PatientDetailsOutput;
945
+ encounters?: Array<PatientEncounterOutput>;
773
946
  id: string;
774
- info?: PatientInfoOutput;
775
947
  patientDocuments?: Array<PatientDocumentOutput>;
776
948
  }
777
949
 
950
+ // @public
951
+ export type PatientSex = string | "female" | "male" | "unspecified";
952
+
953
+ // @public
954
+ export type PatientSexOutput = string | "female" | "male" | "unspecified";
955
+
778
956
  // @public
779
957
  export interface Period extends Element {
780
958
  end?: string;
@@ -787,12 +965,21 @@ export interface PeriodOutput extends ElementOutput {
787
965
  start?: string;
788
966
  }
789
967
 
968
+ // @public
969
+ export type ProcedureRecommendation = ProcedureRecommendationParent | GenericProcedureRecommendation | ImagingProcedureRecommendation;
970
+
790
971
  // @public
791
972
  export type ProcedureRecommendationOutput = ProcedureRecommendationOutputParent | GenericProcedureRecommendationOutput | ImagingProcedureRecommendationOutput;
792
973
 
793
974
  // @public
794
975
  export interface ProcedureRecommendationOutputParent {
795
- // (undocumented)
976
+ extension?: Array<ExtensionOutput>;
977
+ kind: string;
978
+ }
979
+
980
+ // @public
981
+ export interface ProcedureRecommendationParent {
982
+ extension?: Array<Extension>;
796
983
  kind: string;
797
984
  }
798
985
 
@@ -814,6 +1001,12 @@ export interface QuantityOutput extends ElementOutput {
814
1001
  value?: number;
815
1002
  }
816
1003
 
1004
+ // @public
1005
+ export interface RadiologyCodeWithTypes {
1006
+ code: CodeableConcept;
1007
+ types: Array<CodeableConcept>;
1008
+ }
1009
+
817
1010
  // @public
818
1011
  export interface RadiologyCodeWithTypesOutput {
819
1012
  code: CodeableConceptOutput;
@@ -832,6 +1025,9 @@ export interface RadiologyInsightsDataOutput {
832
1025
  patients: Array<PatientRecordOutput>;
833
1026
  }
834
1027
 
1028
+ // @public
1029
+ export type RadiologyInsightsInference = RadiologyInsightsInferenceParent | AgeMismatchInference | SexMismatchInference | LateralityDiscrepancyInference | CompleteOrderDiscrepancyInference | LimitedOrderDiscrepancyInference | FindingInference | CriticalResultInference | RadiologyProcedureInference | FollowupRecommendationInference | FollowupCommunicationInference;
1030
+
835
1031
  // @public
836
1032
  export interface RadiologyInsightsInferenceOptions {
837
1033
  findingOptions?: FindingOptions;
@@ -850,21 +1046,55 @@ export type RadiologyInsightsInferenceOutput = RadiologyInsightsInferenceOutputP
850
1046
  // @public
851
1047
  export interface RadiologyInsightsInferenceOutputParent {
852
1048
  extension?: Array<ExtensionOutput>;
853
- // (undocumented)
854
1049
  kind: string;
855
1050
  }
856
1051
 
1052
+ // @public
1053
+ export interface RadiologyInsightsInferenceParent {
1054
+ extension?: Array<Extension>;
1055
+ kind: string;
1056
+ }
1057
+
1058
+ // @public
1059
+ export interface RadiologyInsightsInferenceResult {
1060
+ modelVersion: string;
1061
+ patientResults: Array<RadiologyInsightsPatientResult>;
1062
+ }
1063
+
857
1064
  // @public
858
1065
  export interface RadiologyInsightsInferenceResultOutput {
859
1066
  modelVersion: string;
860
1067
  patientResults: Array<RadiologyInsightsPatientResultOutput>;
861
1068
  }
862
1069
 
1070
+ // @public
1071
+ export type RadiologyInsightsInferenceType = string | "ageMismatch" | "lateralityDiscrepancy" | "sexMismatch" | "completeOrderDiscrepancy" | "limitedOrderDiscrepancy" | "finding" | "criticalResult" | "followupRecommendation" | "followupCommunication" | "radiologyProcedure";
1072
+
1073
+ // @public
1074
+ export type RadiologyInsightsInferenceTypeOutput = string | "ageMismatch" | "lateralityDiscrepancy" | "sexMismatch" | "completeOrderDiscrepancy" | "limitedOrderDiscrepancy" | "finding" | "criticalResult" | "followupRecommendation" | "followupCommunication" | "radiologyProcedure";
1075
+
1076
+ // @public
1077
+ export interface RadiologyInsightsJob {
1078
+ jobData?: RadiologyInsightsData;
1079
+ }
1080
+
1081
+ // @public
1082
+ export interface RadiologyInsightsJobOutput {
1083
+ readonly createdAt?: string;
1084
+ readonly error?: ErrorModel;
1085
+ readonly expiresAt?: string;
1086
+ readonly id: string;
1087
+ jobData?: RadiologyInsightsDataOutput;
1088
+ readonly result?: RadiologyInsightsInferenceResultOutput;
1089
+ readonly status: JobStatusOutput;
1090
+ readonly updatedAt?: string;
1091
+ }
1092
+
863
1093
  // @public
864
1094
  export interface RadiologyInsightsModelConfiguration {
865
1095
  includeEvidence?: boolean;
866
1096
  inferenceOptions?: RadiologyInsightsInferenceOptions;
867
- inferenceTypes?: string[];
1097
+ inferenceTypes?: RadiologyInsightsInferenceType[];
868
1098
  locale?: string;
869
1099
  verbose?: boolean;
870
1100
  }
@@ -873,11 +1103,17 @@ export interface RadiologyInsightsModelConfiguration {
873
1103
  export interface RadiologyInsightsModelConfigurationOutput {
874
1104
  includeEvidence?: boolean;
875
1105
  inferenceOptions?: RadiologyInsightsInferenceOptionsOutput;
876
- inferenceTypes?: string[];
1106
+ inferenceTypes?: RadiologyInsightsInferenceTypeOutput[];
877
1107
  locale?: string;
878
1108
  verbose?: boolean;
879
1109
  }
880
1110
 
1111
+ // @public
1112
+ export interface RadiologyInsightsPatientResult {
1113
+ inferences: Array<RadiologyInsightsInference>;
1114
+ patientId: string;
1115
+ }
1116
+
881
1117
  // @public
882
1118
  export interface RadiologyInsightsPatientResultOutput {
883
1119
  inferences: Array<RadiologyInsightsInferenceOutput>;
@@ -885,14 +1121,11 @@ export interface RadiologyInsightsPatientResultOutput {
885
1121
  }
886
1122
 
887
1123
  // @public
888
- export interface RadiologyInsightsResultOutput {
889
- readonly createdDateTime?: string;
890
- error?: ErrorModel;
891
- readonly expirationDateTime?: string;
892
- readonly id: string;
893
- readonly lastUpdateDateTime?: string;
894
- result?: RadiologyInsightsInferenceResultOutput;
895
- readonly status: string;
1124
+ export interface RadiologyProcedureInference extends RadiologyInsightsInferenceParent {
1125
+ imagingProcedures: Array<ImagingProcedure>;
1126
+ kind: "radiologyProcedure";
1127
+ orderedProcedure: OrderedProcedure;
1128
+ procedureCodes?: Array<CodeableConcept>;
896
1129
  }
897
1130
 
898
1131
  // @public
@@ -927,14 +1160,28 @@ export interface RatioOutput extends ElementOutput {
927
1160
  numerator?: QuantityOutput;
928
1161
  }
929
1162
 
1163
+ // @public
1164
+ export interface RecommendationFinding {
1165
+ criticalFinding?: CriticalResult;
1166
+ extension?: Array<Extension>;
1167
+ finding?: Observation;
1168
+ recommendationFindingStatus: RecommendationFindingStatusType;
1169
+ }
1170
+
930
1171
  // @public
931
1172
  export interface RecommendationFindingOutput {
932
1173
  criticalFinding?: CriticalResultOutput;
933
1174
  extension?: Array<ExtensionOutput>;
934
1175
  finding?: ObservationOutput;
935
- recommendationFindingStatus: string;
1176
+ recommendationFindingStatus: RecommendationFindingStatusTypeOutput;
936
1177
  }
937
1178
 
1179
+ // @public
1180
+ export type RecommendationFindingStatusType = string | "present" | "differential" | "ruleOut" | "conditional";
1181
+
1182
+ // @public
1183
+ export type RecommendationFindingStatusTypeOutput = string | "present" | "differential" | "ruleOut" | "conditional";
1184
+
938
1185
  // @public
939
1186
  export interface Reference extends Element {
940
1187
  display?: string;
@@ -952,7 +1199,8 @@ export interface ReferenceOutput extends ElementOutput {
952
1199
  }
953
1200
 
954
1201
  // @public
955
- export type RepeatabilityResultOutput = "accepted" | "rejected";
1202
+ export interface RequestIdResponseHeaderOutput {
1203
+ }
956
1204
 
957
1205
  // @public
958
1206
  export interface ResearchStudy extends DomainResourceParent {
@@ -985,7 +1233,7 @@ export interface ResearchStudy extends DomainResourceParent {
985
1233
  resourceType: "ResearchStudy";
986
1234
  site?: Array<Reference>;
987
1235
  sponsor?: Reference;
988
- status: string;
1236
+ status: ResearchStudyStatusCodeType;
989
1237
  title?: string;
990
1238
  }
991
1239
 
@@ -1020,10 +1268,16 @@ export interface ResearchStudyOutput extends DomainResourceOutputParent {
1020
1268
  resourceType: "ResearchStudy";
1021
1269
  site?: Array<ReferenceOutput>;
1022
1270
  sponsor?: ReferenceOutput;
1023
- status: string;
1271
+ status: ResearchStudyStatusCodeTypeOutput;
1024
1272
  title?: string;
1025
1273
  }
1026
1274
 
1275
+ // @public
1276
+ export type ResearchStudyStatusCodeType = string | "active" | "administratively-completed" | "approved" | "closed-to-accrual" | "closed-to-accrual-and-intervention" | "completed" | "disapproved" | "in-review" | "temporarily-closed-to-accrual" | "temporarily-closed-to-accrual-and-intervention" | "withdrawn";
1277
+
1278
+ // @public
1279
+ export type ResearchStudyStatusCodeTypeOutput = string | "active" | "administratively-completed" | "approved" | "closed-to-accrual" | "closed-to-accrual-and-intervention" | "completed" | "disapproved" | "in-review" | "temporarily-closed-to-accrual" | "temporarily-closed-to-accrual-and-intervention" | "withdrawn";
1280
+
1027
1281
  // @public
1028
1282
  export interface Resource extends Record<string, unknown> {
1029
1283
  id?: string;
@@ -1042,10 +1296,9 @@ export interface ResourceOutput extends Record<string, any> {
1042
1296
  resourceType: string;
1043
1297
  }
1044
1298
 
1045
- // @public (undocumented)
1299
+ // @public
1046
1300
  export interface Routes {
1047
1301
  (path: "/radiology-insights/jobs/{id}", id: string): GetJob;
1048
- (path: "/radiology-insights/jobs"): CreateJob;
1049
1302
  }
1050
1303
 
1051
1304
  // @public
@@ -1070,12 +1323,24 @@ export interface SampledDataOutput extends ElementOutput {
1070
1323
  upperLimit?: number;
1071
1324
  }
1072
1325
 
1326
+ // @public
1327
+ export interface SexMismatchInference extends RadiologyInsightsInferenceParent {
1328
+ kind: "sexMismatch";
1329
+ sexIndication: CodeableConcept;
1330
+ }
1331
+
1073
1332
  // @public
1074
1333
  export interface SexMismatchInferenceOutput extends RadiologyInsightsInferenceOutputParent {
1075
1334
  kind: "sexMismatch";
1076
1335
  sexIndication: CodeableConceptOutput;
1077
1336
  }
1078
1337
 
1338
+ // @public
1339
+ export type SpecialtyType = string | "pathology" | "radiology";
1340
+
1341
+ // @public
1342
+ export type SpecialtyTypeOutput = string | "pathology" | "radiology";
1343
+
1079
1344
  // @public
1080
1345
  export interface TimePeriod {
1081
1346
  end?: Date | string;