@imranq2/fhirpatientsummary 1.0.15 → 1.0.17
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.
- package/dist/index.cjs +427 -343
- package/dist/index.d.cts +5 -4
- package/dist/index.d.ts +5 -4
- package/dist/index.js +427 -343
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -631,15 +631,15 @@ type TBundle = {
|
|
|
631
631
|
};
|
|
632
632
|
|
|
633
633
|
declare class ComprehensiveIPSCompositionBuilder {
|
|
634
|
-
private
|
|
634
|
+
private patients;
|
|
635
635
|
private sections;
|
|
636
636
|
private resources;
|
|
637
637
|
/**
|
|
638
638
|
* sets the patient resource for the IPS Composition.
|
|
639
639
|
* This is not needed if you are calling read_bundle, but can be used to set the patient resource directly.
|
|
640
|
-
* @param
|
|
640
|
+
* @param patients - FHIR Patient resource to set
|
|
641
641
|
*/
|
|
642
|
-
setPatient(
|
|
642
|
+
setPatient(patients: TPatient | TPatient[]): this;
|
|
643
643
|
/**
|
|
644
644
|
* Adds a section to the composition with async HTML minification
|
|
645
645
|
* @param sectionType - IPS section type
|
|
@@ -659,8 +659,9 @@ declare class ComprehensiveIPSCompositionBuilder {
|
|
|
659
659
|
* @param authorOrganizationName - Name of the authoring organization
|
|
660
660
|
* @param baseUrl - Base URL for the FHIR server (e.g., 'https://example.com/fhir')
|
|
661
661
|
* @param timezone - Optional timezone to use for date formatting (e.g., 'America/New_York', 'Europe/London')
|
|
662
|
+
* @param patientId - Optional patient ID to use as primary patient for composition reference
|
|
662
663
|
*/
|
|
663
|
-
buildBundleAsync(authorOrganizationId: string, authorOrganizationName: string, baseUrl: string, timezone: string | undefined): Promise<TBundle>;
|
|
664
|
+
buildBundleAsync(authorOrganizationId: string, authorOrganizationName: string, baseUrl: string, timezone: string | undefined, patientId?: string): Promise<TBundle>;
|
|
664
665
|
/**
|
|
665
666
|
* Returns the Composition sections without creating a full bundle.
|
|
666
667
|
* @returns Array of TCompositionSection
|
package/dist/index.d.ts
CHANGED
|
@@ -631,15 +631,15 @@ type TBundle = {
|
|
|
631
631
|
};
|
|
632
632
|
|
|
633
633
|
declare class ComprehensiveIPSCompositionBuilder {
|
|
634
|
-
private
|
|
634
|
+
private patients;
|
|
635
635
|
private sections;
|
|
636
636
|
private resources;
|
|
637
637
|
/**
|
|
638
638
|
* sets the patient resource for the IPS Composition.
|
|
639
639
|
* This is not needed if you are calling read_bundle, but can be used to set the patient resource directly.
|
|
640
|
-
* @param
|
|
640
|
+
* @param patients - FHIR Patient resource to set
|
|
641
641
|
*/
|
|
642
|
-
setPatient(
|
|
642
|
+
setPatient(patients: TPatient | TPatient[]): this;
|
|
643
643
|
/**
|
|
644
644
|
* Adds a section to the composition with async HTML minification
|
|
645
645
|
* @param sectionType - IPS section type
|
|
@@ -659,8 +659,9 @@ declare class ComprehensiveIPSCompositionBuilder {
|
|
|
659
659
|
* @param authorOrganizationName - Name of the authoring organization
|
|
660
660
|
* @param baseUrl - Base URL for the FHIR server (e.g., 'https://example.com/fhir')
|
|
661
661
|
* @param timezone - Optional timezone to use for date formatting (e.g., 'America/New_York', 'Europe/London')
|
|
662
|
+
* @param patientId - Optional patient ID to use as primary patient for composition reference
|
|
662
663
|
*/
|
|
663
|
-
buildBundleAsync(authorOrganizationId: string, authorOrganizationName: string, baseUrl: string, timezone: string | undefined): Promise<TBundle>;
|
|
664
|
+
buildBundleAsync(authorOrganizationId: string, authorOrganizationName: string, baseUrl: string, timezone: string | undefined, patientId?: string): Promise<TBundle>;
|
|
664
665
|
/**
|
|
665
666
|
* Returns the Composition sections without creating a full bundle.
|
|
666
667
|
* @returns Array of TCompositionSection
|