Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
pauljohanneskraft committed Jan 9, 2025
1 parent a9b38fa commit 6ccbfde
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 22 deletions.
2 changes: 1 addition & 1 deletion functions/models/src/codes/quantityUnit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

import { type FHIRQuantity } from '../fhir/baseTypes/fhirQuantity.js'
import { Observation } from '../types/observation.js'
import { type Observation } from '../types/observation.js'

export class QuantityUnit {
// Static Properties
Expand Down
10 changes: 5 additions & 5 deletions functions/src/healthSummary/generate+localizations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ import {
LocalizedText,
type UserMedicationRecommendationDoseSchedule,
type FHIRAppointment,
SymptomScore,
type SymptomScore,
} from '@stanfordbdhg/engagehf-models'
import {
HealthSummaryDizzinessCategory,
type HealthSummaryDizzinessCategory,
healthSummaryKeyPointTexts,
HealthSummaryMedicationRecommendationsCategory,
HealthSummarySymptomScoreCategory,
HealthSummaryWeightCategory,
type HealthSummaryMedicationRecommendationsCategory,
type HealthSummarySymptomScoreCategory,
type HealthSummaryWeightCategory,
} from './keyPointsMessage.js'

export function healthSummaryLocalizations(languages: string[]) {
Expand Down
9 changes: 0 additions & 9 deletions functions/src/healthSummary/generate.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,6 @@ import { generateHealthSummary } from './generate.js'
import { type HealthSummaryData } from '../models/healthSummaryData.js'
import { mockHealthSummaryData } from '../tests/mocks/healthSummaryData.js'
import { TestFlags } from '../tests/testFlags.js'
import { readCsv } from '../tests/helpers/csv.js'
import {
HealthSummaryDizzinessCategory,
HealthSummaryKeyPointMessage,
HealthSummaryMedicationRecommendationsCategory,
HealthSummarySymptomScoreCategory,
HealthSummaryWeightCategory,
} from './keyPointsMessage.js'
import { LocalizedText } from '@stanfordbdhg/engagehf-models'

describe('generateHealthSummary', () => {
function comparePdf(actual: Buffer, expected: Buffer): boolean {
Expand Down
4 changes: 1 addition & 3 deletions functions/src/healthSummary/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,20 @@
//

import {
average,
percentage,
presortedMedian,
presortedPercentile,
type Observation,
UserMedicationRecommendationType,
QuantityUnit,
} from '@stanfordbdhg/engagehf-models'
import { logger } from 'firebase-functions'
import 'jspdf-autotable' /* eslint-disable-line */
import { type CellDef } from 'jspdf-autotable' /* eslint-disable-line */
import { healthSummaryLocalizations } from './generate+localizations.js'
import { generateChartSvg } from './generateChart.js'
import { generateSpeedometerSvg } from './generateSpeedometer.js'
import { type HealthSummaryData } from '../models/healthSummaryData.js'
import { PdfGenerator } from './pdfGenerator.js'
import { type HealthSummaryData } from '../models/healthSummaryData.js'

export interface HealthSummaryOptions {
languages: string[]
Expand Down
6 changes: 3 additions & 3 deletions functions/src/healthSummary/keyPointsMessage.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@
//

import { LocalizedText } from '@stanfordbdhg/engagehf-models'
import { readCsv } from '../tests/helpers/csv.js'
import { expect } from 'chai'
import {
HealthSummaryDizzinessCategory,
HealthSummaryKeyPointMessage,
type HealthSummaryKeyPointMessage,
healthSummaryKeyPointMessages,
healthSummaryKeyPointTexts,
HealthSummaryMedicationRecommendationsCategory,
HealthSummarySymptomScoreCategory,
HealthSummaryWeightCategory,
} from './keyPointsMessage.js'
import { expect } from 'chai'
import { readCsv } from '../tests/helpers/csv.js'

describe('keyPointsMessage', () => {
it('should generate the key point message json', () => {
Expand Down
2 changes: 1 addition & 1 deletion functions/src/healthSummary/keyPointsMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import {
Lazy,
LocalizedText,
type LocalizedText,
localizedTextConverter,
} from '@stanfordbdhg/engagehf-models'
import { z } from 'zod'
Expand Down

0 comments on commit 6ccbfde

Please sign in to comment.