← Platform Foundation

FEAT-ORGANIZATIONAL-STRUCTURE

Organizational Structure

One customer organisation can be many places at once. Inside it the platform holds a tree — departments, sites, units, satellites — each able to switch on its own clinical features. One feature can serve several of them; one of them can run several features. The menu, permissions, and clinical work follow this structure.

Why this matters

A hospital is not flat. It has wards, clinics, departments, satellite sites, outpatient units, training units — each with different staff, different module needs, different operational rhythms. A platform that treats the customer organisation as a single undifferentiated unit forces all of that variety into one bucket: every clinician sees every module, every worklist, every menu item. That's not how clinical work happens; it's how clinicians abandon software.

The opposite extreme — one customer organisation per department — fragments the patient. A patient seen in cardiology and nephrology lives in two customer organisations? The patient timeline is split, the audit trail is split, the clinical record is split. The customer boundary, designed to protect the customer, becomes an obstacle to the customer's own care continuity.

The right model is one customer organisation per customer with organizational sub-structure inside. Departments, sites, and units are first-class within the customer organisation; clinical modules bind to the organisations that use them; the patient timeline crosses departments seamlessly because they are all in one customer organisation.

What's in the box

  • One customer organisation is one customer. One customer, one boundary; that's the boundary documented elsewhere as Customer Data Isolation.

  • Org tree inside the customer organisation. Each department, site, or unit is a FHIR organisation record resource with partOf pointing at its parent (the hospital, or another department). Tree depth is up to the customer.

  • Modules bind to organisations, not to the customer organisation. Hogwarts Laboratory has the Lab module; Outpatient clinic has Visit Assistant; Cardiology has both. Module assignment is per-(org, module).

  • A customer organisation has what its kind offers. A hospital, a jurisdiction's zone and the service provider are different kinds; each kind decides the platform pages its top-level organisation has and the modules its departments may be given. A module is where it is bound — not in the departments below until bound there too — and works over its department and those under it.

  • Menu reflects (user, organisation, module). When a clinician selects an organizational context, the platform's web shell filters navigation to that organisation's enabled modules. Modules contribute their navigation; the platform composes it.

  • Permissions combine four facets. Authorisation asks: this clinician, in this organisation, for this module, performing this action — granted or denied? Roles are organisation-level; the combination with (organisation, module, action) is what's checked at runtime.

  • One module, many bindings. The Lab module exists once in the codebase; it appears under Laboratory, Cardiology, and Emergency in the menu — the same module, three contexts. Module-internal logic uses the organizational context to scope worklists, ordering destinations, and result delivery.

  • URL structure carries the org segment. Every module-bearing URL has the shape /o/{tenant}/{org}/{module}/{action}. The customer organisation admin assigns each Organization a unique code when the org tree is defined; that code is what appears in URLs and in bookmarks. The org segment is mandatory — URLs that omit it are redirected to the organisation's root organisation.

  • Audit captures organizational context. Every audit event records which organisation the action happened in, so retrospective queries can be scoped per department.

Standards we lean on

  • HL7 FHIR organisation record resource with partOf — the standard shape for the tree.
  • HIPAA 45 CFR 164.308(a)(3) — Workforce Security. Role-based access matched to organizational structure.
  • ISO/IEC 27001 Annex A.6 / A.9 — access control. Permissions combined from organizational role and resource context.

What customers and operators experience

  • A hospital admin onboarding defines the org tree: Hogwarts Hospital → Laboratory department, Outpatient clinic, Cardiology ward, Emergency department — declared in the configuration repo as FHIR organisation record resources.
  • Each organisation gets the modules it uses. Module enablement is a configuration decision per-(org, module).
  • A clinician's menu reflects the structure. Working in Cardiology, they see "Cardiology > Lab > Pending orders" and "Cardiology > Visits > Today's appointments". Switching context changes the menu — same login, same customer organisation, different scope — and the URL bar reflects the change too: moving from the main lab to a satellite lab swaps /main-lab/ for /satellite-lab/ in every module link.
  • A patient seen in Cardiology and Outpatient appears in one chronological timeline. The org context tells where each encounter happened; the timeline crosses departments because they share the customer organisation.
  • A new department added is a configuration change — declare the Organization, list its modules, set its staff. The platform applies the change without any module-side installation.
  • A department reorganised (renamed, merged, moved under a new parent) is a configuration change too — history persists, audit persists, only the tree shape changes.
  • A compliance officer reviewing access sees the full (clinician, organisation, module, action) tuple in audit. "Who in Cardiology placed lab orders this month" is one query.

Limits and trade-offs

  • One organizational tree per customer organisation. A multi-organisation network is modelled as several customer organisations if data must stay separate, or as one customer organisation with multiple top-level organisations if it doesn't.
  • Module enablement is per-organisation, not per-clinician. A clinician's view of available modules is determined by the organisation they are working in, not by personal preferences. This keeps clinical context predictable.
  • Org-tree changes propagate immediately. Removing a department's module access takes effect on next request. Audit of past actions persists; new actions don't.
  • Reshuffles cost configuration review. A department merge or rename is a configuration change in git, reviewed before merge. The customer cannot do this in a hurry; that's deliberate.
  • Cross-organisation sharing within a customer organisation is governed by organisation-level rules. Whether cardiology can read outpatient's notes is a customer organisation policy, not a per-organisation setting.
What it rests on
0 / 17 passing 14 without a result yet
  • cited, no result The organisation is shown and edited as a tree of departments by what each is part of, each with the modules it has and what it owns. REQ-ORG-EDITED-AS-A-TREE
    Cited by: cloud.jengu.platform.organization.TheOrganisationIsEditedAsATreeInAPersonsDraftTest#aChannelOrdersComeInByIsNotADepartment, cloud.jengu.platform.organization.TheOrganisationIsEditedAsATreeInAPersonsDraftTest#aModuleBoundIsWrittenAsTheWorldsBindingsAre, cloud.jengu.platform.organization.TheOrganisationIsEditedAsATreeInAPersonsDraftTest#aTenantWithNoOrganisationYetIsGivenSystemsOfItsOwn, cloud.jengu.platform.organization.TheOrganisationIsEditedAsATreeInAPersonsDraftTest#theOrganisationIsATreeOfDepartmentsWithTheirModulesAndItsPlacesATreeApart, cloud.jengu.platform.organization.TheOrganisationIsEditedAsATreeInAPersonsDraftTest#theTreeIsDrawnInEveryLanguage, cloud.jengu.platform.organization.WhatADepartmentOwnsAndWhatStandsAtAPlaceAreReadApartTest#aDepartmentOwnsWhatItsDevicesNameAsTheirOwner
  • cited, no result Places nest by what they are part of (building, floor, room), a tree apart from the departments, each with what stands there; a place is never made part of itself or of a place inside it. REQ-ORG-PLACES-NEST-BY-BUILDING
    Cited by: cloud.jengu.platform.organization.TheOrganisationIsEditedAsATreeInAPersonsDraftTest#placesNestByBuildingFloorAndRoomWhateverDepartmentARecordNames, cloud.jengu.platform.organization.WhatADepartmentOwnsAndWhatStandsAtAPlaceAreReadApartTest#aPlaceHoldsWhatStandsThereWhoeverOwnsIt
  • cited, no result A department or a place is removed only when nothing still refers to it, and the refusal names what does; a department's own modules go with it. REQ-ORG-REMOVED-ONLY-WHEN-NOTHING-REFERS-TO-IT
    Cited by: cloud.jengu.platform.organization.ADepartmentOrAPlaceIsRemovedOnlyWhenNothingRefersToItTest#aDepartmentNothingNamesButItsOwnModulesMayBeRemoved, cloud.jengu.platform.organization.ADepartmentOrAPlaceIsRemovedOnlyWhenNothingRefersToItTest#aDepartmentWithDepartmentsInsideIsHeldByThem, cloud.jengu.platform.organization.ADepartmentOrAPlaceIsRemovedOnlyWhenNothingRefersToItTest#anEdgesAcceptanceKeepsItsOwnerAndItsPlaceFromBeingRemoved, cloud.jengu.platform.organization.ADepartmentOrAPlaceIsRemovedOnlyWhenNothingRefersToItTest#theTenantsOwnOrganisationIsNeverOfferedForRemoval
  • cited, no result What a tenant has is what its kind declares: the kind's pages at its top-level organisation only, and only the modules the kind may bind; anything undeclared is neither offered nor reachable. REQ-ORG-KIND-DECLARES-WHAT-A-TENANT-HAS
    Cited by: cloud.jengu.platform.shell.ATenantHasWhatItsKindOffersTest#aKindHasOnlyThePagesItDeclares, cloud.jengu.platform.shell.ATenantHasWhatItsKindOffersTest#aPersonsOwnPagesAreEverywhere, cloud.jengu.platform.shell.ATenantHasWhatItsKindOffersTest#theBenchIsAtTheTopLevelAndWhereverTheLaboratoryIs, cloud.jengu.platform.shell.ATenantHasWhatItsKindOffersTest#theKindIsAModuleOfItsOwnAtTheTopLevel, cloud.jengu.platform.shell.ATenantHasWhatItsKindOffersTest#theKindsPagesAreAtTheTopLevelOnly, cloud.jengu.platform.shell.ATenantHasWhatItsKindOffersTest#whatIsNoPageIsNotDecidedHere
  • cited, no result A module is at a department only where it is bound there; bound higher up, it is not in the departments below until bound to them too. REQ-ORG-MODULE-BOUND-NOT-INHERITED
    Cited by: cloud.jengu.platform.shell.AModulesSectionIsWhereItsDepartmentHasItTest#aTenantTakingNoServicesHasNoModulesAndStillDrawsItsPages, cloud.jengu.platform.shell.AModulesSectionIsWhereItsDepartmentHasItTest#anInactiveBindingBindsNothing, cloud.jengu.platform.shell.AModulesSectionIsWhereItsDepartmentHasItTest#theSidebarDropsAModuleTheDepartmentDoesNotHave, cloud.jengu.platform.shell.AModulesSectionIsWhereItsDepartmentHasItTest#theWorldsLaboratoryAndTwoOfItsSectionsHaveTheLabAndTheHospitalHasNone, cloud.jengu.platform.shell.ATenantHasWhatItsKindOffersTest#aModuleIsWhereItIsBoundAndOnlyThere
  • cited, no result A module at a department shows that department's work and its sub-departments'; work no department has taken yet is the receiving department's, the topmost with the module bound. REQ-ORG-MODULE-SEES-ITS-SUBTREE
    Cited by: cloud.jengu.platform.lab.TheLaboratoryShowsItsDepartmentsWorkTest#aSectionSeesWhatReachedItsOwnDevices, cloud.jengu.platform.lab.TheLaboratoryShowsItsDepartmentsWorkTest#anEdgeKeepingNoDepartmentsSeesEverything, cloud.jengu.platform.lab.TheLaboratoryShowsItsDepartmentsWorkTest#nothingAboveTheLabSeesMoreThanItsSubtreeAndNothingOutsideSeesAny, cloud.jengu.platform.lab.TheLaboratoryShowsItsDepartmentsWorkTest#theReceivingLabSeesItsWholeSubtreeAndWhatNoDeviceTookYet
  • kept by its basis its basis has no result Who may do what in every module follows from the organisation's own staff, their roles and its department tree; no module keeps a user list of its own to drift. REQ-GOV-ONE-MODEL-OF-WHO-MAY-DO-WHAT
    Based on 1 promise
    • not cited Human authorization derives from the tenant's own records — Practitioner is the subject, an active PractitionerRole is the grant, the Organization tree is the scope structure; there is no parallel user database to drift. REQ-DBO-AUTH-ORG-MODEL-IS-THE-AUTH-MODEL
  • kept by its basis its basis has no result Signing in tells each application who the person is and which roles they hold in which organisation, each role against where it is held, brought up to date as their roles change. REQ-ORG-SIGN-IN-SAYS-WHICH-ROLES-WHERE
    Based on 1 promise
    • not cited Every sign-in and every refresh mints an ID token that says who the person is and which roles they hold at which organisation, each role against the organisation it is held at rather than merged with roles held elsewhere. When and how they signed in is carried unchanged through every refresh, and what they hold is re-derived at each. The access token carries none of it: it reaches the store's surfaces and every service it is exchanged for, which are third parties to the person. REQ-DBO-AUTH-THE-ID-TOKEN-SAYS-WHO-SIGNED-IN-AND-WHAT-THEY-HOLD
  • cited, no result A person signs in and works however many roles they hold at however many organisations. REQ-ORG-A-PERSON-SIGNS-IN-HOWEVER-MANY-ROLES-THEY-HOLD
    Cited by: cloud.jengu.platform.auth.APersonSignsInHoweverManyRolesTheyHoldTest#aShortTokenIsOneCookieAndAPieceMissingReadsAsNoTokenAtAll, cloud.jengu.platform.auth.APersonSignsInHoweverManyRolesTheyHoldTest#aTokenTooLongForOneCookieIsWrittenInPiecesAndReadWhole, cloud.jengu.platform.auth.APersonSignsInHoweverManyRolesTheyHoldTest#theServerHasRoomForThemInEveryRequestAndResponse
  • cited, no result An organisation's role names the steps of its work it follows and those it performs, and a page about that work, or a decision in it, is open to a person only as far as the role they act in follows or performs it. REQ-ORG-A-ROLE-NAMES-THE-STEPS-IT-FOLLOWS-AND-PERFORMS
    Cited by: cloud.jengu.platform.lab.ARoleActsThroughTheStepsItNamesTest#aRoleFollowsWhatItPerformsAndAProcessByItsPrefix, cloud.jengu.platform.lab.ARoleActsThroughTheStepsItNamesTest#aRolesStepsAreKeptInItsRecord, cloud.jengu.platform.lab.ARoleActsThroughTheStepsItNamesTest#aTenantWhoseRolesNameNoStepIsDecidedByItsSettings, cloud.jengu.platform.lab.ARoleActsThroughTheStepsItNamesTest#theLaboratoryIsOpenAsFarAsTheRoleFollowsOrPerformsItsSteps
  • cited, no result A person holding several roles at an organisation acts in one of them at a time, chosen where their name is shown and remembered for the next time; what they see and may do there is that role's. REQ-ORG-A-PERSON-ACTS-IN-ONE-ROLE-AT-A-TIME
    Cited by: cloud.jengu.platform.lab.ARoleActsThroughTheStepsItNamesTest#aPersonActsInTheRoleTheyChoseElseTheFirstTheyHold, cloud.jengu.platform.shell.APersonChoosesARoleAtAnOrganisationAsOneTest#aRoleHeldEverywhereIsOfferedWhereThePersonIs, cloud.jengu.platform.shell.APersonChoosesARoleAtAnOrganisationAsOneTest#eachRoleAtItsOrganisationIsOneChoiceByItsName
  • cited, no result A page a person may not open, or that is not there, at an organisation takes them to its home page; anything else that goes wrong is told on the platform's own page, never a blank or technical one. REQ-ORG-A-PAGE-THAT-CANNOT-BE-SHOWN-LEAVES-A-PERSON-AT-HOME
    Cited by: cloud.jengu.platform.shell.APageThatCannotBeShownLeavesAPersonAtHomeTest#aFragmentAPageAskedForIsNeverRedirected, cloud.jengu.platform.shell.APageThatCannotBeShownLeavesAPersonAtHomeTest#aPageAnotherRolesOrGoneAtAnOrganisationGoesToItsHome, cloud.jengu.platform.shell.APageThatCannotBeShownLeavesAPersonAtHomeTest#theHomeItselfAFaultAndAnAddressOutsideAnOrganisationAreToldOnThePlatformsOwnPage
  • cited, no result A person whose sign-in ended comes back, once signed in again, to the page they were on, not to a part of it or a window it had open; where that page is no longer theirs, or is another customer's, they land at their own home. REQ-ORG-A-PERSON-SIGNED-IN-AGAIN-COMES-BACK-TO-THE-PAGE-THEY-WERE-ON
    Cited by: cloud.jengu.platform.auth.APersonSignedInAgainComesBackToThePageTheyWereOnTest#aPageComesBackToItselfAndAFormSentToThePageItWasSentFrom, cloud.jengu.platform.auth.APersonSignedInAgainComesBackToThePageTheyWereOnTest#aPageNoLongerTheirsOrAnotherCustomersLandsThemAtTheirOwnHome, cloud.jengu.platform.auth.APersonSignedInAgainComesBackToThePageTheyWereOnTest#aWindowOrAPartAPageAskedForComesBackToThatPage, cloud.jengu.platform.shell.APageThatCannotBeShownLeavesAPersonAtHomeTest#aFormsAddressOpenedAsAPageGoesToTheOrganisationsHome
  • cited, no result A decision on a laboratory result made in the cloud is refused, saying why, unless the role the person acts in performs verifying or telling results, and the result says who decided and in which role. REQ-ORG-A-DECISION-ON-A-RESULT-IS-TAKEN-ONLY-IN-A-ROLE-THAT-PERFORMS-IT
    Cited by: cloud.jengu.platform.lab.ARoleActsThroughTheStepsItNamesTest#aDecisionSaysTheRoleItWasTakenIn, cloud.jengu.platform.lab.ARoleActsThroughTheStepsItNamesTest#aRolePerformingVerificationIsGrantedTheStepsThatCarryADecision
    Based on 1 promise
    • not cited Work an application in the store's process starts, or an act it says of work that lasts, for a person acting in one of their roles is refused, saying why, unless they hold that role now and what the role grants where they hold it covers the step — by the step's code, or every step of its process. A role held that does not cover the step does not make it theirs. REQ-DBO-PROC-WORK-FOR-A-PERSON-IN-A-ROLE-IS-THEIRS-ONLY-WHERE-THE-ROLE-PERFORMS-IT
  • gap: not yet stated The menu and the address follow the organisation chosen. FEAT-GAP-797f3413
  • gap: not yet stated Audit records the organisation an action happened in. FEAT-GAP-5ac6d05b
  • gap: not yet stated History survives a reorganisation. FEAT-GAP-1b71f206