Skip to main content

Local NGO chapters per kommune

Atlas view

Local NGO chapters per kommune

api_v1.kommune_local_chapters

Active local chapters in each kommune, decorated with the NGO name/brand and the service-category labels offered.

First 5 rows · api_v1.kommune_local_chapters
snapshot 2026-05-12
kommune_nrchapter_idnamengo_orgnrngo_namengo_brand_nameservice_category_codeservice_category_label_nosort_order
1101redcross-L136Egersund og Dalane Røde Kors864139442Norges Røde KorsRøde Korsrescue_corpsHjelpekorps1
1101redcross-L136Egersund og Dalane Røde Kors864139442Norges Røde KorsRøde Korsfirst_aid_standbyBeredskapsvakt2
1101redcross-L136Egersund og Dalane Røde Kors864139442Norges Røde KorsRøde Korsfirst_aid_trainingFørstehjelpskurs3
1101redcross-L136Egersund og Dalane Røde Kors864139442Norges Røde KorsRøde Korselderly_visitingBesøkstjeneste4
1101redcross-L136Egersund og Dalane Røde Kors864139442Norges Røde KorsRøde Korslanguage_practiceNorsktrening5

Built from

This Atlas view joins data from the following upstream sources. Click through for provenance, methodology, and citation.

Showing direct dbt parents. See full lineage in /lineage/ →

Columns

ColumnDescription
kommune_nr4-digit kommune code where the local chapter operates. FK to dim_kommune. The primary filter dimension for this view. Chapters with NULL kommune_nr are excluded by the view (this isn't "local chapters in a kommune" if there's no kommune). The relationships test is `warn`-severity because Svalbard (2100) is a real Red Cross local chapter location whose kommune code isn't in dim_kommune.
chapter_idComposite slug for the local chapter (e.g. 'redcross-oslo-grunerløkka'). Repeats across rows when the chapter offers multiple service categories.
nameDisplay name for the local chapter.
ngo_orgnr9-digit Brreg organisasjonsnummer of the NGO that owns the chapter.
ngo_nameJoined from dim_ngo (legal name).
ngo_brand_nameJoined from dim_ngo (brand name when distinct from legal name). NULL when the NGO doesn't use a brand alias.
service_category_codeICNPO-derived service category code for one of the activities this chapter offers. Combined with chapter_id forms the natural key of this view (rows are unique on (chapter_id, service_category_code)).
service_category_label_noHuman-readable Norwegian label for service_category_code, joined from ref_atlas_service_category.
sort_orderDisplay order from ref_atlas_service_category. Used by the UI to render service categories in a consistent sequence; carry on the row so consumers can sort without a separate query.

Sample query

Live PostgREST query that returns the first 5 rows. URL adapts to the current host — local dev shows api-atlas.localhost; the deployed site shows api-atlas.sovereignsky.no.

https://api-atlas.sovereignsky.no/kommune_local_chapters?limit=5

About this view

Active local chapters in each kommune, decorated with the NGO name/brand and the service-category labels offered. Backs the kommune detail page (atlas-frontend /kommuner/[kommune_nr]); equivalent to listChaptersInKommune(). **Important:** this view returns *multiple rows per chapter* — one per service category the chapter offers. A chapter that provides three service categories appears as three rows for the same kommune_nr / chapter_id, with different service_category_code values. Consumers that want unique chapters should distinct on chapter_id (or aggregate service categories into an array client-side). PostgREST consumers filter via ?kommune_nr=eq.X. Inactive chapters, non-local chapters (regional, national), and chapters with NULL kommune_nr are excluded. Svalbard (kommune_nr 2100, Longyearbyen Røde Kors) is included even though 2100 isn't in dim_kommune — the FK relationships test is `warn`-severity to keep this row visible.