Skip to content

Commit

Permalink
Deploying to gh-pages from @ 6b30373 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnzhu committed Dec 18, 2024
1 parent ecfa83f commit 52be48c
Show file tree
Hide file tree
Showing 54 changed files with 1,344 additions and 617 deletions.
2 changes: 1 addition & 1 deletion easy/abstract/fhir_service_item.html
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,7 @@ <h2 id="examples">Examples</h2>
</details>
</dd>
<dt id="phc.easy.abstract.fhir_service_item.FhirServiceItem.get_data_frame"><code class="name flex">
<span>def <span class="ident">get_data_frame</span></span>(<span>all_results: bool = False, raw: bool = False, page_size: Optional[int] = None, max_pages: Optional[int] = None, query_overrides: dict = {}, auth_args=&lt;phc.easy.auth.Auth object&gt;, ignore_cache: bool = False, expand_args: dict = {}, log: bool = False, id: Optional[str] = None, ids: List[str] = [], term: Optional[dict] = None, terms: List[dict] = [], max_terms: int = 30000, code: Union[str, List[str], None] = None, display: Union[str, List[str], None] = None, system: Union[str, List[str], None] = None, code_fields: List[str] = [])</span>
<span>def <span class="ident">get_data_frame</span></span>(<span>all_results: bool = False, raw: bool = False, page_size: Optional[int] = None, max_pages: Optional[int] = None, query_overrides: dict = {}, auth_args=&lt;phc.easy.auth.Auth object&gt;, ignore_cache: bool = False, expand_args: dict = {}, log: bool = False, id: Optional[str] = None, ids: List[str] = [], term: Optional[dict] = None, terms: List[dict] = [], max_terms: int = 30000, code: Union[str, List[str], ForwardRef(None)] = None, display: Union[str, List[str], ForwardRef(None)] = None, system: Union[str, List[str], ForwardRef(None)] = None, code_fields: List[str] = [])</span>
</code></dt>
<dd>
<div class="desc"><p>Retrieve records</p>
Expand Down
2 changes: 1 addition & 1 deletion easy/abstract/fhir_service_patient_item.html
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ <h2 id="examples">Examples</h2>
</details>
</dd>
<dt id="phc.easy.abstract.fhir_service_patient_item.FhirServicePatientItem.get_data_frame"><code class="name flex">
<span>def <span class="ident">get_data_frame</span></span>(<span>all_results: bool = False, raw: bool = False, id: Optional[str] = None, ids: List[str] = [], patient_id: Optional[str] = None, patient_ids: List[str] = [], device_id: Optional[str] = None, device_ids: List[str] = [], page_size: Optional[int] = None, max_pages: Optional[int] = None, query_overrides: dict = {}, auth_args=&lt;phc.easy.auth.Auth object&gt;, ignore_cache: bool = False, expand_args: dict = {}, log: bool = False, term: Optional[dict] = None, terms: List[dict] = [], max_terms: int = 30000, code: Union[str, List[str], None] = None, display: Union[str, List[str], None] = None, system: Union[str, List[str], None] = None, code_fields: List[str] = [])</span>
<span>def <span class="ident">get_data_frame</span></span>(<span>all_results: bool = False, raw: bool = False, id: Optional[str] = None, ids: List[str] = [], patient_id: Optional[str] = None, patient_ids: List[str] = [], device_id: Optional[str] = None, device_ids: List[str] = [], page_size: Optional[int] = None, max_pages: Optional[int] = None, query_overrides: dict = {}, auth_args=&lt;phc.easy.auth.Auth object&gt;, ignore_cache: bool = False, expand_args: dict = {}, log: bool = False, term: Optional[dict] = None, terms: List[dict] = [], max_terms: int = 30000, code: Union[str, List[str], ForwardRef(None)] = None, display: Union[str, List[str], ForwardRef(None)] = None, system: Union[str, List[str], ForwardRef(None)] = None, code_fields: List[str] = [])</span>
</code></dt>
<dd>
<div class="desc"><p>Retrieve records</p>
Expand Down
115 changes: 99 additions & 16 deletions easy/abstract/paging_api_item.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ <h1 class="title">Module <code>phc.easy.abstract.paging_api_item</code></h1>
def transform(key, value):
return (key, value)

def dict(self):
raw = super().dict()
def model_dump(self):
raw = super().model_dump()

def preprocess_value(v):
if isinstance(v, Enum):
Expand Down Expand Up @@ -97,7 +97,7 @@ <h1 class="title">Module <code>phc.easy.abstract.paging_api_item</code></h1>
@classmethod
def process_params(cls, params: dict) -&gt; dict:
&#34;Validates and transforms the API query parameters&#34;
return cls.params_class()(**params).dict()
return cls.params_class()(**params).model_dump()

@staticmethod
def transform_results(data_frame: pd.DataFrame, **expand_args):
Expand Down Expand Up @@ -219,7 +219,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
@classmethod
def process_params(cls, params: dict) -&gt; dict:
&#34;Validates and transforms the API query parameters&#34;
return cls.params_class()(**params).dict()
return cls.params_class()(**params).model_dump()

@staticmethod
def transform_results(data_frame: pd.DataFrame, **expand_args):
Expand Down Expand Up @@ -374,7 +374,7 @@ <h3>Static methods</h3>
<pre><code class="python">@classmethod
def process_params(cls, params: dict) -&gt; dict:
&#34;Validates and transforms the API query parameters&#34;
return cls.params_class()(**params).dict()</code></pre>
return cls.params_class()(**params).model_dump()</code></pre>
</details>
</dd>
<dt id="phc.easy.abstract.paging_api_item.PagingApiItem.resource_path"><code class="name flex">
Expand Down Expand Up @@ -428,8 +428,54 @@ <h3>Static methods</h3>
<span>(</span><span>**data: Any)</span>
</code></dt>
<dd>
<div class="desc"><p>Create a new model by parsing and validating input data from keyword arguments.</p>
<p>Raises ValidationError if the input data cannot be parsed to form a valid model.</p></div>
<div class="desc"><p>Usage docs: <a href="https://docs.pydantic.dev/2.10/concepts/models/">https://docs.pydantic.dev/2.10/concepts/models/</a></p>
<p>A base class for creating Pydantic models.</p>
<h2 id="attributes">Attributes</h2>
<dl>
<dt><strong><code>__class_vars__</code></strong></dt>
<dd>The names of the class variables defined on the model.</dd>
<dt><strong><code>__private_attributes__</code></strong></dt>
<dd>Metadata about the private attributes of the model.</dd>
<dt><strong><code>__signature__</code></strong></dt>
<dd>The synthesized <code>__init__</code> [<code>Signature</code>][inspect.Signature] of the model.</dd>
<dt><strong><code>__pydantic_complete__</code></strong></dt>
<dd>Whether model building is completed, or if there are still undefined fields.</dd>
<dt><strong><code>__pydantic_core_schema__</code></strong></dt>
<dd>The core schema of the model.</dd>
<dt><strong><code>__pydantic_custom_init__</code></strong></dt>
<dd>Whether the model has a custom <code>__init__</code> function.</dd>
<dt><strong><code>__pydantic_decorators__</code></strong></dt>
<dd>Metadata containing the decorators defined on the model.
This replaces <code>Model.__validators__</code> and <code>Model.__root_validators__</code> from Pydantic V1.</dd>
<dt><strong><code>__pydantic_generic_metadata__</code></strong></dt>
<dd>Metadata for generic models; contains data used for a similar purpose to
<strong>args</strong>, <strong>origin</strong>, <strong>parameters</strong> in typing-module generics. May eventually be replaced by these.</dd>
<dt><strong><code>__pydantic_parent_namespace__</code></strong></dt>
<dd>Parent namespace of the model, used for automatic rebuilding of models.</dd>
<dt><strong><code>__pydantic_post_init__</code></strong></dt>
<dd>The name of the post-init method for the model, if defined.</dd>
<dt><strong><code>__pydantic_root_model__</code></strong></dt>
<dd>Whether the model is a [<code>RootModel</code>][pydantic.root_model.RootModel].</dd>
<dt><strong><code>__pydantic_serializer__</code></strong></dt>
<dd>The <code>pydantic-core</code> <code>SchemaSerializer</code> used to dump instances of the model.</dd>
<dt><strong><code>__pydantic_validator__</code></strong></dt>
<dd>The <code>pydantic-core</code> <code>SchemaValidator</code> used to validate instances of the model.</dd>
<dt><strong><code>__pydantic_fields__</code></strong></dt>
<dd>A dictionary of field names and their corresponding [<code>FieldInfo</code>][pydantic.fields.FieldInfo] objects.</dd>
<dt><strong><code>__pydantic_computed_fields__</code></strong></dt>
<dd>A dictionary of computed field names and their corresponding [<code>ComputedFieldInfo</code>][pydantic.fields.ComputedFieldInfo] objects.</dd>
<dt><strong><code>__pydantic_extra__</code></strong></dt>
<dd>A dictionary containing extra values, if [<code>extra</code>][pydantic.config.ConfigDict.extra]
is set to <code>'allow'</code>.</dd>
<dt><strong><code>__pydantic_fields_set__</code></strong></dt>
<dd>The names of fields explicitly set during instantiation.</dd>
<dt><strong><code>__pydantic_private__</code></strong></dt>
<dd>Values of private attributes set on the model instance.</dd>
</dl>
<p>Create a new model by parsing and validating input data from keyword arguments.</p>
<p>Raises [<code>ValidationError</code>][pydantic_core.ValidationError] if the input data cannot be
validated to form a valid model.</p>
<p><code>self</code> is explicitly positional-only to allow <code>self</code> as a field name.</p></div>
<details class="source">
<summary>
<span>Expand source code</span>
Expand All @@ -439,8 +485,8 @@ <h3>Static methods</h3>
def transform(key, value):
return (key, value)

def dict(self):
raw = super().dict()
def model_dump(self):
raw = super().model_dump()

def preprocess_value(v):
if isinstance(v, Enum):
Expand All @@ -458,7 +504,6 @@ <h3>Static methods</h3>
<h3>Ancestors</h3>
<ul class="hlist">
<li>pydantic.main.BaseModel</li>
<li>pydantic.utils.Representation</li>
</ul>
<h3>Subclasses</h3>
<ul class="hlist">
Expand All @@ -471,6 +516,13 @@ <h3>Subclasses</h3>
<li><a title="phc.easy.summary.counts.NoOptions" href="../summary/counts.html#phc.easy.summary.counts.NoOptions">NoOptions</a></li>
<li><a title="phc.easy.summary.options.clinical_counts.SummaryClinicalCountsOptions" href="../summary/options/clinical_counts.html#phc.easy.summary.options.clinical_counts.SummaryClinicalCountsOptions">SummaryClinicalCountsOptions</a></li>
</ul>
<h3>Class variables</h3>
<dl>
<dt id="phc.easy.abstract.paging_api_item.PagingApiOptions.model_config"><code class="name">var <span class="ident">model_config</span></code></dt>
<dd>
<div class="desc"></div>
</dd>
</dl>
<h3>Static methods</h3>
<dl>
<dt id="phc.easy.abstract.paging_api_item.PagingApiOptions.transform"><code class="name flex">
Expand All @@ -490,17 +542,48 @@ <h3>Static methods</h3>
</dl>
<h3>Methods</h3>
<dl>
<dt id="phc.easy.abstract.paging_api_item.PagingApiOptions.dict"><code class="name flex">
<span>def <span class="ident">dict</span></span>(<span>self)</span>
<dt id="phc.easy.abstract.paging_api_item.PagingApiOptions.model_dump"><code class="name flex">
<span>def <span class="ident">model_dump</span></span>(<span>self)</span>
</code></dt>
<dd>
<div class="desc"><p>Generate a dictionary representation of the model, optionally specifying which fields to include or exclude.</p></div>
<div class="desc"><p>Usage docs: <a href="https://docs.pydantic.dev/2.10/concepts/serialization/#modelmodel_dump">https://docs.pydantic.dev/2.10/concepts/serialization/#modelmodel_dump</a></p>
<p>Generate a dictionary representation of the model, optionally specifying which fields to include or exclude.</p>
<h2 id="args">Args</h2>
<dl>
<dt><strong><code>mode</code></strong></dt>
<dd>The mode in which <code>to_python</code> should run.
If mode is 'json', the output will only contain JSON serializable types.
If mode is 'python', the output may contain non-JSON-serializable Python objects.</dd>
<dt><strong><code>include</code></strong></dt>
<dd>A set of fields to include in the output.</dd>
<dt><strong><code>exclude</code></strong></dt>
<dd>A set of fields to exclude from the output.</dd>
<dt><strong><code>context</code></strong></dt>
<dd>Additional context to pass to the serializer.</dd>
<dt><strong><code>by_alias</code></strong></dt>
<dd>Whether to use the field's alias in the dictionary key if defined.</dd>
<dt><strong><code>exclude_unset</code></strong></dt>
<dd>Whether to exclude fields that have not been explicitly set.</dd>
<dt><strong><code>exclude_defaults</code></strong></dt>
<dd>Whether to exclude fields that are set to their default value.</dd>
<dt><strong><code>exclude_none</code></strong></dt>
<dd>Whether to exclude fields that have a value of <code>None</code>.</dd>
<dt><strong><code>round_trip</code></strong></dt>
<dd>If True, dumped values should be valid as input for non-idempotent types such as Json[T].</dd>
<dt><strong><code>warnings</code></strong></dt>
<dd>How to handle serialization errors. False/"none" ignores them, True/"warn" logs errors,
"error" raises a [<code>PydanticSerializationError</code>][pydantic_core.PydanticSerializationError].</dd>
<dt><strong><code>serialize_as_any</code></strong></dt>
<dd>Whether to serialize fields with duck-typing serialization behavior.</dd>
</dl>
<h2 id="returns">Returns</h2>
<p>A dictionary representation of the model.</p></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def dict(self):
raw = super().dict()
<pre><code class="python">def model_dump(self):
raw = super().model_dump()

def preprocess_value(v):
if isinstance(v, Enum):
Expand Down Expand Up @@ -559,7 +642,7 @@ <h4><code><a title="phc.easy.abstract.paging_api_item.PagingApiItem" href="#phc.
<li>
<h4><code><a title="phc.easy.abstract.paging_api_item.PagingApiOptions" href="#phc.easy.abstract.paging_api_item.PagingApiOptions">PagingApiOptions</a></code></h4>
<ul class="">
<li><code><a title="phc.easy.abstract.paging_api_item.PagingApiOptions.dict" href="#phc.easy.abstract.paging_api_item.PagingApiOptions.dict">dict</a></code></li>
<li><code><a title="phc.easy.abstract.paging_api_item.PagingApiOptions.model_dump" href="#phc.easy.abstract.paging_api_item.PagingApiOptions.model_dump">model_dump</a></code></li>
<li><code><a title="phc.easy.abstract.paging_api_item.PagingApiOptions.transform" href="#phc.easy.abstract.paging_api_item.PagingApiOptions.transform">transform</a></code></li>
</ul>
</li>
Expand Down
2 changes: 1 addition & 1 deletion easy/audit_event.html
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ <h3>Static methods</h3>
</details>
</dd>
<dt id="phc.easy.audit_event.AuditEvent.get_data_frame"><code class="name flex">
<span>def <span class="ident">get_data_frame</span></span>(<span>all_results: bool = False, raw: bool = False, id: Optional[str] = None, ids: List[str] = [], patient_id: Optional[str] = None, patient_ids: List[str] = [], device_id: Optional[str] = None, device_ids: List[str] = [], page_size: Optional[int] = None, max_pages: Optional[int] = None, query_overrides: dict = {}, auth_args=&lt;phc.easy.auth.Auth object&gt;, ignore_cache: bool = False, expand_args: dict = {}, log: bool = False, term: Optional[dict] = None, terms: List[dict] = [], max_terms: int = 30000, code: Union[str, List[str], None] = None, display: Union[str, List[str], None] = None, system: Union[str, List[str], None] = None, code_fields: List[str] = [])</span>
<span>def <span class="ident">get_data_frame</span></span>(<span>all_results: bool = False, raw: bool = False, id: Optional[str] = None, ids: List[str] = [], patient_id: Optional[str] = None, patient_ids: List[str] = [], device_id: Optional[str] = None, device_ids: List[str] = [], page_size: Optional[int] = None, max_pages: Optional[int] = None, query_overrides: dict = {}, auth_args=&lt;phc.easy.auth.Auth object&gt;, ignore_cache: bool = False, expand_args: dict = {}, log: bool = False, term: Optional[dict] = None, terms: List[dict] = [], max_terms: int = 30000, code: Union[str, List[str], ForwardRef(None)] = None, display: Union[str, List[str], ForwardRef(None)] = None, system: Union[str, List[str], ForwardRef(None)] = None, code_fields: List[str] = [])</span>
</code></dt>
<dd>
<p class="inheritance">
Expand Down
4 changes: 2 additions & 2 deletions easy/auth.html
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
<dl>
<dt id="phc.easy.auth.Auth"><code class="flex name class">
<span>class <span class="ident">Auth</span></span>
<span>(</span><span>details: Union[Any, None, Dict[str, str]] = None)</span>
<span>(</span><span>details: Union[Any, ForwardRef(None), Dict[str, str]] = None)</span>
</code></dt>
<dd>
<div class="desc"><p>Create an authentication object that can be shared as a single argument to
Expand Down Expand Up @@ -568,7 +568,7 @@ <h3>Methods</h3>
</details>
</dd>
<dt id="phc.easy.auth.Auth.update"><code class="name flex">
<span>def <span class="ident">update</span></span>(<span>self, details: Union[Any, None, Dict[str, str]] = None)</span>
<span>def <span class="ident">update</span></span>(<span>self, details: Union[Any, ForwardRef(None), Dict[str, str]] = None)</span>
</code></dt>
<dd>
<div class="desc"><p>Set details of authentication for API calls
Expand Down
2 changes: 1 addition & 1 deletion easy/care_plan.html
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ <h3>Static methods</h3>
<div class="desc inherited"><p>Count records by a given field …</p></div>
</dd>
<dt id="phc.easy.care_plan.CarePlan.get_data_frame"><code class="name flex">
<span>def <span class="ident">get_data_frame</span></span>(<span>all_results: bool = False, raw: bool = False, id: Optional[str] = None, ids: List[str] = [], patient_id: Optional[str] = None, patient_ids: List[str] = [], device_id: Optional[str] = None, device_ids: List[str] = [], page_size: Optional[int] = None, max_pages: Optional[int] = None, query_overrides: dict = {}, auth_args=&lt;phc.easy.auth.Auth object&gt;, ignore_cache: bool = False, expand_args: dict = {}, log: bool = False, term: Optional[dict] = None, terms: List[dict] = [], max_terms: int = 30000, code: Union[str, List[str], None] = None, display: Union[str, List[str], None] = None, system: Union[str, List[str], None] = None, code_fields: List[str] = [])</span>
<span>def <span class="ident">get_data_frame</span></span>(<span>all_results: bool = False, raw: bool = False, id: Optional[str] = None, ids: List[str] = [], patient_id: Optional[str] = None, patient_ids: List[str] = [], device_id: Optional[str] = None, device_ids: List[str] = [], page_size: Optional[int] = None, max_pages: Optional[int] = None, query_overrides: dict = {}, auth_args=&lt;phc.easy.auth.Auth object&gt;, ignore_cache: bool = False, expand_args: dict = {}, log: bool = False, term: Optional[dict] = None, terms: List[dict] = [], max_terms: int = 30000, code: Union[str, List[str], ForwardRef(None)] = None, display: Union[str, List[str], ForwardRef(None)] = None, system: Union[str, List[str], ForwardRef(None)] = None, code_fields: List[str] = [])</span>
</code></dt>
<dd>
<p class="inheritance">
Expand Down
Loading

0 comments on commit 52be48c

Please sign in to comment.