@oystehr/sdk 3.0.15 → 3.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,14 +3,26 @@ export interface FaxSendParams {
3
3
  * A Z3 URL of the document you want to send. Your user must have access to this document.
4
4
  */
5
5
  media: string;
6
+ /**
7
+ * The patient who is the subject of the fax. This must be a valid FHIR Patient relative reference in the format: `Patient/some-valid-uuid`. This reference must be a valid resource.
8
+ */
9
+ patient?: string;
6
10
  /**
7
11
  * The quality of the document you want sent.
8
12
  */
9
13
  quality: 'standard' | 'fine' | 'superfine';
10
14
  /**
11
15
  * The recipient of the fax. This must be a valid FHIR CareTeam, HealthcareService, Organization, Patient, Practitioner, PractitionerRole, or RelatedPerson relative reference in the format: `the-resource-type/some-valid-uuid`. This reference must be a valid resource and have a number in the `telecom` field with a `system` of `fax`.
16
+ *
17
+ * Note: One of `recipient` or `recipientNumber` must be provided, but not both.
18
+ */
19
+ recipient?: string;
20
+ /**
21
+ * The fax number of the recipient. This must be a valid E.164 format fax number.
22
+ *
23
+ * Note: One of `recipient` or `recipientNumber` must be provided, but not both.
12
24
  */
13
- recipient: string;
25
+ recipientNumber?: string;
14
26
  /**
15
27
  * The sender of the fax. This must be a valid FHIR HealthcareService, Organization, Patient, Practitioner, PractitionerRole, or RelatedPerson relative reference in the format: `the-resource-type/some-valid-uuid`. This reference must be a valid resource and have your [onboarded fax number](https://docs.oystehr.com/oystehr/services/fax/number/) in the `telecom` field with a `system` of `fax`.
16
28
  */
@@ -4,7 +4,7 @@ import { Communication } from 'fhir/r4b';
4
4
  */
5
5
  export interface FaxSendResponse {
6
6
  /**
7
- * The FHIR Communication resource that represents the sent fax in the FHIR Store modified to include the https://extensions.fhir.oystehr.com/outbound-fax-status extension which holds the fax status that will be updated automatically.
7
+ * The FHIR Communication resource that represents the sent fax in the FHIR Store modified to include the https://extensions.fhir.oystehr.com/outbound-fax-status extension which holds the fax status that will be updated automatically. If a `recipientNumber` is used instead of a `recipient`, the resource will contain a contained Practitioner resource with the fax number.
8
8
  */
9
9
  communicationResource: Communication;
10
10
  }
@@ -3,14 +3,26 @@ export interface FaxSendParams {
3
3
  * A Z3 URL of the document you want to send. Your user must have access to this document.
4
4
  */
5
5
  media: string;
6
+ /**
7
+ * The patient who is the subject of the fax. This must be a valid FHIR Patient relative reference in the format: `Patient/some-valid-uuid`. This reference must be a valid resource.
8
+ */
9
+ patient?: string;
6
10
  /**
7
11
  * The quality of the document you want sent.
8
12
  */
9
13
  quality: 'standard' | 'fine' | 'superfine';
10
14
  /**
11
15
  * The recipient of the fax. This must be a valid FHIR CareTeam, HealthcareService, Organization, Patient, Practitioner, PractitionerRole, or RelatedPerson relative reference in the format: `the-resource-type/some-valid-uuid`. This reference must be a valid resource and have a number in the `telecom` field with a `system` of `fax`.
16
+ *
17
+ * Note: One of `recipient` or `recipientNumber` must be provided, but not both.
18
+ */
19
+ recipient?: string;
20
+ /**
21
+ * The fax number of the recipient. This must be a valid E.164 format fax number.
22
+ *
23
+ * Note: One of `recipient` or `recipientNumber` must be provided, but not both.
12
24
  */
13
- recipient: string;
25
+ recipientNumber?: string;
14
26
  /**
15
27
  * The sender of the fax. This must be a valid FHIR HealthcareService, Organization, Patient, Practitioner, PractitionerRole, or RelatedPerson relative reference in the format: `the-resource-type/some-valid-uuid`. This reference must be a valid resource and have your [onboarded fax number](https://docs.oystehr.com/oystehr/services/fax/number/) in the `telecom` field with a `system` of `fax`.
16
28
  */
@@ -4,7 +4,7 @@ import { Communication } from 'fhir/r4b';
4
4
  */
5
5
  export interface FaxSendResponse {
6
6
  /**
7
- * The FHIR Communication resource that represents the sent fax in the FHIR Store modified to include the https://extensions.fhir.oystehr.com/outbound-fax-status extension which holds the fax status that will be updated automatically.
7
+ * The FHIR Communication resource that represents the sent fax in the FHIR Store modified to include the https://extensions.fhir.oystehr.com/outbound-fax-status extension which holds the fax status that will be updated automatically. If a `recipientNumber` is used instead of a `recipient`, the resource will contain a contained Practitioner resource with the fax number.
8
8
  */
9
9
  communicationResource: Communication;
10
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oystehr/sdk",
3
- "version": "3.0.15",
3
+ "version": "3.0.16",
4
4
  "description": "Oystehr SDK",
5
5
  "scripts": {
6
6
  "lint": "eslint .",
@@ -5,14 +5,26 @@ export interface FaxSendParams {
5
5
  * A Z3 URL of the document you want to send. Your user must have access to this document.
6
6
  */
7
7
  media: string;
8
+ /**
9
+ * The patient who is the subject of the fax. This must be a valid FHIR Patient relative reference in the format: `Patient/some-valid-uuid`. This reference must be a valid resource.
10
+ */
11
+ patient?: string;
8
12
  /**
9
13
  * The quality of the document you want sent.
10
14
  */
11
15
  quality: 'standard' | 'fine' | 'superfine';
12
16
  /**
13
17
  * The recipient of the fax. This must be a valid FHIR CareTeam, HealthcareService, Organization, Patient, Practitioner, PractitionerRole, or RelatedPerson relative reference in the format: `the-resource-type/some-valid-uuid`. This reference must be a valid resource and have a number in the `telecom` field with a `system` of `fax`.
18
+ *
19
+ * Note: One of `recipient` or `recipientNumber` must be provided, but not both.
20
+ */
21
+ recipient?: string;
22
+ /**
23
+ * The fax number of the recipient. This must be a valid E.164 format fax number.
24
+ *
25
+ * Note: One of `recipient` or `recipientNumber` must be provided, but not both.
14
26
  */
15
- recipient: string;
27
+ recipientNumber?: string;
16
28
  /**
17
29
  * The sender of the fax. This must be a valid FHIR HealthcareService, Organization, Patient, Practitioner, PractitionerRole, or RelatedPerson relative reference in the format: `the-resource-type/some-valid-uuid`. This reference must be a valid resource and have your [onboarded fax number](https://docs.oystehr.com/oystehr/services/fax/number/) in the `telecom` field with a `system` of `fax`.
18
30
  */
@@ -6,7 +6,7 @@ import { Communication } from 'fhir/r4b';
6
6
  */
7
7
  export interface FaxSendResponse {
8
8
  /**
9
- * The FHIR Communication resource that represents the sent fax in the FHIR Store modified to include the https://extensions.fhir.oystehr.com/outbound-fax-status extension which holds the fax status that will be updated automatically.
9
+ * The FHIR Communication resource that represents the sent fax in the FHIR Store modified to include the https://extensions.fhir.oystehr.com/outbound-fax-status extension which holds the fax status that will be updated automatically. If a `recipientNumber` is used instead of a `recipient`, the resource will contain a contained Practitioner resource with the fax number.
10
10
  */
11
11
  communicationResource: Communication;
12
12
  }