Skip to content

Commit

Permalink
Release 0.1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Oct 13, 2023
1 parent 57e2be7 commit e5b3f91
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 82 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "fern-metriport"
version = "0.1.7"
version = "0.1.8"
description = ""
readme = "README.md"
authors = []
Expand Down
2 changes: 1 addition & 1 deletion src/metriport/core/client_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def get_headers(self) -> typing.Dict[str, str]:
headers: typing.Dict[str, str] = {
"X-Fern-Language": "Python",
"X-Fern-SDK-Name": "fern-metriport",
"X-Fern-SDK-Version": "0.1.7",
"X-Fern-SDK-Version": "0.1.8",
}
headers["X-API-Key"] = self.api_key
return headers
Expand Down
4 changes: 0 additions & 4 deletions src/metriport/resources/medical/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
Filter,
GetConsolidatedQueryStatusResponse,
ListDocumentsResponse,
ListFacilitiesResponse,
ListPatientsResponse,
OrgType,
Organization,
Patient,
Expand Down Expand Up @@ -63,8 +61,6 @@
"Filter",
"GetConsolidatedQueryStatusResponse",
"ListDocumentsResponse",
"ListFacilitiesResponse",
"ListPatientsResponse",
"OrgType",
"Organization",
"Patient",
Expand Down
5 changes: 1 addition & 4 deletions src/metriport/resources/medical/resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
ListDocumentsResponse,
Progress,
)
from .facility import BaseFacility, Facility, ListFacilitiesResponse
from .facility import BaseFacility, Facility
from .fhir import (
ConsolidatedCountResponse,
Filter,
Expand All @@ -31,7 +31,6 @@
Contacts,
DriversLicense,
FacilityId,
ListPatientsResponse,
Patient,
Period,
PersonalIdentifier,
Expand Down Expand Up @@ -59,8 +58,6 @@
"Filter",
"GetConsolidatedQueryStatusResponse",
"ListDocumentsResponse",
"ListFacilitiesResponse",
"ListPatientsResponse",
"OrgType",
"Organization",
"Patient",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This file was auto-generated by Fern from our API Definition.

from .types import BaseFacility, Facility, ListFacilitiesResponse
from .types import BaseFacility, Facility

__all__ = ["BaseFacility", "Facility", "ListFacilitiesResponse"]
__all__ = ["BaseFacility", "Facility"]
9 changes: 4 additions & 5 deletions src/metriport/resources/medical/resources/facility/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
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

# this is used as the default value for optional parameters
OMIT = typing.cast(typing.Any, ...)
Expand Down Expand Up @@ -88,7 +87,7 @@ def update(self, id: str, *, request: BaseFacility) -> Facility:
raise ApiError(status_code=_response.status_code, body=_response.text)
raise ApiError(status_code=_response.status_code, body=_response_json)

def list(self) -> ListFacilitiesResponse:
def list(self) -> typing.List[Facility]:
"""
Lists all of your Facilities.
"""
Expand All @@ -99,7 +98,7 @@ def list(self) -> ListFacilitiesResponse:
timeout=60,
)
if 200 <= _response.status_code < 300:
return pydantic.parse_obj_as(ListFacilitiesResponse, _response.json()) # type: ignore
return pydantic.parse_obj_as(typing.List[Facility], _response.json()) # type: ignore
try:
_response_json = _response.json()
except JSONDecodeError:
Expand Down Expand Up @@ -178,7 +177,7 @@ async def update(self, id: str, *, request: BaseFacility) -> Facility:
raise ApiError(status_code=_response.status_code, body=_response.text)
raise ApiError(status_code=_response.status_code, body=_response_json)

async def list(self) -> ListFacilitiesResponse:
async def list(self) -> typing.List[Facility]:
"""
Lists all of your Facilities.
"""
Expand All @@ -189,7 +188,7 @@ async def list(self) -> ListFacilitiesResponse:
timeout=60,
)
if 200 <= _response.status_code < 300:
return pydantic.parse_obj_as(ListFacilitiesResponse, _response.json()) # type: ignore
return pydantic.parse_obj_as(typing.List[Facility], _response.json()) # type: ignore
try:
_response_json = _response.json()
except JSONDecodeError:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@

from .base_facility import BaseFacility
from .facility import Facility
from .list_facilities_response import ListFacilitiesResponse

__all__ = ["BaseFacility", "Facility", "ListFacilitiesResponse"]
__all__ = ["BaseFacility", "Facility"]

This file was deleted.

2 changes: 0 additions & 2 deletions src/metriport/resources/medical/resources/patient/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
Contacts,
DriversLicense,
FacilityId,
ListPatientsResponse,
Patient,
Period,
PersonalIdentifier,
Expand All @@ -21,7 +20,6 @@
"Contacts",
"DriversLicense",
"FacilityId",
"ListPatientsResponse",
"Patient",
"Period",
"PersonalIdentifier",
Expand Down
13 changes: 6 additions & 7 deletions src/metriport/resources/medical/resources/patient/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
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.patient import Patient

# this is used as the default value for optional parameters
Expand Down Expand Up @@ -100,12 +99,12 @@ def update(self, id: str, *, facility_id: str, request: BasePatient) -> Patient:
raise ApiError(status_code=_response.status_code, body=_response.text)
raise ApiError(status_code=_response.status_code, body=_response_json)

def list(self, *, facility_id: typing.Optional[str] = None) -> ListPatientsResponse:
def list(self, *, facility_id: str) -> typing.List[Patient]:
"""
Lists all Patients receiving care at the specified Facility.
Parameters:
- facility_id: typing.Optional[str]. The ID of the Facility where the patient is receiving care.
- facility_id: str. The ID of the Facility where the patient is receiving care.
"""
_response = self._client_wrapper.httpx_client.request(
"GET",
Expand All @@ -115,7 +114,7 @@ def list(self, *, facility_id: typing.Optional[str] = None) -> ListPatientsRespo
timeout=60,
)
if 200 <= _response.status_code < 300:
return pydantic.parse_obj_as(ListPatientsResponse, _response.json()) # type: ignore
return pydantic.parse_obj_as(typing.List[Patient], _response.json()) # type: ignore
try:
_response_json = _response.json()
except JSONDecodeError:
Expand Down Expand Up @@ -229,12 +228,12 @@ async def update(self, id: str, *, facility_id: str, request: BasePatient) -> Pa
raise ApiError(status_code=_response.status_code, body=_response.text)
raise ApiError(status_code=_response.status_code, body=_response_json)

async def list(self, *, facility_id: typing.Optional[str] = None) -> ListPatientsResponse:
async def list(self, *, facility_id: str) -> typing.List[Patient]:
"""
Lists all Patients receiving care at the specified Facility.
Parameters:
- facility_id: typing.Optional[str]. The ID of the Facility where the patient is receiving care.
- facility_id: str. The ID of the Facility where the patient is receiving care.
"""
_response = await self._client_wrapper.httpx_client.request(
"GET",
Expand All @@ -244,7 +243,7 @@ async def list(self, *, facility_id: typing.Optional[str] = None) -> ListPatient
timeout=60,
)
if 200 <= _response.status_code < 300:
return pydantic.parse_obj_as(ListPatientsResponse, _response.json()) # type: ignore
return pydantic.parse_obj_as(typing.List[Patient], _response.json()) # type: ignore
try:
_response_json = _response.json()
except JSONDecodeError:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from .contacts import Contacts
from .drivers_license import DriversLicense
from .facility_id import FacilityId
from .list_patients_response import ListPatientsResponse
from .patient import Patient
from .period import Period
from .personal_identifier import PersonalIdentifier, PersonalIdentifier_DriversLicense
Expand All @@ -18,7 +17,6 @@
"Contacts",
"DriversLicense",
"FacilityId",
"ListPatientsResponse",
"Patient",
"Period",
"PersonalIdentifier",
Expand Down

This file was deleted.

0 comments on commit e5b3f91

Please sign in to comment.