Skip to content

Commit

Permalink
feat(hack): rewrote import paths
Browse files Browse the repository at this point in the history
Refs: #1212
  • Loading branch information
jonahkaye committed Feb 16, 2024
1 parent 20b018b commit 78fb2c0
Show file tree
Hide file tree
Showing 156 changed files with 108 additions and 112 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down Expand Up @@ -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()
Expand Down
6 changes: 4 additions & 2 deletions src/metriport/__init__.py
Original file line number Diff line number Diff line change
@@ -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"]
2 changes: 1 addition & 1 deletion src/metriport/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
File renamed without changes.
Loading

0 comments on commit 78fb2c0

Please sign in to comment.