Skip to content

Commit

Permalink
feat(fhir): updated fhir resource imports
Browse files Browse the repository at this point in the history
Refs: #1212
  • Loading branch information
jonahkaye committed Feb 16, 2024
1 parent 998a2b2 commit 4dd31f4
Show file tree
Hide file tree
Showing 1,038 changed files with 710 additions and 715 deletions.
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 . import commons
from . import fhir
from . import medical
from .environment import MetriportEnvironment

__all__ = ["Address", "MetriportEnvironment", "UsState", "commons", "fhir", "medical"]
__all__ = ["Address", "MetriportEnvironment", "commons", "fhir", "medical"]
3 changes: 1 addition & 2 deletions src/metriport/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +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:
def __init__(
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 ...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 typing_extensions

from ....core.datetime_utils import serialize_datetime
from ...core.datetime_utils import serialize_datetime
from .access_policy_ip_access_rule import AccessPolicyIpAccessRule
from .access_policy_resource import AccessPolicyResource
from .code import Code
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 ...core.datetime_utils import serialize_datetime
from .access_policy_ip_access_rule_action import AccessPolicyIpAccessRuleAction

try:
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 ...core.datetime_utils import serialize_datetime
from .expression import Expression
from .reference import Reference

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 ...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 typing_extensions

from ....core.datetime_utils import serialize_datetime
from ...core.datetime_utils import serialize_datetime
from .account_coverage import AccountCoverage
from .account_guarantor import AccountGuarantor
from .account_status import AccountStatus
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 ...core.datetime_utils import serialize_datetime
from .extension import Extension
from .positive_int import PositiveInt
from .reference import Reference
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 ...core.datetime_utils import serialize_datetime
from .extension import Extension
from .period import Period
from .reference import Reference
Expand Down
File renamed without changes.
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 ...core.datetime_utils import serialize_datetime
from .activity_definition_dynamic_value import ActivityDefinitionDynamicValue
from .activity_definition_participant import ActivityDefinitionParticipant
from .activity_definition_status import ActivityDefinitionStatus
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 ...core.datetime_utils import serialize_datetime
from .expression import Expression
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 ...core.datetime_utils import serialize_datetime
from .code import Code
from .codeable_concept import CodeableConcept
from .extension import Extension
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 ...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 typing_extensions

from ....core.datetime_utils import serialize_datetime
from ...core.datetime_utils import serialize_datetime
from .adverse_event_actuality import AdverseEventActuality
from .adverse_event_suspect_entity import AdverseEventSuspectEntity
from .base_resource import BaseResource
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 ...core.datetime_utils import serialize_datetime
from .codeable_concept import CodeableConcept
from .extension import Extension
from .reference import Reference
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 ...core.datetime_utils import serialize_datetime
from .adverse_event_causality import AdverseEventCausality
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 ...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 typing_extensions

from ....core.datetime_utils import serialize_datetime
from ...core.datetime_utils import serialize_datetime
from .agent_channel import AgentChannel
from .agent_setting import AgentSetting
from .agent_status import AgentStatus
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 ...core.datetime_utils import serialize_datetime
from .reference import Reference
from .url import Url

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 ...core.datetime_utils import serialize_datetime
from .decimal import Decimal

try:
Expand Down
File renamed without changes.
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 ...core.datetime_utils import serialize_datetime
from .age import Age
from .allergy_intolerance_category_item import AllergyIntoleranceCategoryItem
from .allergy_intolerance_criticality import AllergyIntoleranceCriticality
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 ...core.datetime_utils import serialize_datetime
from .allergy_intolerance_reaction_severity import AllergyIntoleranceReactionSeverity
from .annotation import Annotation
from .codeable_concept import CodeableConcept
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 ...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 typing_extensions

from ....core.datetime_utils import serialize_datetime
from ...core.datetime_utils import serialize_datetime
from .appointment_participant import AppointmentParticipant
from .appointment_status import AppointmentStatus
from .base_resource import BaseResource
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 ...core.datetime_utils import serialize_datetime
from .appointment_participant_required import AppointmentParticipantRequired
from .appointment_participant_status import AppointmentParticipantStatus
from .codeable_concept import CodeableConcept
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 ...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 @@ -5,7 +5,7 @@

import typing_extensions

from ....core.datetime_utils import serialize_datetime
from ...core.datetime_utils import serialize_datetime
from .async_job_status import AsyncJobStatus
from .code import Code
from .id import Id
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 ...core.datetime_utils import serialize_datetime
from .base_64_binary import Base64Binary
from .code import Code
from .date_time import DateTime
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 ...core.datetime_utils import serialize_datetime
from .audit_event_action import AuditEventAction
from .audit_event_agent import AuditEventAgent
from .audit_event_entity import AuditEventEntity
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 ...core.datetime_utils import serialize_datetime
from .audit_event_network import AuditEventNetwork
from .codeable_concept import CodeableConcept
from .coding import Coding
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 ...core.datetime_utils import serialize_datetime
from .extension import Extension

try:
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 ...core.datetime_utils import serialize_datetime
from .audit_event_detail import AuditEventDetail
from .base_64_binary import Base64Binary
from .coding import Coding
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 ...core.datetime_utils import serialize_datetime
from .audit_event_network_type import AuditEventNetworkType
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 ...core.datetime_utils import serialize_datetime
from .coding import Coding
from .extension import Extension
from .reference import Reference
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 ...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 ...core.datetime_utils import serialize_datetime
from .base_resource import BaseResource
from .codeable_concept import CodeableConcept
from .identifier import Identifier
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 ...core.datetime_utils import serialize_datetime
from .base_64_binary import Base64Binary
from .code import Code
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 ...core.datetime_utils import serialize_datetime
from .base_resource import BaseResource
from .biologically_derived_product_collection import BiologicallyDerivedProductCollection
from .biologically_derived_product_manipulation import BiologicallyDerivedProductManipulation
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 ...core.datetime_utils import serialize_datetime
from .extension import Extension
from .period import Period
from .reference import Reference
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 ...core.datetime_utils import serialize_datetime
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 ...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 ...core.datetime_utils import serialize_datetime
from .biologically_derived_product_storage_scale import BiologicallyDerivedProductStorageScale
from .decimal import Decimal
from .extension import Extension
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 ...core.datetime_utils import serialize_datetime
from .attachment import Attachment
from .base_resource import BaseResource
from .codeable_concept import CodeableConcept
Expand Down
File renamed without changes.
Loading

0 comments on commit 4dd31f4

Please sign in to comment.