From 1f84f975174ae6723425fee7694f8ddc52739349 Mon Sep 17 00:00:00 2001 From: Jonah Kaye Date: Wed, 22 Nov 2023 12:26:06 -0500 Subject: [PATCH 1/4] feat(docs): updating sync client. todo update async Refs: 1212 --- README.md | 49 ++++++++++++++++++++++++++++++++++--------------- 1 file changed, 34 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 7f016ce..06f8e7a 100644 --- a/README.md +++ b/README.md @@ -20,23 +20,42 @@ poetry add fern-metriport ## Usage ```python -from metriport import BaseOrganization, OrgType, Address, UsState +import os from metriport.client import Metriport +from metriport import commons +from metriport.resources import medical + +from dotenv import load_dotenv + +load_dotenv() + +def test_client() -> None: + client = Metriport(api_key=get_api_key(), base_url="http://localhost:8080") + response = client.medical.organization.create(request=medical.OrganizationCreate( + name="my-org", + type=medical.OrgType.ACUTE_CARE, + location=commons.Address( + addressLine1="line1", + addressLine2="line2", + city="New York", + state=commons.UsState.NY, + country="USA", + zip="10003" + ) + ) + ) + print(f"Received response with {response.id}") + + +def get_api_key() -> str: + api_key = os.environ.get("METRIPORT_API_KEY") + if api_key is None: + raise Exception("METRIPORT_API_KEY not found") + return api_key + -metriport_client = Metriport(api_key="YOUR_API_KEY") - -document = metriport_client.medical.organization.create(BaseOrganization( - type=OrgType.PostAcuteCare, - name="Metriport Inc.", - location=Address( - addressLine1="2261 Market Street", - addressLine2="#4818", - city="San Francisco", - state=UsState.CA, - zip="94114", - country="USA", - ) -)); +if __name__ == "__main__": + test_client() ``` ## Async Client From 20b018bfe2066a4985c6bd2fbff1e099cb56ae78 Mon Sep 17 00:00:00 2001 From: Jonah Kaye Date: Tue, 13 Feb 2024 16:04:41 -0500 Subject: [PATCH 2/4] feat(readme): tested code and updated readme Refs: #1212 --- README.md | 111 +++++++++++++++++++++++++++++++----------------------- 1 file changed, 63 insertions(+), 48 deletions(-) diff --git a/README.md b/README.md index 0c24891..0b89311 100644 --- a/README.md +++ b/README.md @@ -20,69 +20,84 @@ poetry add metriport ## Usage ```python import os -from metriport.client import Metriport -from metriport import commons -from metriport.resources import medical - from dotenv import load_dotenv +from metriport.client import Metriport +from metriport.resources.medical import BasePatient, PersonalIdentifier_DriversLicense +from metriport import Address, UsState load_dotenv() -def test_client() -> None: - client = Metriport(api_key=get_api_key(), base_url="http://localhost:8080") - response = client.medical.organization.create(request=medical.OrganizationCreate( - name="my-org", - type=medical.OrgType.ACUTE_CARE, - location=commons.Address( - addressLine1="line1", - addressLine2="line2", - city="New York", - state=commons.UsState.NY, - country="USA", - zip="10003" +facility_id = os.environ.get("FACILITY_ID") +api_key = os.environ.get("API_KEY") +base_url = os.environ.get("BASE_URL") ## optional param to base to client if want to point to sandbox url. + +client = Metriport(api_key=api_key) +patient_data = BasePatient( + first_name="John", + last_name="Doe", + dob="1980-01-01", + gender_at_birth="M", + personal_identifiers=[ + PersonalIdentifier_DriversLicense( + type="driversLicense", + state=UsState.CA, + value="12345678", ) - ) - ) - print(f"Received response with {response.id}") - - -def get_api_key() -> str: - api_key = os.environ.get("METRIPORT_API_KEY") - if api_key is None: - raise Exception("METRIPORT_API_KEY not found") - return api_key - - -if __name__ == "__main__": - test_client() + ], + address=[Address( + address_line_1="123 Main St", + city="Los Angeles", + state=UsState.CA, + zip="90001", + country="USA" + )] +) +response = client.medical.patient.create(facility_id=facility_id, request=patient_data) ``` ## Async Client Our Python SDK exports an async client that you can use with asyncio. ```python -from metriport import BaseOrganization, OrgType, Address, UsState -from metriport.client import AsyncMetriport +import os +from dotenv import load_dotenv +from metriport.client import AsyncMetriport +from metriport.resources.medical import BasePatient, PersonalIdentifier_DriversLicense +from metriport import Address, UsState import asyncio +load_dotenv() + +facility_id = os.environ.get("FACILITY_ID") +api_key = os.environ.get("API_KEY") + metriport_client = AsyncMetriport(api_key="YOUR_API_KEY") -async def create_organization(): - document = metriport_client.medical.organization.create(BaseOrganization( - type=OrgType.PostAcuteCare, - name="Metriport Inc.", - location=Address( - addressLine1="2261 Market Street", - addressLine2="#4818", - city="San Francisco", +async def create_patient(): + patient_data = BasePatient( + first_name="John", + last_name="Doe", + dob="1980-01-01", + gender_at_birth="M", + personal_identifiers=[ + PersonalIdentifier_DriversLicense( + type="driversLicense", + state=UsState.CA, + value="12345678", + ) + ], + address=[Address( + address_line_1="123 Main St", + city="Los Angeles", state=UsState.CA, - zip="94114", - country="USA", - ) - )); + zip="90001", + country="USA" + )] + ) + response = client.medical.patient.create(facility_id=facility_id, request=patient_data) -asyncio.run(create_organization()) +asyncio.run(create_patient()) ``` ## Error Handling @@ -90,11 +105,11 @@ All exceptions thrown by the SDK will sublcass [ApiError](./src/metriport/core/a ```python from metriport.core import ApiError -from metriport import BadRequestError try: - metriport.medical.patients.get(patient_id='my_id') -except APIError as e: + client.medical.patient.create(facility_id='bad_id', request="bad_req") +except ApiError as e: + print(e) # handle any api related error ``` From 78fb2c058f688f143c51cff5eae61d65e45940fd Mon Sep 17 00:00:00 2001 From: Jonah Kaye Date: Fri, 16 Feb 2024 00:00:12 -0500 Subject: [PATCH 3/4] feat(hack): rewrote import paths Refs: #1212 --- README.md | 8 ++++---- src/metriport/__init__.py | 6 ++++-- src/metriport/client.py | 2 +- src/metriport/{resources => }/commons/__init__.py | 0 src/metriport/{resources => }/commons/types/__init__.py | 0 src/metriport/{resources => }/commons/types/address.py | 2 +- src/metriport/{resources => }/commons/types/us_state.py | 0 src/metriport/{resources => }/fhir/__init__.py | 0 src/metriport/{resources => }/fhir/types/__init__.py | 0 src/metriport/{resources => }/fhir/types/address.py | 2 +- src/metriport/{resources => }/fhir/types/address_type.py | 0 src/metriport/{resources => }/fhir/types/address_use.py | 0 src/metriport/{resources => }/fhir/types/age.py | 2 +- .../{resources => }/fhir/types/age_comparator.py | 0 src/metriport/{resources => }/fhir/types/annotation.py | 2 +- src/metriport/{resources => }/fhir/types/attachment.py | 2 +- .../{resources => }/fhir/types/base_64_binary.py | 0 src/metriport/{resources => }/fhir/types/base_resource.py | 2 +- src/metriport/{resources => }/fhir/types/bundle.py | 2 +- src/metriport/{resources => }/fhir/types/bundle_entry.py | 2 +- src/metriport/{resources => }/fhir/types/bundle_link.py | 2 +- .../{resources => }/fhir/types/bundle_request.py | 2 +- .../{resources => }/fhir/types/bundle_request_method.py | 0 .../{resources => }/fhir/types/bundle_response.py | 2 +- src/metriport/{resources => }/fhir/types/bundle_search.py | 2 +- .../{resources => }/fhir/types/bundle_search_mode.py | 0 src/metriport/{resources => }/fhir/types/bundle_type.py | 0 src/metriport/{resources => }/fhir/types/canonical.py | 0 src/metriport/{resources => }/fhir/types/code.py | 0 .../{resources => }/fhir/types/codeable_concept.py | 2 +- src/metriport/{resources => }/fhir/types/coding.py | 2 +- .../{resources => }/fhir/types/contact_detail.py | 2 +- src/metriport/{resources => }/fhir/types/contact_point.py | 2 +- .../{resources => }/fhir/types/contact_point_system.py | 0 .../{resources => }/fhir/types/contact_point_use.py | 0 src/metriport/{resources => }/fhir/types/contributor.py | 2 +- .../{resources => }/fhir/types/contributor_type.py | 0 src/metriport/{resources => }/fhir/types/count.py | 2 +- .../{resources => }/fhir/types/count_comparator.py | 0 .../{resources => }/fhir/types/data_requirement.py | 2 +- .../fhir/types/data_requirement_code_filter.py | 2 +- .../fhir/types/data_requirement_date_filter.py | 2 +- .../{resources => }/fhir/types/data_requirement_sort.py | 2 +- .../fhir/types/data_requirement_sort_direction.py | 0 src/metriport/{resources => }/fhir/types/date_time.py | 0 src/metriport/{resources => }/fhir/types/decimal.py | 0 src/metriport/{resources => }/fhir/types/distance.py | 2 +- .../{resources => }/fhir/types/distance_comparator.py | 0 .../{resources => }/fhir/types/document_reference.py | 2 +- .../fhir/types/document_reference_content.py | 2 +- .../fhir/types/document_reference_context.py | 2 +- .../fhir/types/document_reference_relates_to.py | 2 +- .../fhir/types/document_reference_relates_to_code.py | 0 .../fhir/types/document_reference_status.py | 0 src/metriport/{resources => }/fhir/types/dosage.py | 2 +- .../{resources => }/fhir/types/dosage_dose_and_rate.py | 2 +- src/metriport/{resources => }/fhir/types/duration.py | 2 +- .../{resources => }/fhir/types/duration_comparator.py | 0 src/metriport/{resources => }/fhir/types/expression.py | 2 +- .../{resources => }/fhir/types/expression_language.py | 0 src/metriport/{resources => }/fhir/types/extension.py | 2 +- src/metriport/{resources => }/fhir/types/human_name.py | 2 +- .../{resources => }/fhir/types/human_name_use.py | 0 src/metriport/{resources => }/fhir/types/id.py | 0 src/metriport/{resources => }/fhir/types/identifier.py | 2 +- .../{resources => }/fhir/types/identifier_use.py | 0 src/metriport/{resources => }/fhir/types/instant.py | 0 src/metriport/{resources => }/fhir/types/markdown.py | 0 src/metriport/{resources => }/fhir/types/meta.py | 2 +- src/metriport/{resources => }/fhir/types/money.py | 2 +- src/metriport/{resources => }/fhir/types/narrative.py | 2 +- .../{resources => }/fhir/types/narrative_status.py | 0 .../{resources => }/fhir/types/parameter_definition.py | 2 +- src/metriport/{resources => }/fhir/types/period.py | 2 +- src/metriport/{resources => }/fhir/types/positive_int.py | 0 src/metriport/{resources => }/fhir/types/quantity.py | 2 +- .../{resources => }/fhir/types/quantity_comparator.py | 0 src/metriport/{resources => }/fhir/types/range.py | 2 +- src/metriport/{resources => }/fhir/types/ratio.py | 2 +- src/metriport/{resources => }/fhir/types/reference.py | 2 +- .../{resources => }/fhir/types/related_artifact.py | 2 +- .../{resources => }/fhir/types/related_artifact_type.py | 0 src/metriport/{resources => }/fhir/types/sampled_data.py | 2 +- src/metriport/{resources => }/fhir/types/signature.py | 2 +- src/metriport/{resources => }/fhir/types/time.py | 0 src/metriport/{resources => }/fhir/types/timing.py | 2 +- src/metriport/{resources => }/fhir/types/timing_repeat.py | 2 +- .../fhir/types/timing_repeat_duration_unit.py | 0 .../fhir/types/timing_repeat_period_unit.py | 0 .../{resources => }/fhir/types/timing_repeat_when_item.py | 0 .../{resources => }/fhir/types/trigger_definition.py | 2 +- .../{resources => }/fhir/types/trigger_definition_type.py | 0 src/metriport/{resources => }/fhir/types/unsigned_int.py | 0 src/metriport/{resources => }/fhir/types/uri.py | 0 src/metriport/{resources => }/fhir/types/url.py | 0 src/metriport/{resources => }/fhir/types/usage_context.py | 2 +- src/metriport/{resources => }/fhir/types/xhtml.py | 0 src/metriport/{resources => }/medical/__init__.py | 0 src/metriport/{resources => }/medical/client.py | 2 +- .../{resources => }/medical/resources/__init__.py | 0 .../medical/resources/document/__init__.py | 0 .../{resources => }/medical/resources/document/client.py | 8 ++++---- .../medical/resources/document/types/__init__.py | 0 .../document/types/bulk_get_document_url_query.py | 2 +- .../medical/resources/document/types/conversion_type.py | 0 .../medical/resources/document/types/document_query.py | 2 +- .../resources/document/types/document_query_status.py | 0 .../medical/resources/document/types/document_url.py | 2 +- .../resources/document/types/list_document_references.py | 2 +- .../medical/resources/document/types/progress.py | 2 +- .../resources/document/types/upload_document_response.py | 2 +- .../medical/resources/facility/__init__.py | 0 .../{resources => }/medical/resources/facility/client.py | 6 +++--- .../medical/resources/facility/types/__init__.py | 0 .../medical/resources/facility/types/base_facility.py | 2 +- .../medical/resources/facility/types/facility.py | 2 +- .../resources/facility/types/list_facilities_response.py | 2 +- .../{resources => }/medical/resources/fhir/__init__.py | 0 .../{resources => }/medical/resources/fhir/client.py | 8 ++++---- .../medical/resources/fhir/types/__init__.py | 0 .../resources/fhir/types/consolidated_bundle_upload.py | 2 +- .../resources/fhir/types/consolidated_count_response.py | 2 +- .../medical/resources/fhir/types/filter.py | 2 +- .../fhir/types/get_consolidated_query_status_response.py | 2 +- .../fhir/types/patient_consolidated_data_status.py | 0 .../fhir/types/start_consolidated_query_response.py | 2 +- .../medical/resources/organization/__init__.py | 0 .../medical/resources/organization/client.py | 8 ++++---- .../medical/resources/organization/types/__init__.py | 0 .../medical/resources/organization/types/org_type.py | 0 .../medical/resources/organization/types/organization.py | 2 +- .../resources/organization/types/organization_create.py | 2 +- .../{resources => }/medical/resources/patient/__init__.py | 0 .../{resources => }/medical/resources/patient/client.py | 8 ++++---- .../medical/resources/patient/types/__init__.py | 0 .../medical/resources/patient/types/base_patient.py | 2 +- .../medical/resources/patient/types/contact.py | 2 +- .../medical/resources/patient/types/drivers_license.py | 2 +- .../medical/resources/patient/types/facility_id.py | 0 .../resources/patient/types/list_patients_response.py | 2 +- .../resources/patient/types/medical_record_status.py | 2 +- .../medical/resources/patient/types/patient.py | 2 +- .../resources/patient/types/personal_identifier.py | 0 .../medical/resources/patient/types/record_status.py | 2 +- .../medical/resources/webhooks/__init__.py | 0 .../medical/resources/webhooks/types/__init__.py | 0 .../webhooks/types/consolidated_webhook_status.py | 0 .../medical/resources/webhooks/types/filters.py | 0 .../resources/webhooks/types/mapi_webhook_status.py | 0 .../medical/resources/webhooks/types/payload_patient.py | 2 +- .../webhooks/types/webhook_document_data_payload.py | 2 +- .../resources/webhooks/types/webhook_metadata_payload.py | 2 +- .../types/webhook_patient_consolidated_data_payload.py | 2 +- .../types/webhook_patient_document_data_payload.py | 2 +- .../resources/webhooks/types/webhook_patient_payload.py | 2 +- src/metriport/resources/__init__.py | 6 ------ 156 files changed, 108 insertions(+), 112 deletions(-) rename src/metriport/{resources => }/commons/__init__.py (100%) rename src/metriport/{resources => }/commons/types/__init__.py (100%) rename src/metriport/{resources => }/commons/types/address.py (96%) rename src/metriport/{resources => }/commons/types/us_state.py (100%) rename src/metriport/{resources => }/fhir/__init__.py (100%) rename src/metriport/{resources => }/fhir/types/__init__.py (100%) rename src/metriport/{resources => }/fhir/types/address.py (98%) rename src/metriport/{resources => }/fhir/types/address_type.py (100%) rename src/metriport/{resources => }/fhir/types/address_use.py (100%) rename src/metriport/{resources => }/fhir/types/age.py (97%) rename src/metriport/{resources => }/fhir/types/age_comparator.py (100%) rename src/metriport/{resources => }/fhir/types/annotation.py (97%) rename src/metriport/{resources => }/fhir/types/attachment.py (98%) rename src/metriport/{resources => }/fhir/types/base_64_binary.py (100%) rename src/metriport/{resources => }/fhir/types/base_resource.py (98%) rename src/metriport/{resources => }/fhir/types/bundle.py (98%) rename src/metriport/{resources => }/fhir/types/bundle_entry.py (98%) rename src/metriport/{resources => }/fhir/types/bundle_link.py (98%) rename src/metriport/{resources => }/fhir/types/bundle_request.py (98%) rename src/metriport/{resources => }/fhir/types/bundle_request_method.py (100%) rename src/metriport/{resources => }/fhir/types/bundle_response.py (98%) rename src/metriport/{resources => }/fhir/types/bundle_search.py (98%) rename src/metriport/{resources => }/fhir/types/bundle_search_mode.py (100%) rename src/metriport/{resources => }/fhir/types/bundle_type.py (100%) rename src/metriport/{resources => }/fhir/types/canonical.py (100%) rename src/metriport/{resources => }/fhir/types/code.py (100%) rename src/metriport/{resources => }/fhir/types/codeable_concept.py (97%) rename src/metriport/{resources => }/fhir/types/coding.py (98%) rename src/metriport/{resources => }/fhir/types/contact_detail.py (97%) rename src/metriport/{resources => }/fhir/types/contact_point.py (97%) rename src/metriport/{resources => }/fhir/types/contact_point_system.py (100%) rename src/metriport/{resources => }/fhir/types/contact_point_use.py (100%) rename src/metriport/{resources => }/fhir/types/contributor.py (97%) rename src/metriport/{resources => }/fhir/types/contributor_type.py (100%) rename src/metriport/{resources => }/fhir/types/count.py (97%) rename src/metriport/{resources => }/fhir/types/count_comparator.py (100%) rename src/metriport/{resources => }/fhir/types/data_requirement.py (98%) rename src/metriport/{resources => }/fhir/types/data_requirement_code_filter.py (98%) rename src/metriport/{resources => }/fhir/types/data_requirement_date_filter.py (98%) rename src/metriport/{resources => }/fhir/types/data_requirement_sort.py (98%) rename src/metriport/{resources => }/fhir/types/data_requirement_sort_direction.py (100%) rename src/metriport/{resources => }/fhir/types/date_time.py (100%) rename src/metriport/{resources => }/fhir/types/decimal.py (100%) rename src/metriport/{resources => }/fhir/types/distance.py (97%) rename src/metriport/{resources => }/fhir/types/distance_comparator.py (100%) rename src/metriport/{resources => }/fhir/types/document_reference.py (98%) rename src/metriport/{resources => }/fhir/types/document_reference_content.py (98%) rename src/metriport/{resources => }/fhir/types/document_reference_context.py (98%) rename src/metriport/{resources => }/fhir/types/document_reference_relates_to.py (98%) rename src/metriport/{resources => }/fhir/types/document_reference_relates_to_code.py (100%) rename src/metriport/{resources => }/fhir/types/document_reference_status.py (100%) rename src/metriport/{resources => }/fhir/types/dosage.py (98%) rename src/metriport/{resources => }/fhir/types/dosage_dose_and_rate.py (98%) rename src/metriport/{resources => }/fhir/types/duration.py (97%) rename src/metriport/{resources => }/fhir/types/duration_comparator.py (100%) rename src/metriport/{resources => }/fhir/types/expression.py (97%) rename src/metriport/{resources => }/fhir/types/expression_language.py (100%) rename src/metriport/{resources => }/fhir/types/extension.py (99%) rename src/metriport/{resources => }/fhir/types/human_name.py (98%) rename src/metriport/{resources => }/fhir/types/human_name_use.py (100%) rename src/metriport/{resources => }/fhir/types/id.py (100%) rename src/metriport/{resources => }/fhir/types/identifier.py (97%) rename src/metriport/{resources => }/fhir/types/identifier_use.py (100%) rename src/metriport/{resources => }/fhir/types/instant.py (100%) rename src/metriport/{resources => }/fhir/types/markdown.py (100%) rename src/metriport/{resources => }/fhir/types/meta.py (98%) rename src/metriport/{resources => }/fhir/types/money.py (96%) rename src/metriport/{resources => }/fhir/types/narrative.py (97%) rename src/metriport/{resources => }/fhir/types/narrative_status.py (100%) rename src/metriport/{resources => }/fhir/types/parameter_definition.py (98%) rename src/metriport/{resources => }/fhir/types/period.py (97%) rename src/metriport/{resources => }/fhir/types/positive_int.py (100%) rename src/metriport/{resources => }/fhir/types/quantity.py (97%) rename src/metriport/{resources => }/fhir/types/quantity_comparator.py (100%) rename src/metriport/{resources => }/fhir/types/range.py (96%) rename src/metriport/{resources => }/fhir/types/ratio.py (96%) rename src/metriport/{resources => }/fhir/types/reference.py (98%) rename src/metriport/{resources => }/fhir/types/related_artifact.py (98%) rename src/metriport/{resources => }/fhir/types/related_artifact_type.py (100%) rename src/metriport/{resources => }/fhir/types/sampled_data.py (98%) rename src/metriport/{resources => }/fhir/types/signature.py (98%) rename src/metriport/{resources => }/fhir/types/time.py (100%) rename src/metriport/{resources => }/fhir/types/timing.py (98%) rename src/metriport/{resources => }/fhir/types/timing_repeat.py (99%) rename src/metriport/{resources => }/fhir/types/timing_repeat_duration_unit.py (100%) rename src/metriport/{resources => }/fhir/types/timing_repeat_period_unit.py (100%) rename src/metriport/{resources => }/fhir/types/timing_repeat_when_item.py (100%) rename src/metriport/{resources => }/fhir/types/trigger_definition.py (98%) rename src/metriport/{resources => }/fhir/types/trigger_definition_type.py (100%) rename src/metriport/{resources => }/fhir/types/unsigned_int.py (100%) rename src/metriport/{resources => }/fhir/types/uri.py (100%) rename src/metriport/{resources => }/fhir/types/url.py (100%) rename src/metriport/{resources => }/fhir/types/usage_context.py (98%) rename src/metriport/{resources => }/fhir/types/xhtml.py (100%) rename src/metriport/{resources => }/medical/__init__.py (100%) rename src/metriport/{resources => }/medical/client.py (95%) rename src/metriport/{resources => }/medical/resources/__init__.py (100%) rename src/metriport/{resources => }/medical/resources/document/__init__.py (100%) rename src/metriport/{resources => }/medical/resources/document/client.py (99%) rename src/metriport/{resources => }/medical/resources/document/types/__init__.py (100%) rename src/metriport/{resources => }/medical/resources/document/types/bulk_get_document_url_query.py (95%) rename src/metriport/{resources => }/medical/resources/document/types/conversion_type.py (100%) rename src/metriport/{resources => }/medical/resources/document/types/document_query.py (96%) rename src/metriport/{resources => }/medical/resources/document/types/document_query_status.py (100%) rename src/metriport/{resources => }/medical/resources/document/types/document_url.py (94%) rename src/metriport/{resources => }/medical/resources/document/types/list_document_references.py (94%) rename src/metriport/{resources => }/medical/resources/document/types/progress.py (96%) rename src/metriport/{resources => }/medical/resources/document/types/upload_document_response.py (95%) rename src/metriport/{resources => }/medical/resources/facility/__init__.py (100%) rename src/metriport/{resources => }/medical/resources/facility/client.py (98%) rename src/metriport/{resources => }/medical/resources/facility/types/__init__.py (100%) rename src/metriport/{resources => }/medical/resources/facility/types/base_facility.py (96%) rename src/metriport/{resources => }/medical/resources/facility/types/facility.py (96%) rename src/metriport/{resources => }/medical/resources/facility/types/list_facilities_response.py (93%) rename src/metriport/{resources => }/medical/resources/fhir/__init__.py (100%) rename src/metriport/{resources => }/medical/resources/fhir/client.py (98%) rename src/metriport/{resources => }/medical/resources/fhir/types/__init__.py (100%) rename src/metriport/{resources => }/medical/resources/fhir/types/consolidated_bundle_upload.py (97%) rename src/metriport/{resources => }/medical/resources/fhir/types/consolidated_count_response.py (95%) rename src/metriport/{resources => }/medical/resources/fhir/types/filter.py (96%) rename src/metriport/{resources => }/medical/resources/fhir/types/get_consolidated_query_status_response.py (95%) rename src/metriport/{resources => }/medical/resources/fhir/types/patient_consolidated_data_status.py (100%) rename src/metriport/{resources => }/medical/resources/fhir/types/start_consolidated_query_response.py (93%) rename src/metriport/{resources => }/medical/resources/organization/__init__.py (100%) rename src/metriport/{resources => }/medical/resources/organization/client.py (97%) rename src/metriport/{resources => }/medical/resources/organization/types/__init__.py (100%) rename src/metriport/{resources => }/medical/resources/organization/types/org_type.py (100%) rename src/metriport/{resources => }/medical/resources/organization/types/organization.py (96%) rename src/metriport/{resources => }/medical/resources/organization/types/organization_create.py (95%) rename src/metriport/{resources => }/medical/resources/patient/__init__.py (100%) rename src/metriport/{resources => }/medical/resources/patient/client.py (98%) rename src/metriport/{resources => }/medical/resources/patient/types/__init__.py (100%) rename src/metriport/{resources => }/medical/resources/patient/types/base_patient.py (97%) rename src/metriport/{resources => }/medical/resources/patient/types/contact.py (95%) rename src/metriport/{resources => }/medical/resources/patient/types/drivers_license.py (95%) rename src/metriport/{resources => }/medical/resources/patient/types/facility_id.py (100%) rename src/metriport/{resources => }/medical/resources/patient/types/list_patients_response.py (93%) rename src/metriport/{resources => }/medical/resources/patient/types/medical_record_status.py (94%) rename src/metriport/{resources => }/medical/resources/patient/types/patient.py (97%) rename src/metriport/{resources => }/medical/resources/patient/types/personal_identifier.py (100%) rename src/metriport/{resources => }/medical/resources/patient/types/record_status.py (94%) rename src/metriport/{resources => }/medical/resources/webhooks/__init__.py (100%) rename src/metriport/{resources => }/medical/resources/webhooks/types/__init__.py (100%) rename src/metriport/{resources => }/medical/resources/webhooks/types/consolidated_webhook_status.py (100%) rename src/metriport/{resources => }/medical/resources/webhooks/types/filters.py (100%) rename src/metriport/{resources => }/medical/resources/webhooks/types/mapi_webhook_status.py (100%) rename src/metriport/{resources => }/medical/resources/webhooks/types/payload_patient.py (96%) rename src/metriport/{resources => }/medical/resources/webhooks/types/webhook_document_data_payload.py (96%) rename src/metriport/{resources => }/medical/resources/webhooks/types/webhook_metadata_payload.py (95%) rename src/metriport/{resources => }/medical/resources/webhooks/types/webhook_patient_consolidated_data_payload.py (94%) rename src/metriport/{resources => }/medical/resources/webhooks/types/webhook_patient_document_data_payload.py (95%) rename src/metriport/{resources => }/medical/resources/webhooks/types/webhook_patient_payload.py (96%) delete mode 100644 src/metriport/resources/__init__.py diff --git a/README.md b/README.md index 0b89311..862a8a4 100644 --- a/README.md +++ b/README.md @@ -22,8 +22,8 @@ poetry add metriport import os from dotenv import load_dotenv from metriport.client import Metriport -from metriport.resources.medical import BasePatient, PersonalIdentifier_DriversLicense -from metriport import Address, UsState +from metriport.medical import BasePatient, PersonalIdentifier_DriversLicense +from metriport.commons import Address, UsState load_dotenv() @@ -63,8 +63,8 @@ Our Python SDK exports an async client that you can use with asyncio. import os from dotenv import load_dotenv from metriport.client import AsyncMetriport -from metriport.resources.medical import BasePatient, PersonalIdentifier_DriversLicense -from metriport import Address, UsState +from metriport.medical import BasePatient, PersonalIdentifier_DriversLicense +from metriport.commons import Address, UsState import asyncio load_dotenv() diff --git a/src/metriport/__init__.py b/src/metriport/__init__.py index ac83f61..7f995da 100644 --- a/src/metriport/__init__.py +++ b/src/metriport/__init__.py @@ -1,6 +1,8 @@ # This file was auto-generated by Fern from our API Definition. -from .resources import Address, UsState, commons, fhir, medical from .environment import MetriportEnvironment +from . import commons +from . import fhir +from . import medical -__all__ = ["Address", "MetriportEnvironment", "UsState", "commons", "fhir", "medical"] +__all__ = ["Address", "MetriportEnvironment", "fhir", "medical", "commons"] diff --git a/src/metriport/client.py b/src/metriport/client.py index cb8bf8b..a82cb2c 100644 --- a/src/metriport/client.py +++ b/src/metriport/client.py @@ -6,7 +6,7 @@ from .core.client_wrapper import AsyncClientWrapper, SyncClientWrapper from .environment import MetriportEnvironment -from .resources.medical.client import AsyncMedicalClient, MedicalClient +from .medical.client import AsyncMedicalClient, MedicalClient class Metriport: diff --git a/src/metriport/resources/commons/__init__.py b/src/metriport/commons/__init__.py similarity index 100% rename from src/metriport/resources/commons/__init__.py rename to src/metriport/commons/__init__.py diff --git a/src/metriport/resources/commons/types/__init__.py b/src/metriport/commons/types/__init__.py similarity index 100% rename from src/metriport/resources/commons/types/__init__.py rename to src/metriport/commons/types/__init__.py diff --git a/src/metriport/resources/commons/types/address.py b/src/metriport/commons/types/address.py similarity index 96% rename from src/metriport/resources/commons/types/address.py rename to src/metriport/commons/types/address.py index f7c234e..0b5c4ce 100644 --- a/src/metriport/resources/commons/types/address.py +++ b/src/metriport/commons/types/address.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from ....core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .us_state import UsState try: diff --git a/src/metriport/resources/commons/types/us_state.py b/src/metriport/commons/types/us_state.py similarity index 100% rename from src/metriport/resources/commons/types/us_state.py rename to src/metriport/commons/types/us_state.py diff --git a/src/metriport/resources/fhir/__init__.py b/src/metriport/fhir/__init__.py similarity index 100% rename from src/metriport/resources/fhir/__init__.py rename to src/metriport/fhir/__init__.py diff --git a/src/metriport/resources/fhir/types/__init__.py b/src/metriport/fhir/types/__init__.py similarity index 100% rename from src/metriport/resources/fhir/types/__init__.py rename to src/metriport/fhir/types/__init__.py diff --git a/src/metriport/resources/fhir/types/address.py b/src/metriport/fhir/types/address.py similarity index 98% rename from src/metriport/resources/fhir/types/address.py rename to src/metriport/fhir/types/address.py index 4bf6619..5d35b25 100644 --- a/src/metriport/resources/fhir/types/address.py +++ b/src/metriport/fhir/types/address.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from ....core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .address_type import AddressType from .address_use import AddressUse diff --git a/src/metriport/resources/fhir/types/address_type.py b/src/metriport/fhir/types/address_type.py similarity index 100% rename from src/metriport/resources/fhir/types/address_type.py rename to src/metriport/fhir/types/address_type.py diff --git a/src/metriport/resources/fhir/types/address_use.py b/src/metriport/fhir/types/address_use.py similarity index 100% rename from src/metriport/resources/fhir/types/address_use.py rename to src/metriport/fhir/types/address_use.py diff --git a/src/metriport/resources/fhir/types/age.py b/src/metriport/fhir/types/age.py similarity index 97% rename from src/metriport/resources/fhir/types/age.py rename to src/metriport/fhir/types/age.py index 3117a8b..252a96c 100644 --- a/src/metriport/resources/fhir/types/age.py +++ b/src/metriport/fhir/types/age.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from ....core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .age_comparator import AgeComparator from .code import Code from .decimal import Decimal diff --git a/src/metriport/resources/fhir/types/age_comparator.py b/src/metriport/fhir/types/age_comparator.py similarity index 100% rename from src/metriport/resources/fhir/types/age_comparator.py rename to src/metriport/fhir/types/age_comparator.py diff --git a/src/metriport/resources/fhir/types/annotation.py b/src/metriport/fhir/types/annotation.py similarity index 97% rename from src/metriport/resources/fhir/types/annotation.py rename to src/metriport/fhir/types/annotation.py index c4d951b..7f4dcf4 100644 --- a/src/metriport/resources/fhir/types/annotation.py +++ b/src/metriport/fhir/types/annotation.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from ....core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .date_time import DateTime from .markdown import Markdown diff --git a/src/metriport/resources/fhir/types/attachment.py b/src/metriport/fhir/types/attachment.py similarity index 98% rename from src/metriport/resources/fhir/types/attachment.py rename to src/metriport/fhir/types/attachment.py index e48425e..ca73506 100644 --- a/src/metriport/resources/fhir/types/attachment.py +++ b/src/metriport/fhir/types/attachment.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from ....core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .base_64_binary import Base64Binary from .code import Code from .date_time import DateTime diff --git a/src/metriport/resources/fhir/types/base_64_binary.py b/src/metriport/fhir/types/base_64_binary.py similarity index 100% rename from src/metriport/resources/fhir/types/base_64_binary.py rename to src/metriport/fhir/types/base_64_binary.py diff --git a/src/metriport/resources/fhir/types/base_resource.py b/src/metriport/fhir/types/base_resource.py similarity index 98% rename from src/metriport/resources/fhir/types/base_resource.py rename to src/metriport/fhir/types/base_resource.py index 7cc7523..437b9d1 100644 --- a/src/metriport/resources/fhir/types/base_resource.py +++ b/src/metriport/fhir/types/base_resource.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from ....core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .code import Code from .extension import Extension from .id import Id diff --git a/src/metriport/resources/fhir/types/bundle.py b/src/metriport/fhir/types/bundle.py similarity index 98% rename from src/metriport/resources/fhir/types/bundle.py rename to src/metriport/fhir/types/bundle.py index 4c60b28..0ad7ab1 100644 --- a/src/metriport/resources/fhir/types/bundle.py +++ b/src/metriport/fhir/types/bundle.py @@ -5,7 +5,7 @@ import typing_extensions -from ....core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .bundle_entry import BundleEntry from .bundle_link import BundleLink from .bundle_type import BundleType diff --git a/src/metriport/resources/fhir/types/bundle_entry.py b/src/metriport/fhir/types/bundle_entry.py similarity index 98% rename from src/metriport/resources/fhir/types/bundle_entry.py rename to src/metriport/fhir/types/bundle_entry.py index 99eb861..dd81aac 100644 --- a/src/metriport/resources/fhir/types/bundle_entry.py +++ b/src/metriport/fhir/types/bundle_entry.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from ....core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .bundle_link import BundleLink from .bundle_request import BundleRequest from .bundle_response import BundleResponse diff --git a/src/metriport/resources/fhir/types/bundle_link.py b/src/metriport/fhir/types/bundle_link.py similarity index 98% rename from src/metriport/resources/fhir/types/bundle_link.py rename to src/metriport/fhir/types/bundle_link.py index bf7f325..43a3169 100644 --- a/src/metriport/resources/fhir/types/bundle_link.py +++ b/src/metriport/fhir/types/bundle_link.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from ....core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .extension import Extension from .uri import Uri diff --git a/src/metriport/resources/fhir/types/bundle_request.py b/src/metriport/fhir/types/bundle_request.py similarity index 98% rename from src/metriport/resources/fhir/types/bundle_request.py rename to src/metriport/fhir/types/bundle_request.py index e681184..4a25fa0 100644 --- a/src/metriport/resources/fhir/types/bundle_request.py +++ b/src/metriport/fhir/types/bundle_request.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from ....core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .bundle_request_method import BundleRequestMethod from .extension import Extension from .instant import Instant diff --git a/src/metriport/resources/fhir/types/bundle_request_method.py b/src/metriport/fhir/types/bundle_request_method.py similarity index 100% rename from src/metriport/resources/fhir/types/bundle_request_method.py rename to src/metriport/fhir/types/bundle_request_method.py diff --git a/src/metriport/resources/fhir/types/bundle_response.py b/src/metriport/fhir/types/bundle_response.py similarity index 98% rename from src/metriport/resources/fhir/types/bundle_response.py rename to src/metriport/fhir/types/bundle_response.py index ed290a8..6b6d27b 100644 --- a/src/metriport/resources/fhir/types/bundle_response.py +++ b/src/metriport/fhir/types/bundle_response.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from ....core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .extension import Extension from .instant import Instant from .uri import Uri diff --git a/src/metriport/resources/fhir/types/bundle_search.py b/src/metriport/fhir/types/bundle_search.py similarity index 98% rename from src/metriport/resources/fhir/types/bundle_search.py rename to src/metriport/fhir/types/bundle_search.py index c4471d9..0e30772 100644 --- a/src/metriport/resources/fhir/types/bundle_search.py +++ b/src/metriport/fhir/types/bundle_search.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from ....core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .bundle_search_mode import BundleSearchMode from .decimal import Decimal from .extension import Extension diff --git a/src/metriport/resources/fhir/types/bundle_search_mode.py b/src/metriport/fhir/types/bundle_search_mode.py similarity index 100% rename from src/metriport/resources/fhir/types/bundle_search_mode.py rename to src/metriport/fhir/types/bundle_search_mode.py diff --git a/src/metriport/resources/fhir/types/bundle_type.py b/src/metriport/fhir/types/bundle_type.py similarity index 100% rename from src/metriport/resources/fhir/types/bundle_type.py rename to src/metriport/fhir/types/bundle_type.py diff --git a/src/metriport/resources/fhir/types/canonical.py b/src/metriport/fhir/types/canonical.py similarity index 100% rename from src/metriport/resources/fhir/types/canonical.py rename to src/metriport/fhir/types/canonical.py diff --git a/src/metriport/resources/fhir/types/code.py b/src/metriport/fhir/types/code.py similarity index 100% rename from src/metriport/resources/fhir/types/code.py rename to src/metriport/fhir/types/code.py diff --git a/src/metriport/resources/fhir/types/codeable_concept.py b/src/metriport/fhir/types/codeable_concept.py similarity index 97% rename from src/metriport/resources/fhir/types/codeable_concept.py rename to src/metriport/fhir/types/codeable_concept.py index a403cf6..0c16a30 100644 --- a/src/metriport/resources/fhir/types/codeable_concept.py +++ b/src/metriport/fhir/types/codeable_concept.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from ....core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime try: import pydantic.v1 as pydantic # type: ignore diff --git a/src/metriport/resources/fhir/types/coding.py b/src/metriport/fhir/types/coding.py similarity index 98% rename from src/metriport/resources/fhir/types/coding.py rename to src/metriport/fhir/types/coding.py index e8f03a8..b7fb829 100644 --- a/src/metriport/resources/fhir/types/coding.py +++ b/src/metriport/fhir/types/coding.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from ....core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .code import Code from .uri import Uri diff --git a/src/metriport/resources/fhir/types/contact_detail.py b/src/metriport/fhir/types/contact_detail.py similarity index 97% rename from src/metriport/resources/fhir/types/contact_detail.py rename to src/metriport/fhir/types/contact_detail.py index 3abdc22..f7ab3e9 100644 --- a/src/metriport/resources/fhir/types/contact_detail.py +++ b/src/metriport/fhir/types/contact_detail.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from ....core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime try: import pydantic.v1 as pydantic # type: ignore diff --git a/src/metriport/resources/fhir/types/contact_point.py b/src/metriport/fhir/types/contact_point.py similarity index 97% rename from src/metriport/resources/fhir/types/contact_point.py rename to src/metriport/fhir/types/contact_point.py index 2420bf5..f93089f 100644 --- a/src/metriport/resources/fhir/types/contact_point.py +++ b/src/metriport/fhir/types/contact_point.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from ....core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .contact_point_system import ContactPointSystem from .contact_point_use import ContactPointUse from .positive_int import PositiveInt diff --git a/src/metriport/resources/fhir/types/contact_point_system.py b/src/metriport/fhir/types/contact_point_system.py similarity index 100% rename from src/metriport/resources/fhir/types/contact_point_system.py rename to src/metriport/fhir/types/contact_point_system.py diff --git a/src/metriport/resources/fhir/types/contact_point_use.py b/src/metriport/fhir/types/contact_point_use.py similarity index 100% rename from src/metriport/resources/fhir/types/contact_point_use.py rename to src/metriport/fhir/types/contact_point_use.py diff --git a/src/metriport/resources/fhir/types/contributor.py b/src/metriport/fhir/types/contributor.py similarity index 97% rename from src/metriport/resources/fhir/types/contributor.py rename to src/metriport/fhir/types/contributor.py index 44b9411..2e60897 100644 --- a/src/metriport/resources/fhir/types/contributor.py +++ b/src/metriport/fhir/types/contributor.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from ....core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .contributor_type import ContributorType try: diff --git a/src/metriport/resources/fhir/types/contributor_type.py b/src/metriport/fhir/types/contributor_type.py similarity index 100% rename from src/metriport/resources/fhir/types/contributor_type.py rename to src/metriport/fhir/types/contributor_type.py diff --git a/src/metriport/resources/fhir/types/count.py b/src/metriport/fhir/types/count.py similarity index 97% rename from src/metriport/resources/fhir/types/count.py rename to src/metriport/fhir/types/count.py index 0d51169..34141c7 100644 --- a/src/metriport/resources/fhir/types/count.py +++ b/src/metriport/fhir/types/count.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from ....core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .code import Code from .count_comparator import CountComparator from .decimal import Decimal diff --git a/src/metriport/resources/fhir/types/count_comparator.py b/src/metriport/fhir/types/count_comparator.py similarity index 100% rename from src/metriport/resources/fhir/types/count_comparator.py rename to src/metriport/fhir/types/count_comparator.py diff --git a/src/metriport/resources/fhir/types/data_requirement.py b/src/metriport/fhir/types/data_requirement.py similarity index 98% rename from src/metriport/resources/fhir/types/data_requirement.py rename to src/metriport/fhir/types/data_requirement.py index 4f6ccd3..aaa000e 100644 --- a/src/metriport/resources/fhir/types/data_requirement.py +++ b/src/metriport/fhir/types/data_requirement.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from ....core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .canonical import Canonical from .code import Code from .positive_int import PositiveInt diff --git a/src/metriport/resources/fhir/types/data_requirement_code_filter.py b/src/metriport/fhir/types/data_requirement_code_filter.py similarity index 98% rename from src/metriport/resources/fhir/types/data_requirement_code_filter.py rename to src/metriport/fhir/types/data_requirement_code_filter.py index d8e63c3..1fbd0f1 100644 --- a/src/metriport/resources/fhir/types/data_requirement_code_filter.py +++ b/src/metriport/fhir/types/data_requirement_code_filter.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from ....core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .canonical import Canonical try: diff --git a/src/metriport/resources/fhir/types/data_requirement_date_filter.py b/src/metriport/fhir/types/data_requirement_date_filter.py similarity index 98% rename from src/metriport/resources/fhir/types/data_requirement_date_filter.py rename to src/metriport/fhir/types/data_requirement_date_filter.py index 117880a..544c618 100644 --- a/src/metriport/resources/fhir/types/data_requirement_date_filter.py +++ b/src/metriport/fhir/types/data_requirement_date_filter.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from ....core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime try: import pydantic.v1 as pydantic # type: ignore diff --git a/src/metriport/resources/fhir/types/data_requirement_sort.py b/src/metriport/fhir/types/data_requirement_sort.py similarity index 98% rename from src/metriport/resources/fhir/types/data_requirement_sort.py rename to src/metriport/fhir/types/data_requirement_sort.py index 95c4167..787e2cc 100644 --- a/src/metriport/resources/fhir/types/data_requirement_sort.py +++ b/src/metriport/fhir/types/data_requirement_sort.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from ....core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .data_requirement_sort_direction import DataRequirementSortDirection try: diff --git a/src/metriport/resources/fhir/types/data_requirement_sort_direction.py b/src/metriport/fhir/types/data_requirement_sort_direction.py similarity index 100% rename from src/metriport/resources/fhir/types/data_requirement_sort_direction.py rename to src/metriport/fhir/types/data_requirement_sort_direction.py diff --git a/src/metriport/resources/fhir/types/date_time.py b/src/metriport/fhir/types/date_time.py similarity index 100% rename from src/metriport/resources/fhir/types/date_time.py rename to src/metriport/fhir/types/date_time.py diff --git a/src/metriport/resources/fhir/types/decimal.py b/src/metriport/fhir/types/decimal.py similarity index 100% rename from src/metriport/resources/fhir/types/decimal.py rename to src/metriport/fhir/types/decimal.py diff --git a/src/metriport/resources/fhir/types/distance.py b/src/metriport/fhir/types/distance.py similarity index 97% rename from src/metriport/resources/fhir/types/distance.py rename to src/metriport/fhir/types/distance.py index 030f21f..21c1bd0 100644 --- a/src/metriport/resources/fhir/types/distance.py +++ b/src/metriport/fhir/types/distance.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from ....core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .code import Code from .decimal import Decimal from .distance_comparator import DistanceComparator diff --git a/src/metriport/resources/fhir/types/distance_comparator.py b/src/metriport/fhir/types/distance_comparator.py similarity index 100% rename from src/metriport/resources/fhir/types/distance_comparator.py rename to src/metriport/fhir/types/distance_comparator.py diff --git a/src/metriport/resources/fhir/types/document_reference.py b/src/metriport/fhir/types/document_reference.py similarity index 98% rename from src/metriport/resources/fhir/types/document_reference.py rename to src/metriport/fhir/types/document_reference.py index fc09963..591842a 100644 --- a/src/metriport/resources/fhir/types/document_reference.py +++ b/src/metriport/fhir/types/document_reference.py @@ -5,7 +5,7 @@ import typing_extensions -from ....core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .base_resource import BaseResource from .code import Code from .codeable_concept import CodeableConcept diff --git a/src/metriport/resources/fhir/types/document_reference_content.py b/src/metriport/fhir/types/document_reference_content.py similarity index 98% rename from src/metriport/resources/fhir/types/document_reference_content.py rename to src/metriport/fhir/types/document_reference_content.py index fa0f7ce..fc64e33 100644 --- a/src/metriport/resources/fhir/types/document_reference_content.py +++ b/src/metriport/fhir/types/document_reference_content.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from ....core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .attachment import Attachment from .coding import Coding from .extension import Extension diff --git a/src/metriport/resources/fhir/types/document_reference_context.py b/src/metriport/fhir/types/document_reference_context.py similarity index 98% rename from src/metriport/resources/fhir/types/document_reference_context.py rename to src/metriport/fhir/types/document_reference_context.py index 3303be3..4343c77 100644 --- a/src/metriport/resources/fhir/types/document_reference_context.py +++ b/src/metriport/fhir/types/document_reference_context.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from ....core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .codeable_concept import CodeableConcept from .extension import Extension from .period import Period diff --git a/src/metriport/resources/fhir/types/document_reference_relates_to.py b/src/metriport/fhir/types/document_reference_relates_to.py similarity index 98% rename from src/metriport/resources/fhir/types/document_reference_relates_to.py rename to src/metriport/fhir/types/document_reference_relates_to.py index da9d896..b3e95ac 100644 --- a/src/metriport/resources/fhir/types/document_reference_relates_to.py +++ b/src/metriport/fhir/types/document_reference_relates_to.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from ....core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .document_reference_relates_to_code import DocumentReferenceRelatesToCode from .extension import Extension from .reference import Reference diff --git a/src/metriport/resources/fhir/types/document_reference_relates_to_code.py b/src/metriport/fhir/types/document_reference_relates_to_code.py similarity index 100% rename from src/metriport/resources/fhir/types/document_reference_relates_to_code.py rename to src/metriport/fhir/types/document_reference_relates_to_code.py diff --git a/src/metriport/resources/fhir/types/document_reference_status.py b/src/metriport/fhir/types/document_reference_status.py similarity index 100% rename from src/metriport/resources/fhir/types/document_reference_status.py rename to src/metriport/fhir/types/document_reference_status.py diff --git a/src/metriport/resources/fhir/types/dosage.py b/src/metriport/fhir/types/dosage.py similarity index 98% rename from src/metriport/resources/fhir/types/dosage.py rename to src/metriport/fhir/types/dosage.py index 718b50d..f82fd7d 100644 --- a/src/metriport/resources/fhir/types/dosage.py +++ b/src/metriport/fhir/types/dosage.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from ....core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime try: import pydantic.v1 as pydantic # type: ignore diff --git a/src/metriport/resources/fhir/types/dosage_dose_and_rate.py b/src/metriport/fhir/types/dosage_dose_and_rate.py similarity index 98% rename from src/metriport/resources/fhir/types/dosage_dose_and_rate.py rename to src/metriport/fhir/types/dosage_dose_and_rate.py index 9070321..4d229e4 100644 --- a/src/metriport/resources/fhir/types/dosage_dose_and_rate.py +++ b/src/metriport/fhir/types/dosage_dose_and_rate.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from ....core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime try: import pydantic.v1 as pydantic # type: ignore diff --git a/src/metriport/resources/fhir/types/duration.py b/src/metriport/fhir/types/duration.py similarity index 97% rename from src/metriport/resources/fhir/types/duration.py rename to src/metriport/fhir/types/duration.py index a0ab636..2e4c0b3 100644 --- a/src/metriport/resources/fhir/types/duration.py +++ b/src/metriport/fhir/types/duration.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from ....core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .code import Code from .decimal import Decimal from .duration_comparator import DurationComparator diff --git a/src/metriport/resources/fhir/types/duration_comparator.py b/src/metriport/fhir/types/duration_comparator.py similarity index 100% rename from src/metriport/resources/fhir/types/duration_comparator.py rename to src/metriport/fhir/types/duration_comparator.py diff --git a/src/metriport/resources/fhir/types/expression.py b/src/metriport/fhir/types/expression.py similarity index 97% rename from src/metriport/resources/fhir/types/expression.py rename to src/metriport/fhir/types/expression.py index 960e148..45b5196 100644 --- a/src/metriport/resources/fhir/types/expression.py +++ b/src/metriport/fhir/types/expression.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from ....core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .expression_language import ExpressionLanguage from .id import Id from .uri import Uri diff --git a/src/metriport/resources/fhir/types/expression_language.py b/src/metriport/fhir/types/expression_language.py similarity index 100% rename from src/metriport/resources/fhir/types/expression_language.py rename to src/metriport/fhir/types/expression_language.py diff --git a/src/metriport/resources/fhir/types/extension.py b/src/metriport/fhir/types/extension.py similarity index 99% rename from src/metriport/resources/fhir/types/extension.py rename to src/metriport/fhir/types/extension.py index ee3950c..be04d06 100644 --- a/src/metriport/resources/fhir/types/extension.py +++ b/src/metriport/fhir/types/extension.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from ....core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .uri import Uri try: diff --git a/src/metriport/resources/fhir/types/human_name.py b/src/metriport/fhir/types/human_name.py similarity index 98% rename from src/metriport/resources/fhir/types/human_name.py rename to src/metriport/fhir/types/human_name.py index 3670205..5dbb34a 100644 --- a/src/metriport/resources/fhir/types/human_name.py +++ b/src/metriport/fhir/types/human_name.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from ....core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .human_name_use import HumanNameUse try: diff --git a/src/metriport/resources/fhir/types/human_name_use.py b/src/metriport/fhir/types/human_name_use.py similarity index 100% rename from src/metriport/resources/fhir/types/human_name_use.py rename to src/metriport/fhir/types/human_name_use.py diff --git a/src/metriport/resources/fhir/types/id.py b/src/metriport/fhir/types/id.py similarity index 100% rename from src/metriport/resources/fhir/types/id.py rename to src/metriport/fhir/types/id.py diff --git a/src/metriport/resources/fhir/types/identifier.py b/src/metriport/fhir/types/identifier.py similarity index 97% rename from src/metriport/resources/fhir/types/identifier.py rename to src/metriport/fhir/types/identifier.py index 5a64f80..dc77033 100644 --- a/src/metriport/resources/fhir/types/identifier.py +++ b/src/metriport/fhir/types/identifier.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from ....core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .identifier_use import IdentifierUse from .uri import Uri diff --git a/src/metriport/resources/fhir/types/identifier_use.py b/src/metriport/fhir/types/identifier_use.py similarity index 100% rename from src/metriport/resources/fhir/types/identifier_use.py rename to src/metriport/fhir/types/identifier_use.py diff --git a/src/metriport/resources/fhir/types/instant.py b/src/metriport/fhir/types/instant.py similarity index 100% rename from src/metriport/resources/fhir/types/instant.py rename to src/metriport/fhir/types/instant.py diff --git a/src/metriport/resources/fhir/types/markdown.py b/src/metriport/fhir/types/markdown.py similarity index 100% rename from src/metriport/resources/fhir/types/markdown.py rename to src/metriport/fhir/types/markdown.py diff --git a/src/metriport/resources/fhir/types/meta.py b/src/metriport/fhir/types/meta.py similarity index 98% rename from src/metriport/resources/fhir/types/meta.py rename to src/metriport/fhir/types/meta.py index fb24c05..7eb446c 100644 --- a/src/metriport/resources/fhir/types/meta.py +++ b/src/metriport/fhir/types/meta.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from ....core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .canonical import Canonical from .id import Id from .instant import Instant diff --git a/src/metriport/resources/fhir/types/money.py b/src/metriport/fhir/types/money.py similarity index 96% rename from src/metriport/resources/fhir/types/money.py rename to src/metriport/fhir/types/money.py index ac179fb..c50bcaf 100644 --- a/src/metriport/resources/fhir/types/money.py +++ b/src/metriport/fhir/types/money.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from ....core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .code import Code from .decimal import Decimal diff --git a/src/metriport/resources/fhir/types/narrative.py b/src/metriport/fhir/types/narrative.py similarity index 97% rename from src/metriport/resources/fhir/types/narrative.py rename to src/metriport/fhir/types/narrative.py index 509c520..f466dd7 100644 --- a/src/metriport/resources/fhir/types/narrative.py +++ b/src/metriport/fhir/types/narrative.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from ....core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .extension import Extension from .narrative_status import NarrativeStatus from .xhtml import Xhtml diff --git a/src/metriport/resources/fhir/types/narrative_status.py b/src/metriport/fhir/types/narrative_status.py similarity index 100% rename from src/metriport/resources/fhir/types/narrative_status.py rename to src/metriport/fhir/types/narrative_status.py diff --git a/src/metriport/resources/fhir/types/parameter_definition.py b/src/metriport/fhir/types/parameter_definition.py similarity index 98% rename from src/metriport/resources/fhir/types/parameter_definition.py rename to src/metriport/fhir/types/parameter_definition.py index 16c7a6e..91035af 100644 --- a/src/metriport/resources/fhir/types/parameter_definition.py +++ b/src/metriport/fhir/types/parameter_definition.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from ....core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .canonical import Canonical from .code import Code diff --git a/src/metriport/resources/fhir/types/period.py b/src/metriport/fhir/types/period.py similarity index 97% rename from src/metriport/resources/fhir/types/period.py rename to src/metriport/fhir/types/period.py index dca15e4..33d3424 100644 --- a/src/metriport/resources/fhir/types/period.py +++ b/src/metriport/fhir/types/period.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from ....core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .date_time import DateTime try: diff --git a/src/metriport/resources/fhir/types/positive_int.py b/src/metriport/fhir/types/positive_int.py similarity index 100% rename from src/metriport/resources/fhir/types/positive_int.py rename to src/metriport/fhir/types/positive_int.py diff --git a/src/metriport/resources/fhir/types/quantity.py b/src/metriport/fhir/types/quantity.py similarity index 97% rename from src/metriport/resources/fhir/types/quantity.py rename to src/metriport/fhir/types/quantity.py index 181aba4..e6a40e0 100644 --- a/src/metriport/resources/fhir/types/quantity.py +++ b/src/metriport/fhir/types/quantity.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from ....core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .code import Code from .decimal import Decimal from .quantity_comparator import QuantityComparator diff --git a/src/metriport/resources/fhir/types/quantity_comparator.py b/src/metriport/fhir/types/quantity_comparator.py similarity index 100% rename from src/metriport/resources/fhir/types/quantity_comparator.py rename to src/metriport/fhir/types/quantity_comparator.py diff --git a/src/metriport/resources/fhir/types/range.py b/src/metriport/fhir/types/range.py similarity index 96% rename from src/metriport/resources/fhir/types/range.py rename to src/metriport/fhir/types/range.py index 82181e7..8a0f8d7 100644 --- a/src/metriport/resources/fhir/types/range.py +++ b/src/metriport/fhir/types/range.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from ....core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime try: import pydantic.v1 as pydantic # type: ignore diff --git a/src/metriport/resources/fhir/types/ratio.py b/src/metriport/fhir/types/ratio.py similarity index 96% rename from src/metriport/resources/fhir/types/ratio.py rename to src/metriport/fhir/types/ratio.py index 8765e15..927d748 100644 --- a/src/metriport/resources/fhir/types/ratio.py +++ b/src/metriport/fhir/types/ratio.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from ....core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime try: import pydantic.v1 as pydantic # type: ignore diff --git a/src/metriport/resources/fhir/types/reference.py b/src/metriport/fhir/types/reference.py similarity index 98% rename from src/metriport/resources/fhir/types/reference.py rename to src/metriport/fhir/types/reference.py index 4cda258..3675c89 100644 --- a/src/metriport/resources/fhir/types/reference.py +++ b/src/metriport/fhir/types/reference.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from ....core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .uri import Uri try: diff --git a/src/metriport/resources/fhir/types/related_artifact.py b/src/metriport/fhir/types/related_artifact.py similarity index 98% rename from src/metriport/resources/fhir/types/related_artifact.py rename to src/metriport/fhir/types/related_artifact.py index 7bd0329..89b7115 100644 --- a/src/metriport/resources/fhir/types/related_artifact.py +++ b/src/metriport/fhir/types/related_artifact.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from ....core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .canonical import Canonical from .markdown import Markdown from .related_artifact_type import RelatedArtifactType diff --git a/src/metriport/resources/fhir/types/related_artifact_type.py b/src/metriport/fhir/types/related_artifact_type.py similarity index 100% rename from src/metriport/resources/fhir/types/related_artifact_type.py rename to src/metriport/fhir/types/related_artifact_type.py diff --git a/src/metriport/resources/fhir/types/sampled_data.py b/src/metriport/fhir/types/sampled_data.py similarity index 98% rename from src/metriport/resources/fhir/types/sampled_data.py rename to src/metriport/fhir/types/sampled_data.py index 0a387cb..46db2e4 100644 --- a/src/metriport/resources/fhir/types/sampled_data.py +++ b/src/metriport/fhir/types/sampled_data.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from ....core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .decimal import Decimal from .positive_int import PositiveInt diff --git a/src/metriport/resources/fhir/types/signature.py b/src/metriport/fhir/types/signature.py similarity index 98% rename from src/metriport/resources/fhir/types/signature.py rename to src/metriport/fhir/types/signature.py index 992a992..6c1c740 100644 --- a/src/metriport/resources/fhir/types/signature.py +++ b/src/metriport/fhir/types/signature.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from ....core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .base_64_binary import Base64Binary from .code import Code from .instant import Instant diff --git a/src/metriport/resources/fhir/types/time.py b/src/metriport/fhir/types/time.py similarity index 100% rename from src/metriport/resources/fhir/types/time.py rename to src/metriport/fhir/types/time.py diff --git a/src/metriport/resources/fhir/types/timing.py b/src/metriport/fhir/types/timing.py similarity index 98% rename from src/metriport/resources/fhir/types/timing.py rename to src/metriport/fhir/types/timing.py index 44a41ee..d9ba028 100644 --- a/src/metriport/resources/fhir/types/timing.py +++ b/src/metriport/fhir/types/timing.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from ....core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .date_time import DateTime try: diff --git a/src/metriport/resources/fhir/types/timing_repeat.py b/src/metriport/fhir/types/timing_repeat.py similarity index 99% rename from src/metriport/resources/fhir/types/timing_repeat.py rename to src/metriport/fhir/types/timing_repeat.py index 9d0c732..7e92c13 100644 --- a/src/metriport/resources/fhir/types/timing_repeat.py +++ b/src/metriport/fhir/types/timing_repeat.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from ....core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .code import Code from .decimal import Decimal from .positive_int import PositiveInt diff --git a/src/metriport/resources/fhir/types/timing_repeat_duration_unit.py b/src/metriport/fhir/types/timing_repeat_duration_unit.py similarity index 100% rename from src/metriport/resources/fhir/types/timing_repeat_duration_unit.py rename to src/metriport/fhir/types/timing_repeat_duration_unit.py diff --git a/src/metriport/resources/fhir/types/timing_repeat_period_unit.py b/src/metriport/fhir/types/timing_repeat_period_unit.py similarity index 100% rename from src/metriport/resources/fhir/types/timing_repeat_period_unit.py rename to src/metriport/fhir/types/timing_repeat_period_unit.py diff --git a/src/metriport/resources/fhir/types/timing_repeat_when_item.py b/src/metriport/fhir/types/timing_repeat_when_item.py similarity index 100% rename from src/metriport/resources/fhir/types/timing_repeat_when_item.py rename to src/metriport/fhir/types/timing_repeat_when_item.py diff --git a/src/metriport/resources/fhir/types/trigger_definition.py b/src/metriport/fhir/types/trigger_definition.py similarity index 98% rename from src/metriport/resources/fhir/types/trigger_definition.py rename to src/metriport/fhir/types/trigger_definition.py index 06f8235..eaea293 100644 --- a/src/metriport/resources/fhir/types/trigger_definition.py +++ b/src/metriport/fhir/types/trigger_definition.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from ....core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .trigger_definition_type import TriggerDefinitionType try: diff --git a/src/metriport/resources/fhir/types/trigger_definition_type.py b/src/metriport/fhir/types/trigger_definition_type.py similarity index 100% rename from src/metriport/resources/fhir/types/trigger_definition_type.py rename to src/metriport/fhir/types/trigger_definition_type.py diff --git a/src/metriport/resources/fhir/types/unsigned_int.py b/src/metriport/fhir/types/unsigned_int.py similarity index 100% rename from src/metriport/resources/fhir/types/unsigned_int.py rename to src/metriport/fhir/types/unsigned_int.py diff --git a/src/metriport/resources/fhir/types/uri.py b/src/metriport/fhir/types/uri.py similarity index 100% rename from src/metriport/resources/fhir/types/uri.py rename to src/metriport/fhir/types/uri.py diff --git a/src/metriport/resources/fhir/types/url.py b/src/metriport/fhir/types/url.py similarity index 100% rename from src/metriport/resources/fhir/types/url.py rename to src/metriport/fhir/types/url.py diff --git a/src/metriport/resources/fhir/types/usage_context.py b/src/metriport/fhir/types/usage_context.py similarity index 98% rename from src/metriport/resources/fhir/types/usage_context.py rename to src/metriport/fhir/types/usage_context.py index 8f8fd67..db9cb56 100644 --- a/src/metriport/resources/fhir/types/usage_context.py +++ b/src/metriport/fhir/types/usage_context.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from ....core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime try: import pydantic.v1 as pydantic # type: ignore diff --git a/src/metriport/resources/fhir/types/xhtml.py b/src/metriport/fhir/types/xhtml.py similarity index 100% rename from src/metriport/resources/fhir/types/xhtml.py rename to src/metriport/fhir/types/xhtml.py diff --git a/src/metriport/resources/medical/__init__.py b/src/metriport/medical/__init__.py similarity index 100% rename from src/metriport/resources/medical/__init__.py rename to src/metriport/medical/__init__.py diff --git a/src/metriport/resources/medical/client.py b/src/metriport/medical/client.py similarity index 95% rename from src/metriport/resources/medical/client.py rename to src/metriport/medical/client.py index 4bf19eb..7bf133e 100644 --- a/src/metriport/resources/medical/client.py +++ b/src/metriport/medical/client.py @@ -1,6 +1,6 @@ # This file was auto-generated by Fern from our API Definition. -from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper +from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper from .resources.document.client import AsyncDocumentClient, DocumentClient from .resources.facility.client import AsyncFacilityClient, FacilityClient from .resources.fhir.client import AsyncFhirClient, FhirClient diff --git a/src/metriport/resources/medical/resources/__init__.py b/src/metriport/medical/resources/__init__.py similarity index 100% rename from src/metriport/resources/medical/resources/__init__.py rename to src/metriport/medical/resources/__init__.py diff --git a/src/metriport/resources/medical/resources/document/__init__.py b/src/metriport/medical/resources/document/__init__.py similarity index 100% rename from src/metriport/resources/medical/resources/document/__init__.py rename to src/metriport/medical/resources/document/__init__.py diff --git a/src/metriport/resources/medical/resources/document/client.py b/src/metriport/medical/resources/document/client.py similarity index 99% rename from src/metriport/resources/medical/resources/document/client.py rename to src/metriport/medical/resources/document/client.py index 5c0dd2b..dac2546 100644 --- a/src/metriport/resources/medical/resources/document/client.py +++ b/src/metriport/medical/resources/document/client.py @@ -4,10 +4,10 @@ import urllib.parse from json.decoder import JSONDecodeError -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.jsonable_encoder import jsonable_encoder -from .....core.remove_none_from_dict import remove_none_from_dict +from ....core.api_error import ApiError +from ....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper +from ....core.jsonable_encoder import jsonable_encoder +from ....core.remove_none_from_dict import remove_none_from_dict from ....fhir.types.document_reference import DocumentReference from .types.bulk_get_document_url_query import BulkGetDocumentUrlQuery from .types.conversion_type import ConversionType diff --git a/src/metriport/resources/medical/resources/document/types/__init__.py b/src/metriport/medical/resources/document/types/__init__.py similarity index 100% rename from src/metriport/resources/medical/resources/document/types/__init__.py rename to src/metriport/medical/resources/document/types/__init__.py diff --git a/src/metriport/resources/medical/resources/document/types/bulk_get_document_url_query.py b/src/metriport/medical/resources/document/types/bulk_get_document_url_query.py similarity index 95% rename from src/metriport/resources/medical/resources/document/types/bulk_get_document_url_query.py rename to src/metriport/medical/resources/document/types/bulk_get_document_url_query.py index 230e83d..af5488f 100644 --- a/src/metriport/resources/medical/resources/document/types/bulk_get_document_url_query.py +++ b/src/metriport/medical/resources/document/types/bulk_get_document_url_query.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from ......core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .document_query_status import DocumentQueryStatus try: diff --git a/src/metriport/resources/medical/resources/document/types/conversion_type.py b/src/metriport/medical/resources/document/types/conversion_type.py similarity index 100% rename from src/metriport/resources/medical/resources/document/types/conversion_type.py rename to src/metriport/medical/resources/document/types/conversion_type.py diff --git a/src/metriport/resources/medical/resources/document/types/document_query.py b/src/metriport/medical/resources/document/types/document_query.py similarity index 96% rename from src/metriport/resources/medical/resources/document/types/document_query.py rename to src/metriport/medical/resources/document/types/document_query.py index c4829d5..1f12d54 100644 --- a/src/metriport/resources/medical/resources/document/types/document_query.py +++ b/src/metriport/medical/resources/document/types/document_query.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from ......core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .progress import Progress try: diff --git a/src/metriport/resources/medical/resources/document/types/document_query_status.py b/src/metriport/medical/resources/document/types/document_query_status.py similarity index 100% rename from src/metriport/resources/medical/resources/document/types/document_query_status.py rename to src/metriport/medical/resources/document/types/document_query_status.py diff --git a/src/metriport/resources/medical/resources/document/types/document_url.py b/src/metriport/medical/resources/document/types/document_url.py similarity index 94% rename from src/metriport/resources/medical/resources/document/types/document_url.py rename to src/metriport/medical/resources/document/types/document_url.py index ae862c3..0a8ce1b 100644 --- a/src/metriport/resources/medical/resources/document/types/document_url.py +++ b/src/metriport/medical/resources/document/types/document_url.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from ......core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime try: import pydantic.v1 as pydantic # type: ignore diff --git a/src/metriport/resources/medical/resources/document/types/list_document_references.py b/src/metriport/medical/resources/document/types/list_document_references.py similarity index 94% rename from src/metriport/resources/medical/resources/document/types/list_document_references.py rename to src/metriport/medical/resources/document/types/list_document_references.py index 6d6f81d..2696c6a 100644 --- a/src/metriport/resources/medical/resources/document/types/list_document_references.py +++ b/src/metriport/medical/resources/document/types/list_document_references.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from ......core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .....fhir.types.document_reference import DocumentReference try: diff --git a/src/metriport/resources/medical/resources/document/types/progress.py b/src/metriport/medical/resources/document/types/progress.py similarity index 96% rename from src/metriport/resources/medical/resources/document/types/progress.py rename to src/metriport/medical/resources/document/types/progress.py index 3efc360..4141949 100644 --- a/src/metriport/resources/medical/resources/document/types/progress.py +++ b/src/metriport/medical/resources/document/types/progress.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from ......core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .document_query_status import DocumentQueryStatus try: diff --git a/src/metriport/resources/medical/resources/document/types/upload_document_response.py b/src/metriport/medical/resources/document/types/upload_document_response.py similarity index 95% rename from src/metriport/resources/medical/resources/document/types/upload_document_response.py rename to src/metriport/medical/resources/document/types/upload_document_response.py index 80cb833..2e405eb 100644 --- a/src/metriport/resources/medical/resources/document/types/upload_document_response.py +++ b/src/metriport/medical/resources/document/types/upload_document_response.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from ......core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime try: import pydantic.v1 as pydantic # type: ignore diff --git a/src/metriport/resources/medical/resources/facility/__init__.py b/src/metriport/medical/resources/facility/__init__.py similarity index 100% rename from src/metriport/resources/medical/resources/facility/__init__.py rename to src/metriport/medical/resources/facility/__init__.py diff --git a/src/metriport/resources/medical/resources/facility/client.py b/src/metriport/medical/resources/facility/client.py similarity index 98% rename from src/metriport/resources/medical/resources/facility/client.py rename to src/metriport/medical/resources/facility/client.py index ffe7419..b2c97fd 100644 --- a/src/metriport/resources/medical/resources/facility/client.py +++ b/src/metriport/medical/resources/facility/client.py @@ -4,9 +4,9 @@ import urllib.parse from json.decoder import JSONDecodeError -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.jsonable_encoder import jsonable_encoder +from ....core.api_error import ApiError +from ....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper +from ....core.jsonable_encoder import jsonable_encoder from .types.base_facility import BaseFacility from .types.facility import Facility from .types.list_facilities_response import ListFacilitiesResponse diff --git a/src/metriport/resources/medical/resources/facility/types/__init__.py b/src/metriport/medical/resources/facility/types/__init__.py similarity index 100% rename from src/metriport/resources/medical/resources/facility/types/__init__.py rename to src/metriport/medical/resources/facility/types/__init__.py diff --git a/src/metriport/resources/medical/resources/facility/types/base_facility.py b/src/metriport/medical/resources/facility/types/base_facility.py similarity index 96% rename from src/metriport/resources/medical/resources/facility/types/base_facility.py rename to src/metriport/medical/resources/facility/types/base_facility.py index 3bf3cd0..e946fc9 100644 --- a/src/metriport/resources/medical/resources/facility/types/base_facility.py +++ b/src/metriport/medical/resources/facility/types/base_facility.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from ......core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .....commons.types.address import Address try: diff --git a/src/metriport/resources/medical/resources/facility/types/facility.py b/src/metriport/medical/resources/facility/types/facility.py similarity index 96% rename from src/metriport/resources/medical/resources/facility/types/facility.py rename to src/metriport/medical/resources/facility/types/facility.py index e9749c3..45ccc8e 100644 --- a/src/metriport/resources/medical/resources/facility/types/facility.py +++ b/src/metriport/medical/resources/facility/types/facility.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from ......core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .base_facility import BaseFacility try: diff --git a/src/metriport/resources/medical/resources/facility/types/list_facilities_response.py b/src/metriport/medical/resources/facility/types/list_facilities_response.py similarity index 93% rename from src/metriport/resources/medical/resources/facility/types/list_facilities_response.py rename to src/metriport/medical/resources/facility/types/list_facilities_response.py index 618e55f..dabf228 100644 --- a/src/metriport/resources/medical/resources/facility/types/list_facilities_response.py +++ b/src/metriport/medical/resources/facility/types/list_facilities_response.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from ......core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .facility import Facility try: diff --git a/src/metriport/resources/medical/resources/fhir/__init__.py b/src/metriport/medical/resources/fhir/__init__.py similarity index 100% rename from src/metriport/resources/medical/resources/fhir/__init__.py rename to src/metriport/medical/resources/fhir/__init__.py diff --git a/src/metriport/resources/medical/resources/fhir/client.py b/src/metriport/medical/resources/fhir/client.py similarity index 98% rename from src/metriport/resources/medical/resources/fhir/client.py rename to src/metriport/medical/resources/fhir/client.py index ac64084..82c6d9b 100644 --- a/src/metriport/resources/medical/resources/fhir/client.py +++ b/src/metriport/medical/resources/fhir/client.py @@ -4,10 +4,10 @@ import urllib.parse from json.decoder import JSONDecodeError -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.jsonable_encoder import jsonable_encoder -from .....core.remove_none_from_dict import remove_none_from_dict +from ....core.api_error import ApiError +from ....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper +from ....core.jsonable_encoder import jsonable_encoder +from ....core.remove_none_from_dict import remove_none_from_dict from ....fhir.types.bundle import Bundle from .types.consolidated_bundle_upload import ConsolidatedBundleUpload from .types.consolidated_count_response import ConsolidatedCountResponse diff --git a/src/metriport/resources/medical/resources/fhir/types/__init__.py b/src/metriport/medical/resources/fhir/types/__init__.py similarity index 100% rename from src/metriport/resources/medical/resources/fhir/types/__init__.py rename to src/metriport/medical/resources/fhir/types/__init__.py diff --git a/src/metriport/resources/medical/resources/fhir/types/consolidated_bundle_upload.py b/src/metriport/medical/resources/fhir/types/consolidated_bundle_upload.py similarity index 97% rename from src/metriport/resources/medical/resources/fhir/types/consolidated_bundle_upload.py rename to src/metriport/medical/resources/fhir/types/consolidated_bundle_upload.py index 2015b46..a6a48bc 100644 --- a/src/metriport/resources/medical/resources/fhir/types/consolidated_bundle_upload.py +++ b/src/metriport/medical/resources/fhir/types/consolidated_bundle_upload.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from ......core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime try: import pydantic.v1 as pydantic # type: ignore diff --git a/src/metriport/resources/medical/resources/fhir/types/consolidated_count_response.py b/src/metriport/medical/resources/fhir/types/consolidated_count_response.py similarity index 95% rename from src/metriport/resources/medical/resources/fhir/types/consolidated_count_response.py rename to src/metriport/medical/resources/fhir/types/consolidated_count_response.py index ab0dc09..9f87c3d 100644 --- a/src/metriport/resources/medical/resources/fhir/types/consolidated_count_response.py +++ b/src/metriport/medical/resources/fhir/types/consolidated_count_response.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from ......core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .filter import Filter try: diff --git a/src/metriport/resources/medical/resources/fhir/types/filter.py b/src/metriport/medical/resources/fhir/types/filter.py similarity index 96% rename from src/metriport/resources/medical/resources/fhir/types/filter.py rename to src/metriport/medical/resources/fhir/types/filter.py index 904610f..b11d460 100644 --- a/src/metriport/resources/medical/resources/fhir/types/filter.py +++ b/src/metriport/medical/resources/fhir/types/filter.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from ......core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime try: import pydantic.v1 as pydantic # type: ignore diff --git a/src/metriport/resources/medical/resources/fhir/types/get_consolidated_query_status_response.py b/src/metriport/medical/resources/fhir/types/get_consolidated_query_status_response.py similarity index 95% rename from src/metriport/resources/medical/resources/fhir/types/get_consolidated_query_status_response.py rename to src/metriport/medical/resources/fhir/types/get_consolidated_query_status_response.py index aa5ad6f..f1434eb 100644 --- a/src/metriport/resources/medical/resources/fhir/types/get_consolidated_query_status_response.py +++ b/src/metriport/medical/resources/fhir/types/get_consolidated_query_status_response.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from ......core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .patient_consolidated_data_status import PatientConsolidatedDataStatus try: diff --git a/src/metriport/resources/medical/resources/fhir/types/patient_consolidated_data_status.py b/src/metriport/medical/resources/fhir/types/patient_consolidated_data_status.py similarity index 100% rename from src/metriport/resources/medical/resources/fhir/types/patient_consolidated_data_status.py rename to src/metriport/medical/resources/fhir/types/patient_consolidated_data_status.py diff --git a/src/metriport/resources/medical/resources/fhir/types/start_consolidated_query_response.py b/src/metriport/medical/resources/fhir/types/start_consolidated_query_response.py similarity index 93% rename from src/metriport/resources/medical/resources/fhir/types/start_consolidated_query_response.py rename to src/metriport/medical/resources/fhir/types/start_consolidated_query_response.py index c6fc726..4ff2dba 100644 --- a/src/metriport/resources/medical/resources/fhir/types/start_consolidated_query_response.py +++ b/src/metriport/medical/resources/fhir/types/start_consolidated_query_response.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from ......core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .patient_consolidated_data_status import PatientConsolidatedDataStatus try: diff --git a/src/metriport/resources/medical/resources/organization/__init__.py b/src/metriport/medical/resources/organization/__init__.py similarity index 100% rename from src/metriport/resources/medical/resources/organization/__init__.py rename to src/metriport/medical/resources/organization/__init__.py diff --git a/src/metriport/resources/medical/resources/organization/client.py b/src/metriport/medical/resources/organization/client.py similarity index 97% rename from src/metriport/resources/medical/resources/organization/client.py rename to src/metriport/medical/resources/organization/client.py index 7a4556f..b5f3a9d 100644 --- a/src/metriport/resources/medical/resources/organization/client.py +++ b/src/metriport/medical/resources/organization/client.py @@ -4,10 +4,10 @@ import urllib.parse from json.decoder import JSONDecodeError -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.jsonable_encoder import jsonable_encoder -from .....core.remove_none_from_dict import remove_none_from_dict +from ....core.api_error import ApiError +from ....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper +from ....core.jsonable_encoder import jsonable_encoder +from ....core.remove_none_from_dict import remove_none_from_dict from ....commons.types.address import Address from .types.org_type import OrgType from .types.organization import Organization diff --git a/src/metriport/resources/medical/resources/organization/types/__init__.py b/src/metriport/medical/resources/organization/types/__init__.py similarity index 100% rename from src/metriport/resources/medical/resources/organization/types/__init__.py rename to src/metriport/medical/resources/organization/types/__init__.py diff --git a/src/metriport/resources/medical/resources/organization/types/org_type.py b/src/metriport/medical/resources/organization/types/org_type.py similarity index 100% rename from src/metriport/resources/medical/resources/organization/types/org_type.py rename to src/metriport/medical/resources/organization/types/org_type.py diff --git a/src/metriport/resources/medical/resources/organization/types/organization.py b/src/metriport/medical/resources/organization/types/organization.py similarity index 96% rename from src/metriport/resources/medical/resources/organization/types/organization.py rename to src/metriport/medical/resources/organization/types/organization.py index c4a2416..41bbf06 100644 --- a/src/metriport/resources/medical/resources/organization/types/organization.py +++ b/src/metriport/medical/resources/organization/types/organization.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from ......core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .organization_create import OrganizationCreate try: diff --git a/src/metriport/resources/medical/resources/organization/types/organization_create.py b/src/metriport/medical/resources/organization/types/organization_create.py similarity index 95% rename from src/metriport/resources/medical/resources/organization/types/organization_create.py rename to src/metriport/medical/resources/organization/types/organization_create.py index a301560..a8545f5 100644 --- a/src/metriport/resources/medical/resources/organization/types/organization_create.py +++ b/src/metriport/medical/resources/organization/types/organization_create.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from ......core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .....commons.types.address import Address from .org_type import OrgType diff --git a/src/metriport/resources/medical/resources/patient/__init__.py b/src/metriport/medical/resources/patient/__init__.py similarity index 100% rename from src/metriport/resources/medical/resources/patient/__init__.py rename to src/metriport/medical/resources/patient/__init__.py diff --git a/src/metriport/resources/medical/resources/patient/client.py b/src/metriport/medical/resources/patient/client.py similarity index 98% rename from src/metriport/resources/medical/resources/patient/client.py rename to src/metriport/medical/resources/patient/client.py index c9d536d..7ce8c8f 100644 --- a/src/metriport/resources/medical/resources/patient/client.py +++ b/src/metriport/medical/resources/patient/client.py @@ -4,10 +4,10 @@ import urllib.parse from json.decoder import JSONDecodeError -from .....core.api_error import ApiError -from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from .....core.jsonable_encoder import jsonable_encoder -from .....core.remove_none_from_dict import remove_none_from_dict +from ....core.api_error import ApiError +from ....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper +from ....core.jsonable_encoder import jsonable_encoder +from ....core.remove_none_from_dict import remove_none_from_dict from .types.base_patient import BasePatient from .types.list_patients_response import ListPatientsResponse from .types.medical_record_status import MedicalRecordStatus diff --git a/src/metriport/resources/medical/resources/patient/types/__init__.py b/src/metriport/medical/resources/patient/types/__init__.py similarity index 100% rename from src/metriport/resources/medical/resources/patient/types/__init__.py rename to src/metriport/medical/resources/patient/types/__init__.py diff --git a/src/metriport/resources/medical/resources/patient/types/base_patient.py b/src/metriport/medical/resources/patient/types/base_patient.py similarity index 97% rename from src/metriport/resources/medical/resources/patient/types/base_patient.py rename to src/metriport/medical/resources/patient/types/base_patient.py index 1431f6b..9d0ee07 100644 --- a/src/metriport/resources/medical/resources/patient/types/base_patient.py +++ b/src/metriport/medical/resources/patient/types/base_patient.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from ......core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .....commons.types.address import Address from .contact import Contact from .personal_identifier import PersonalIdentifier diff --git a/src/metriport/resources/medical/resources/patient/types/contact.py b/src/metriport/medical/resources/patient/types/contact.py similarity index 95% rename from src/metriport/resources/medical/resources/patient/types/contact.py rename to src/metriport/medical/resources/patient/types/contact.py index 78060f2..4e79c78 100644 --- a/src/metriport/resources/medical/resources/patient/types/contact.py +++ b/src/metriport/medical/resources/patient/types/contact.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from ......core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime try: import pydantic.v1 as pydantic # type: ignore diff --git a/src/metriport/resources/medical/resources/patient/types/drivers_license.py b/src/metriport/medical/resources/patient/types/drivers_license.py similarity index 95% rename from src/metriport/resources/medical/resources/patient/types/drivers_license.py rename to src/metriport/medical/resources/patient/types/drivers_license.py index d2f75f3..dcc4920 100644 --- a/src/metriport/resources/medical/resources/patient/types/drivers_license.py +++ b/src/metriport/medical/resources/patient/types/drivers_license.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from ......core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .....commons.types.us_state import UsState from .....fhir.types.period import Period diff --git a/src/metriport/resources/medical/resources/patient/types/facility_id.py b/src/metriport/medical/resources/patient/types/facility_id.py similarity index 100% rename from src/metriport/resources/medical/resources/patient/types/facility_id.py rename to src/metriport/medical/resources/patient/types/facility_id.py diff --git a/src/metriport/resources/medical/resources/patient/types/list_patients_response.py b/src/metriport/medical/resources/patient/types/list_patients_response.py similarity index 93% rename from src/metriport/resources/medical/resources/patient/types/list_patients_response.py rename to src/metriport/medical/resources/patient/types/list_patients_response.py index 8abfe44..d76fe19 100644 --- a/src/metriport/resources/medical/resources/patient/types/list_patients_response.py +++ b/src/metriport/medical/resources/patient/types/list_patients_response.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from ......core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .patient import Patient try: diff --git a/src/metriport/resources/medical/resources/patient/types/medical_record_status.py b/src/metriport/medical/resources/patient/types/medical_record_status.py similarity index 94% rename from src/metriport/resources/medical/resources/patient/types/medical_record_status.py rename to src/metriport/medical/resources/patient/types/medical_record_status.py index b1fa625..ccb3c3b 100644 --- a/src/metriport/resources/medical/resources/patient/types/medical_record_status.py +++ b/src/metriport/medical/resources/patient/types/medical_record_status.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from ......core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .record_status import RecordStatus try: diff --git a/src/metriport/resources/medical/resources/patient/types/patient.py b/src/metriport/medical/resources/patient/types/patient.py similarity index 97% rename from src/metriport/resources/medical/resources/patient/types/patient.py rename to src/metriport/medical/resources/patient/types/patient.py index 60c8e1f..3fae089 100644 --- a/src/metriport/resources/medical/resources/patient/types/patient.py +++ b/src/metriport/medical/resources/patient/types/patient.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from ......core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .base_patient import BasePatient from .facility_id import FacilityId diff --git a/src/metriport/resources/medical/resources/patient/types/personal_identifier.py b/src/metriport/medical/resources/patient/types/personal_identifier.py similarity index 100% rename from src/metriport/resources/medical/resources/patient/types/personal_identifier.py rename to src/metriport/medical/resources/patient/types/personal_identifier.py diff --git a/src/metriport/resources/medical/resources/patient/types/record_status.py b/src/metriport/medical/resources/patient/types/record_status.py similarity index 94% rename from src/metriport/resources/medical/resources/patient/types/record_status.py rename to src/metriport/medical/resources/patient/types/record_status.py index ddb496e..858f56a 100644 --- a/src/metriport/resources/medical/resources/patient/types/record_status.py +++ b/src/metriport/medical/resources/patient/types/record_status.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from ......core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime try: import pydantic.v1 as pydantic # type: ignore diff --git a/src/metriport/resources/medical/resources/webhooks/__init__.py b/src/metriport/medical/resources/webhooks/__init__.py similarity index 100% rename from src/metriport/resources/medical/resources/webhooks/__init__.py rename to src/metriport/medical/resources/webhooks/__init__.py diff --git a/src/metriport/resources/medical/resources/webhooks/types/__init__.py b/src/metriport/medical/resources/webhooks/types/__init__.py similarity index 100% rename from src/metriport/resources/medical/resources/webhooks/types/__init__.py rename to src/metriport/medical/resources/webhooks/types/__init__.py diff --git a/src/metriport/resources/medical/resources/webhooks/types/consolidated_webhook_status.py b/src/metriport/medical/resources/webhooks/types/consolidated_webhook_status.py similarity index 100% rename from src/metriport/resources/medical/resources/webhooks/types/consolidated_webhook_status.py rename to src/metriport/medical/resources/webhooks/types/consolidated_webhook_status.py diff --git a/src/metriport/resources/medical/resources/webhooks/types/filters.py b/src/metriport/medical/resources/webhooks/types/filters.py similarity index 100% rename from src/metriport/resources/medical/resources/webhooks/types/filters.py rename to src/metriport/medical/resources/webhooks/types/filters.py diff --git a/src/metriport/resources/medical/resources/webhooks/types/mapi_webhook_status.py b/src/metriport/medical/resources/webhooks/types/mapi_webhook_status.py similarity index 100% rename from src/metriport/resources/medical/resources/webhooks/types/mapi_webhook_status.py rename to src/metriport/medical/resources/webhooks/types/mapi_webhook_status.py diff --git a/src/metriport/resources/medical/resources/webhooks/types/payload_patient.py b/src/metriport/medical/resources/webhooks/types/payload_patient.py similarity index 96% rename from src/metriport/resources/medical/resources/webhooks/types/payload_patient.py rename to src/metriport/medical/resources/webhooks/types/payload_patient.py index ccba112..3f63ff4 100644 --- a/src/metriport/resources/medical/resources/webhooks/types/payload_patient.py +++ b/src/metriport/medical/resources/webhooks/types/payload_patient.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from ......core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .....fhir.types.bundle import Bundle from .consolidated_webhook_status import ConsolidatedWebhookStatus from .filters import Filters diff --git a/src/metriport/resources/medical/resources/webhooks/types/webhook_document_data_payload.py b/src/metriport/medical/resources/webhooks/types/webhook_document_data_payload.py similarity index 96% rename from src/metriport/resources/medical/resources/webhooks/types/webhook_document_data_payload.py rename to src/metriport/medical/resources/webhooks/types/webhook_document_data_payload.py index eaf1bb4..c987898 100644 --- a/src/metriport/resources/medical/resources/webhooks/types/webhook_document_data_payload.py +++ b/src/metriport/medical/resources/webhooks/types/webhook_document_data_payload.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from ......core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .....fhir.types.codeable_concept import CodeableConcept try: diff --git a/src/metriport/resources/medical/resources/webhooks/types/webhook_metadata_payload.py b/src/metriport/medical/resources/webhooks/types/webhook_metadata_payload.py similarity index 95% rename from src/metriport/resources/medical/resources/webhooks/types/webhook_metadata_payload.py rename to src/metriport/medical/resources/webhooks/types/webhook_metadata_payload.py index f0eccdb..ca855fc 100644 --- a/src/metriport/resources/medical/resources/webhooks/types/webhook_metadata_payload.py +++ b/src/metriport/medical/resources/webhooks/types/webhook_metadata_payload.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from ......core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime try: import pydantic.v1 as pydantic # type: ignore diff --git a/src/metriport/resources/medical/resources/webhooks/types/webhook_patient_consolidated_data_payload.py b/src/metriport/medical/resources/webhooks/types/webhook_patient_consolidated_data_payload.py similarity index 94% rename from src/metriport/resources/medical/resources/webhooks/types/webhook_patient_consolidated_data_payload.py rename to src/metriport/medical/resources/webhooks/types/webhook_patient_consolidated_data_payload.py index 72e85c4..5344c25 100644 --- a/src/metriport/resources/medical/resources/webhooks/types/webhook_patient_consolidated_data_payload.py +++ b/src/metriport/medical/resources/webhooks/types/webhook_patient_consolidated_data_payload.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from ......core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .payload_patient import PayloadPatient from .webhook_metadata_payload import WebhookMetadataPayload diff --git a/src/metriport/resources/medical/resources/webhooks/types/webhook_patient_document_data_payload.py b/src/metriport/medical/resources/webhooks/types/webhook_patient_document_data_payload.py similarity index 95% rename from src/metriport/resources/medical/resources/webhooks/types/webhook_patient_document_data_payload.py rename to src/metriport/medical/resources/webhooks/types/webhook_patient_document_data_payload.py index d47be71..8286adc 100644 --- a/src/metriport/resources/medical/resources/webhooks/types/webhook_patient_document_data_payload.py +++ b/src/metriport/medical/resources/webhooks/types/webhook_patient_document_data_payload.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from ......core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .webhook_metadata_payload import WebhookMetadataPayload from .webhook_patient_payload import WebhookPatientPayload diff --git a/src/metriport/resources/medical/resources/webhooks/types/webhook_patient_payload.py b/src/metriport/medical/resources/webhooks/types/webhook_patient_payload.py similarity index 96% rename from src/metriport/resources/medical/resources/webhooks/types/webhook_patient_payload.py rename to src/metriport/medical/resources/webhooks/types/webhook_patient_payload.py index 20a6169..0b8b459 100644 --- a/src/metriport/resources/medical/resources/webhooks/types/webhook_patient_payload.py +++ b/src/metriport/medical/resources/webhooks/types/webhook_patient_payload.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from ......core.datetime_utils import serialize_datetime +from metriport.core.datetime_utils import serialize_datetime from .mapi_webhook_status import MapiWebhookStatus from .webhook_document_data_payload import WebhookDocumentDataPayload diff --git a/src/metriport/resources/__init__.py b/src/metriport/resources/__init__.py deleted file mode 100644 index 6f3b86d..0000000 --- a/src/metriport/resources/__init__.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from . import commons, fhir, medical -from .commons import Address, UsState - -__all__ = ["Address", "UsState", "commons", "fhir", "medical"] From 3f1feb918574620bf578a070b1f4c1016081d5c3 Mon Sep 17 00:00:00 2001 From: Jonah Kaye Date: Fri, 16 Feb 2024 00:08:55 -0500 Subject: [PATCH 4/4] feat(hack): rewrote import paths more Refs: #1212 --- src/metriport/commons/types/address.py | 2 +- src/metriport/fhir/types/address.py | 2 +- src/metriport/fhir/types/age.py | 2 +- src/metriport/fhir/types/annotation.py | 2 +- src/metriport/fhir/types/attachment.py | 2 +- src/metriport/fhir/types/base_resource.py | 2 +- src/metriport/fhir/types/bundle.py | 2 +- src/metriport/fhir/types/bundle_entry.py | 2 +- src/metriport/fhir/types/bundle_link.py | 2 +- src/metriport/fhir/types/bundle_request.py | 2 +- src/metriport/fhir/types/bundle_response.py | 2 +- src/metriport/fhir/types/bundle_search.py | 2 +- src/metriport/fhir/types/codeable_concept.py | 2 +- src/metriport/fhir/types/coding.py | 2 +- src/metriport/fhir/types/contact_detail.py | 2 +- src/metriport/fhir/types/contact_point.py | 2 +- src/metriport/fhir/types/contributor.py | 2 +- src/metriport/fhir/types/count.py | 2 +- src/metriport/fhir/types/data_requirement.py | 2 +- src/metriport/fhir/types/data_requirement_code_filter.py | 2 +- src/metriport/fhir/types/data_requirement_date_filter.py | 2 +- src/metriport/fhir/types/data_requirement_sort.py | 2 +- src/metriport/fhir/types/distance.py | 2 +- src/metriport/fhir/types/document_reference.py | 2 +- src/metriport/fhir/types/document_reference_content.py | 2 +- src/metriport/fhir/types/document_reference_context.py | 2 +- src/metriport/fhir/types/document_reference_relates_to.py | 2 +- src/metriport/fhir/types/dosage.py | 2 +- src/metriport/fhir/types/dosage_dose_and_rate.py | 2 +- src/metriport/fhir/types/duration.py | 2 +- src/metriport/fhir/types/expression.py | 2 +- src/metriport/fhir/types/extension.py | 2 +- src/metriport/fhir/types/human_name.py | 2 +- src/metriport/fhir/types/identifier.py | 2 +- src/metriport/fhir/types/meta.py | 2 +- src/metriport/fhir/types/money.py | 2 +- src/metriport/fhir/types/narrative.py | 2 +- src/metriport/fhir/types/parameter_definition.py | 2 +- src/metriport/fhir/types/period.py | 2 +- src/metriport/fhir/types/quantity.py | 2 +- src/metriport/fhir/types/range.py | 2 +- src/metriport/fhir/types/ratio.py | 2 +- src/metriport/fhir/types/reference.py | 2 +- src/metriport/fhir/types/related_artifact.py | 2 +- src/metriport/fhir/types/sampled_data.py | 2 +- src/metriport/fhir/types/signature.py | 2 +- src/metriport/fhir/types/timing.py | 2 +- src/metriport/fhir/types/timing_repeat.py | 2 +- src/metriport/fhir/types/trigger_definition.py | 2 +- src/metriport/fhir/types/usage_context.py | 2 +- .../resources/document/types/bulk_get_document_url_query.py | 2 +- .../medical/resources/document/types/document_query.py | 2 +- src/metriport/medical/resources/document/types/document_url.py | 2 +- .../resources/document/types/list_document_references.py | 2 +- src/metriport/medical/resources/document/types/progress.py | 2 +- .../resources/document/types/upload_document_response.py | 2 +- src/metriport/medical/resources/facility/types/base_facility.py | 2 +- src/metriport/medical/resources/facility/types/facility.py | 2 +- .../resources/facility/types/list_facilities_response.py | 2 +- .../medical/resources/fhir/types/consolidated_bundle_upload.py | 2 +- .../medical/resources/fhir/types/consolidated_count_response.py | 2 +- src/metriport/medical/resources/fhir/types/filter.py | 2 +- .../fhir/types/get_consolidated_query_status_response.py | 2 +- .../resources/fhir/types/start_consolidated_query_response.py | 2 +- .../medical/resources/organization/types/organization.py | 2 +- .../medical/resources/organization/types/organization_create.py | 2 +- src/metriport/medical/resources/patient/types/base_patient.py | 2 +- src/metriport/medical/resources/patient/types/contact.py | 2 +- .../medical/resources/patient/types/drivers_license.py | 2 +- .../medical/resources/patient/types/list_patients_response.py | 2 +- .../medical/resources/patient/types/medical_record_status.py | 2 +- src/metriport/medical/resources/patient/types/patient.py | 2 +- src/metriport/medical/resources/patient/types/record_status.py | 2 +- .../medical/resources/webhooks/types/payload_patient.py | 2 +- .../resources/webhooks/types/webhook_document_data_payload.py | 2 +- .../resources/webhooks/types/webhook_metadata_payload.py | 2 +- .../webhooks/types/webhook_patient_consolidated_data_payload.py | 2 +- .../webhooks/types/webhook_patient_document_data_payload.py | 2 +- .../medical/resources/webhooks/types/webhook_patient_payload.py | 2 +- 79 files changed, 79 insertions(+), 79 deletions(-) diff --git a/src/metriport/commons/types/address.py b/src/metriport/commons/types/address.py index 0b5c4ce..56029cc 100644 --- a/src/metriport/commons/types/address.py +++ b/src/metriport/commons/types/address.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from ...core.datetime_utils import serialize_datetime from .us_state import UsState try: diff --git a/src/metriport/fhir/types/address.py b/src/metriport/fhir/types/address.py index 5d35b25..0c74805 100644 --- a/src/metriport/fhir/types/address.py +++ b/src/metriport/fhir/types/address.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from ...core.datetime_utils import serialize_datetime from .address_type import AddressType from .address_use import AddressUse diff --git a/src/metriport/fhir/types/age.py b/src/metriport/fhir/types/age.py index 252a96c..54302f3 100644 --- a/src/metriport/fhir/types/age.py +++ b/src/metriport/fhir/types/age.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from ...core.datetime_utils import serialize_datetime from .age_comparator import AgeComparator from .code import Code from .decimal import Decimal diff --git a/src/metriport/fhir/types/annotation.py b/src/metriport/fhir/types/annotation.py index 7f4dcf4..8647513 100644 --- a/src/metriport/fhir/types/annotation.py +++ b/src/metriport/fhir/types/annotation.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from ...core.datetime_utils import serialize_datetime from .date_time import DateTime from .markdown import Markdown diff --git a/src/metriport/fhir/types/attachment.py b/src/metriport/fhir/types/attachment.py index ca73506..9477448 100644 --- a/src/metriport/fhir/types/attachment.py +++ b/src/metriport/fhir/types/attachment.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from ...core.datetime_utils import serialize_datetime from .base_64_binary import Base64Binary from .code import Code from .date_time import DateTime diff --git a/src/metriport/fhir/types/base_resource.py b/src/metriport/fhir/types/base_resource.py index 437b9d1..d74cab1 100644 --- a/src/metriport/fhir/types/base_resource.py +++ b/src/metriport/fhir/types/base_resource.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from ...core.datetime_utils import serialize_datetime from .code import Code from .extension import Extension from .id import Id diff --git a/src/metriport/fhir/types/bundle.py b/src/metriport/fhir/types/bundle.py index 0ad7ab1..ff36682 100644 --- a/src/metriport/fhir/types/bundle.py +++ b/src/metriport/fhir/types/bundle.py @@ -5,7 +5,7 @@ import typing_extensions -from metriport.core.datetime_utils import serialize_datetime +from ...core.datetime_utils import serialize_datetime from .bundle_entry import BundleEntry from .bundle_link import BundleLink from .bundle_type import BundleType diff --git a/src/metriport/fhir/types/bundle_entry.py b/src/metriport/fhir/types/bundle_entry.py index dd81aac..3d58e94 100644 --- a/src/metriport/fhir/types/bundle_entry.py +++ b/src/metriport/fhir/types/bundle_entry.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from ...core.datetime_utils import serialize_datetime from .bundle_link import BundleLink from .bundle_request import BundleRequest from .bundle_response import BundleResponse diff --git a/src/metriport/fhir/types/bundle_link.py b/src/metriport/fhir/types/bundle_link.py index 43a3169..fcd5df4 100644 --- a/src/metriport/fhir/types/bundle_link.py +++ b/src/metriport/fhir/types/bundle_link.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from ...core.datetime_utils import serialize_datetime from .extension import Extension from .uri import Uri diff --git a/src/metriport/fhir/types/bundle_request.py b/src/metriport/fhir/types/bundle_request.py index 4a25fa0..43a6858 100644 --- a/src/metriport/fhir/types/bundle_request.py +++ b/src/metriport/fhir/types/bundle_request.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from ...core.datetime_utils import serialize_datetime from .bundle_request_method import BundleRequestMethod from .extension import Extension from .instant import Instant diff --git a/src/metriport/fhir/types/bundle_response.py b/src/metriport/fhir/types/bundle_response.py index 6b6d27b..52e4d02 100644 --- a/src/metriport/fhir/types/bundle_response.py +++ b/src/metriport/fhir/types/bundle_response.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from ...core.datetime_utils import serialize_datetime from .extension import Extension from .instant import Instant from .uri import Uri diff --git a/src/metriport/fhir/types/bundle_search.py b/src/metriport/fhir/types/bundle_search.py index 0e30772..990dacc 100644 --- a/src/metriport/fhir/types/bundle_search.py +++ b/src/metriport/fhir/types/bundle_search.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from ...core.datetime_utils import serialize_datetime from .bundle_search_mode import BundleSearchMode from .decimal import Decimal from .extension import Extension diff --git a/src/metriport/fhir/types/codeable_concept.py b/src/metriport/fhir/types/codeable_concept.py index 0c16a30..d202983 100644 --- a/src/metriport/fhir/types/codeable_concept.py +++ b/src/metriport/fhir/types/codeable_concept.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from ...core.datetime_utils import serialize_datetime try: import pydantic.v1 as pydantic # type: ignore diff --git a/src/metriport/fhir/types/coding.py b/src/metriport/fhir/types/coding.py index b7fb829..133e058 100644 --- a/src/metriport/fhir/types/coding.py +++ b/src/metriport/fhir/types/coding.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from ...core.datetime_utils import serialize_datetime from .code import Code from .uri import Uri diff --git a/src/metriport/fhir/types/contact_detail.py b/src/metriport/fhir/types/contact_detail.py index f7ab3e9..aaca5c7 100644 --- a/src/metriport/fhir/types/contact_detail.py +++ b/src/metriport/fhir/types/contact_detail.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from ...core.datetime_utils import serialize_datetime try: import pydantic.v1 as pydantic # type: ignore diff --git a/src/metriport/fhir/types/contact_point.py b/src/metriport/fhir/types/contact_point.py index f93089f..3f24bec 100644 --- a/src/metriport/fhir/types/contact_point.py +++ b/src/metriport/fhir/types/contact_point.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from ...core.datetime_utils import serialize_datetime from .contact_point_system import ContactPointSystem from .contact_point_use import ContactPointUse from .positive_int import PositiveInt diff --git a/src/metriport/fhir/types/contributor.py b/src/metriport/fhir/types/contributor.py index 2e60897..7d945ab 100644 --- a/src/metriport/fhir/types/contributor.py +++ b/src/metriport/fhir/types/contributor.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from ...core.datetime_utils import serialize_datetime from .contributor_type import ContributorType try: diff --git a/src/metriport/fhir/types/count.py b/src/metriport/fhir/types/count.py index 34141c7..766d1e0 100644 --- a/src/metriport/fhir/types/count.py +++ b/src/metriport/fhir/types/count.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from ...core.datetime_utils import serialize_datetime from .code import Code from .count_comparator import CountComparator from .decimal import Decimal diff --git a/src/metriport/fhir/types/data_requirement.py b/src/metriport/fhir/types/data_requirement.py index aaa000e..34c84a1 100644 --- a/src/metriport/fhir/types/data_requirement.py +++ b/src/metriport/fhir/types/data_requirement.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from ...core.datetime_utils import serialize_datetime from .canonical import Canonical from .code import Code from .positive_int import PositiveInt diff --git a/src/metriport/fhir/types/data_requirement_code_filter.py b/src/metriport/fhir/types/data_requirement_code_filter.py index 1fbd0f1..284f79f 100644 --- a/src/metriport/fhir/types/data_requirement_code_filter.py +++ b/src/metriport/fhir/types/data_requirement_code_filter.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from ...core.datetime_utils import serialize_datetime from .canonical import Canonical try: diff --git a/src/metriport/fhir/types/data_requirement_date_filter.py b/src/metriport/fhir/types/data_requirement_date_filter.py index 544c618..9dbcee9 100644 --- a/src/metriport/fhir/types/data_requirement_date_filter.py +++ b/src/metriport/fhir/types/data_requirement_date_filter.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from ...core.datetime_utils import serialize_datetime try: import pydantic.v1 as pydantic # type: ignore diff --git a/src/metriport/fhir/types/data_requirement_sort.py b/src/metriport/fhir/types/data_requirement_sort.py index 787e2cc..28de7b0 100644 --- a/src/metriport/fhir/types/data_requirement_sort.py +++ b/src/metriport/fhir/types/data_requirement_sort.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from ...core.datetime_utils import serialize_datetime from .data_requirement_sort_direction import DataRequirementSortDirection try: diff --git a/src/metriport/fhir/types/distance.py b/src/metriport/fhir/types/distance.py index 21c1bd0..99ae55b 100644 --- a/src/metriport/fhir/types/distance.py +++ b/src/metriport/fhir/types/distance.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from ...core.datetime_utils import serialize_datetime from .code import Code from .decimal import Decimal from .distance_comparator import DistanceComparator diff --git a/src/metriport/fhir/types/document_reference.py b/src/metriport/fhir/types/document_reference.py index 591842a..16594af 100644 --- a/src/metriport/fhir/types/document_reference.py +++ b/src/metriport/fhir/types/document_reference.py @@ -5,7 +5,7 @@ import typing_extensions -from metriport.core.datetime_utils import serialize_datetime +from ...core.datetime_utils import serialize_datetime from .base_resource import BaseResource from .code import Code from .codeable_concept import CodeableConcept diff --git a/src/metriport/fhir/types/document_reference_content.py b/src/metriport/fhir/types/document_reference_content.py index fc64e33..fa75d4a 100644 --- a/src/metriport/fhir/types/document_reference_content.py +++ b/src/metriport/fhir/types/document_reference_content.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from ...core.datetime_utils import serialize_datetime from .attachment import Attachment from .coding import Coding from .extension import Extension diff --git a/src/metriport/fhir/types/document_reference_context.py b/src/metriport/fhir/types/document_reference_context.py index 4343c77..c52939e 100644 --- a/src/metriport/fhir/types/document_reference_context.py +++ b/src/metriport/fhir/types/document_reference_context.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from ...core.datetime_utils import serialize_datetime from .codeable_concept import CodeableConcept from .extension import Extension from .period import Period diff --git a/src/metriport/fhir/types/document_reference_relates_to.py b/src/metriport/fhir/types/document_reference_relates_to.py index b3e95ac..a2d5586 100644 --- a/src/metriport/fhir/types/document_reference_relates_to.py +++ b/src/metriport/fhir/types/document_reference_relates_to.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from ...core.datetime_utils import serialize_datetime from .document_reference_relates_to_code import DocumentReferenceRelatesToCode from .extension import Extension from .reference import Reference diff --git a/src/metriport/fhir/types/dosage.py b/src/metriport/fhir/types/dosage.py index f82fd7d..644e264 100644 --- a/src/metriport/fhir/types/dosage.py +++ b/src/metriport/fhir/types/dosage.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from ...core.datetime_utils import serialize_datetime try: import pydantic.v1 as pydantic # type: ignore diff --git a/src/metriport/fhir/types/dosage_dose_and_rate.py b/src/metriport/fhir/types/dosage_dose_and_rate.py index 4d229e4..92e90da 100644 --- a/src/metriport/fhir/types/dosage_dose_and_rate.py +++ b/src/metriport/fhir/types/dosage_dose_and_rate.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from ...core.datetime_utils import serialize_datetime try: import pydantic.v1 as pydantic # type: ignore diff --git a/src/metriport/fhir/types/duration.py b/src/metriport/fhir/types/duration.py index 2e4c0b3..417482e 100644 --- a/src/metriport/fhir/types/duration.py +++ b/src/metriport/fhir/types/duration.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from ...core.datetime_utils import serialize_datetime from .code import Code from .decimal import Decimal from .duration_comparator import DurationComparator diff --git a/src/metriport/fhir/types/expression.py b/src/metriport/fhir/types/expression.py index 45b5196..d217c6d 100644 --- a/src/metriport/fhir/types/expression.py +++ b/src/metriport/fhir/types/expression.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from ...core.datetime_utils import serialize_datetime from .expression_language import ExpressionLanguage from .id import Id from .uri import Uri diff --git a/src/metriport/fhir/types/extension.py b/src/metriport/fhir/types/extension.py index be04d06..804eb08 100644 --- a/src/metriport/fhir/types/extension.py +++ b/src/metriport/fhir/types/extension.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from ...core.datetime_utils import serialize_datetime from .uri import Uri try: diff --git a/src/metriport/fhir/types/human_name.py b/src/metriport/fhir/types/human_name.py index 5dbb34a..7f3750a 100644 --- a/src/metriport/fhir/types/human_name.py +++ b/src/metriport/fhir/types/human_name.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from ...core.datetime_utils import serialize_datetime from .human_name_use import HumanNameUse try: diff --git a/src/metriport/fhir/types/identifier.py b/src/metriport/fhir/types/identifier.py index dc77033..3d0f22d 100644 --- a/src/metriport/fhir/types/identifier.py +++ b/src/metriport/fhir/types/identifier.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from ...core.datetime_utils import serialize_datetime from .identifier_use import IdentifierUse from .uri import Uri diff --git a/src/metriport/fhir/types/meta.py b/src/metriport/fhir/types/meta.py index 7eb446c..47edba0 100644 --- a/src/metriport/fhir/types/meta.py +++ b/src/metriport/fhir/types/meta.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from ...core.datetime_utils import serialize_datetime from .canonical import Canonical from .id import Id from .instant import Instant diff --git a/src/metriport/fhir/types/money.py b/src/metriport/fhir/types/money.py index c50bcaf..58f8875 100644 --- a/src/metriport/fhir/types/money.py +++ b/src/metriport/fhir/types/money.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from ...core.datetime_utils import serialize_datetime from .code import Code from .decimal import Decimal diff --git a/src/metriport/fhir/types/narrative.py b/src/metriport/fhir/types/narrative.py index f466dd7..d5e038f 100644 --- a/src/metriport/fhir/types/narrative.py +++ b/src/metriport/fhir/types/narrative.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from ...core.datetime_utils import serialize_datetime from .extension import Extension from .narrative_status import NarrativeStatus from .xhtml import Xhtml diff --git a/src/metriport/fhir/types/parameter_definition.py b/src/metriport/fhir/types/parameter_definition.py index 91035af..202e5ae 100644 --- a/src/metriport/fhir/types/parameter_definition.py +++ b/src/metriport/fhir/types/parameter_definition.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from ...core.datetime_utils import serialize_datetime from .canonical import Canonical from .code import Code diff --git a/src/metriport/fhir/types/period.py b/src/metriport/fhir/types/period.py index 33d3424..2d89f3b 100644 --- a/src/metriport/fhir/types/period.py +++ b/src/metriport/fhir/types/period.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from ...core.datetime_utils import serialize_datetime from .date_time import DateTime try: diff --git a/src/metriport/fhir/types/quantity.py b/src/metriport/fhir/types/quantity.py index e6a40e0..dfcb8d2 100644 --- a/src/metriport/fhir/types/quantity.py +++ b/src/metriport/fhir/types/quantity.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from ...core.datetime_utils import serialize_datetime from .code import Code from .decimal import Decimal from .quantity_comparator import QuantityComparator diff --git a/src/metriport/fhir/types/range.py b/src/metriport/fhir/types/range.py index 8a0f8d7..e1dfc66 100644 --- a/src/metriport/fhir/types/range.py +++ b/src/metriport/fhir/types/range.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from ...core.datetime_utils import serialize_datetime try: import pydantic.v1 as pydantic # type: ignore diff --git a/src/metriport/fhir/types/ratio.py b/src/metriport/fhir/types/ratio.py index 927d748..25cae1d 100644 --- a/src/metriport/fhir/types/ratio.py +++ b/src/metriport/fhir/types/ratio.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from ...core.datetime_utils import serialize_datetime try: import pydantic.v1 as pydantic # type: ignore diff --git a/src/metriport/fhir/types/reference.py b/src/metriport/fhir/types/reference.py index 3675c89..f7d0f5e 100644 --- a/src/metriport/fhir/types/reference.py +++ b/src/metriport/fhir/types/reference.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from ...core.datetime_utils import serialize_datetime from .uri import Uri try: diff --git a/src/metriport/fhir/types/related_artifact.py b/src/metriport/fhir/types/related_artifact.py index 89b7115..24ca105 100644 --- a/src/metriport/fhir/types/related_artifact.py +++ b/src/metriport/fhir/types/related_artifact.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from ...core.datetime_utils import serialize_datetime from .canonical import Canonical from .markdown import Markdown from .related_artifact_type import RelatedArtifactType diff --git a/src/metriport/fhir/types/sampled_data.py b/src/metriport/fhir/types/sampled_data.py index 46db2e4..eb7d4b8 100644 --- a/src/metriport/fhir/types/sampled_data.py +++ b/src/metriport/fhir/types/sampled_data.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from ...core.datetime_utils import serialize_datetime from .decimal import Decimal from .positive_int import PositiveInt diff --git a/src/metriport/fhir/types/signature.py b/src/metriport/fhir/types/signature.py index 6c1c740..055af1c 100644 --- a/src/metriport/fhir/types/signature.py +++ b/src/metriport/fhir/types/signature.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from ...core.datetime_utils import serialize_datetime from .base_64_binary import Base64Binary from .code import Code from .instant import Instant diff --git a/src/metriport/fhir/types/timing.py b/src/metriport/fhir/types/timing.py index d9ba028..d097538 100644 --- a/src/metriport/fhir/types/timing.py +++ b/src/metriport/fhir/types/timing.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from ...core.datetime_utils import serialize_datetime from .date_time import DateTime try: diff --git a/src/metriport/fhir/types/timing_repeat.py b/src/metriport/fhir/types/timing_repeat.py index 7e92c13..4aab459 100644 --- a/src/metriport/fhir/types/timing_repeat.py +++ b/src/metriport/fhir/types/timing_repeat.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from ...core.datetime_utils import serialize_datetime from .code import Code from .decimal import Decimal from .positive_int import PositiveInt diff --git a/src/metriport/fhir/types/trigger_definition.py b/src/metriport/fhir/types/trigger_definition.py index eaea293..e2f8cb7 100644 --- a/src/metriport/fhir/types/trigger_definition.py +++ b/src/metriport/fhir/types/trigger_definition.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from ...core.datetime_utils import serialize_datetime from .trigger_definition_type import TriggerDefinitionType try: diff --git a/src/metriport/fhir/types/usage_context.py b/src/metriport/fhir/types/usage_context.py index db9cb56..a34e5b1 100644 --- a/src/metriport/fhir/types/usage_context.py +++ b/src/metriport/fhir/types/usage_context.py @@ -5,7 +5,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from ...core.datetime_utils import serialize_datetime try: import pydantic.v1 as pydantic # type: ignore diff --git a/src/metriport/medical/resources/document/types/bulk_get_document_url_query.py b/src/metriport/medical/resources/document/types/bulk_get_document_url_query.py index af5488f..793e01c 100644 --- a/src/metriport/medical/resources/document/types/bulk_get_document_url_query.py +++ b/src/metriport/medical/resources/document/types/bulk_get_document_url_query.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from .....core.datetime_utils import serialize_datetime from .document_query_status import DocumentQueryStatus try: diff --git a/src/metriport/medical/resources/document/types/document_query.py b/src/metriport/medical/resources/document/types/document_query.py index 1f12d54..49fb940 100644 --- a/src/metriport/medical/resources/document/types/document_query.py +++ b/src/metriport/medical/resources/document/types/document_query.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from .....core.datetime_utils import serialize_datetime from .progress import Progress try: diff --git a/src/metriport/medical/resources/document/types/document_url.py b/src/metriport/medical/resources/document/types/document_url.py index 0a8ce1b..1788bcd 100644 --- a/src/metriport/medical/resources/document/types/document_url.py +++ b/src/metriport/medical/resources/document/types/document_url.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from .....core.datetime_utils import serialize_datetime try: import pydantic.v1 as pydantic # type: ignore diff --git a/src/metriport/medical/resources/document/types/list_document_references.py b/src/metriport/medical/resources/document/types/list_document_references.py index 2696c6a..0c392d9 100644 --- a/src/metriport/medical/resources/document/types/list_document_references.py +++ b/src/metriport/medical/resources/document/types/list_document_references.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from .....core.datetime_utils import serialize_datetime from .....fhir.types.document_reference import DocumentReference try: diff --git a/src/metriport/medical/resources/document/types/progress.py b/src/metriport/medical/resources/document/types/progress.py index 4141949..3e4bb6a 100644 --- a/src/metriport/medical/resources/document/types/progress.py +++ b/src/metriport/medical/resources/document/types/progress.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from .....core.datetime_utils import serialize_datetime from .document_query_status import DocumentQueryStatus try: diff --git a/src/metriport/medical/resources/document/types/upload_document_response.py b/src/metriport/medical/resources/document/types/upload_document_response.py index 2e405eb..09a21b1 100644 --- a/src/metriport/medical/resources/document/types/upload_document_response.py +++ b/src/metriport/medical/resources/document/types/upload_document_response.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from .....core.datetime_utils import serialize_datetime try: import pydantic.v1 as pydantic # type: ignore diff --git a/src/metriport/medical/resources/facility/types/base_facility.py b/src/metriport/medical/resources/facility/types/base_facility.py index e946fc9..0f34341 100644 --- a/src/metriport/medical/resources/facility/types/base_facility.py +++ b/src/metriport/medical/resources/facility/types/base_facility.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from .....core.datetime_utils import serialize_datetime from .....commons.types.address import Address try: diff --git a/src/metriport/medical/resources/facility/types/facility.py b/src/metriport/medical/resources/facility/types/facility.py index 45ccc8e..1c254f7 100644 --- a/src/metriport/medical/resources/facility/types/facility.py +++ b/src/metriport/medical/resources/facility/types/facility.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from .....core.datetime_utils import serialize_datetime from .base_facility import BaseFacility try: diff --git a/src/metriport/medical/resources/facility/types/list_facilities_response.py b/src/metriport/medical/resources/facility/types/list_facilities_response.py index dabf228..ab7fd6a 100644 --- a/src/metriport/medical/resources/facility/types/list_facilities_response.py +++ b/src/metriport/medical/resources/facility/types/list_facilities_response.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from .....core.datetime_utils import serialize_datetime from .facility import Facility try: diff --git a/src/metriport/medical/resources/fhir/types/consolidated_bundle_upload.py b/src/metriport/medical/resources/fhir/types/consolidated_bundle_upload.py index a6a48bc..19ae219 100644 --- a/src/metriport/medical/resources/fhir/types/consolidated_bundle_upload.py +++ b/src/metriport/medical/resources/fhir/types/consolidated_bundle_upload.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from .....core.datetime_utils import serialize_datetime try: import pydantic.v1 as pydantic # type: ignore diff --git a/src/metriport/medical/resources/fhir/types/consolidated_count_response.py b/src/metriport/medical/resources/fhir/types/consolidated_count_response.py index 9f87c3d..8666da8 100644 --- a/src/metriport/medical/resources/fhir/types/consolidated_count_response.py +++ b/src/metriport/medical/resources/fhir/types/consolidated_count_response.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from .....core.datetime_utils import serialize_datetime from .filter import Filter try: diff --git a/src/metriport/medical/resources/fhir/types/filter.py b/src/metriport/medical/resources/fhir/types/filter.py index b11d460..2908c33 100644 --- a/src/metriport/medical/resources/fhir/types/filter.py +++ b/src/metriport/medical/resources/fhir/types/filter.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from .....core.datetime_utils import serialize_datetime try: import pydantic.v1 as pydantic # type: ignore diff --git a/src/metriport/medical/resources/fhir/types/get_consolidated_query_status_response.py b/src/metriport/medical/resources/fhir/types/get_consolidated_query_status_response.py index f1434eb..784c8fc 100644 --- a/src/metriport/medical/resources/fhir/types/get_consolidated_query_status_response.py +++ b/src/metriport/medical/resources/fhir/types/get_consolidated_query_status_response.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from .....core.datetime_utils import serialize_datetime from .patient_consolidated_data_status import PatientConsolidatedDataStatus try: diff --git a/src/metriport/medical/resources/fhir/types/start_consolidated_query_response.py b/src/metriport/medical/resources/fhir/types/start_consolidated_query_response.py index 4ff2dba..30116e5 100644 --- a/src/metriport/medical/resources/fhir/types/start_consolidated_query_response.py +++ b/src/metriport/medical/resources/fhir/types/start_consolidated_query_response.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from .....core.datetime_utils import serialize_datetime from .patient_consolidated_data_status import PatientConsolidatedDataStatus try: diff --git a/src/metriport/medical/resources/organization/types/organization.py b/src/metriport/medical/resources/organization/types/organization.py index 41bbf06..db89916 100644 --- a/src/metriport/medical/resources/organization/types/organization.py +++ b/src/metriport/medical/resources/organization/types/organization.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from .....core.datetime_utils import serialize_datetime from .organization_create import OrganizationCreate try: diff --git a/src/metriport/medical/resources/organization/types/organization_create.py b/src/metriport/medical/resources/organization/types/organization_create.py index a8545f5..ee328a7 100644 --- a/src/metriport/medical/resources/organization/types/organization_create.py +++ b/src/metriport/medical/resources/organization/types/organization_create.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from .....core.datetime_utils import serialize_datetime from .....commons.types.address import Address from .org_type import OrgType diff --git a/src/metriport/medical/resources/patient/types/base_patient.py b/src/metriport/medical/resources/patient/types/base_patient.py index 9d0ee07..cf520f1 100644 --- a/src/metriport/medical/resources/patient/types/base_patient.py +++ b/src/metriport/medical/resources/patient/types/base_patient.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from .....core.datetime_utils import serialize_datetime from .....commons.types.address import Address from .contact import Contact from .personal_identifier import PersonalIdentifier diff --git a/src/metriport/medical/resources/patient/types/contact.py b/src/metriport/medical/resources/patient/types/contact.py index 4e79c78..d97a13d 100644 --- a/src/metriport/medical/resources/patient/types/contact.py +++ b/src/metriport/medical/resources/patient/types/contact.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from .....core.datetime_utils import serialize_datetime try: import pydantic.v1 as pydantic # type: ignore diff --git a/src/metriport/medical/resources/patient/types/drivers_license.py b/src/metriport/medical/resources/patient/types/drivers_license.py index dcc4920..ec0a3ef 100644 --- a/src/metriport/medical/resources/patient/types/drivers_license.py +++ b/src/metriport/medical/resources/patient/types/drivers_license.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from .....core.datetime_utils import serialize_datetime from .....commons.types.us_state import UsState from .....fhir.types.period import Period diff --git a/src/metriport/medical/resources/patient/types/list_patients_response.py b/src/metriport/medical/resources/patient/types/list_patients_response.py index d76fe19..f740cbe 100644 --- a/src/metriport/medical/resources/patient/types/list_patients_response.py +++ b/src/metriport/medical/resources/patient/types/list_patients_response.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from .....core.datetime_utils import serialize_datetime from .patient import Patient try: diff --git a/src/metriport/medical/resources/patient/types/medical_record_status.py b/src/metriport/medical/resources/patient/types/medical_record_status.py index ccb3c3b..774b4ed 100644 --- a/src/metriport/medical/resources/patient/types/medical_record_status.py +++ b/src/metriport/medical/resources/patient/types/medical_record_status.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from .....core.datetime_utils import serialize_datetime from .record_status import RecordStatus try: diff --git a/src/metriport/medical/resources/patient/types/patient.py b/src/metriport/medical/resources/patient/types/patient.py index 3fae089..41111c2 100644 --- a/src/metriport/medical/resources/patient/types/patient.py +++ b/src/metriport/medical/resources/patient/types/patient.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from .....core.datetime_utils import serialize_datetime from .base_patient import BasePatient from .facility_id import FacilityId diff --git a/src/metriport/medical/resources/patient/types/record_status.py b/src/metriport/medical/resources/patient/types/record_status.py index 858f56a..f8adbe5 100644 --- a/src/metriport/medical/resources/patient/types/record_status.py +++ b/src/metriport/medical/resources/patient/types/record_status.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from .....core.datetime_utils import serialize_datetime try: import pydantic.v1 as pydantic # type: ignore diff --git a/src/metriport/medical/resources/webhooks/types/payload_patient.py b/src/metriport/medical/resources/webhooks/types/payload_patient.py index 3f63ff4..1fc0f60 100644 --- a/src/metriport/medical/resources/webhooks/types/payload_patient.py +++ b/src/metriport/medical/resources/webhooks/types/payload_patient.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from .....core.datetime_utils import serialize_datetime from .....fhir.types.bundle import Bundle from .consolidated_webhook_status import ConsolidatedWebhookStatus from .filters import Filters diff --git a/src/metriport/medical/resources/webhooks/types/webhook_document_data_payload.py b/src/metriport/medical/resources/webhooks/types/webhook_document_data_payload.py index c987898..f06c044 100644 --- a/src/metriport/medical/resources/webhooks/types/webhook_document_data_payload.py +++ b/src/metriport/medical/resources/webhooks/types/webhook_document_data_payload.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from .....core.datetime_utils import serialize_datetime from .....fhir.types.codeable_concept import CodeableConcept try: diff --git a/src/metriport/medical/resources/webhooks/types/webhook_metadata_payload.py b/src/metriport/medical/resources/webhooks/types/webhook_metadata_payload.py index ca855fc..8252916 100644 --- a/src/metriport/medical/resources/webhooks/types/webhook_metadata_payload.py +++ b/src/metriport/medical/resources/webhooks/types/webhook_metadata_payload.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from .....core.datetime_utils import serialize_datetime try: import pydantic.v1 as pydantic # type: ignore diff --git a/src/metriport/medical/resources/webhooks/types/webhook_patient_consolidated_data_payload.py b/src/metriport/medical/resources/webhooks/types/webhook_patient_consolidated_data_payload.py index 5344c25..10a6d3c 100644 --- a/src/metriport/medical/resources/webhooks/types/webhook_patient_consolidated_data_payload.py +++ b/src/metriport/medical/resources/webhooks/types/webhook_patient_consolidated_data_payload.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from .....core.datetime_utils import serialize_datetime from .payload_patient import PayloadPatient from .webhook_metadata_payload import WebhookMetadataPayload diff --git a/src/metriport/medical/resources/webhooks/types/webhook_patient_document_data_payload.py b/src/metriport/medical/resources/webhooks/types/webhook_patient_document_data_payload.py index 8286adc..01e94e9 100644 --- a/src/metriport/medical/resources/webhooks/types/webhook_patient_document_data_payload.py +++ b/src/metriport/medical/resources/webhooks/types/webhook_patient_document_data_payload.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from .....core.datetime_utils import serialize_datetime from .webhook_metadata_payload import WebhookMetadataPayload from .webhook_patient_payload import WebhookPatientPayload diff --git a/src/metriport/medical/resources/webhooks/types/webhook_patient_payload.py b/src/metriport/medical/resources/webhooks/types/webhook_patient_payload.py index 0b8b459..d7d7ef0 100644 --- a/src/metriport/medical/resources/webhooks/types/webhook_patient_payload.py +++ b/src/metriport/medical/resources/webhooks/types/webhook_patient_payload.py @@ -3,7 +3,7 @@ import datetime as dt import typing -from metriport.core.datetime_utils import serialize_datetime +from .....core.datetime_utils import serialize_datetime from .mapi_webhook_status import MapiWebhookStatus from .webhook_document_data_payload import WebhookDocumentDataPayload