Skip to content

Commit

Permalink
Merge branch 'main' into arek/use-publish-action
Browse files Browse the repository at this point in the history
  • Loading branch information
pauljohanneskraft authored Jan 27, 2025
2 parents 2db4813 + 7d1de11 commit 1ba9fcb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,8 @@ Based on the [Extension](https://hl7.org/fhir/R4B/extensibility.html#Extension)
|Property|Type|Values|Comments|
|-|-|-|-|
|medicationClass|string|-|A `medicationClassId` referring to a medicationClass specified in /medicationClasses/$medicationClassId$. One medication object may contain multiple medicationClass extension properties.|
|minimumDailyDose|[SimpleQuantity](https://www.hl7.org/fhir/r4b/datatypes.html#SimpleQuantity)|-|Unit: mg/day. Occurs exactly once. Multi-ingredient tablets contain an array of double rather than a double.|
|targetDailyDose|[SimpleQuantity](https://www.hl7.org/fhir/r4b/datatypes.html#SimpleQuantity)|-|Unit: mg/day. Occurs exactly once. Multi-ingredient tablets contain an array of double rather than a double.|
|minimumDailyDose|[SimpleQuantity](https://www.hl7.org/fhir/R4B/datatypes.html#SimpleQuantity)|-|Unit: mg/day. Occurs exactly once. Multi-ingredient tablets contain an array of double rather than a double.|
|targetDailyDose|[SimpleQuantity](https://www.hl7.org/fhir/R4B/datatypes.html#SimpleQuantity)|-|Unit: mg/day. Occurs exactly once. Multi-ingredient tablets contain an array of double rather than a double.|

#### medications/$medicationId$/drugs/$drugId$

Expand Down
1 change: 1 addition & 0 deletions functions/src/flags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@

export namespace Flags {
export const isEmulator = process.env.FUNCTIONS_EMULATOR === 'true'
export const requireInvitationOrganizationToMatchSsoProviderId = false
}
3 changes: 3 additions & 0 deletions functions/src/functions/blocking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
beforeUserSignedIn,
} from 'firebase-functions/v2/identity'
import { serviceAccount } from './helpers.js'
import { Flags } from '../flags.js'
import { getServiceFactory } from '../services/factory/getServiceFactory.js'

export const beforeUserCreatedFunction = beforeUserCreated(
Expand Down Expand Up @@ -52,6 +53,8 @@ export const beforeUserCreatedFunction = beforeUserCreated(
}

if (
/* eslint-disable-next-line @typescript-eslint/no-unnecessary-condition */
Flags.requireInvitationOrganizationToMatchSsoProviderId &&
invitation.content.user.type !== UserType.admin &&
invitation.content.user.organization !== organization.id
)
Expand Down

0 comments on commit 1ba9fcb

Please sign in to comment.