rxfoundry.clients.swifty-api 0.0.680__py3-none-any.whl → 0.1.1005__py3-none-any.whl

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.
Files changed (74) hide show
  1. rxfoundry/clients/swifty_api/__init__.py +37 -3
  2. rxfoundry/clients/swifty_api/api/__init__.py +3 -1
  3. rxfoundry/clients/swifty_api/api/async_api.py +2336 -52
  4. rxfoundry/clients/swifty_api/api/code_api.py +281 -0
  5. rxfoundry/clients/swifty_api/api/default_api.py +318 -0
  6. rxfoundry/clients/swifty_api/api/medication_api.py +647 -51
  7. rxfoundry/clients/swifty_api/api/patient_api.py +1126 -35
  8. rxfoundry/clients/swifty_api/api/pharmacist_api.py +24 -24
  9. rxfoundry/clients/swifty_api/api/pharmacy_api.py +48 -48
  10. rxfoundry/clients/swifty_api/api/prescriber_api.py +24 -24
  11. rxfoundry/clients/swifty_api/api/prescription_api.py +934 -130
  12. rxfoundry/clients/swifty_api/api/task_api.py +1835 -0
  13. rxfoundry/clients/swifty_api/api/tasks_api.py +374 -0
  14. rxfoundry/clients/swifty_api/api/validation_api.py +311 -0
  15. rxfoundry/clients/swifty_api/api/virtual_pharmacy_api.py +262 -0
  16. rxfoundry/clients/swifty_api/api/workflow_api.py +633 -0
  17. rxfoundry/clients/swifty_api/models/__init__.py +34 -2
  18. rxfoundry/clients/swifty_api/models/address.py +11 -10
  19. rxfoundry/clients/swifty_api/models/code_type.py +92 -0
  20. rxfoundry/clients/swifty_api/models/formulary.py +96 -0
  21. rxfoundry/clients/swifty_api/models/insurance.py +96 -0
  22. rxfoundry/clients/swifty_api/models/medication_instruction.py +92 -0
  23. rxfoundry/clients/swifty_api/models/medication_ref.py +100 -0
  24. rxfoundry/clients/swifty_api/models/patient.py +85 -2
  25. rxfoundry/clients/swifty_api/models/patient_activity_data.py +169 -0
  26. rxfoundry/clients/swifty_api/models/patient_activity_message.py +112 -0
  27. rxfoundry/clients/swifty_api/models/patient_activity_notification.py +9 -17
  28. rxfoundry/clients/swifty_api/models/patient_activity_notification_activity_data.py +39 -8
  29. rxfoundry/clients/swifty_api/models/patient_address_activity_notification.py +105 -0
  30. rxfoundry/clients/swifty_api/models/patient_address_data.py +25 -9
  31. rxfoundry/clients/swifty_api/models/patient_allergy.py +92 -0
  32. rxfoundry/clients/swifty_api/models/patient_condition.py +92 -0
  33. rxfoundry/clients/swifty_api/models/patient_data.py +13 -2
  34. rxfoundry/clients/swifty_api/models/patient_external_identifier.py +6 -5
  35. rxfoundry/clients/swifty_api/models/patient_health_profile_data.py +127 -0
  36. rxfoundry/clients/swifty_api/models/patient_insurance.py +106 -0
  37. rxfoundry/clients/swifty_api/models/patient_insurance_data.py +105 -0
  38. rxfoundry/clients/swifty_api/models/patient_medication.py +92 -0
  39. rxfoundry/clients/swifty_api/models/patient_name.py +99 -0
  40. rxfoundry/clients/swifty_api/models/patient_name_data.py +108 -0
  41. rxfoundry/clients/swifty_api/models/patient_phone_number.py +89 -0
  42. rxfoundry/clients/swifty_api/models/patient_phone_number_data.py +98 -0
  43. rxfoundry/clients/swifty_api/models/patient_task.py +115 -0
  44. rxfoundry/clients/swifty_api/models/patient_task_status.py +105 -0
  45. rxfoundry/clients/swifty_api/models/patient_task_type.py +45 -0
  46. rxfoundry/clients/swifty_api/models/prescription.py +35 -30
  47. rxfoundry/clients/swifty_api/models/prescription_change_request.py +24 -36
  48. rxfoundry/clients/swifty_api/models/prescription_change_request_and_response.py +145 -0
  49. rxfoundry/clients/swifty_api/models/prescription_change_request_response.py +134 -0
  50. rxfoundry/clients/swifty_api/models/prescription_data.py +126 -0
  51. rxfoundry/clients/swifty_api/models/prescription_message.py +100 -0
  52. rxfoundry/clients/swifty_api/models/prescription_message_task.py +109 -0
  53. rxfoundry/clients/swifty_api/models/prescription_message_task_status.py +99 -0
  54. rxfoundry/clients/swifty_api/models/prescription_message_task_type.py +43 -0
  55. rxfoundry/clients/swifty_api/models/prescription_message_type.py +53 -0
  56. rxfoundry/clients/swifty_api/models/prescription_patch.py +6 -2
  57. rxfoundry/clients/swifty_api/models/prescription_status_type.py +40 -0
  58. rxfoundry/clients/swifty_api/models/prescription_task.py +14 -12
  59. rxfoundry/clients/swifty_api/models/prescription_task_status.py +6 -2
  60. rxfoundry/clients/swifty_api/models/prescription_task_type.py +42 -0
  61. rxfoundry/clients/swifty_api/models/prescription_transfer_request_and_response.py +145 -0
  62. rxfoundry/clients/swifty_api/models/prescription_transfer_request_response.py +128 -0
  63. rxfoundry/clients/swifty_api/models/status_type.py +92 -0
  64. rxfoundry/clients/swifty_api/models/workflow.py +108 -0
  65. rxfoundry/clients/swifty_api/models/workflow_sub_task.py +96 -0
  66. rxfoundry/clients/swifty_api/models/workflow_sub_task_sub_task.py +155 -0
  67. rxfoundry/clients/swifty_api/models/workflow_task.py +111 -0
  68. rxfoundry/clients/swifty_api/models/workflow_task_task.py +155 -0
  69. rxfoundry/clients/swifty_api/models/workflow_type.py +55 -0
  70. {rxfoundry_clients_swifty_api-0.0.680.dist-info → rxfoundry_clients_swifty_api-0.1.1005.dist-info}/METADATA +1 -1
  71. rxfoundry_clients_swifty_api-0.1.1005.dist-info/RECORD +109 -0
  72. rxfoundry_clients_swifty_api-0.0.680.dist-info/RECORD +0 -64
  73. {rxfoundry_clients_swifty_api-0.0.680.dist-info → rxfoundry_clients_swifty_api-0.1.1005.dist-info}/WHEEL +0 -0
  74. {rxfoundry_clients_swifty_api-0.0.680.dist-info → rxfoundry_clients_swifty_api-0.1.1005.dist-info}/top_level.txt +0 -0
@@ -21,8 +21,11 @@ from pydantic import Field, StrictBool, StrictInt, StrictStr, field_validator
21
21
  from typing import List, Optional
22
22
  from typing_extensions import Annotated
23
23
  from rxfoundry.clients.swifty_api.models.prescription import Prescription
24
- from rxfoundry.clients.swifty_api.models.prescription_change_request import PrescriptionChangeRequest
24
+ from rxfoundry.clients.swifty_api.models.prescription_change_request_and_response import PrescriptionChangeRequestAndResponse
25
+ from rxfoundry.clients.swifty_api.models.prescription_issue import PrescriptionIssue
26
+ from rxfoundry.clients.swifty_api.models.prescription_message import PrescriptionMessage
25
27
  from rxfoundry.clients.swifty_api.models.prescription_patch import PrescriptionPatch
28
+ from rxfoundry.clients.swifty_api.models.prescription_task import PrescriptionTask
26
29
  from rxfoundry.clients.swifty_api.models.prescription_verification import PrescriptionVerification
27
30
 
28
31
  from rxfoundry.clients.swifty_api.api_client import ApiClient, RequestSerialized
@@ -339,10 +342,633 @@ class PrescriptionApi:
339
342
 
340
343
 
341
344
  @validate_call
342
- def create_prescription_change_request(
345
+ def get_prescription(
346
+ self,
347
+ prescription_id: StrictStr,
348
+ expand: Optional[List[StrictStr]] = None,
349
+ _request_timeout: Union[
350
+ None,
351
+ Annotated[StrictFloat, Field(gt=0)],
352
+ Tuple[
353
+ Annotated[StrictFloat, Field(gt=0)],
354
+ Annotated[StrictFloat, Field(gt=0)]
355
+ ]
356
+ ] = None,
357
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
358
+ _content_type: Optional[StrictStr] = None,
359
+ _headers: Optional[Dict[StrictStr, Any]] = None,
360
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
361
+ ) -> Prescription:
362
+ """Get a prescription by UUID or RxNumber
363
+
364
+
365
+ :param prescription_id: (required)
366
+ :type prescription_id: str
367
+ :param expand:
368
+ :type expand: List[str]
369
+ :param _request_timeout: timeout setting for this request. If one
370
+ number provided, it will be total request
371
+ timeout. It can also be a pair (tuple) of
372
+ (connection, read) timeouts.
373
+ :type _request_timeout: int, tuple(int, int), optional
374
+ :param _request_auth: set to override the auth_settings for an a single
375
+ request; this effectively ignores the
376
+ authentication in the spec for a single request.
377
+ :type _request_auth: dict, optional
378
+ :param _content_type: force content-type for the request.
379
+ :type _content_type: str, Optional
380
+ :param _headers: set to override the headers for a single
381
+ request; this effectively ignores the headers
382
+ in the spec for a single request.
383
+ :type _headers: dict, optional
384
+ :param _host_index: set to override the host_index for a single
385
+ request; this effectively ignores the host_index
386
+ in the spec for a single request.
387
+ :type _host_index: int, optional
388
+ :return: Returns the result object.
389
+ """ # noqa: E501
390
+
391
+ _param = self._get_prescription_serialize(
392
+ prescription_id=prescription_id,
393
+ expand=expand,
394
+ _request_auth=_request_auth,
395
+ _content_type=_content_type,
396
+ _headers=_headers,
397
+ _host_index=_host_index
398
+ )
399
+
400
+ _response_types_map: Dict[str, Optional[str]] = {
401
+ '200': "Prescription",
402
+ '404': None,
403
+ }
404
+ response_data = self.api_client.call_api(
405
+ *_param,
406
+ _request_timeout=_request_timeout
407
+ )
408
+ response_data.read()
409
+ return self.api_client.response_deserialize(
410
+ response_data=response_data,
411
+ response_types_map=_response_types_map,
412
+ ).data
413
+
414
+
415
+ @validate_call
416
+ def get_prescription_with_http_info(
417
+ self,
418
+ prescription_id: StrictStr,
419
+ expand: Optional[List[StrictStr]] = None,
420
+ _request_timeout: Union[
421
+ None,
422
+ Annotated[StrictFloat, Field(gt=0)],
423
+ Tuple[
424
+ Annotated[StrictFloat, Field(gt=0)],
425
+ Annotated[StrictFloat, Field(gt=0)]
426
+ ]
427
+ ] = None,
428
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
429
+ _content_type: Optional[StrictStr] = None,
430
+ _headers: Optional[Dict[StrictStr, Any]] = None,
431
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
432
+ ) -> ApiResponse[Prescription]:
433
+ """Get a prescription by UUID or RxNumber
434
+
435
+
436
+ :param prescription_id: (required)
437
+ :type prescription_id: str
438
+ :param expand:
439
+ :type expand: List[str]
440
+ :param _request_timeout: timeout setting for this request. If one
441
+ number provided, it will be total request
442
+ timeout. It can also be a pair (tuple) of
443
+ (connection, read) timeouts.
444
+ :type _request_timeout: int, tuple(int, int), optional
445
+ :param _request_auth: set to override the auth_settings for an a single
446
+ request; this effectively ignores the
447
+ authentication in the spec for a single request.
448
+ :type _request_auth: dict, optional
449
+ :param _content_type: force content-type for the request.
450
+ :type _content_type: str, Optional
451
+ :param _headers: set to override the headers for a single
452
+ request; this effectively ignores the headers
453
+ in the spec for a single request.
454
+ :type _headers: dict, optional
455
+ :param _host_index: set to override the host_index for a single
456
+ request; this effectively ignores the host_index
457
+ in the spec for a single request.
458
+ :type _host_index: int, optional
459
+ :return: Returns the result object.
460
+ """ # noqa: E501
461
+
462
+ _param = self._get_prescription_serialize(
463
+ prescription_id=prescription_id,
464
+ expand=expand,
465
+ _request_auth=_request_auth,
466
+ _content_type=_content_type,
467
+ _headers=_headers,
468
+ _host_index=_host_index
469
+ )
470
+
471
+ _response_types_map: Dict[str, Optional[str]] = {
472
+ '200': "Prescription",
473
+ '404': None,
474
+ }
475
+ response_data = self.api_client.call_api(
476
+ *_param,
477
+ _request_timeout=_request_timeout
478
+ )
479
+ response_data.read()
480
+ return self.api_client.response_deserialize(
481
+ response_data=response_data,
482
+ response_types_map=_response_types_map,
483
+ )
484
+
485
+
486
+ @validate_call
487
+ def get_prescription_without_preload_content(
488
+ self,
489
+ prescription_id: StrictStr,
490
+ expand: Optional[List[StrictStr]] = None,
491
+ _request_timeout: Union[
492
+ None,
493
+ Annotated[StrictFloat, Field(gt=0)],
494
+ Tuple[
495
+ Annotated[StrictFloat, Field(gt=0)],
496
+ Annotated[StrictFloat, Field(gt=0)]
497
+ ]
498
+ ] = None,
499
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
500
+ _content_type: Optional[StrictStr] = None,
501
+ _headers: Optional[Dict[StrictStr, Any]] = None,
502
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
503
+ ) -> RESTResponseType:
504
+ """Get a prescription by UUID or RxNumber
505
+
506
+
507
+ :param prescription_id: (required)
508
+ :type prescription_id: str
509
+ :param expand:
510
+ :type expand: List[str]
511
+ :param _request_timeout: timeout setting for this request. If one
512
+ number provided, it will be total request
513
+ timeout. It can also be a pair (tuple) of
514
+ (connection, read) timeouts.
515
+ :type _request_timeout: int, tuple(int, int), optional
516
+ :param _request_auth: set to override the auth_settings for an a single
517
+ request; this effectively ignores the
518
+ authentication in the spec for a single request.
519
+ :type _request_auth: dict, optional
520
+ :param _content_type: force content-type for the request.
521
+ :type _content_type: str, Optional
522
+ :param _headers: set to override the headers for a single
523
+ request; this effectively ignores the headers
524
+ in the spec for a single request.
525
+ :type _headers: dict, optional
526
+ :param _host_index: set to override the host_index for a single
527
+ request; this effectively ignores the host_index
528
+ in the spec for a single request.
529
+ :type _host_index: int, optional
530
+ :return: Returns the result object.
531
+ """ # noqa: E501
532
+
533
+ _param = self._get_prescription_serialize(
534
+ prescription_id=prescription_id,
535
+ expand=expand,
536
+ _request_auth=_request_auth,
537
+ _content_type=_content_type,
538
+ _headers=_headers,
539
+ _host_index=_host_index
540
+ )
541
+
542
+ _response_types_map: Dict[str, Optional[str]] = {
543
+ '200': "Prescription",
544
+ '404': None,
545
+ }
546
+ response_data = self.api_client.call_api(
547
+ *_param,
548
+ _request_timeout=_request_timeout
549
+ )
550
+ return response_data.response
551
+
552
+
553
+ def _get_prescription_serialize(
554
+ self,
555
+ prescription_id,
556
+ expand,
557
+ _request_auth,
558
+ _content_type,
559
+ _headers,
560
+ _host_index,
561
+ ) -> RequestSerialized:
562
+
563
+ _host = None
564
+
565
+ _collection_formats: Dict[str, str] = {
566
+ 'expand': 'csv',
567
+ }
568
+
569
+ _path_params: Dict[str, str] = {}
570
+ _query_params: List[Tuple[str, str]] = []
571
+ _header_params: Dict[str, Optional[str]] = _headers or {}
572
+ _form_params: List[Tuple[str, str]] = []
573
+ _files: Dict[
574
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
575
+ ] = {}
576
+ _body_params: Optional[bytes] = None
577
+
578
+ # process the path parameters
579
+ if prescription_id is not None:
580
+ _path_params['prescription_id'] = prescription_id
581
+ # process the query parameters
582
+ if expand is not None:
583
+
584
+ _query_params.append(('expand', expand))
585
+
586
+ # process the header parameters
587
+ # process the form parameters
588
+ # process the body parameter
589
+
590
+
591
+ # set the HTTP header `Accept`
592
+ if 'Accept' not in _header_params:
593
+ _header_params['Accept'] = self.api_client.select_header_accept(
594
+ [
595
+ 'application/json'
596
+ ]
597
+ )
598
+
599
+
600
+ # authentication setting
601
+ _auth_settings: List[str] = [
602
+ 'opaque_token'
603
+ ]
604
+
605
+ return self.api_client.param_serialize(
606
+ method='GET',
607
+ resource_path='/swifty/1/prescriptions/{prescription_id}',
608
+ path_params=_path_params,
609
+ query_params=_query_params,
610
+ header_params=_header_params,
611
+ body=_body_params,
612
+ post_params=_form_params,
613
+ files=_files,
614
+ auth_settings=_auth_settings,
615
+ collection_formats=_collection_formats,
616
+ _host=_host,
617
+ _request_auth=_request_auth
618
+ )
619
+
620
+
621
+
622
+
623
+ @validate_call
624
+ def get_prescription_change_requests(
625
+ self,
626
+ prescription_id: StrictStr,
627
+ status: Annotated[Optional[StrictStr], Field(description="Whether the message has been completed or not")] = None,
628
+ _request_timeout: Union[
629
+ None,
630
+ Annotated[StrictFloat, Field(gt=0)],
631
+ Tuple[
632
+ Annotated[StrictFloat, Field(gt=0)],
633
+ Annotated[StrictFloat, Field(gt=0)]
634
+ ]
635
+ ] = None,
636
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
637
+ _content_type: Optional[StrictStr] = None,
638
+ _headers: Optional[Dict[StrictStr, Any]] = None,
639
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
640
+ ) -> List[PrescriptionChangeRequestAndResponse]:
641
+ """Get all prescription change requests for a prescription
642
+
643
+
644
+ :param prescription_id: (required)
645
+ :type prescription_id: str
646
+ :param status: Whether the message has been completed or not
647
+ :type status: str
648
+ :param _request_timeout: timeout setting for this request. If one
649
+ number provided, it will be total request
650
+ timeout. It can also be a pair (tuple) of
651
+ (connection, read) timeouts.
652
+ :type _request_timeout: int, tuple(int, int), optional
653
+ :param _request_auth: set to override the auth_settings for an a single
654
+ request; this effectively ignores the
655
+ authentication in the spec for a single request.
656
+ :type _request_auth: dict, optional
657
+ :param _content_type: force content-type for the request.
658
+ :type _content_type: str, Optional
659
+ :param _headers: set to override the headers for a single
660
+ request; this effectively ignores the headers
661
+ in the spec for a single request.
662
+ :type _headers: dict, optional
663
+ :param _host_index: set to override the host_index for a single
664
+ request; this effectively ignores the host_index
665
+ in the spec for a single request.
666
+ :type _host_index: int, optional
667
+ :return: Returns the result object.
668
+ """ # noqa: E501
669
+
670
+ _param = self._get_prescription_change_requests_serialize(
671
+ prescription_id=prescription_id,
672
+ status=status,
673
+ _request_auth=_request_auth,
674
+ _content_type=_content_type,
675
+ _headers=_headers,
676
+ _host_index=_host_index
677
+ )
678
+
679
+ _response_types_map: Dict[str, Optional[str]] = {
680
+ '200': "List[PrescriptionChangeRequestAndResponse]",
681
+ '404': None,
682
+ }
683
+ response_data = self.api_client.call_api(
684
+ *_param,
685
+ _request_timeout=_request_timeout
686
+ )
687
+ response_data.read()
688
+ return self.api_client.response_deserialize(
689
+ response_data=response_data,
690
+ response_types_map=_response_types_map,
691
+ ).data
692
+
693
+
694
+ @validate_call
695
+ def get_prescription_change_requests_with_http_info(
696
+ self,
697
+ prescription_id: StrictStr,
698
+ status: Annotated[Optional[StrictStr], Field(description="Whether the message has been completed or not")] = None,
699
+ _request_timeout: Union[
700
+ None,
701
+ Annotated[StrictFloat, Field(gt=0)],
702
+ Tuple[
703
+ Annotated[StrictFloat, Field(gt=0)],
704
+ Annotated[StrictFloat, Field(gt=0)]
705
+ ]
706
+ ] = None,
707
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
708
+ _content_type: Optional[StrictStr] = None,
709
+ _headers: Optional[Dict[StrictStr, Any]] = None,
710
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
711
+ ) -> ApiResponse[List[PrescriptionChangeRequestAndResponse]]:
712
+ """Get all prescription change requests for a prescription
713
+
714
+
715
+ :param prescription_id: (required)
716
+ :type prescription_id: str
717
+ :param status: Whether the message has been completed or not
718
+ :type status: str
719
+ :param _request_timeout: timeout setting for this request. If one
720
+ number provided, it will be total request
721
+ timeout. It can also be a pair (tuple) of
722
+ (connection, read) timeouts.
723
+ :type _request_timeout: int, tuple(int, int), optional
724
+ :param _request_auth: set to override the auth_settings for an a single
725
+ request; this effectively ignores the
726
+ authentication in the spec for a single request.
727
+ :type _request_auth: dict, optional
728
+ :param _content_type: force content-type for the request.
729
+ :type _content_type: str, Optional
730
+ :param _headers: set to override the headers for a single
731
+ request; this effectively ignores the headers
732
+ in the spec for a single request.
733
+ :type _headers: dict, optional
734
+ :param _host_index: set to override the host_index for a single
735
+ request; this effectively ignores the host_index
736
+ in the spec for a single request.
737
+ :type _host_index: int, optional
738
+ :return: Returns the result object.
739
+ """ # noqa: E501
740
+
741
+ _param = self._get_prescription_change_requests_serialize(
742
+ prescription_id=prescription_id,
743
+ status=status,
744
+ _request_auth=_request_auth,
745
+ _content_type=_content_type,
746
+ _headers=_headers,
747
+ _host_index=_host_index
748
+ )
749
+
750
+ _response_types_map: Dict[str, Optional[str]] = {
751
+ '200': "List[PrescriptionChangeRequestAndResponse]",
752
+ '404': None,
753
+ }
754
+ response_data = self.api_client.call_api(
755
+ *_param,
756
+ _request_timeout=_request_timeout
757
+ )
758
+ response_data.read()
759
+ return self.api_client.response_deserialize(
760
+ response_data=response_data,
761
+ response_types_map=_response_types_map,
762
+ )
763
+
764
+
765
+ @validate_call
766
+ def get_prescription_change_requests_without_preload_content(
767
+ self,
768
+ prescription_id: StrictStr,
769
+ status: Annotated[Optional[StrictStr], Field(description="Whether the message has been completed or not")] = None,
770
+ _request_timeout: Union[
771
+ None,
772
+ Annotated[StrictFloat, Field(gt=0)],
773
+ Tuple[
774
+ Annotated[StrictFloat, Field(gt=0)],
775
+ Annotated[StrictFloat, Field(gt=0)]
776
+ ]
777
+ ] = None,
778
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
779
+ _content_type: Optional[StrictStr] = None,
780
+ _headers: Optional[Dict[StrictStr, Any]] = None,
781
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
782
+ ) -> RESTResponseType:
783
+ """Get all prescription change requests for a prescription
784
+
785
+
786
+ :param prescription_id: (required)
787
+ :type prescription_id: str
788
+ :param status: Whether the message has been completed or not
789
+ :type status: str
790
+ :param _request_timeout: timeout setting for this request. If one
791
+ number provided, it will be total request
792
+ timeout. It can also be a pair (tuple) of
793
+ (connection, read) timeouts.
794
+ :type _request_timeout: int, tuple(int, int), optional
795
+ :param _request_auth: set to override the auth_settings for an a single
796
+ request; this effectively ignores the
797
+ authentication in the spec for a single request.
798
+ :type _request_auth: dict, optional
799
+ :param _content_type: force content-type for the request.
800
+ :type _content_type: str, Optional
801
+ :param _headers: set to override the headers for a single
802
+ request; this effectively ignores the headers
803
+ in the spec for a single request.
804
+ :type _headers: dict, optional
805
+ :param _host_index: set to override the host_index for a single
806
+ request; this effectively ignores the host_index
807
+ in the spec for a single request.
808
+ :type _host_index: int, optional
809
+ :return: Returns the result object.
810
+ """ # noqa: E501
811
+
812
+ _param = self._get_prescription_change_requests_serialize(
813
+ prescription_id=prescription_id,
814
+ status=status,
815
+ _request_auth=_request_auth,
816
+ _content_type=_content_type,
817
+ _headers=_headers,
818
+ _host_index=_host_index
819
+ )
820
+
821
+ _response_types_map: Dict[str, Optional[str]] = {
822
+ '200': "List[PrescriptionChangeRequestAndResponse]",
823
+ '404': None,
824
+ }
825
+ response_data = self.api_client.call_api(
826
+ *_param,
827
+ _request_timeout=_request_timeout
828
+ )
829
+ return response_data.response
830
+
831
+
832
+ def _get_prescription_change_requests_serialize(
833
+ self,
834
+ prescription_id,
835
+ status,
836
+ _request_auth,
837
+ _content_type,
838
+ _headers,
839
+ _host_index,
840
+ ) -> RequestSerialized:
841
+
842
+ _host = None
843
+
844
+ _collection_formats: Dict[str, str] = {
845
+ }
846
+
847
+ _path_params: Dict[str, str] = {}
848
+ _query_params: List[Tuple[str, str]] = []
849
+ _header_params: Dict[str, Optional[str]] = _headers or {}
850
+ _form_params: List[Tuple[str, str]] = []
851
+ _files: Dict[
852
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
853
+ ] = {}
854
+ _body_params: Optional[bytes] = None
855
+
856
+ # process the path parameters
857
+ if prescription_id is not None:
858
+ _path_params['prescription_id'] = prescription_id
859
+ # process the query parameters
860
+ if status is not None:
861
+
862
+ _query_params.append(('status', status))
863
+
864
+ # process the header parameters
865
+ # process the form parameters
866
+ # process the body parameter
867
+
868
+
869
+ # set the HTTP header `Accept`
870
+ if 'Accept' not in _header_params:
871
+ _header_params['Accept'] = self.api_client.select_header_accept(
872
+ [
873
+ 'application/json'
874
+ ]
875
+ )
876
+
877
+
878
+ # authentication setting
879
+ _auth_settings: List[str] = [
880
+ 'opaque_token'
881
+ ]
882
+
883
+ return self.api_client.param_serialize(
884
+ method='GET',
885
+ resource_path='/swifty/1/prescriptions/{prescription_id}/change_requests',
886
+ path_params=_path_params,
887
+ query_params=_query_params,
888
+ header_params=_header_params,
889
+ body=_body_params,
890
+ post_params=_form_params,
891
+ files=_files,
892
+ auth_settings=_auth_settings,
893
+ collection_formats=_collection_formats,
894
+ _host=_host,
895
+ _request_auth=_request_auth
896
+ )
897
+
898
+
899
+
900
+
901
+ @validate_call
902
+ def get_prescription_issues(
903
+ self,
904
+ prescription_id: StrictStr,
905
+ _request_timeout: Union[
906
+ None,
907
+ Annotated[StrictFloat, Field(gt=0)],
908
+ Tuple[
909
+ Annotated[StrictFloat, Field(gt=0)],
910
+ Annotated[StrictFloat, Field(gt=0)]
911
+ ]
912
+ ] = None,
913
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
914
+ _content_type: Optional[StrictStr] = None,
915
+ _headers: Optional[Dict[StrictStr, Any]] = None,
916
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
917
+ ) -> List[PrescriptionIssue]:
918
+ """Get all issues for a prescription
919
+
920
+
921
+ :param prescription_id: (required)
922
+ :type prescription_id: str
923
+ :param _request_timeout: timeout setting for this request. If one
924
+ number provided, it will be total request
925
+ timeout. It can also be a pair (tuple) of
926
+ (connection, read) timeouts.
927
+ :type _request_timeout: int, tuple(int, int), optional
928
+ :param _request_auth: set to override the auth_settings for an a single
929
+ request; this effectively ignores the
930
+ authentication in the spec for a single request.
931
+ :type _request_auth: dict, optional
932
+ :param _content_type: force content-type for the request.
933
+ :type _content_type: str, Optional
934
+ :param _headers: set to override the headers for a single
935
+ request; this effectively ignores the headers
936
+ in the spec for a single request.
937
+ :type _headers: dict, optional
938
+ :param _host_index: set to override the host_index for a single
939
+ request; this effectively ignores the host_index
940
+ in the spec for a single request.
941
+ :type _host_index: int, optional
942
+ :return: Returns the result object.
943
+ """ # noqa: E501
944
+
945
+ _param = self._get_prescription_issues_serialize(
946
+ prescription_id=prescription_id,
947
+ _request_auth=_request_auth,
948
+ _content_type=_content_type,
949
+ _headers=_headers,
950
+ _host_index=_host_index
951
+ )
952
+
953
+ _response_types_map: Dict[str, Optional[str]] = {
954
+ '200': "List[PrescriptionIssue]",
955
+ '404': None,
956
+ }
957
+ response_data = self.api_client.call_api(
958
+ *_param,
959
+ _request_timeout=_request_timeout
960
+ )
961
+ response_data.read()
962
+ return self.api_client.response_deserialize(
963
+ response_data=response_data,
964
+ response_types_map=_response_types_map,
965
+ ).data
966
+
967
+
968
+ @validate_call
969
+ def get_prescription_issues_with_http_info(
343
970
  self,
344
971
  prescription_id: StrictStr,
345
- prescription_change_request: Optional[PrescriptionChangeRequest] = None,
346
972
  _request_timeout: Union[
347
973
  None,
348
974
  Annotated[StrictFloat, Field(gt=0)],
@@ -355,14 +981,12 @@ class PrescriptionApi:
355
981
  _content_type: Optional[StrictStr] = None,
356
982
  _headers: Optional[Dict[StrictStr, Any]] = None,
357
983
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
358
- ) -> List[PrescriptionChangeRequest]:
359
- """Create a new prescription change request
984
+ ) -> ApiResponse[List[PrescriptionIssue]]:
985
+ """Get all issues for a prescription
360
986
 
361
987
 
362
988
  :param prescription_id: (required)
363
989
  :type prescription_id: str
364
- :param prescription_change_request:
365
- :type prescription_change_request: PrescriptionChangeRequest
366
990
  :param _request_timeout: timeout setting for this request. If one
367
991
  number provided, it will be total request
368
992
  timeout. It can also be a pair (tuple) of
@@ -385,9 +1009,8 @@ class PrescriptionApi:
385
1009
  :return: Returns the result object.
386
1010
  """ # noqa: E501
387
1011
 
388
- _param = self._create_prescription_change_request_serialize(
1012
+ _param = self._get_prescription_issues_serialize(
389
1013
  prescription_id=prescription_id,
390
- prescription_change_request=prescription_change_request,
391
1014
  _request_auth=_request_auth,
392
1015
  _content_type=_content_type,
393
1016
  _headers=_headers,
@@ -395,10 +1018,210 @@ class PrescriptionApi:
395
1018
  )
396
1019
 
397
1020
  _response_types_map: Dict[str, Optional[str]] = {
398
- '201': "List[PrescriptionChangeRequest]",
399
- '400': None,
1021
+ '200': "List[PrescriptionIssue]",
1022
+ '404': None,
1023
+ }
1024
+ response_data = self.api_client.call_api(
1025
+ *_param,
1026
+ _request_timeout=_request_timeout
1027
+ )
1028
+ response_data.read()
1029
+ return self.api_client.response_deserialize(
1030
+ response_data=response_data,
1031
+ response_types_map=_response_types_map,
1032
+ )
1033
+
1034
+
1035
+ @validate_call
1036
+ def get_prescription_issues_without_preload_content(
1037
+ self,
1038
+ prescription_id: StrictStr,
1039
+ _request_timeout: Union[
1040
+ None,
1041
+ Annotated[StrictFloat, Field(gt=0)],
1042
+ Tuple[
1043
+ Annotated[StrictFloat, Field(gt=0)],
1044
+ Annotated[StrictFloat, Field(gt=0)]
1045
+ ]
1046
+ ] = None,
1047
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1048
+ _content_type: Optional[StrictStr] = None,
1049
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1050
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1051
+ ) -> RESTResponseType:
1052
+ """Get all issues for a prescription
1053
+
1054
+
1055
+ :param prescription_id: (required)
1056
+ :type prescription_id: str
1057
+ :param _request_timeout: timeout setting for this request. If one
1058
+ number provided, it will be total request
1059
+ timeout. It can also be a pair (tuple) of
1060
+ (connection, read) timeouts.
1061
+ :type _request_timeout: int, tuple(int, int), optional
1062
+ :param _request_auth: set to override the auth_settings for an a single
1063
+ request; this effectively ignores the
1064
+ authentication in the spec for a single request.
1065
+ :type _request_auth: dict, optional
1066
+ :param _content_type: force content-type for the request.
1067
+ :type _content_type: str, Optional
1068
+ :param _headers: set to override the headers for a single
1069
+ request; this effectively ignores the headers
1070
+ in the spec for a single request.
1071
+ :type _headers: dict, optional
1072
+ :param _host_index: set to override the host_index for a single
1073
+ request; this effectively ignores the host_index
1074
+ in the spec for a single request.
1075
+ :type _host_index: int, optional
1076
+ :return: Returns the result object.
1077
+ """ # noqa: E501
1078
+
1079
+ _param = self._get_prescription_issues_serialize(
1080
+ prescription_id=prescription_id,
1081
+ _request_auth=_request_auth,
1082
+ _content_type=_content_type,
1083
+ _headers=_headers,
1084
+ _host_index=_host_index
1085
+ )
1086
+
1087
+ _response_types_map: Dict[str, Optional[str]] = {
1088
+ '200': "List[PrescriptionIssue]",
1089
+ '404': None,
1090
+ }
1091
+ response_data = self.api_client.call_api(
1092
+ *_param,
1093
+ _request_timeout=_request_timeout
1094
+ )
1095
+ return response_data.response
1096
+
1097
+
1098
+ def _get_prescription_issues_serialize(
1099
+ self,
1100
+ prescription_id,
1101
+ _request_auth,
1102
+ _content_type,
1103
+ _headers,
1104
+ _host_index,
1105
+ ) -> RequestSerialized:
1106
+
1107
+ _host = None
1108
+
1109
+ _collection_formats: Dict[str, str] = {
1110
+ }
1111
+
1112
+ _path_params: Dict[str, str] = {}
1113
+ _query_params: List[Tuple[str, str]] = []
1114
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1115
+ _form_params: List[Tuple[str, str]] = []
1116
+ _files: Dict[
1117
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1118
+ ] = {}
1119
+ _body_params: Optional[bytes] = None
1120
+
1121
+ # process the path parameters
1122
+ if prescription_id is not None:
1123
+ _path_params['prescription_id'] = prescription_id
1124
+ # process the query parameters
1125
+ # process the header parameters
1126
+ # process the form parameters
1127
+ # process the body parameter
1128
+
1129
+
1130
+ # set the HTTP header `Accept`
1131
+ if 'Accept' not in _header_params:
1132
+ _header_params['Accept'] = self.api_client.select_header_accept(
1133
+ [
1134
+ 'application/json'
1135
+ ]
1136
+ )
1137
+
1138
+
1139
+ # authentication setting
1140
+ _auth_settings: List[str] = [
1141
+ 'opaque_token'
1142
+ ]
1143
+
1144
+ return self.api_client.param_serialize(
1145
+ method='GET',
1146
+ resource_path='/swifty/1/prescriptions/{prescription_id}/issues',
1147
+ path_params=_path_params,
1148
+ query_params=_query_params,
1149
+ header_params=_header_params,
1150
+ body=_body_params,
1151
+ post_params=_form_params,
1152
+ files=_files,
1153
+ auth_settings=_auth_settings,
1154
+ collection_formats=_collection_formats,
1155
+ _host=_host,
1156
+ _request_auth=_request_auth
1157
+ )
1158
+
1159
+
1160
+
1161
+
1162
+ @validate_call
1163
+ def get_prescription_messages(
1164
+ self,
1165
+ prescription_id: StrictStr,
1166
+ message_type: Optional[StrictStr] = None,
1167
+ completed: Optional[StrictBool] = None,
1168
+ _request_timeout: Union[
1169
+ None,
1170
+ Annotated[StrictFloat, Field(gt=0)],
1171
+ Tuple[
1172
+ Annotated[StrictFloat, Field(gt=0)],
1173
+ Annotated[StrictFloat, Field(gt=0)]
1174
+ ]
1175
+ ] = None,
1176
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1177
+ _content_type: Optional[StrictStr] = None,
1178
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1179
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1180
+ ) -> List[PrescriptionMessage]:
1181
+ """Get all prescription messages for a prescription
1182
+
1183
+
1184
+ :param prescription_id: (required)
1185
+ :type prescription_id: str
1186
+ :param message_type:
1187
+ :type message_type: str
1188
+ :param completed:
1189
+ :type completed: bool
1190
+ :param _request_timeout: timeout setting for this request. If one
1191
+ number provided, it will be total request
1192
+ timeout. It can also be a pair (tuple) of
1193
+ (connection, read) timeouts.
1194
+ :type _request_timeout: int, tuple(int, int), optional
1195
+ :param _request_auth: set to override the auth_settings for an a single
1196
+ request; this effectively ignores the
1197
+ authentication in the spec for a single request.
1198
+ :type _request_auth: dict, optional
1199
+ :param _content_type: force content-type for the request.
1200
+ :type _content_type: str, Optional
1201
+ :param _headers: set to override the headers for a single
1202
+ request; this effectively ignores the headers
1203
+ in the spec for a single request.
1204
+ :type _headers: dict, optional
1205
+ :param _host_index: set to override the host_index for a single
1206
+ request; this effectively ignores the host_index
1207
+ in the spec for a single request.
1208
+ :type _host_index: int, optional
1209
+ :return: Returns the result object.
1210
+ """ # noqa: E501
1211
+
1212
+ _param = self._get_prescription_messages_serialize(
1213
+ prescription_id=prescription_id,
1214
+ message_type=message_type,
1215
+ completed=completed,
1216
+ _request_auth=_request_auth,
1217
+ _content_type=_content_type,
1218
+ _headers=_headers,
1219
+ _host_index=_host_index
1220
+ )
1221
+
1222
+ _response_types_map: Dict[str, Optional[str]] = {
1223
+ '200': "List[PrescriptionMessage]",
400
1224
  '404': None,
401
- '409': None,
402
1225
  }
403
1226
  response_data = self.api_client.call_api(
404
1227
  *_param,
@@ -412,10 +1235,11 @@ class PrescriptionApi:
412
1235
 
413
1236
 
414
1237
  @validate_call
415
- def create_prescription_change_request_with_http_info(
1238
+ def get_prescription_messages_with_http_info(
416
1239
  self,
417
1240
  prescription_id: StrictStr,
418
- prescription_change_request: Optional[PrescriptionChangeRequest] = None,
1241
+ message_type: Optional[StrictStr] = None,
1242
+ completed: Optional[StrictBool] = None,
419
1243
  _request_timeout: Union[
420
1244
  None,
421
1245
  Annotated[StrictFloat, Field(gt=0)],
@@ -428,14 +1252,16 @@ class PrescriptionApi:
428
1252
  _content_type: Optional[StrictStr] = None,
429
1253
  _headers: Optional[Dict[StrictStr, Any]] = None,
430
1254
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
431
- ) -> ApiResponse[List[PrescriptionChangeRequest]]:
432
- """Create a new prescription change request
1255
+ ) -> ApiResponse[List[PrescriptionMessage]]:
1256
+ """Get all prescription messages for a prescription
433
1257
 
434
1258
 
435
1259
  :param prescription_id: (required)
436
1260
  :type prescription_id: str
437
- :param prescription_change_request:
438
- :type prescription_change_request: PrescriptionChangeRequest
1261
+ :param message_type:
1262
+ :type message_type: str
1263
+ :param completed:
1264
+ :type completed: bool
439
1265
  :param _request_timeout: timeout setting for this request. If one
440
1266
  number provided, it will be total request
441
1267
  timeout. It can also be a pair (tuple) of
@@ -458,9 +1284,10 @@ class PrescriptionApi:
458
1284
  :return: Returns the result object.
459
1285
  """ # noqa: E501
460
1286
 
461
- _param = self._create_prescription_change_request_serialize(
1287
+ _param = self._get_prescription_messages_serialize(
462
1288
  prescription_id=prescription_id,
463
- prescription_change_request=prescription_change_request,
1289
+ message_type=message_type,
1290
+ completed=completed,
464
1291
  _request_auth=_request_auth,
465
1292
  _content_type=_content_type,
466
1293
  _headers=_headers,
@@ -468,10 +1295,8 @@ class PrescriptionApi:
468
1295
  )
469
1296
 
470
1297
  _response_types_map: Dict[str, Optional[str]] = {
471
- '201': "List[PrescriptionChangeRequest]",
472
- '400': None,
1298
+ '200': "List[PrescriptionMessage]",
473
1299
  '404': None,
474
- '409': None,
475
1300
  }
476
1301
  response_data = self.api_client.call_api(
477
1302
  *_param,
@@ -485,10 +1310,11 @@ class PrescriptionApi:
485
1310
 
486
1311
 
487
1312
  @validate_call
488
- def create_prescription_change_request_without_preload_content(
1313
+ def get_prescription_messages_without_preload_content(
489
1314
  self,
490
1315
  prescription_id: StrictStr,
491
- prescription_change_request: Optional[PrescriptionChangeRequest] = None,
1316
+ message_type: Optional[StrictStr] = None,
1317
+ completed: Optional[StrictBool] = None,
492
1318
  _request_timeout: Union[
493
1319
  None,
494
1320
  Annotated[StrictFloat, Field(gt=0)],
@@ -502,13 +1328,15 @@ class PrescriptionApi:
502
1328
  _headers: Optional[Dict[StrictStr, Any]] = None,
503
1329
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
504
1330
  ) -> RESTResponseType:
505
- """Create a new prescription change request
1331
+ """Get all prescription messages for a prescription
506
1332
 
507
1333
 
508
1334
  :param prescription_id: (required)
509
1335
  :type prescription_id: str
510
- :param prescription_change_request:
511
- :type prescription_change_request: PrescriptionChangeRequest
1336
+ :param message_type:
1337
+ :type message_type: str
1338
+ :param completed:
1339
+ :type completed: bool
512
1340
  :param _request_timeout: timeout setting for this request. If one
513
1341
  number provided, it will be total request
514
1342
  timeout. It can also be a pair (tuple) of
@@ -531,9 +1359,10 @@ class PrescriptionApi:
531
1359
  :return: Returns the result object.
532
1360
  """ # noqa: E501
533
1361
 
534
- _param = self._create_prescription_change_request_serialize(
1362
+ _param = self._get_prescription_messages_serialize(
535
1363
  prescription_id=prescription_id,
536
- prescription_change_request=prescription_change_request,
1364
+ message_type=message_type,
1365
+ completed=completed,
537
1366
  _request_auth=_request_auth,
538
1367
  _content_type=_content_type,
539
1368
  _headers=_headers,
@@ -541,10 +1370,8 @@ class PrescriptionApi:
541
1370
  )
542
1371
 
543
1372
  _response_types_map: Dict[str, Optional[str]] = {
544
- '201': "List[PrescriptionChangeRequest]",
545
- '400': None,
1373
+ '200': "List[PrescriptionMessage]",
546
1374
  '404': None,
547
- '409': None,
548
1375
  }
549
1376
  response_data = self.api_client.call_api(
550
1377
  *_param,
@@ -553,10 +1380,11 @@ class PrescriptionApi:
553
1380
  return response_data.response
554
1381
 
555
1382
 
556
- def _create_prescription_change_request_serialize(
1383
+ def _get_prescription_messages_serialize(
557
1384
  self,
558
1385
  prescription_id,
559
- prescription_change_request,
1386
+ message_type,
1387
+ completed,
560
1388
  _request_auth,
561
1389
  _content_type,
562
1390
  _headers,
@@ -581,11 +1409,17 @@ class PrescriptionApi:
581
1409
  if prescription_id is not None:
582
1410
  _path_params['prescription_id'] = prescription_id
583
1411
  # process the query parameters
1412
+ if message_type is not None:
1413
+
1414
+ _query_params.append(('message_type', message_type))
1415
+
1416
+ if completed is not None:
1417
+
1418
+ _query_params.append(('completed', completed))
1419
+
584
1420
  # process the header parameters
585
1421
  # process the form parameters
586
1422
  # process the body parameter
587
- if prescription_change_request is not None:
588
- _body_params = prescription_change_request
589
1423
 
590
1424
 
591
1425
  # set the HTTP header `Accept`
@@ -596,19 +1430,6 @@ class PrescriptionApi:
596
1430
  ]
597
1431
  )
598
1432
 
599
- # set the HTTP header `Content-Type`
600
- if _content_type:
601
- _header_params['Content-Type'] = _content_type
602
- else:
603
- _default_content_type = (
604
- self.api_client.select_header_content_type(
605
- [
606
- 'application/json'
607
- ]
608
- )
609
- )
610
- if _default_content_type is not None:
611
- _header_params['Content-Type'] = _default_content_type
612
1433
 
613
1434
  # authentication setting
614
1435
  _auth_settings: List[str] = [
@@ -616,8 +1437,8 @@ class PrescriptionApi:
616
1437
  ]
617
1438
 
618
1439
  return self.api_client.param_serialize(
619
- method='POST',
620
- resource_path='/swifty/1/prescriptions/{prescription_id}/change_requests',
1440
+ method='GET',
1441
+ resource_path='/swifty/1/prescriptions/{prescription_id}/messages',
621
1442
  path_params=_path_params,
622
1443
  query_params=_query_params,
623
1444
  header_params=_header_params,
@@ -634,10 +1455,9 @@ class PrescriptionApi:
634
1455
 
635
1456
 
636
1457
  @validate_call
637
- def get_prescription(
1458
+ def get_prescription_patches(
638
1459
  self,
639
1460
  prescription_id: StrictStr,
640
- deep: Optional[StrictBool] = None,
641
1461
  _request_timeout: Union[
642
1462
  None,
643
1463
  Annotated[StrictFloat, Field(gt=0)],
@@ -650,14 +1470,12 @@ class PrescriptionApi:
650
1470
  _content_type: Optional[StrictStr] = None,
651
1471
  _headers: Optional[Dict[StrictStr, Any]] = None,
652
1472
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
653
- ) -> Prescription:
654
- """Get a prescription by UUID or RxNumber
1473
+ ) -> List[PrescriptionPatch]:
1474
+ """Get all patches for a prescription
655
1475
 
656
1476
 
657
1477
  :param prescription_id: (required)
658
1478
  :type prescription_id: str
659
- :param deep:
660
- :type deep: bool
661
1479
  :param _request_timeout: timeout setting for this request. If one
662
1480
  number provided, it will be total request
663
1481
  timeout. It can also be a pair (tuple) of
@@ -680,9 +1498,8 @@ class PrescriptionApi:
680
1498
  :return: Returns the result object.
681
1499
  """ # noqa: E501
682
1500
 
683
- _param = self._get_prescription_serialize(
1501
+ _param = self._get_prescription_patches_serialize(
684
1502
  prescription_id=prescription_id,
685
- deep=deep,
686
1503
  _request_auth=_request_auth,
687
1504
  _content_type=_content_type,
688
1505
  _headers=_headers,
@@ -690,7 +1507,7 @@ class PrescriptionApi:
690
1507
  )
691
1508
 
692
1509
  _response_types_map: Dict[str, Optional[str]] = {
693
- '200': "Prescription",
1510
+ '200': "List[PrescriptionPatch]",
694
1511
  '404': None,
695
1512
  }
696
1513
  response_data = self.api_client.call_api(
@@ -705,10 +1522,9 @@ class PrescriptionApi:
705
1522
 
706
1523
 
707
1524
  @validate_call
708
- def get_prescription_with_http_info(
1525
+ def get_prescription_patches_with_http_info(
709
1526
  self,
710
1527
  prescription_id: StrictStr,
711
- deep: Optional[StrictBool] = None,
712
1528
  _request_timeout: Union[
713
1529
  None,
714
1530
  Annotated[StrictFloat, Field(gt=0)],
@@ -721,14 +1537,12 @@ class PrescriptionApi:
721
1537
  _content_type: Optional[StrictStr] = None,
722
1538
  _headers: Optional[Dict[StrictStr, Any]] = None,
723
1539
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
724
- ) -> ApiResponse[Prescription]:
725
- """Get a prescription by UUID or RxNumber
1540
+ ) -> ApiResponse[List[PrescriptionPatch]]:
1541
+ """Get all patches for a prescription
726
1542
 
727
1543
 
728
1544
  :param prescription_id: (required)
729
1545
  :type prescription_id: str
730
- :param deep:
731
- :type deep: bool
732
1546
  :param _request_timeout: timeout setting for this request. If one
733
1547
  number provided, it will be total request
734
1548
  timeout. It can also be a pair (tuple) of
@@ -751,9 +1565,8 @@ class PrescriptionApi:
751
1565
  :return: Returns the result object.
752
1566
  """ # noqa: E501
753
1567
 
754
- _param = self._get_prescription_serialize(
1568
+ _param = self._get_prescription_patches_serialize(
755
1569
  prescription_id=prescription_id,
756
- deep=deep,
757
1570
  _request_auth=_request_auth,
758
1571
  _content_type=_content_type,
759
1572
  _headers=_headers,
@@ -761,7 +1574,7 @@ class PrescriptionApi:
761
1574
  )
762
1575
 
763
1576
  _response_types_map: Dict[str, Optional[str]] = {
764
- '200': "Prescription",
1577
+ '200': "List[PrescriptionPatch]",
765
1578
  '404': None,
766
1579
  }
767
1580
  response_data = self.api_client.call_api(
@@ -776,10 +1589,9 @@ class PrescriptionApi:
776
1589
 
777
1590
 
778
1591
  @validate_call
779
- def get_prescription_without_preload_content(
1592
+ def get_prescription_patches_without_preload_content(
780
1593
  self,
781
1594
  prescription_id: StrictStr,
782
- deep: Optional[StrictBool] = None,
783
1595
  _request_timeout: Union[
784
1596
  None,
785
1597
  Annotated[StrictFloat, Field(gt=0)],
@@ -793,13 +1605,11 @@ class PrescriptionApi:
793
1605
  _headers: Optional[Dict[StrictStr, Any]] = None,
794
1606
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
795
1607
  ) -> RESTResponseType:
796
- """Get a prescription by UUID or RxNumber
1608
+ """Get all patches for a prescription
797
1609
 
798
1610
 
799
1611
  :param prescription_id: (required)
800
1612
  :type prescription_id: str
801
- :param deep:
802
- :type deep: bool
803
1613
  :param _request_timeout: timeout setting for this request. If one
804
1614
  number provided, it will be total request
805
1615
  timeout. It can also be a pair (tuple) of
@@ -822,9 +1632,8 @@ class PrescriptionApi:
822
1632
  :return: Returns the result object.
823
1633
  """ # noqa: E501
824
1634
 
825
- _param = self._get_prescription_serialize(
1635
+ _param = self._get_prescription_patches_serialize(
826
1636
  prescription_id=prescription_id,
827
- deep=deep,
828
1637
  _request_auth=_request_auth,
829
1638
  _content_type=_content_type,
830
1639
  _headers=_headers,
@@ -832,7 +1641,7 @@ class PrescriptionApi:
832
1641
  )
833
1642
 
834
1643
  _response_types_map: Dict[str, Optional[str]] = {
835
- '200': "Prescription",
1644
+ '200': "List[PrescriptionPatch]",
836
1645
  '404': None,
837
1646
  }
838
1647
  response_data = self.api_client.call_api(
@@ -842,10 +1651,9 @@ class PrescriptionApi:
842
1651
  return response_data.response
843
1652
 
844
1653
 
845
- def _get_prescription_serialize(
1654
+ def _get_prescription_patches_serialize(
846
1655
  self,
847
1656
  prescription_id,
848
- deep,
849
1657
  _request_auth,
850
1658
  _content_type,
851
1659
  _headers,
@@ -870,10 +1678,6 @@ class PrescriptionApi:
870
1678
  if prescription_id is not None:
871
1679
  _path_params['prescription_id'] = prescription_id
872
1680
  # process the query parameters
873
- if deep is not None:
874
-
875
- _query_params.append(('deep', deep))
876
-
877
1681
  # process the header parameters
878
1682
  # process the form parameters
879
1683
  # process the body parameter
@@ -895,7 +1699,7 @@ class PrescriptionApi:
895
1699
 
896
1700
  return self.api_client.param_serialize(
897
1701
  method='GET',
898
- resource_path='/swifty/1/prescriptions/{prescription_id}',
1702
+ resource_path='/swifty/1/prescriptions/{prescription_id}/patches',
899
1703
  path_params=_path_params,
900
1704
  query_params=_query_params,
901
1705
  header_params=_header_params,
@@ -912,7 +1716,7 @@ class PrescriptionApi:
912
1716
 
913
1717
 
914
1718
  @validate_call
915
- def get_prescription_change_requests(
1719
+ def get_prescription_tasks(
916
1720
  self,
917
1721
  prescription_id: StrictStr,
918
1722
  _request_timeout: Union[
@@ -927,8 +1731,8 @@ class PrescriptionApi:
927
1731
  _content_type: Optional[StrictStr] = None,
928
1732
  _headers: Optional[Dict[StrictStr, Any]] = None,
929
1733
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
930
- ) -> List[PrescriptionChangeRequest]:
931
- """Get a list of prescription change requests
1734
+ ) -> List[PrescriptionTask]:
1735
+ """Get all tasks for a prescription
932
1736
 
933
1737
 
934
1738
  :param prescription_id: (required)
@@ -955,7 +1759,7 @@ class PrescriptionApi:
955
1759
  :return: Returns the result object.
956
1760
  """ # noqa: E501
957
1761
 
958
- _param = self._get_prescription_change_requests_serialize(
1762
+ _param = self._get_prescription_tasks_serialize(
959
1763
  prescription_id=prescription_id,
960
1764
  _request_auth=_request_auth,
961
1765
  _content_type=_content_type,
@@ -964,7 +1768,7 @@ class PrescriptionApi:
964
1768
  )
965
1769
 
966
1770
  _response_types_map: Dict[str, Optional[str]] = {
967
- '200': "List[PrescriptionChangeRequest]",
1771
+ '200': "List[PrescriptionTask]",
968
1772
  '404': None,
969
1773
  }
970
1774
  response_data = self.api_client.call_api(
@@ -979,7 +1783,7 @@ class PrescriptionApi:
979
1783
 
980
1784
 
981
1785
  @validate_call
982
- def get_prescription_change_requests_with_http_info(
1786
+ def get_prescription_tasks_with_http_info(
983
1787
  self,
984
1788
  prescription_id: StrictStr,
985
1789
  _request_timeout: Union[
@@ -994,8 +1798,8 @@ class PrescriptionApi:
994
1798
  _content_type: Optional[StrictStr] = None,
995
1799
  _headers: Optional[Dict[StrictStr, Any]] = None,
996
1800
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
997
- ) -> ApiResponse[List[PrescriptionChangeRequest]]:
998
- """Get a list of prescription change requests
1801
+ ) -> ApiResponse[List[PrescriptionTask]]:
1802
+ """Get all tasks for a prescription
999
1803
 
1000
1804
 
1001
1805
  :param prescription_id: (required)
@@ -1022,7 +1826,7 @@ class PrescriptionApi:
1022
1826
  :return: Returns the result object.
1023
1827
  """ # noqa: E501
1024
1828
 
1025
- _param = self._get_prescription_change_requests_serialize(
1829
+ _param = self._get_prescription_tasks_serialize(
1026
1830
  prescription_id=prescription_id,
1027
1831
  _request_auth=_request_auth,
1028
1832
  _content_type=_content_type,
@@ -1031,7 +1835,7 @@ class PrescriptionApi:
1031
1835
  )
1032
1836
 
1033
1837
  _response_types_map: Dict[str, Optional[str]] = {
1034
- '200': "List[PrescriptionChangeRequest]",
1838
+ '200': "List[PrescriptionTask]",
1035
1839
  '404': None,
1036
1840
  }
1037
1841
  response_data = self.api_client.call_api(
@@ -1046,7 +1850,7 @@ class PrescriptionApi:
1046
1850
 
1047
1851
 
1048
1852
  @validate_call
1049
- def get_prescription_change_requests_without_preload_content(
1853
+ def get_prescription_tasks_without_preload_content(
1050
1854
  self,
1051
1855
  prescription_id: StrictStr,
1052
1856
  _request_timeout: Union[
@@ -1062,7 +1866,7 @@ class PrescriptionApi:
1062
1866
  _headers: Optional[Dict[StrictStr, Any]] = None,
1063
1867
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1064
1868
  ) -> RESTResponseType:
1065
- """Get a list of prescription change requests
1869
+ """Get all tasks for a prescription
1066
1870
 
1067
1871
 
1068
1872
  :param prescription_id: (required)
@@ -1089,7 +1893,7 @@ class PrescriptionApi:
1089
1893
  :return: Returns the result object.
1090
1894
  """ # noqa: E501
1091
1895
 
1092
- _param = self._get_prescription_change_requests_serialize(
1896
+ _param = self._get_prescription_tasks_serialize(
1093
1897
  prescription_id=prescription_id,
1094
1898
  _request_auth=_request_auth,
1095
1899
  _content_type=_content_type,
@@ -1098,7 +1902,7 @@ class PrescriptionApi:
1098
1902
  )
1099
1903
 
1100
1904
  _response_types_map: Dict[str, Optional[str]] = {
1101
- '200': "List[PrescriptionChangeRequest]",
1905
+ '200': "List[PrescriptionTask]",
1102
1906
  '404': None,
1103
1907
  }
1104
1908
  response_data = self.api_client.call_api(
@@ -1108,7 +1912,7 @@ class PrescriptionApi:
1108
1912
  return response_data.response
1109
1913
 
1110
1914
 
1111
- def _get_prescription_change_requests_serialize(
1915
+ def _get_prescription_tasks_serialize(
1112
1916
  self,
1113
1917
  prescription_id,
1114
1918
  _request_auth,
@@ -1156,7 +1960,7 @@ class PrescriptionApi:
1156
1960
 
1157
1961
  return self.api_client.param_serialize(
1158
1962
  method='GET',
1159
- resource_path='/swifty/1/prescriptions/{prescription_id}/change_requests',
1963
+ resource_path='/swifty/1/prescriptions/{prescription_id}/tasks',
1160
1964
  path_params=_path_params,
1161
1965
  query_params=_query_params,
1162
1966
  header_params=_header_params,
@@ -1175,15 +1979,15 @@ class PrescriptionApi:
1175
1979
  @validate_call
1176
1980
  def get_prescriptions(
1177
1981
  self,
1178
- rx_number: Annotated[Optional[StrictStr], Field(description="Filter prescriptions by RX number")] = None,
1982
+ rx_number: Annotated[Optional[StrictStr], Field(description="Filter prescriptions by RX number. This takes precedence over all other prescription identifying fields if set.")] = None,
1983
+ external_id: Annotated[Optional[StrictStr], Field(description="An external id to find the prescription by. Format is {slug}:{external_id}.")] = None,
1179
1984
  virtual_pharmacy_uuid: Annotated[Optional[StrictStr], Field(description="Filter prescriptions by virtual pharmacy UUID")] = None,
1180
1985
  patient_uuid: Annotated[Optional[StrictStr], Field(description="Filter prescriptions by patient UUID")] = None,
1181
1986
  prescriber_uuid: Annotated[Optional[StrictStr], Field(description="Filter prescriptions by prescriber UUID")] = None,
1182
1987
  medication_uuid: Annotated[Optional[StrictStr], Field(description="Filter prescriptions by medication UUID")] = None,
1183
- extra_filter: Optional[List[StrictStr]] = None,
1988
+ extra_filter: Annotated[Optional[List[StrictStr]], Field(description="Filter prescriptions by flags: - `needs_pv0` - needs pv0 verification. pv0 is a review that is meant to approximate a pv1 review. It is not a standard board of pharmacy workflow step. - `needs_pv1` - needs pv1 verification. pv1 is a review to ensure the prescription is accurate and that there are no adverse effects for the patient to take the medication based upon data provided by the patient (current medications, pregnacy status, allergies, current conditions). This is a standard board of pharmacy prescription workflow step. - `needs_pv2` - needs pv2 verification. pv2 is a final review to make sure the right medication has been dispensed to the patient in the correct quantity. This is a standard board of pharmacy prescription workflow step. - `needs_patient` - prescription has no matched patient - `has_open_issues` - issues have been flagged for the prescription that need to be reviewed - `has_pv0` - prescription has been verified at pv0 level - `has_pv1` - prescription has been verified at pv1 level - `has_pv2` - prescription has been verified at pv2 level - `has_patient` - patient has been successfully matched to the prescription - `notified` - a notification has been sent to the patient portal for this prescription - `not_notified` - a notification has not been sent to the patient portal for this prescription - `on_formulary` - prescription is on the formulary for the virtual pharmacy - `not_on_formulary` - prescription is not on the formulary for the virtual pharmacy - `transferred` - the prescription has been transferred to a dispensing pharmacy - `not_transferred` - the prescription has not been transferred to a dispensing pharmacy - `transfer_requested` - the prescription has been requested to be transferred to a dispensing pharmacy, but has not yet transferred - `open_change_request` - a change request has been requested for this prescription, but has not yet completed - `approved_change_request` - the most recent change request has been approved for this prescription - `denied_change_request` - the most recent change request has been denied for this prescription ")] = None,
1184
1989
  page: Optional[StrictInt] = None,
1185
1990
  results_per_page: Optional[StrictInt] = None,
1186
- deep: Optional[StrictBool] = None,
1187
1991
  _request_timeout: Union[
1188
1992
  None,
1189
1993
  Annotated[StrictFloat, Field(gt=0)],
@@ -1200,8 +2004,10 @@ class PrescriptionApi:
1200
2004
  """Get all prescriptions
1201
2005
 
1202
2006
 
1203
- :param rx_number: Filter prescriptions by RX number
2007
+ :param rx_number: Filter prescriptions by RX number. This takes precedence over all other prescription identifying fields if set.
1204
2008
  :type rx_number: str
2009
+ :param external_id: An external id to find the prescription by. Format is {slug}:{external_id}.
2010
+ :type external_id: str
1205
2011
  :param virtual_pharmacy_uuid: Filter prescriptions by virtual pharmacy UUID
1206
2012
  :type virtual_pharmacy_uuid: str
1207
2013
  :param patient_uuid: Filter prescriptions by patient UUID
@@ -1210,14 +2016,12 @@ class PrescriptionApi:
1210
2016
  :type prescriber_uuid: str
1211
2017
  :param medication_uuid: Filter prescriptions by medication UUID
1212
2018
  :type medication_uuid: str
1213
- :param extra_filter:
2019
+ :param extra_filter: Filter prescriptions by flags: - `needs_pv0` - needs pv0 verification. pv0 is a review that is meant to approximate a pv1 review. It is not a standard board of pharmacy workflow step. - `needs_pv1` - needs pv1 verification. pv1 is a review to ensure the prescription is accurate and that there are no adverse effects for the patient to take the medication based upon data provided by the patient (current medications, pregnacy status, allergies, current conditions). This is a standard board of pharmacy prescription workflow step. - `needs_pv2` - needs pv2 verification. pv2 is a final review to make sure the right medication has been dispensed to the patient in the correct quantity. This is a standard board of pharmacy prescription workflow step. - `needs_patient` - prescription has no matched patient - `has_open_issues` - issues have been flagged for the prescription that need to be reviewed - `has_pv0` - prescription has been verified at pv0 level - `has_pv1` - prescription has been verified at pv1 level - `has_pv2` - prescription has been verified at pv2 level - `has_patient` - patient has been successfully matched to the prescription - `notified` - a notification has been sent to the patient portal for this prescription - `not_notified` - a notification has not been sent to the patient portal for this prescription - `on_formulary` - prescription is on the formulary for the virtual pharmacy - `not_on_formulary` - prescription is not on the formulary for the virtual pharmacy - `transferred` - the prescription has been transferred to a dispensing pharmacy - `not_transferred` - the prescription has not been transferred to a dispensing pharmacy - `transfer_requested` - the prescription has been requested to be transferred to a dispensing pharmacy, but has not yet transferred - `open_change_request` - a change request has been requested for this prescription, but has not yet completed - `approved_change_request` - the most recent change request has been approved for this prescription - `denied_change_request` - the most recent change request has been denied for this prescription
1214
2020
  :type extra_filter: List[str]
1215
2021
  :param page:
1216
2022
  :type page: int
1217
2023
  :param results_per_page:
1218
2024
  :type results_per_page: int
1219
- :param deep:
1220
- :type deep: bool
1221
2025
  :param _request_timeout: timeout setting for this request. If one
1222
2026
  number provided, it will be total request
1223
2027
  timeout. It can also be a pair (tuple) of
@@ -1242,6 +2046,7 @@ class PrescriptionApi:
1242
2046
 
1243
2047
  _param = self._get_prescriptions_serialize(
1244
2048
  rx_number=rx_number,
2049
+ external_id=external_id,
1245
2050
  virtual_pharmacy_uuid=virtual_pharmacy_uuid,
1246
2051
  patient_uuid=patient_uuid,
1247
2052
  prescriber_uuid=prescriber_uuid,
@@ -1249,7 +2054,6 @@ class PrescriptionApi:
1249
2054
  extra_filter=extra_filter,
1250
2055
  page=page,
1251
2056
  results_per_page=results_per_page,
1252
- deep=deep,
1253
2057
  _request_auth=_request_auth,
1254
2058
  _content_type=_content_type,
1255
2059
  _headers=_headers,
@@ -1274,15 +2078,15 @@ class PrescriptionApi:
1274
2078
  @validate_call
1275
2079
  def get_prescriptions_with_http_info(
1276
2080
  self,
1277
- rx_number: Annotated[Optional[StrictStr], Field(description="Filter prescriptions by RX number")] = None,
2081
+ rx_number: Annotated[Optional[StrictStr], Field(description="Filter prescriptions by RX number. This takes precedence over all other prescription identifying fields if set.")] = None,
2082
+ external_id: Annotated[Optional[StrictStr], Field(description="An external id to find the prescription by. Format is {slug}:{external_id}.")] = None,
1278
2083
  virtual_pharmacy_uuid: Annotated[Optional[StrictStr], Field(description="Filter prescriptions by virtual pharmacy UUID")] = None,
1279
2084
  patient_uuid: Annotated[Optional[StrictStr], Field(description="Filter prescriptions by patient UUID")] = None,
1280
2085
  prescriber_uuid: Annotated[Optional[StrictStr], Field(description="Filter prescriptions by prescriber UUID")] = None,
1281
2086
  medication_uuid: Annotated[Optional[StrictStr], Field(description="Filter prescriptions by medication UUID")] = None,
1282
- extra_filter: Optional[List[StrictStr]] = None,
2087
+ extra_filter: Annotated[Optional[List[StrictStr]], Field(description="Filter prescriptions by flags: - `needs_pv0` - needs pv0 verification. pv0 is a review that is meant to approximate a pv1 review. It is not a standard board of pharmacy workflow step. - `needs_pv1` - needs pv1 verification. pv1 is a review to ensure the prescription is accurate and that there are no adverse effects for the patient to take the medication based upon data provided by the patient (current medications, pregnacy status, allergies, current conditions). This is a standard board of pharmacy prescription workflow step. - `needs_pv2` - needs pv2 verification. pv2 is a final review to make sure the right medication has been dispensed to the patient in the correct quantity. This is a standard board of pharmacy prescription workflow step. - `needs_patient` - prescription has no matched patient - `has_open_issues` - issues have been flagged for the prescription that need to be reviewed - `has_pv0` - prescription has been verified at pv0 level - `has_pv1` - prescription has been verified at pv1 level - `has_pv2` - prescription has been verified at pv2 level - `has_patient` - patient has been successfully matched to the prescription - `notified` - a notification has been sent to the patient portal for this prescription - `not_notified` - a notification has not been sent to the patient portal for this prescription - `on_formulary` - prescription is on the formulary for the virtual pharmacy - `not_on_formulary` - prescription is not on the formulary for the virtual pharmacy - `transferred` - the prescription has been transferred to a dispensing pharmacy - `not_transferred` - the prescription has not been transferred to a dispensing pharmacy - `transfer_requested` - the prescription has been requested to be transferred to a dispensing pharmacy, but has not yet transferred - `open_change_request` - a change request has been requested for this prescription, but has not yet completed - `approved_change_request` - the most recent change request has been approved for this prescription - `denied_change_request` - the most recent change request has been denied for this prescription ")] = None,
1283
2088
  page: Optional[StrictInt] = None,
1284
2089
  results_per_page: Optional[StrictInt] = None,
1285
- deep: Optional[StrictBool] = None,
1286
2090
  _request_timeout: Union[
1287
2091
  None,
1288
2092
  Annotated[StrictFloat, Field(gt=0)],
@@ -1299,8 +2103,10 @@ class PrescriptionApi:
1299
2103
  """Get all prescriptions
1300
2104
 
1301
2105
 
1302
- :param rx_number: Filter prescriptions by RX number
2106
+ :param rx_number: Filter prescriptions by RX number. This takes precedence over all other prescription identifying fields if set.
1303
2107
  :type rx_number: str
2108
+ :param external_id: An external id to find the prescription by. Format is {slug}:{external_id}.
2109
+ :type external_id: str
1304
2110
  :param virtual_pharmacy_uuid: Filter prescriptions by virtual pharmacy UUID
1305
2111
  :type virtual_pharmacy_uuid: str
1306
2112
  :param patient_uuid: Filter prescriptions by patient UUID
@@ -1309,14 +2115,12 @@ class PrescriptionApi:
1309
2115
  :type prescriber_uuid: str
1310
2116
  :param medication_uuid: Filter prescriptions by medication UUID
1311
2117
  :type medication_uuid: str
1312
- :param extra_filter:
2118
+ :param extra_filter: Filter prescriptions by flags: - `needs_pv0` - needs pv0 verification. pv0 is a review that is meant to approximate a pv1 review. It is not a standard board of pharmacy workflow step. - `needs_pv1` - needs pv1 verification. pv1 is a review to ensure the prescription is accurate and that there are no adverse effects for the patient to take the medication based upon data provided by the patient (current medications, pregnacy status, allergies, current conditions). This is a standard board of pharmacy prescription workflow step. - `needs_pv2` - needs pv2 verification. pv2 is a final review to make sure the right medication has been dispensed to the patient in the correct quantity. This is a standard board of pharmacy prescription workflow step. - `needs_patient` - prescription has no matched patient - `has_open_issues` - issues have been flagged for the prescription that need to be reviewed - `has_pv0` - prescription has been verified at pv0 level - `has_pv1` - prescription has been verified at pv1 level - `has_pv2` - prescription has been verified at pv2 level - `has_patient` - patient has been successfully matched to the prescription - `notified` - a notification has been sent to the patient portal for this prescription - `not_notified` - a notification has not been sent to the patient portal for this prescription - `on_formulary` - prescription is on the formulary for the virtual pharmacy - `not_on_formulary` - prescription is not on the formulary for the virtual pharmacy - `transferred` - the prescription has been transferred to a dispensing pharmacy - `not_transferred` - the prescription has not been transferred to a dispensing pharmacy - `transfer_requested` - the prescription has been requested to be transferred to a dispensing pharmacy, but has not yet transferred - `open_change_request` - a change request has been requested for this prescription, but has not yet completed - `approved_change_request` - the most recent change request has been approved for this prescription - `denied_change_request` - the most recent change request has been denied for this prescription
1313
2119
  :type extra_filter: List[str]
1314
2120
  :param page:
1315
2121
  :type page: int
1316
2122
  :param results_per_page:
1317
2123
  :type results_per_page: int
1318
- :param deep:
1319
- :type deep: bool
1320
2124
  :param _request_timeout: timeout setting for this request. If one
1321
2125
  number provided, it will be total request
1322
2126
  timeout. It can also be a pair (tuple) of
@@ -1341,6 +2145,7 @@ class PrescriptionApi:
1341
2145
 
1342
2146
  _param = self._get_prescriptions_serialize(
1343
2147
  rx_number=rx_number,
2148
+ external_id=external_id,
1344
2149
  virtual_pharmacy_uuid=virtual_pharmacy_uuid,
1345
2150
  patient_uuid=patient_uuid,
1346
2151
  prescriber_uuid=prescriber_uuid,
@@ -1348,7 +2153,6 @@ class PrescriptionApi:
1348
2153
  extra_filter=extra_filter,
1349
2154
  page=page,
1350
2155
  results_per_page=results_per_page,
1351
- deep=deep,
1352
2156
  _request_auth=_request_auth,
1353
2157
  _content_type=_content_type,
1354
2158
  _headers=_headers,
@@ -1373,15 +2177,15 @@ class PrescriptionApi:
1373
2177
  @validate_call
1374
2178
  def get_prescriptions_without_preload_content(
1375
2179
  self,
1376
- rx_number: Annotated[Optional[StrictStr], Field(description="Filter prescriptions by RX number")] = None,
2180
+ rx_number: Annotated[Optional[StrictStr], Field(description="Filter prescriptions by RX number. This takes precedence over all other prescription identifying fields if set.")] = None,
2181
+ external_id: Annotated[Optional[StrictStr], Field(description="An external id to find the prescription by. Format is {slug}:{external_id}.")] = None,
1377
2182
  virtual_pharmacy_uuid: Annotated[Optional[StrictStr], Field(description="Filter prescriptions by virtual pharmacy UUID")] = None,
1378
2183
  patient_uuid: Annotated[Optional[StrictStr], Field(description="Filter prescriptions by patient UUID")] = None,
1379
2184
  prescriber_uuid: Annotated[Optional[StrictStr], Field(description="Filter prescriptions by prescriber UUID")] = None,
1380
2185
  medication_uuid: Annotated[Optional[StrictStr], Field(description="Filter prescriptions by medication UUID")] = None,
1381
- extra_filter: Optional[List[StrictStr]] = None,
2186
+ extra_filter: Annotated[Optional[List[StrictStr]], Field(description="Filter prescriptions by flags: - `needs_pv0` - needs pv0 verification. pv0 is a review that is meant to approximate a pv1 review. It is not a standard board of pharmacy workflow step. - `needs_pv1` - needs pv1 verification. pv1 is a review to ensure the prescription is accurate and that there are no adverse effects for the patient to take the medication based upon data provided by the patient (current medications, pregnacy status, allergies, current conditions). This is a standard board of pharmacy prescription workflow step. - `needs_pv2` - needs pv2 verification. pv2 is a final review to make sure the right medication has been dispensed to the patient in the correct quantity. This is a standard board of pharmacy prescription workflow step. - `needs_patient` - prescription has no matched patient - `has_open_issues` - issues have been flagged for the prescription that need to be reviewed - `has_pv0` - prescription has been verified at pv0 level - `has_pv1` - prescription has been verified at pv1 level - `has_pv2` - prescription has been verified at pv2 level - `has_patient` - patient has been successfully matched to the prescription - `notified` - a notification has been sent to the patient portal for this prescription - `not_notified` - a notification has not been sent to the patient portal for this prescription - `on_formulary` - prescription is on the formulary for the virtual pharmacy - `not_on_formulary` - prescription is not on the formulary for the virtual pharmacy - `transferred` - the prescription has been transferred to a dispensing pharmacy - `not_transferred` - the prescription has not been transferred to a dispensing pharmacy - `transfer_requested` - the prescription has been requested to be transferred to a dispensing pharmacy, but has not yet transferred - `open_change_request` - a change request has been requested for this prescription, but has not yet completed - `approved_change_request` - the most recent change request has been approved for this prescription - `denied_change_request` - the most recent change request has been denied for this prescription ")] = None,
1382
2187
  page: Optional[StrictInt] = None,
1383
2188
  results_per_page: Optional[StrictInt] = None,
1384
- deep: Optional[StrictBool] = None,
1385
2189
  _request_timeout: Union[
1386
2190
  None,
1387
2191
  Annotated[StrictFloat, Field(gt=0)],
@@ -1398,8 +2202,10 @@ class PrescriptionApi:
1398
2202
  """Get all prescriptions
1399
2203
 
1400
2204
 
1401
- :param rx_number: Filter prescriptions by RX number
2205
+ :param rx_number: Filter prescriptions by RX number. This takes precedence over all other prescription identifying fields if set.
1402
2206
  :type rx_number: str
2207
+ :param external_id: An external id to find the prescription by. Format is {slug}:{external_id}.
2208
+ :type external_id: str
1403
2209
  :param virtual_pharmacy_uuid: Filter prescriptions by virtual pharmacy UUID
1404
2210
  :type virtual_pharmacy_uuid: str
1405
2211
  :param patient_uuid: Filter prescriptions by patient UUID
@@ -1408,14 +2214,12 @@ class PrescriptionApi:
1408
2214
  :type prescriber_uuid: str
1409
2215
  :param medication_uuid: Filter prescriptions by medication UUID
1410
2216
  :type medication_uuid: str
1411
- :param extra_filter:
2217
+ :param extra_filter: Filter prescriptions by flags: - `needs_pv0` - needs pv0 verification. pv0 is a review that is meant to approximate a pv1 review. It is not a standard board of pharmacy workflow step. - `needs_pv1` - needs pv1 verification. pv1 is a review to ensure the prescription is accurate and that there are no adverse effects for the patient to take the medication based upon data provided by the patient (current medications, pregnacy status, allergies, current conditions). This is a standard board of pharmacy prescription workflow step. - `needs_pv2` - needs pv2 verification. pv2 is a final review to make sure the right medication has been dispensed to the patient in the correct quantity. This is a standard board of pharmacy prescription workflow step. - `needs_patient` - prescription has no matched patient - `has_open_issues` - issues have been flagged for the prescription that need to be reviewed - `has_pv0` - prescription has been verified at pv0 level - `has_pv1` - prescription has been verified at pv1 level - `has_pv2` - prescription has been verified at pv2 level - `has_patient` - patient has been successfully matched to the prescription - `notified` - a notification has been sent to the patient portal for this prescription - `not_notified` - a notification has not been sent to the patient portal for this prescription - `on_formulary` - prescription is on the formulary for the virtual pharmacy - `not_on_formulary` - prescription is not on the formulary for the virtual pharmacy - `transferred` - the prescription has been transferred to a dispensing pharmacy - `not_transferred` - the prescription has not been transferred to a dispensing pharmacy - `transfer_requested` - the prescription has been requested to be transferred to a dispensing pharmacy, but has not yet transferred - `open_change_request` - a change request has been requested for this prescription, but has not yet completed - `approved_change_request` - the most recent change request has been approved for this prescription - `denied_change_request` - the most recent change request has been denied for this prescription
1412
2218
  :type extra_filter: List[str]
1413
2219
  :param page:
1414
2220
  :type page: int
1415
2221
  :param results_per_page:
1416
2222
  :type results_per_page: int
1417
- :param deep:
1418
- :type deep: bool
1419
2223
  :param _request_timeout: timeout setting for this request. If one
1420
2224
  number provided, it will be total request
1421
2225
  timeout. It can also be a pair (tuple) of
@@ -1440,6 +2244,7 @@ class PrescriptionApi:
1440
2244
 
1441
2245
  _param = self._get_prescriptions_serialize(
1442
2246
  rx_number=rx_number,
2247
+ external_id=external_id,
1443
2248
  virtual_pharmacy_uuid=virtual_pharmacy_uuid,
1444
2249
  patient_uuid=patient_uuid,
1445
2250
  prescriber_uuid=prescriber_uuid,
@@ -1447,7 +2252,6 @@ class PrescriptionApi:
1447
2252
  extra_filter=extra_filter,
1448
2253
  page=page,
1449
2254
  results_per_page=results_per_page,
1450
- deep=deep,
1451
2255
  _request_auth=_request_auth,
1452
2256
  _content_type=_content_type,
1453
2257
  _headers=_headers,
@@ -1468,6 +2272,7 @@ class PrescriptionApi:
1468
2272
  def _get_prescriptions_serialize(
1469
2273
  self,
1470
2274
  rx_number,
2275
+ external_id,
1471
2276
  virtual_pharmacy_uuid,
1472
2277
  patient_uuid,
1473
2278
  prescriber_uuid,
@@ -1475,7 +2280,6 @@ class PrescriptionApi:
1475
2280
  extra_filter,
1476
2281
  page,
1477
2282
  results_per_page,
1478
- deep,
1479
2283
  _request_auth,
1480
2284
  _content_type,
1481
2285
  _headers,
@@ -1503,6 +2307,10 @@ class PrescriptionApi:
1503
2307
 
1504
2308
  _query_params.append(('rx_number', rx_number))
1505
2309
 
2310
+ if external_id is not None:
2311
+
2312
+ _query_params.append(('external_id', external_id))
2313
+
1506
2314
  if virtual_pharmacy_uuid is not None:
1507
2315
 
1508
2316
  _query_params.append(('virtual_pharmacy_uuid', virtual_pharmacy_uuid))
@@ -1531,10 +2339,6 @@ class PrescriptionApi:
1531
2339
 
1532
2340
  _query_params.append(('results_per_page', results_per_page))
1533
2341
 
1534
- if deep is not None:
1535
-
1536
- _query_params.append(('deep', deep))
1537
-
1538
2342
  # process the header parameters
1539
2343
  # process the form parameters
1540
2344
  # process the body parameter