samplehc 0.17.0__py3-none-any.whl → 0.18.0__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.
- samplehc/_client.py +1 -38
- samplehc/_version.py +1 -1
- samplehc/resources/__init__.py +0 -14
- samplehc/resources/v2/__init__.py +0 -98
- samplehc/resources/v2/async_results.py +0 -79
- samplehc/resources/v2/documents/__init__.py +0 -14
- samplehc/resources/v2/documents/documents.py +0 -194
- samplehc/resources/v2/v2.py +0 -224
- samplehc/types/__init__.py +0 -5
- samplehc/types/v2/__init__.py +0 -53
- samplehc/types/v2/documents/__init__.py +0 -3
- {samplehc-0.17.0.dist-info → samplehc-0.18.0.dist-info}/METADATA +22 -27
- samplehc-0.18.0.dist-info/RECORD +92 -0
- samplehc/resources/v1/__init__.py +0 -19
- samplehc/resources/v1/v1.py +0 -298
- samplehc/resources/v2/clearinghouse/__init__.py +0 -47
- samplehc/resources/v2/clearinghouse/claim.py +0 -407
- samplehc/resources/v2/clearinghouse/clearinghouse.py +0 -844
- samplehc/resources/v2/clearinghouse/payers.py +0 -224
- samplehc/resources/v2/documents/pdf_template.py +0 -165
- samplehc/resources/v2/hie/__init__.py +0 -47
- samplehc/resources/v2/hie/adt.py +0 -249
- samplehc/resources/v2/hie/documents.py +0 -390
- samplehc/resources/v2/hie/hie.py +0 -134
- samplehc/resources/v2/integrations/__init__.py +0 -131
- samplehc/resources/v2/integrations/bank/__init__.py +0 -33
- samplehc/resources/v2/integrations/bank/bank.py +0 -102
- samplehc/resources/v2/integrations/bank/transactions.py +0 -185
- samplehc/resources/v2/integrations/careviso.py +0 -372
- samplehc/resources/v2/integrations/glidian/__init__.py +0 -33
- samplehc/resources/v2/integrations/glidian/glidian.py +0 -425
- samplehc/resources/v2/integrations/glidian/prior_authorizations/__init__.py +0 -33
- samplehc/resources/v2/integrations/glidian/prior_authorizations/clinical_questions.py +0 -276
- samplehc/resources/v2/integrations/glidian/prior_authorizations/prior_authorizations.py +0 -527
- samplehc/resources/v2/integrations/integrations.py +0 -326
- samplehc/resources/v2/integrations/kno2/__init__.py +0 -33
- samplehc/resources/v2/integrations/kno2/kno2.py +0 -102
- samplehc/resources/v2/integrations/kno2/messages.py +0 -260
- samplehc/resources/v2/integrations/salesforce.py +0 -277
- samplehc/resources/v2/integrations/snowflake.py +0 -173
- samplehc/resources/v2/integrations/wellsky/__init__.py +0 -33
- samplehc/resources/v2/integrations/wellsky/patients.py +0 -324
- samplehc/resources/v2/integrations/wellsky/wellsky.py +0 -102
- samplehc/resources/v2/integrations/xcures.py +0 -197
- samplehc/resources/v2/policies.py +0 -655
- samplehc/resources/v2/tasks/__init__.py +0 -33
- samplehc/resources/v2/tasks/state.py +0 -266
- samplehc/resources/v2/tasks/tasks.py +0 -754
- samplehc/resources/v2/workflow_runs/__init__.py +0 -33
- samplehc/resources/v2/workflow_runs/step.py +0 -169
- samplehc/resources/v2/workflow_runs/workflow_runs.py +0 -479
- samplehc/resources/v2/workflows.py +0 -377
- samplehc/types/v1/__init__.py +0 -3
- samplehc/types/v1_query_audit_logs_params.py +0 -12
- samplehc/types/v1_query_audit_logs_response.py +0 -16
- samplehc/types/v1_sql_execute_params.py +0 -27
- samplehc/types/v1_sql_execute_response.py +0 -27
- samplehc/types/v2/async_result_retrieve_response.py +0 -18
- samplehc/types/v2/clearinghouse/__init__.py +0 -9
- samplehc/types/v2/clearinghouse/claim_submit_params.py +0 -2693
- samplehc/types/v2/clearinghouse/claim_submit_response.py +0 -23
- samplehc/types/v2/clearinghouse/payer_list_response.py +0 -27
- samplehc/types/v2/clearinghouse/payer_search_params.py +0 -12
- samplehc/types/v2/clearinghouse/payer_search_response.py +0 -33
- samplehc/types/v2/clearinghouse_calculate_patient_cost_params.py +0 -3129
- samplehc/types/v2/clearinghouse_check_claim_status_params.py +0 -41
- samplehc/types/v2/clearinghouse_check_eligibility_params.py +0 -36
- samplehc/types/v2/clearinghouse_check_eligibility_response.py +0 -15
- samplehc/types/v2/clearinghouse_coordination_of_benefits_params.py +0 -35
- samplehc/types/v2/clearinghouse_run_discovery_params.py +0 -59
- samplehc/types/v2/clearinghouse_run_discovery_response.py +0 -13
- samplehc/types/v2/document_unzip_async_response.py +0 -12
- samplehc/types/v2/document_unzip_response.py +0 -20
- samplehc/types/v2/documents/pdf_template_retrieve_metadata_response.py +0 -17
- samplehc/types/v2/hie/__init__.py +0 -8
- samplehc/types/v2/hie/adt_subscribe_params.py +0 -92
- samplehc/types/v2/hie/document_query_params.py +0 -92
- samplehc/types/v2/hie/document_query_response.py +0 -16
- samplehc/types/v2/hie/document_upload_params.py +0 -54
- samplehc/types/v2/integrations/__init__.py +0 -23
- samplehc/types/v2/integrations/bank/__init__.py +0 -6
- samplehc/types/v2/integrations/bank/transaction_sync_params.py +0 -15
- samplehc/types/v2/integrations/bank/transaction_sync_response.py +0 -26
- samplehc/types/v2/integrations/careviso_get_payers_response.py +0 -19
- samplehc/types/v2/integrations/careviso_submit_prior_authorization_params.py +0 -90
- samplehc/types/v2/integrations/glidian/__init__.py +0 -20
- samplehc/types/v2/integrations/glidian/prior_authorization_create_draft_params.py +0 -32
- samplehc/types/v2/integrations/glidian/prior_authorization_create_draft_response.py +0 -24
- samplehc/types/v2/integrations/glidian/prior_authorization_retrieve_record_response.py +0 -13
- samplehc/types/v2/integrations/glidian/prior_authorization_submit_response.py +0 -16
- samplehc/types/v2/integrations/glidian/prior_authorization_update_record_params.py +0 -20
- samplehc/types/v2/integrations/glidian/prior_authorization_update_record_response.py +0 -16
- samplehc/types/v2/integrations/glidian/prior_authorizations/__init__.py +0 -7
- samplehc/types/v2/integrations/glidian/prior_authorizations/clinical_question_list_response.py +0 -42
- samplehc/types/v2/integrations/glidian/prior_authorizations/clinical_question_update_params.py +0 -23
- samplehc/types/v2/integrations/glidian/prior_authorizations/clinical_question_update_response.py +0 -19
- samplehc/types/v2/integrations/glidian_get_submission_requirements_params.py +0 -17
- samplehc/types/v2/integrations/glidian_get_submission_requirements_response.py +0 -31
- samplehc/types/v2/integrations/glidian_list_payers_params.py +0 -11
- samplehc/types/v2/integrations/glidian_list_payers_response.py +0 -17
- samplehc/types/v2/integrations/glidian_list_services_params.py +0 -13
- samplehc/types/v2/integrations/glidian_list_services_response.py +0 -19
- samplehc/types/v2/integrations/kno2/__init__.py +0 -6
- samplehc/types/v2/integrations/kno2/message_get_attachment_response.py +0 -15
- samplehc/types/v2/integrations/kno2/message_retrieve_response.py +0 -13
- samplehc/types/v2/integrations/salesforce_run_crud_action_params.py +0 -22
- samplehc/types/v2/integrations/salesforce_run_soql_query_params.py +0 -11
- samplehc/types/v2/integrations/snowflake_query_params.py +0 -12
- samplehc/types/v2/integrations/snowflake_query_response.py +0 -8
- samplehc/types/v2/integrations/wellsky/__init__.py +0 -6
- samplehc/types/v2/integrations/wellsky/patient_add_params.py +0 -13
- samplehc/types/v2/integrations/wellsky/patient_search_params.py +0 -32
- samplehc/types/v2/integrations/xcure_make_request_params.py +0 -18
- samplehc/types/v2/ledger/__init__.py +0 -3
- samplehc/types/v2/policy_list_companies_params.py +0 -18
- samplehc/types/v2/policy_list_companies_response.py +0 -24
- samplehc/types/v2/policy_list_params.py +0 -47
- samplehc/types/v2/policy_list_plans_params.py +0 -18
- samplehc/types/v2/policy_list_plans_response.py +0 -30
- samplehc/types/v2/policy_list_response.py +0 -67
- samplehc/types/v2/policy_retrieve_presigned_url_response.py +0 -17
- samplehc/types/v2/policy_retrieve_text_response.py +0 -12
- samplehc/types/v2/task_cancel_response.py +0 -12
- samplehc/types/v2/task_complete_params.py +0 -12
- samplehc/types/v2/task_complete_response.py +0 -16
- samplehc/types/v2/task_get_suspended_payload_response.py +0 -8
- samplehc/types/v2/task_retrieve_response.py +0 -22
- samplehc/types/v2/task_retry_response.py +0 -10
- samplehc/types/v2/task_update_column_params.py +0 -19
- samplehc/types/v2/task_update_column_response.py +0 -9
- samplehc/types/v2/task_update_screen_time_params.py +0 -14
- samplehc/types/v2/task_update_screen_time_response.py +0 -8
- samplehc/types/v2/tasks/__init__.py +0 -7
- samplehc/types/v2/tasks/state_get_response.py +0 -8
- samplehc/types/v2/tasks/state_update_params.py +0 -13
- samplehc/types/v2/tasks/state_update_response.py +0 -9
- samplehc/types/v2/workflow_deploy_response.py +0 -12
- samplehc/types/v2/workflow_query_params.py +0 -12
- samplehc/types/v2/workflow_query_response.py +0 -8
- samplehc/types/v2/workflow_run_get_start_data_response.py +0 -14
- samplehc/types/v2/workflow_run_resume_when_complete_params.py +0 -14
- samplehc/types/v2/workflow_run_resume_when_complete_response.py +0 -12
- samplehc/types/v2/workflow_run_retrieve_response.py +0 -16
- samplehc/types/v2/workflow_runs/__init__.py +0 -5
- samplehc/types/v2/workflow_runs/step_get_output_response.py +0 -14
- samplehc/types/v2/workflow_start_params.py +0 -25
- samplehc/types/v2/workflow_start_response.py +0 -25
- samplehc-0.17.0.dist-info/RECORD +0 -226
- {samplehc-0.17.0.dist-info → samplehc-0.18.0.dist-info}/WHEEL +0 -0
- {samplehc-0.17.0.dist-info → samplehc-0.18.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,390 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
from typing import Iterable
|
|
6
|
-
from typing_extensions import Literal
|
|
7
|
-
|
|
8
|
-
import httpx
|
|
9
|
-
|
|
10
|
-
from ...._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
|
|
11
|
-
from ...._utils import maybe_transform, async_maybe_transform
|
|
12
|
-
from ...._compat import cached_property
|
|
13
|
-
from ...._resource import SyncAPIResource, AsyncAPIResource
|
|
14
|
-
from ...._response import (
|
|
15
|
-
to_raw_response_wrapper,
|
|
16
|
-
to_streamed_response_wrapper,
|
|
17
|
-
async_to_raw_response_wrapper,
|
|
18
|
-
async_to_streamed_response_wrapper,
|
|
19
|
-
)
|
|
20
|
-
from ...._base_client import make_request_options
|
|
21
|
-
from ....types.v2.hie import document_query_params, document_upload_params
|
|
22
|
-
from ....types.v2.hie.document_query_response import DocumentQueryResponse
|
|
23
|
-
|
|
24
|
-
__all__ = ["DocumentsResource", "AsyncDocumentsResource"]
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
class DocumentsResource(SyncAPIResource):
|
|
28
|
-
@cached_property
|
|
29
|
-
def with_raw_response(self) -> DocumentsResourceWithRawResponse:
|
|
30
|
-
"""
|
|
31
|
-
This property can be used as a prefix for any HTTP method call to return
|
|
32
|
-
the raw response object instead of the parsed content.
|
|
33
|
-
|
|
34
|
-
For more information, see https://www.github.com/samplehc/samplehc-python#accessing-raw-response-data-eg-headers
|
|
35
|
-
"""
|
|
36
|
-
return DocumentsResourceWithRawResponse(self)
|
|
37
|
-
|
|
38
|
-
@cached_property
|
|
39
|
-
def with_streaming_response(self) -> DocumentsResourceWithStreamingResponse:
|
|
40
|
-
"""
|
|
41
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
42
|
-
|
|
43
|
-
For more information, see https://www.github.com/samplehc/samplehc-python#with_streaming_response
|
|
44
|
-
"""
|
|
45
|
-
return DocumentsResourceWithStreamingResponse(self)
|
|
46
|
-
|
|
47
|
-
def query(
|
|
48
|
-
self,
|
|
49
|
-
*,
|
|
50
|
-
address: Iterable[document_query_params.Address],
|
|
51
|
-
dob: str,
|
|
52
|
-
external_id: str,
|
|
53
|
-
first_name: str,
|
|
54
|
-
gender_at_birth: Literal["M", "F", "O", "U"],
|
|
55
|
-
last_name: str,
|
|
56
|
-
contact: Iterable[document_query_params.Contact] | Omit = omit,
|
|
57
|
-
personal_identifiers: Iterable[document_query_params.PersonalIdentifier] | Omit = omit,
|
|
58
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
59
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
60
|
-
extra_headers: Headers | None = None,
|
|
61
|
-
extra_query: Query | None = None,
|
|
62
|
-
extra_body: Body | None = None,
|
|
63
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
64
|
-
) -> DocumentQueryResponse:
|
|
65
|
-
"""Queries patient documents from the HIE network.
|
|
66
|
-
|
|
67
|
-
Will reuse previously fetched
|
|
68
|
-
data if a patient with the same external ID already exists in our records.
|
|
69
|
-
|
|
70
|
-
Args:
|
|
71
|
-
address: An array of Address objects, representing the Patient's current and/or previous
|
|
72
|
-
addresses. May be empty.
|
|
73
|
-
|
|
74
|
-
dob: The Patient's date of birth (DOB), formatted `YYYY-MM-DD` as per ISO 8601.
|
|
75
|
-
|
|
76
|
-
external_id: An external Patient ID that you store and can use to reference this Patient.
|
|
77
|
-
|
|
78
|
-
first_name: The Patient's first name(s).
|
|
79
|
-
|
|
80
|
-
gender_at_birth: The Patient's gender at birth, can be one of `M` or `F` or `O` or `U`. Use `O`
|
|
81
|
-
(other) when the patient's gender is known but it is not `M` or `F`, i.e
|
|
82
|
-
intersex or hermaphroditic. Use `U` (unknown) when the patient's gender is not
|
|
83
|
-
known.
|
|
84
|
-
|
|
85
|
-
last_name: The Patient's last name(s).
|
|
86
|
-
|
|
87
|
-
contact: An array of Contact objects, representing the Patient's current and/or previous
|
|
88
|
-
contact information. May be empty.
|
|
89
|
-
|
|
90
|
-
personal_identifiers: An array of the Patient's personal IDs, such as a driver's license or SSN. May
|
|
91
|
-
be empty.
|
|
92
|
-
|
|
93
|
-
extra_headers: Send extra headers
|
|
94
|
-
|
|
95
|
-
extra_query: Add additional query parameters to the request
|
|
96
|
-
|
|
97
|
-
extra_body: Add additional JSON properties to the request
|
|
98
|
-
|
|
99
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
100
|
-
"""
|
|
101
|
-
return self._post(
|
|
102
|
-
"/api/v2/hie/documents/query",
|
|
103
|
-
body=maybe_transform(
|
|
104
|
-
{
|
|
105
|
-
"address": address,
|
|
106
|
-
"dob": dob,
|
|
107
|
-
"external_id": external_id,
|
|
108
|
-
"first_name": first_name,
|
|
109
|
-
"gender_at_birth": gender_at_birth,
|
|
110
|
-
"last_name": last_name,
|
|
111
|
-
"contact": contact,
|
|
112
|
-
"personal_identifiers": personal_identifiers,
|
|
113
|
-
},
|
|
114
|
-
document_query_params.DocumentQueryParams,
|
|
115
|
-
),
|
|
116
|
-
options=make_request_options(
|
|
117
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
118
|
-
),
|
|
119
|
-
cast_to=DocumentQueryResponse,
|
|
120
|
-
)
|
|
121
|
-
|
|
122
|
-
def upload(
|
|
123
|
-
self,
|
|
124
|
-
*,
|
|
125
|
-
description: str,
|
|
126
|
-
document_type: document_upload_params.DocumentType,
|
|
127
|
-
file_metadata_id: str,
|
|
128
|
-
patient_id: str,
|
|
129
|
-
date_end: str | Omit = omit,
|
|
130
|
-
date_start: str | Omit = omit,
|
|
131
|
-
facility_name: str | Omit = omit,
|
|
132
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
133
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
134
|
-
extra_headers: Headers | None = None,
|
|
135
|
-
extra_query: Query | None = None,
|
|
136
|
-
extra_body: Body | None = None,
|
|
137
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
138
|
-
) -> object:
|
|
139
|
-
"""
|
|
140
|
-
Contributes a document to the HIE network for a specific patient.
|
|
141
|
-
|
|
142
|
-
Args:
|
|
143
|
-
description: A brief description of the document.
|
|
144
|
-
|
|
145
|
-
document_type: The type of document being uploaded.
|
|
146
|
-
|
|
147
|
-
file_metadata_id: The ID of the file metadata to upload.
|
|
148
|
-
|
|
149
|
-
patient_id: The external Patient ID that you store and can use to reference this Patient.
|
|
150
|
-
|
|
151
|
-
date_end: ISO 8601 timestamp for when the document period ends.
|
|
152
|
-
|
|
153
|
-
date_start: ISO 8601 timestamp for when the document period starts.
|
|
154
|
-
|
|
155
|
-
facility_name: The name and type of facility (e.g., 'John Snow Clinic - Acute Care Centre').
|
|
156
|
-
|
|
157
|
-
extra_headers: Send extra headers
|
|
158
|
-
|
|
159
|
-
extra_query: Add additional query parameters to the request
|
|
160
|
-
|
|
161
|
-
extra_body: Add additional JSON properties to the request
|
|
162
|
-
|
|
163
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
164
|
-
"""
|
|
165
|
-
return self._post(
|
|
166
|
-
"/api/v2/hie/documents/upload",
|
|
167
|
-
body=maybe_transform(
|
|
168
|
-
{
|
|
169
|
-
"description": description,
|
|
170
|
-
"document_type": document_type,
|
|
171
|
-
"file_metadata_id": file_metadata_id,
|
|
172
|
-
"patient_id": patient_id,
|
|
173
|
-
"date_end": date_end,
|
|
174
|
-
"date_start": date_start,
|
|
175
|
-
"facility_name": facility_name,
|
|
176
|
-
},
|
|
177
|
-
document_upload_params.DocumentUploadParams,
|
|
178
|
-
),
|
|
179
|
-
options=make_request_options(
|
|
180
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
181
|
-
),
|
|
182
|
-
cast_to=object,
|
|
183
|
-
)
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
class AsyncDocumentsResource(AsyncAPIResource):
|
|
187
|
-
@cached_property
|
|
188
|
-
def with_raw_response(self) -> AsyncDocumentsResourceWithRawResponse:
|
|
189
|
-
"""
|
|
190
|
-
This property can be used as a prefix for any HTTP method call to return
|
|
191
|
-
the raw response object instead of the parsed content.
|
|
192
|
-
|
|
193
|
-
For more information, see https://www.github.com/samplehc/samplehc-python#accessing-raw-response-data-eg-headers
|
|
194
|
-
"""
|
|
195
|
-
return AsyncDocumentsResourceWithRawResponse(self)
|
|
196
|
-
|
|
197
|
-
@cached_property
|
|
198
|
-
def with_streaming_response(self) -> AsyncDocumentsResourceWithStreamingResponse:
|
|
199
|
-
"""
|
|
200
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
201
|
-
|
|
202
|
-
For more information, see https://www.github.com/samplehc/samplehc-python#with_streaming_response
|
|
203
|
-
"""
|
|
204
|
-
return AsyncDocumentsResourceWithStreamingResponse(self)
|
|
205
|
-
|
|
206
|
-
async def query(
|
|
207
|
-
self,
|
|
208
|
-
*,
|
|
209
|
-
address: Iterable[document_query_params.Address],
|
|
210
|
-
dob: str,
|
|
211
|
-
external_id: str,
|
|
212
|
-
first_name: str,
|
|
213
|
-
gender_at_birth: Literal["M", "F", "O", "U"],
|
|
214
|
-
last_name: str,
|
|
215
|
-
contact: Iterable[document_query_params.Contact] | Omit = omit,
|
|
216
|
-
personal_identifiers: Iterable[document_query_params.PersonalIdentifier] | Omit = omit,
|
|
217
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
218
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
219
|
-
extra_headers: Headers | None = None,
|
|
220
|
-
extra_query: Query | None = None,
|
|
221
|
-
extra_body: Body | None = None,
|
|
222
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
223
|
-
) -> DocumentQueryResponse:
|
|
224
|
-
"""Queries patient documents from the HIE network.
|
|
225
|
-
|
|
226
|
-
Will reuse previously fetched
|
|
227
|
-
data if a patient with the same external ID already exists in our records.
|
|
228
|
-
|
|
229
|
-
Args:
|
|
230
|
-
address: An array of Address objects, representing the Patient's current and/or previous
|
|
231
|
-
addresses. May be empty.
|
|
232
|
-
|
|
233
|
-
dob: The Patient's date of birth (DOB), formatted `YYYY-MM-DD` as per ISO 8601.
|
|
234
|
-
|
|
235
|
-
external_id: An external Patient ID that you store and can use to reference this Patient.
|
|
236
|
-
|
|
237
|
-
first_name: The Patient's first name(s).
|
|
238
|
-
|
|
239
|
-
gender_at_birth: The Patient's gender at birth, can be one of `M` or `F` or `O` or `U`. Use `O`
|
|
240
|
-
(other) when the patient's gender is known but it is not `M` or `F`, i.e
|
|
241
|
-
intersex or hermaphroditic. Use `U` (unknown) when the patient's gender is not
|
|
242
|
-
known.
|
|
243
|
-
|
|
244
|
-
last_name: The Patient's last name(s).
|
|
245
|
-
|
|
246
|
-
contact: An array of Contact objects, representing the Patient's current and/or previous
|
|
247
|
-
contact information. May be empty.
|
|
248
|
-
|
|
249
|
-
personal_identifiers: An array of the Patient's personal IDs, such as a driver's license or SSN. May
|
|
250
|
-
be empty.
|
|
251
|
-
|
|
252
|
-
extra_headers: Send extra headers
|
|
253
|
-
|
|
254
|
-
extra_query: Add additional query parameters to the request
|
|
255
|
-
|
|
256
|
-
extra_body: Add additional JSON properties to the request
|
|
257
|
-
|
|
258
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
259
|
-
"""
|
|
260
|
-
return await self._post(
|
|
261
|
-
"/api/v2/hie/documents/query",
|
|
262
|
-
body=await async_maybe_transform(
|
|
263
|
-
{
|
|
264
|
-
"address": address,
|
|
265
|
-
"dob": dob,
|
|
266
|
-
"external_id": external_id,
|
|
267
|
-
"first_name": first_name,
|
|
268
|
-
"gender_at_birth": gender_at_birth,
|
|
269
|
-
"last_name": last_name,
|
|
270
|
-
"contact": contact,
|
|
271
|
-
"personal_identifiers": personal_identifiers,
|
|
272
|
-
},
|
|
273
|
-
document_query_params.DocumentQueryParams,
|
|
274
|
-
),
|
|
275
|
-
options=make_request_options(
|
|
276
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
277
|
-
),
|
|
278
|
-
cast_to=DocumentQueryResponse,
|
|
279
|
-
)
|
|
280
|
-
|
|
281
|
-
async def upload(
|
|
282
|
-
self,
|
|
283
|
-
*,
|
|
284
|
-
description: str,
|
|
285
|
-
document_type: document_upload_params.DocumentType,
|
|
286
|
-
file_metadata_id: str,
|
|
287
|
-
patient_id: str,
|
|
288
|
-
date_end: str | Omit = omit,
|
|
289
|
-
date_start: str | Omit = omit,
|
|
290
|
-
facility_name: str | Omit = omit,
|
|
291
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
292
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
293
|
-
extra_headers: Headers | None = None,
|
|
294
|
-
extra_query: Query | None = None,
|
|
295
|
-
extra_body: Body | None = None,
|
|
296
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
297
|
-
) -> object:
|
|
298
|
-
"""
|
|
299
|
-
Contributes a document to the HIE network for a specific patient.
|
|
300
|
-
|
|
301
|
-
Args:
|
|
302
|
-
description: A brief description of the document.
|
|
303
|
-
|
|
304
|
-
document_type: The type of document being uploaded.
|
|
305
|
-
|
|
306
|
-
file_metadata_id: The ID of the file metadata to upload.
|
|
307
|
-
|
|
308
|
-
patient_id: The external Patient ID that you store and can use to reference this Patient.
|
|
309
|
-
|
|
310
|
-
date_end: ISO 8601 timestamp for when the document period ends.
|
|
311
|
-
|
|
312
|
-
date_start: ISO 8601 timestamp for when the document period starts.
|
|
313
|
-
|
|
314
|
-
facility_name: The name and type of facility (e.g., 'John Snow Clinic - Acute Care Centre').
|
|
315
|
-
|
|
316
|
-
extra_headers: Send extra headers
|
|
317
|
-
|
|
318
|
-
extra_query: Add additional query parameters to the request
|
|
319
|
-
|
|
320
|
-
extra_body: Add additional JSON properties to the request
|
|
321
|
-
|
|
322
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
323
|
-
"""
|
|
324
|
-
return await self._post(
|
|
325
|
-
"/api/v2/hie/documents/upload",
|
|
326
|
-
body=await async_maybe_transform(
|
|
327
|
-
{
|
|
328
|
-
"description": description,
|
|
329
|
-
"document_type": document_type,
|
|
330
|
-
"file_metadata_id": file_metadata_id,
|
|
331
|
-
"patient_id": patient_id,
|
|
332
|
-
"date_end": date_end,
|
|
333
|
-
"date_start": date_start,
|
|
334
|
-
"facility_name": facility_name,
|
|
335
|
-
},
|
|
336
|
-
document_upload_params.DocumentUploadParams,
|
|
337
|
-
),
|
|
338
|
-
options=make_request_options(
|
|
339
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
340
|
-
),
|
|
341
|
-
cast_to=object,
|
|
342
|
-
)
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
class DocumentsResourceWithRawResponse:
|
|
346
|
-
def __init__(self, documents: DocumentsResource) -> None:
|
|
347
|
-
self._documents = documents
|
|
348
|
-
|
|
349
|
-
self.query = to_raw_response_wrapper(
|
|
350
|
-
documents.query,
|
|
351
|
-
)
|
|
352
|
-
self.upload = to_raw_response_wrapper(
|
|
353
|
-
documents.upload,
|
|
354
|
-
)
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
class AsyncDocumentsResourceWithRawResponse:
|
|
358
|
-
def __init__(self, documents: AsyncDocumentsResource) -> None:
|
|
359
|
-
self._documents = documents
|
|
360
|
-
|
|
361
|
-
self.query = async_to_raw_response_wrapper(
|
|
362
|
-
documents.query,
|
|
363
|
-
)
|
|
364
|
-
self.upload = async_to_raw_response_wrapper(
|
|
365
|
-
documents.upload,
|
|
366
|
-
)
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
class DocumentsResourceWithStreamingResponse:
|
|
370
|
-
def __init__(self, documents: DocumentsResource) -> None:
|
|
371
|
-
self._documents = documents
|
|
372
|
-
|
|
373
|
-
self.query = to_streamed_response_wrapper(
|
|
374
|
-
documents.query,
|
|
375
|
-
)
|
|
376
|
-
self.upload = to_streamed_response_wrapper(
|
|
377
|
-
documents.upload,
|
|
378
|
-
)
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
class AsyncDocumentsResourceWithStreamingResponse:
|
|
382
|
-
def __init__(self, documents: AsyncDocumentsResource) -> None:
|
|
383
|
-
self._documents = documents
|
|
384
|
-
|
|
385
|
-
self.query = async_to_streamed_response_wrapper(
|
|
386
|
-
documents.query,
|
|
387
|
-
)
|
|
388
|
-
self.upload = async_to_streamed_response_wrapper(
|
|
389
|
-
documents.upload,
|
|
390
|
-
)
|
samplehc/resources/v2/hie/hie.py
DELETED
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
from .adt import (
|
|
6
|
-
AdtResource,
|
|
7
|
-
AsyncAdtResource,
|
|
8
|
-
AdtResourceWithRawResponse,
|
|
9
|
-
AsyncAdtResourceWithRawResponse,
|
|
10
|
-
AdtResourceWithStreamingResponse,
|
|
11
|
-
AsyncAdtResourceWithStreamingResponse,
|
|
12
|
-
)
|
|
13
|
-
from .documents import (
|
|
14
|
-
DocumentsResource,
|
|
15
|
-
AsyncDocumentsResource,
|
|
16
|
-
DocumentsResourceWithRawResponse,
|
|
17
|
-
AsyncDocumentsResourceWithRawResponse,
|
|
18
|
-
DocumentsResourceWithStreamingResponse,
|
|
19
|
-
AsyncDocumentsResourceWithStreamingResponse,
|
|
20
|
-
)
|
|
21
|
-
from ...._compat import cached_property
|
|
22
|
-
from ...._resource import SyncAPIResource, AsyncAPIResource
|
|
23
|
-
|
|
24
|
-
__all__ = ["HieResource", "AsyncHieResource"]
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
class HieResource(SyncAPIResource):
|
|
28
|
-
@cached_property
|
|
29
|
-
def documents(self) -> DocumentsResource:
|
|
30
|
-
return DocumentsResource(self._client)
|
|
31
|
-
|
|
32
|
-
@cached_property
|
|
33
|
-
def adt(self) -> AdtResource:
|
|
34
|
-
return AdtResource(self._client)
|
|
35
|
-
|
|
36
|
-
@cached_property
|
|
37
|
-
def with_raw_response(self) -> HieResourceWithRawResponse:
|
|
38
|
-
"""
|
|
39
|
-
This property can be used as a prefix for any HTTP method call to return
|
|
40
|
-
the raw response object instead of the parsed content.
|
|
41
|
-
|
|
42
|
-
For more information, see https://www.github.com/samplehc/samplehc-python#accessing-raw-response-data-eg-headers
|
|
43
|
-
"""
|
|
44
|
-
return HieResourceWithRawResponse(self)
|
|
45
|
-
|
|
46
|
-
@cached_property
|
|
47
|
-
def with_streaming_response(self) -> HieResourceWithStreamingResponse:
|
|
48
|
-
"""
|
|
49
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
50
|
-
|
|
51
|
-
For more information, see https://www.github.com/samplehc/samplehc-python#with_streaming_response
|
|
52
|
-
"""
|
|
53
|
-
return HieResourceWithStreamingResponse(self)
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
class AsyncHieResource(AsyncAPIResource):
|
|
57
|
-
@cached_property
|
|
58
|
-
def documents(self) -> AsyncDocumentsResource:
|
|
59
|
-
return AsyncDocumentsResource(self._client)
|
|
60
|
-
|
|
61
|
-
@cached_property
|
|
62
|
-
def adt(self) -> AsyncAdtResource:
|
|
63
|
-
return AsyncAdtResource(self._client)
|
|
64
|
-
|
|
65
|
-
@cached_property
|
|
66
|
-
def with_raw_response(self) -> AsyncHieResourceWithRawResponse:
|
|
67
|
-
"""
|
|
68
|
-
This property can be used as a prefix for any HTTP method call to return
|
|
69
|
-
the raw response object instead of the parsed content.
|
|
70
|
-
|
|
71
|
-
For more information, see https://www.github.com/samplehc/samplehc-python#accessing-raw-response-data-eg-headers
|
|
72
|
-
"""
|
|
73
|
-
return AsyncHieResourceWithRawResponse(self)
|
|
74
|
-
|
|
75
|
-
@cached_property
|
|
76
|
-
def with_streaming_response(self) -> AsyncHieResourceWithStreamingResponse:
|
|
77
|
-
"""
|
|
78
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
79
|
-
|
|
80
|
-
For more information, see https://www.github.com/samplehc/samplehc-python#with_streaming_response
|
|
81
|
-
"""
|
|
82
|
-
return AsyncHieResourceWithStreamingResponse(self)
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
class HieResourceWithRawResponse:
|
|
86
|
-
def __init__(self, hie: HieResource) -> None:
|
|
87
|
-
self._hie = hie
|
|
88
|
-
|
|
89
|
-
@cached_property
|
|
90
|
-
def documents(self) -> DocumentsResourceWithRawResponse:
|
|
91
|
-
return DocumentsResourceWithRawResponse(self._hie.documents)
|
|
92
|
-
|
|
93
|
-
@cached_property
|
|
94
|
-
def adt(self) -> AdtResourceWithRawResponse:
|
|
95
|
-
return AdtResourceWithRawResponse(self._hie.adt)
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
class AsyncHieResourceWithRawResponse:
|
|
99
|
-
def __init__(self, hie: AsyncHieResource) -> None:
|
|
100
|
-
self._hie = hie
|
|
101
|
-
|
|
102
|
-
@cached_property
|
|
103
|
-
def documents(self) -> AsyncDocumentsResourceWithRawResponse:
|
|
104
|
-
return AsyncDocumentsResourceWithRawResponse(self._hie.documents)
|
|
105
|
-
|
|
106
|
-
@cached_property
|
|
107
|
-
def adt(self) -> AsyncAdtResourceWithRawResponse:
|
|
108
|
-
return AsyncAdtResourceWithRawResponse(self._hie.adt)
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
class HieResourceWithStreamingResponse:
|
|
112
|
-
def __init__(self, hie: HieResource) -> None:
|
|
113
|
-
self._hie = hie
|
|
114
|
-
|
|
115
|
-
@cached_property
|
|
116
|
-
def documents(self) -> DocumentsResourceWithStreamingResponse:
|
|
117
|
-
return DocumentsResourceWithStreamingResponse(self._hie.documents)
|
|
118
|
-
|
|
119
|
-
@cached_property
|
|
120
|
-
def adt(self) -> AdtResourceWithStreamingResponse:
|
|
121
|
-
return AdtResourceWithStreamingResponse(self._hie.adt)
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
class AsyncHieResourceWithStreamingResponse:
|
|
125
|
-
def __init__(self, hie: AsyncHieResource) -> None:
|
|
126
|
-
self._hie = hie
|
|
127
|
-
|
|
128
|
-
@cached_property
|
|
129
|
-
def documents(self) -> AsyncDocumentsResourceWithStreamingResponse:
|
|
130
|
-
return AsyncDocumentsResourceWithStreamingResponse(self._hie.documents)
|
|
131
|
-
|
|
132
|
-
@cached_property
|
|
133
|
-
def adt(self) -> AsyncAdtResourceWithStreamingResponse:
|
|
134
|
-
return AsyncAdtResourceWithStreamingResponse(self._hie.adt)
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from .bank import (
|
|
4
|
-
BankResource,
|
|
5
|
-
AsyncBankResource,
|
|
6
|
-
BankResourceWithRawResponse,
|
|
7
|
-
AsyncBankResourceWithRawResponse,
|
|
8
|
-
BankResourceWithStreamingResponse,
|
|
9
|
-
AsyncBankResourceWithStreamingResponse,
|
|
10
|
-
)
|
|
11
|
-
from .kno2 import (
|
|
12
|
-
Kno2Resource,
|
|
13
|
-
AsyncKno2Resource,
|
|
14
|
-
Kno2ResourceWithRawResponse,
|
|
15
|
-
AsyncKno2ResourceWithRawResponse,
|
|
16
|
-
Kno2ResourceWithStreamingResponse,
|
|
17
|
-
AsyncKno2ResourceWithStreamingResponse,
|
|
18
|
-
)
|
|
19
|
-
from .xcures import (
|
|
20
|
-
XcuresResource,
|
|
21
|
-
AsyncXcuresResource,
|
|
22
|
-
XcuresResourceWithRawResponse,
|
|
23
|
-
AsyncXcuresResourceWithRawResponse,
|
|
24
|
-
XcuresResourceWithStreamingResponse,
|
|
25
|
-
AsyncXcuresResourceWithStreamingResponse,
|
|
26
|
-
)
|
|
27
|
-
from .glidian import (
|
|
28
|
-
GlidianResource,
|
|
29
|
-
AsyncGlidianResource,
|
|
30
|
-
GlidianResourceWithRawResponse,
|
|
31
|
-
AsyncGlidianResourceWithRawResponse,
|
|
32
|
-
GlidianResourceWithStreamingResponse,
|
|
33
|
-
AsyncGlidianResourceWithStreamingResponse,
|
|
34
|
-
)
|
|
35
|
-
from .wellsky import (
|
|
36
|
-
WellskyResource,
|
|
37
|
-
AsyncWellskyResource,
|
|
38
|
-
WellskyResourceWithRawResponse,
|
|
39
|
-
AsyncWellskyResourceWithRawResponse,
|
|
40
|
-
WellskyResourceWithStreamingResponse,
|
|
41
|
-
AsyncWellskyResourceWithStreamingResponse,
|
|
42
|
-
)
|
|
43
|
-
from .careviso import (
|
|
44
|
-
CarevisoResource,
|
|
45
|
-
AsyncCarevisoResource,
|
|
46
|
-
CarevisoResourceWithRawResponse,
|
|
47
|
-
AsyncCarevisoResourceWithRawResponse,
|
|
48
|
-
CarevisoResourceWithStreamingResponse,
|
|
49
|
-
AsyncCarevisoResourceWithStreamingResponse,
|
|
50
|
-
)
|
|
51
|
-
from .snowflake import (
|
|
52
|
-
SnowflakeResource,
|
|
53
|
-
AsyncSnowflakeResource,
|
|
54
|
-
SnowflakeResourceWithRawResponse,
|
|
55
|
-
AsyncSnowflakeResourceWithRawResponse,
|
|
56
|
-
SnowflakeResourceWithStreamingResponse,
|
|
57
|
-
AsyncSnowflakeResourceWithStreamingResponse,
|
|
58
|
-
)
|
|
59
|
-
from .salesforce import (
|
|
60
|
-
SalesforceResource,
|
|
61
|
-
AsyncSalesforceResource,
|
|
62
|
-
SalesforceResourceWithRawResponse,
|
|
63
|
-
AsyncSalesforceResourceWithRawResponse,
|
|
64
|
-
SalesforceResourceWithStreamingResponse,
|
|
65
|
-
AsyncSalesforceResourceWithStreamingResponse,
|
|
66
|
-
)
|
|
67
|
-
from .integrations import (
|
|
68
|
-
IntegrationsResource,
|
|
69
|
-
AsyncIntegrationsResource,
|
|
70
|
-
IntegrationsResourceWithRawResponse,
|
|
71
|
-
AsyncIntegrationsResourceWithRawResponse,
|
|
72
|
-
IntegrationsResourceWithStreamingResponse,
|
|
73
|
-
AsyncIntegrationsResourceWithStreamingResponse,
|
|
74
|
-
)
|
|
75
|
-
|
|
76
|
-
__all__ = [
|
|
77
|
-
"SnowflakeResource",
|
|
78
|
-
"AsyncSnowflakeResource",
|
|
79
|
-
"SnowflakeResourceWithRawResponse",
|
|
80
|
-
"AsyncSnowflakeResourceWithRawResponse",
|
|
81
|
-
"SnowflakeResourceWithStreamingResponse",
|
|
82
|
-
"AsyncSnowflakeResourceWithStreamingResponse",
|
|
83
|
-
"WellskyResource",
|
|
84
|
-
"AsyncWellskyResource",
|
|
85
|
-
"WellskyResourceWithRawResponse",
|
|
86
|
-
"AsyncWellskyResourceWithRawResponse",
|
|
87
|
-
"WellskyResourceWithStreamingResponse",
|
|
88
|
-
"AsyncWellskyResourceWithStreamingResponse",
|
|
89
|
-
"BankResource",
|
|
90
|
-
"AsyncBankResource",
|
|
91
|
-
"BankResourceWithRawResponse",
|
|
92
|
-
"AsyncBankResourceWithRawResponse",
|
|
93
|
-
"BankResourceWithStreamingResponse",
|
|
94
|
-
"AsyncBankResourceWithStreamingResponse",
|
|
95
|
-
"CarevisoResource",
|
|
96
|
-
"AsyncCarevisoResource",
|
|
97
|
-
"CarevisoResourceWithRawResponse",
|
|
98
|
-
"AsyncCarevisoResourceWithRawResponse",
|
|
99
|
-
"CarevisoResourceWithStreamingResponse",
|
|
100
|
-
"AsyncCarevisoResourceWithStreamingResponse",
|
|
101
|
-
"Kno2Resource",
|
|
102
|
-
"AsyncKno2Resource",
|
|
103
|
-
"Kno2ResourceWithRawResponse",
|
|
104
|
-
"AsyncKno2ResourceWithRawResponse",
|
|
105
|
-
"Kno2ResourceWithStreamingResponse",
|
|
106
|
-
"AsyncKno2ResourceWithStreamingResponse",
|
|
107
|
-
"GlidianResource",
|
|
108
|
-
"AsyncGlidianResource",
|
|
109
|
-
"GlidianResourceWithRawResponse",
|
|
110
|
-
"AsyncGlidianResourceWithRawResponse",
|
|
111
|
-
"GlidianResourceWithStreamingResponse",
|
|
112
|
-
"AsyncGlidianResourceWithStreamingResponse",
|
|
113
|
-
"XcuresResource",
|
|
114
|
-
"AsyncXcuresResource",
|
|
115
|
-
"XcuresResourceWithRawResponse",
|
|
116
|
-
"AsyncXcuresResourceWithRawResponse",
|
|
117
|
-
"XcuresResourceWithStreamingResponse",
|
|
118
|
-
"AsyncXcuresResourceWithStreamingResponse",
|
|
119
|
-
"SalesforceResource",
|
|
120
|
-
"AsyncSalesforceResource",
|
|
121
|
-
"SalesforceResourceWithRawResponse",
|
|
122
|
-
"AsyncSalesforceResourceWithRawResponse",
|
|
123
|
-
"SalesforceResourceWithStreamingResponse",
|
|
124
|
-
"AsyncSalesforceResourceWithStreamingResponse",
|
|
125
|
-
"IntegrationsResource",
|
|
126
|
-
"AsyncIntegrationsResource",
|
|
127
|
-
"IntegrationsResourceWithRawResponse",
|
|
128
|
-
"AsyncIntegrationsResourceWithRawResponse",
|
|
129
|
-
"IntegrationsResourceWithStreamingResponse",
|
|
130
|
-
"AsyncIntegrationsResourceWithStreamingResponse",
|
|
131
|
-
]
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from .bank import (
|
|
4
|
-
BankResource,
|
|
5
|
-
AsyncBankResource,
|
|
6
|
-
BankResourceWithRawResponse,
|
|
7
|
-
AsyncBankResourceWithRawResponse,
|
|
8
|
-
BankResourceWithStreamingResponse,
|
|
9
|
-
AsyncBankResourceWithStreamingResponse,
|
|
10
|
-
)
|
|
11
|
-
from .transactions import (
|
|
12
|
-
TransactionsResource,
|
|
13
|
-
AsyncTransactionsResource,
|
|
14
|
-
TransactionsResourceWithRawResponse,
|
|
15
|
-
AsyncTransactionsResourceWithRawResponse,
|
|
16
|
-
TransactionsResourceWithStreamingResponse,
|
|
17
|
-
AsyncTransactionsResourceWithStreamingResponse,
|
|
18
|
-
)
|
|
19
|
-
|
|
20
|
-
__all__ = [
|
|
21
|
-
"TransactionsResource",
|
|
22
|
-
"AsyncTransactionsResource",
|
|
23
|
-
"TransactionsResourceWithRawResponse",
|
|
24
|
-
"AsyncTransactionsResourceWithRawResponse",
|
|
25
|
-
"TransactionsResourceWithStreamingResponse",
|
|
26
|
-
"AsyncTransactionsResourceWithStreamingResponse",
|
|
27
|
-
"BankResource",
|
|
28
|
-
"AsyncBankResource",
|
|
29
|
-
"BankResourceWithRawResponse",
|
|
30
|
-
"AsyncBankResourceWithRawResponse",
|
|
31
|
-
"BankResourceWithStreamingResponse",
|
|
32
|
-
"AsyncBankResourceWithStreamingResponse",
|
|
33
|
-
]
|