@imranq2/fhirpatientsummary 1.0.27 → 1.0.28
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 +149 -127
- package/dist/index.d.cts +6 -3
- package/dist/index.d.ts +6 -3
- package/dist/index.js +149 -127
- package/package.json +8 -5
package/dist/index.d.cts
CHANGED
|
@@ -723,8 +723,9 @@ declare class ComprehensiveIPSCompositionBuilder {
|
|
|
723
723
|
* @param baseUrl - Base URL for the FHIR server (e.g., 'https://example.com/fhir')
|
|
724
724
|
* @param timezone - Optional timezone to use for date formatting (e.g., 'America/New_York', 'Europe/London')
|
|
725
725
|
* @param patientId - Optional patient ID to use as primary patient for composition reference
|
|
726
|
+
* @param now - Optional current date to use for composition date (defaults to new Date())
|
|
726
727
|
*/
|
|
727
|
-
buildBundleAsync(authorOrganizationId: string, authorOrganizationName: string, baseUrl: string, timezone: string | undefined, patientId?: string): Promise<TBundle>;
|
|
728
|
+
buildBundleAsync(authorOrganizationId: string, authorOrganizationName: string, baseUrl: string, timezone: string | undefined, patientId?: string, now?: Date): Promise<TBundle>;
|
|
728
729
|
/**
|
|
729
730
|
* Returns the Composition sections without creating a full bundle.
|
|
730
731
|
* @returns Array of TCompositionSection
|
|
@@ -747,9 +748,10 @@ declare class NarrativeGenerator {
|
|
|
747
748
|
* @param resources - Array of domain resources
|
|
748
749
|
* @param timezone - Optional timezone to use for date formatting (e.g., 'America/New_York', 'Europe/London')
|
|
749
750
|
* @param useSectionSummary - Whether to use section summary for narrative generation (default: false)
|
|
751
|
+
* @param now - Optional date parameter
|
|
750
752
|
* @returns Generated HTML content or undefined if no resources
|
|
751
753
|
*/
|
|
752
|
-
static generateNarrativeContentAsync<T extends TDomainResource>(section: IPSSections, resources: T[], timezone: string | undefined, useSectionSummary?: boolean): Promise<string | undefined>;
|
|
754
|
+
static generateNarrativeContentAsync<T extends TDomainResource>(section: IPSSections, resources: T[], timezone: string | undefined, useSectionSummary?: boolean, now?: Date): Promise<string | undefined>;
|
|
753
755
|
/**
|
|
754
756
|
* Minifies HTML content asynchronously using html-minifier-terser
|
|
755
757
|
* @param html - HTML content to minify
|
|
@@ -771,9 +773,10 @@ declare class NarrativeGenerator {
|
|
|
771
773
|
* @param timezone - Optional timezone to use for date formatting
|
|
772
774
|
* @param minify - Whether to minify the HTML content (default: true)
|
|
773
775
|
* @param useSectionSummary - Whether to use section summary for narrative generation (default: false)
|
|
776
|
+
* @param now - Optional date parameter
|
|
774
777
|
* @returns Promise that resolves to a FHIR Narrative object or undefined if no resources
|
|
775
778
|
*/
|
|
776
|
-
static generateNarrativeAsync<T extends TDomainResource>(section: IPSSections, resources: T[], timezone: string | undefined, minify?: boolean, useSectionSummary?: boolean): Promise<Narrative | undefined>;
|
|
779
|
+
static generateNarrativeAsync<T extends TDomainResource>(section: IPSSections, resources: T[], timezone: string | undefined, minify?: boolean, useSectionSummary?: boolean, now?: Date): Promise<Narrative | undefined>;
|
|
777
780
|
}
|
|
778
781
|
|
|
779
782
|
declare const myPackage: (taco?: string) => string;
|
package/dist/index.d.ts
CHANGED
|
@@ -723,8 +723,9 @@ declare class ComprehensiveIPSCompositionBuilder {
|
|
|
723
723
|
* @param baseUrl - Base URL for the FHIR server (e.g., 'https://example.com/fhir')
|
|
724
724
|
* @param timezone - Optional timezone to use for date formatting (e.g., 'America/New_York', 'Europe/London')
|
|
725
725
|
* @param patientId - Optional patient ID to use as primary patient for composition reference
|
|
726
|
+
* @param now - Optional current date to use for composition date (defaults to new Date())
|
|
726
727
|
*/
|
|
727
|
-
buildBundleAsync(authorOrganizationId: string, authorOrganizationName: string, baseUrl: string, timezone: string | undefined, patientId?: string): Promise<TBundle>;
|
|
728
|
+
buildBundleAsync(authorOrganizationId: string, authorOrganizationName: string, baseUrl: string, timezone: string | undefined, patientId?: string, now?: Date): Promise<TBundle>;
|
|
728
729
|
/**
|
|
729
730
|
* Returns the Composition sections without creating a full bundle.
|
|
730
731
|
* @returns Array of TCompositionSection
|
|
@@ -747,9 +748,10 @@ declare class NarrativeGenerator {
|
|
|
747
748
|
* @param resources - Array of domain resources
|
|
748
749
|
* @param timezone - Optional timezone to use for date formatting (e.g., 'America/New_York', 'Europe/London')
|
|
749
750
|
* @param useSectionSummary - Whether to use section summary for narrative generation (default: false)
|
|
751
|
+
* @param now - Optional date parameter
|
|
750
752
|
* @returns Generated HTML content or undefined if no resources
|
|
751
753
|
*/
|
|
752
|
-
static generateNarrativeContentAsync<T extends TDomainResource>(section: IPSSections, resources: T[], timezone: string | undefined, useSectionSummary?: boolean): Promise<string | undefined>;
|
|
754
|
+
static generateNarrativeContentAsync<T extends TDomainResource>(section: IPSSections, resources: T[], timezone: string | undefined, useSectionSummary?: boolean, now?: Date): Promise<string | undefined>;
|
|
753
755
|
/**
|
|
754
756
|
* Minifies HTML content asynchronously using html-minifier-terser
|
|
755
757
|
* @param html - HTML content to minify
|
|
@@ -771,9 +773,10 @@ declare class NarrativeGenerator {
|
|
|
771
773
|
* @param timezone - Optional timezone to use for date formatting
|
|
772
774
|
* @param minify - Whether to minify the HTML content (default: true)
|
|
773
775
|
* @param useSectionSummary - Whether to use section summary for narrative generation (default: false)
|
|
776
|
+
* @param now - Optional date parameter
|
|
774
777
|
* @returns Promise that resolves to a FHIR Narrative object or undefined if no resources
|
|
775
778
|
*/
|
|
776
|
-
static generateNarrativeAsync<T extends TDomainResource>(section: IPSSections, resources: T[], timezone: string | undefined, minify?: boolean, useSectionSummary?: boolean): Promise<Narrative | undefined>;
|
|
779
|
+
static generateNarrativeAsync<T extends TDomainResource>(section: IPSSections, resources: T[], timezone: string | undefined, minify?: boolean, useSectionSummary?: boolean, now?: Date): Promise<Narrative | undefined>;
|
|
777
780
|
}
|
|
778
781
|
|
|
779
782
|
declare const myPackage: (taco?: string) => string;
|