Skip to content

Commit

Permalink
Release 0.0.343
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Apr 12, 2024
1 parent ab32df1 commit 050d815
Show file tree
Hide file tree
Showing 1,145 changed files with 30,172 additions and 3,135 deletions.
1 change: 0 additions & 1 deletion .github/CODEOWNERS

This file was deleted.

3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@ node_modules
/index.js
/api
/core
/errors
/serialization
/errors
12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@metriport/api-sdk",
"version": "8.0.0-alpha1",
"version": "0.0.343",
"private": false,
"repository": "https://github.com/metriport/metriport-node",
"main": "./index.js",
Expand All @@ -12,12 +12,14 @@
},
"dependencies": {
"url-join": "4.0.1",
"@types/url-join": "4.0.1",
"axios": "0.27.2",
"qs": "6.11.2",
"@types/qs": "6.9.8"
"form-data": "4.0.0",
"node-fetch": "2.7.0",
"qs": "6.11.2"
},
"devDependencies": {
"@types/url-join": "4.0.1",
"@types/qs": "6.9.8",
"@types/node-fetch": "2.6.9",
"@types/node": "17.0.33",
"prettier": "2.7.1",
"typescript": "4.6.4"
Expand Down
2 changes: 1 addition & 1 deletion src/api/resources/commons/types/Address.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ export interface Address {
/** Zip must be a string consisting of 5 numbers. */
zip: string;
/** Defaults to “USA” */
country: string;
country?: string;
}
File renamed without changes.
28 changes: 28 additions & 0 deletions src/api/resources/fhir/types/AccessPolicy.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

import * as Metriport from "../../..";

/**
* Access Policy for user or user group that defines how entities can or cannot access resources.
*/
export interface AccessPolicy {
resourceType: "AccessPolicy";
/** The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes. */
id?: Metriport.fhir.Id;
/** The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource. */
meta?: Metriport.fhir.Meta;
/** A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc. */
implicitRules?: Metriport.fhir.Uri;
/** The base language in which the resource is written. */
language?: Metriport.fhir.Code;
/** A name associated with the AccessPolicy. */
name?: string;
/** Optional compartment for newly created resources. If this field is set, any resources created by a user with this access policy will automatically be included in the specified compartment. */
compartment?: Metriport.fhir.Reference;
/** Access details for a resource type. */
resource?: Metriport.fhir.AccessPolicyResource[];
/** Use IP Access Rules to allowlist, block, and challenge traffic based on the visitor IP address. */
ipAccessRule?: Metriport.fhir.AccessPolicyIpAccessRule[];
}
17 changes: 17 additions & 0 deletions src/api/resources/fhir/types/AccessPolicyIpAccessRule.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

import * as Metriport from "../../..";

/**
* Use IP Access Rules to allowlist, block, and challenge traffic based on the visitor IP address.
*/
export interface AccessPolicyIpAccessRule {
/** Friendly name that will make it easy for you to identify the IP Access Rule in the future. */
name?: string;
/** An IP Access rule will apply a certain action to incoming traffic based on the visitor IP address or IP range. */
value: string;
/** Access rule can perform one of the following actions: "allow" | "block". */
action: Metriport.fhir.AccessPolicyIpAccessRuleAction;
}
13 changes: 13 additions & 0 deletions src/api/resources/fhir/types/AccessPolicyIpAccessRuleAction.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

/**
* Access rule can perform one of the following actions: "allow" | "block".
*/
export type AccessPolicyIpAccessRuleAction = "allow" | "block";

export const AccessPolicyIpAccessRuleAction = {
Allow: "allow",
Block: "block",
} as const;
23 changes: 23 additions & 0 deletions src/api/resources/fhir/types/AccessPolicyResource.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

import * as Metriport from "../../..";

/**
* Access details for a resource type.
*/
export interface AccessPolicyResource {
/** DEPRECATED Optional compartment restriction for the resource type. */
compartment?: Metriport.fhir.Reference;
/** The rules that the server should use to determine which resources to allow. */
criteria?: string;
/** Optional flag to indicate that the resource type is read-only. */
readonly?: boolean;
/** Optional list of hidden fields. Hidden fields are not readable or writeable. */
hiddenFields?: string[];
/** Optional list of read-only fields. Read-only fields are readable but not writeable. */
readonlyFields?: string[];
/** Invariants that must be satisfied for the resource to be written. Can include %before and %after placeholders to refer to the resource before and after the updates are applied. */
writeConstraint?: Metriport.fhir.Expression[];
}
13 changes: 13 additions & 0 deletions src/api/resources/fhir/types/AccessPolicyResourceWriteCriteria.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

/**
* Invariants that must be satisfied for the resource to be written.
*/
export interface AccessPolicyResourceWriteCriteria {
/** Invariant to check against the state of the resource before modification. */
pre?: string;
/** Invariant to check against the state of the resource with modifications tentatively applied. */
post?: string;
}
34 changes: 34 additions & 0 deletions src/api/resources/fhir/types/Account.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

import * as Metriport from "../../..";

/**
* A financial tool for tracking value accrued for a particular purpose. In the healthcare field, used to track charges for a patient, cost centers, etc.
*/
export interface Account extends Metriport.fhir.BaseResource {
resourceType: "Account";
/** Unique identifier used to reference the account. Might or might not be intended for human use (e.g. credit card number). */
identifier?: Metriport.fhir.Identifier[];
/** Indicates whether the account is presently used/usable or not. */
status?: Metriport.fhir.AccountStatus;
/** Categorizes the account for reporting and searching purposes. */
type?: Metriport.fhir.CodeableConcept;
/** Name used for the account when displaying it to humans in reports, etc. */
name?: string;
/** Identifies the entity which incurs the expenses. While the immediate recipients of services or goods might be entities related to the subject, the expenses were ultimately incurred by the subject of the Account. */
subject?: Metriport.fhir.Reference[];
/** The date range of services associated with this account. */
servicePeriod?: Metriport.fhir.Period;
/** The party(s) that are responsible for covering the payment of this account, and what order should they be applied to the account. */
coverage?: Metriport.fhir.AccountCoverage[];
/** Indicates the service area, hospital, department, etc. with responsibility for managing the Account. */
owner?: Metriport.fhir.Reference;
/** Provides additional information about what the account tracks and how it is used. */
description?: string;
/** The parties responsible for balancing the account if other payment options fall short. */
guarantor?: Metriport.fhir.AccountGuarantor[];
/** Reference to a parent Account. */
partOf?: Metriport.fhir.Reference;
}
21 changes: 21 additions & 0 deletions src/api/resources/fhir/types/AccountCoverage.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

import * as Metriport from "../../..";

/**
* A financial tool for tracking value accrued for a particular purpose. In the healthcare field, used to track charges for a patient, cost centers, etc.
*/
export interface AccountCoverage {
/** Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces. */
id?: string;
/** May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. */
extension?: Metriport.fhir.Extension[];
/** May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself). */
modifierExtension?: Metriport.fhir.Extension[];
/** The party(s) that contribute to payment (or part of) of the charges applied to this account (including self-pay). A coverage may only be responsible for specific types of charges, and the sequence of the coverages in the account could be important when processing billing. */
coverage: Metriport.fhir.Reference;
/** The priority of the coverage in the context of this account. */
priority?: Metriport.fhir.PositiveInt;
}
23 changes: 23 additions & 0 deletions src/api/resources/fhir/types/AccountGuarantor.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

import * as Metriport from "../../..";

/**
* A financial tool for tracking value accrued for a particular purpose. In the healthcare field, used to track charges for a patient, cost centers, etc.
*/
export interface AccountGuarantor {
/** Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces. */
id?: string;
/** May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. */
extension?: Metriport.fhir.Extension[];
/** May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself). */
modifierExtension?: Metriport.fhir.Extension[];
/** The entity who is responsible. */
party: Metriport.fhir.Reference;
/** A guarantor may be placed on credit hold or otherwise have their role temporarily suspended. */
onHold?: boolean;
/** The timeframe during which the guarantor accepts responsibility for the account. */
period?: Metriport.fhir.Period;
}
16 changes: 16 additions & 0 deletions src/api/resources/fhir/types/AccountStatus.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

/**
* Indicates whether the account is presently used/usable or not.
*/
export type AccountStatus = "active" | "inactive" | "entered-in-error" | "on-hold" | "unknown";

export const AccountStatus = {
Active: "active",
Inactive: "inactive",
EnteredInError: "entered-in-error",
OnHold: "on-hold",
Unknown: "unknown",
} as const;
Loading

0 comments on commit 050d815

Please sign in to comment.