[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6XFCXHKE2E13CYTVTMPX7AD":3,"skill-same:01M6XFCXHKE2E13CYTVTMPX7AD":79},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":46,"repositoryHtmlUrl":47,"repositoryHomepageUrl":6,"ownerHtmlUrl":48,"ownerBlogUrl":6,"ownerDescription":49,"updatedAt":50,"install":51,"resources":64},"01M6XFCXHKE2E13CYTVTMPX7AD","behandlingsresultat",null,"Expert knowledge of Behandlingsresultat (treatment result) domain in melosys-api.\nUse when: (1) Understanding result types and their meaning (FASTSATT_LOVVALGSLAND, MEDLEM_I_FOLKETRYGDEN, etc.),\n(2) Working with periods - Lovvalgsperiode, Medlemskapsperiode, Anmodningsperiode, Utpekingsperiode,\n(3) Debugging vedtak\u002Fdecision metadata, criteria evaluation, or social insurance charges,\n(4) Understanding EU\u002FEEA coordination logic and Article 16 exception handling,\n(5) Working with trygdeavgift (social insurance charge) calculations.","FDU-INS\u002FInsurance-Skills","FDU-INS","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F167067594?v=4","01M6XEYMRS4CVJMZ834YWE66BV","FDU-Insurance","01M6XEYMXPDA34HFM0ZE6AY78G",82,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FFDU-INS\u002FInsurance-Skills\u002Fblob\u002Fmain\u002FSkills\u002Fbehandlingsresultat\u002FSKILL.md",[],[5,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"logic","insurance","charge","when","result","meaning","with","types","article","debugging","domain","social","expert","use","decision","coordination","knowledge","api","Evaluation","2026-11-10 10:12:30",false,"---\nname: behandlingsresultat\ndescription: |\n  Expert knowledge of Behandlingsresultat (treatment result) domain in melosys-api.\n  Use when: (1) Understanding result types and their meaning (FASTSATT_LOVVALGSLAND, MEDLEM_I_FOLKETRYGDEN, etc.),\n  (2) Working with periods - Lovvalgsperiode, Medlemskapsperiode, Anmodningsperiode, Utpekingsperiode,\n  (3) Debugging vedtak\u002Fdecision metadata, criteria evaluation, or social insurance charges,\n  (4) Understanding EU\u002FEEA coordination logic and Article 16 exception handling,\n  (5) Working with trygdeavgift (social insurance charge) calculations.\n---\n\n# Behandlingsresultat Domain\n\nBehandlingsresultat captures the outcome of a Behandling, including which law applies, membership status,\nperiods, decision metadata, and eligibility criteria results.\n\n## Quick Reference\n\n### Entity Structure\n```\nBehandling (1)\n    ↓ OneToOne\nBehandlingsresultat\n    ├─ VedtakMetadata (decision date, appeal deadline)\n    ├─ Lovvalgsperiode* (law choice periods)\n    │   └─ Trygdeavgiftsperiode*\n    ├─ Medlemskapsperiode* (membership periods)\n    │   └─ Trygdeavgiftsperiode*\n    ├─ Anmodningsperiode* (Article 16 request periods)\n    │   └─ AnmodningsperiodeSvar\n    ├─ Utpekingsperiode* (designation periods)\n    ├─ Vilkaarsresultat* (eligibility criteria)\n    ├─ Kontrollresultat* (verification results)\n    ├─ Avklartefakta* (clarified facts)\n    └─ HelseutgiftDekkesPeriode (EEA pensioner health coverage)\n```\n\n### Key Attributes\n\n| Attribute | Type | Description |\n|-----------|------|-------------|\n| `type` | Behandlingsresultattyper | IKKE_FASTSATT, FASTSATT_LOVVALGSLAND, MEDLEM_I_FOLKETRYGDEN, etc. |\n| `behandlingsmåte` | Behandlingsmaate | AUTOMATISERT, MANUELT, DELVIS_AUTOMATISERT |\n| `fastsattAvLand` | Land_iso2 | Country that determined the result |\n| `vedtakMetadata` | VedtakMetadata | Decision date and appeal deadline |\n| `begrunnelseFritekst` | String? | Free-text justification |\n\n### Result Types (Behandlingsresultattyper)\n\n| Type | Description | Use Case |\n|------|-------------|----------|\n| `IKKE_FASTSATT` | Not determined | Initial state |\n| `FASTSATT_LOVVALGSLAND` | Law choice country set | EU\u002FEEA lovvalg |\n| `MEDLEM_I_FOLKETRYGDEN` | Member of Norwegian NI | FTRL membership |\n| `UNNTATT_MEDLEMSKAP` | Exempt from membership | Non-member |\n| `AVSLAG_SØKNAD` | Application denied | Rejection |\n| `OPPHØRT` | Membership terminated | Termination |\n| `ANMODNING_OM_UNNTAK` | Article 16 exception request | Sent to foreign authority |\n| `REGISTRERT_UNNTAK` | Registered exception | Exception approved |\n| `HENLEGGELSE` | Case dismissed | Dropped case |\n| `FERDIGBEHANDLET` | Completed | Generic completion |\n| `MEDHOLD` | Appeal upheld | Klage result |\n| `OMGJORT` | Decision reversed | Klage result |\n\n## Period Types\n\n### Lovvalgsperiode (Law Choice Period)\nDetermines which country's social security law applies.\n\n```kotlin\nlovvalgsperiode.lovvalgsland        \u002F\u002F Land_iso2 - chosen country\nlovvalgsperiode.bestemmelse         \u002F\u002F LovvalgBestemmelse - regulation (Art. 11, 13, etc.)\nlovvalgsperiode.innvilgelsesresultat \u002F\u002F INNVILGET, AVSLAATT, OPPHØRT\nlovvalgsperiode.medlemskapstype     \u002F\u002F PLIKTIG, FRIVILLIG, UNNTATT\nlovvalgsperiode.dekning             \u002F\u002F Trygdedekninger\n```\n\n### Medlemskapsperiode (Membership Period)\nMembership in Norwegian National Insurance (folketrygden).\n\n```kotlin\nmedlemskapsperiode.innvilgelsesresultat  \u002F\u002F INNVILGET, AVSLAATT, OPPHØRT\nmedlemskapsperiode.medlemskapstype       \u002F\u002F PLIKTIG, FRIVILLIG, UNNTATT\nmedlemskapsperiode.trygdedekning         \u002F\u002F Coverage type\nmedlemskapsperiode.bestemmelse           \u002F\u002F Membership-specific provision\n```\n\n### Anmodningsperiode (Article 16 Request Period)\nRequest for exception under EU Regulation Article 16.\n\n```kotlin\nanmodningsperiode.sendtUtland           \u002F\u002F Sent to foreign authority\nanmodningsperiode.anmodetAv             \u002F\u002F Requested by\nanmodningsperiode.anmodningsperiodeSvar \u002F\u002F Response from authority\n```\n\n### Utpekingsperiode (Designation Period)\nProvisional designation of applicable law (EU\u002FEFTA).\n\n## Common Operations\n\n### Fetching Behandlingsresultat\n```kotlin\n\u002F\u002F Basic fetch\nval resultat = behandlingsresultatService.hentBehandlingsresultat(behandlingId)\n\n\u002F\u002F With specific relations loaded\nval resultat = behandlingsresultatService.hentBehandlingsresultatMedAnmodningsperioder(behandlingId)\nval resultat = behandlingsresultatService.hentResultatMedMedlemskapOgLovvalg(behandlingId)\n```\n\n### Status Checks\n```kotlin\nresultat.erInnvilgelse()           \u002F\u002F Is approval (lovvalg)\nresultat.erAvslag()                \u002F\u002F Is denial\nresultat.erOpphørt()               \u002F\u002F Is terminated\nresultat.erAnmodningOmUnntak()     \u002F\u002F Is Article 16 request\nresultat.erUtpeking()              \u002F\u002F Is designation\nresultat.erAutomatisert()          \u002F\u002F Was auto-processed\nresultat.erRegistrertUnntak()      \u002F\u002F Is registered exception\n```\n\n### Period Access\n```kotlin\n\u002F\u002F Single period (throws if multiple exist)\nval lovvalg = resultat.hentLovvalgsperiode()\nval anmodning = resultat.hentAnmodningsperiode()\n\n\u002F\u002F Optional access\nval lovvalg: Optional\u003CLovvalgsperiode> = resultat.finnLovvalgsperiode()\n\n\u002F\u002F Validated period (any type)\nval periode: PeriodeOmLovvalg? = resultat.finnValidertPeriodeOmLovvalg()\n\n\u002F\u002F Collections\nval medlemsperioder = resultat.medlemskapsperioder  \u002F\u002F Set\u003CMedlemskapsperiode>\n```\n\n### Trygdeavgift (Social Insurance Charges)\n```kotlin\n\u002F\u002F Get all charge-liable periods\nval avgiftsPerioder = resultat.finnAvgiftspliktigPerioder()\n\n\u002F\u002F Check overlap with tax year\nresultat.harInnvilgetAvgiftspliktigPeriodeSomOverlapperMedÅr(2024)\n\n\u002F\u002F Get all charge periods\nval trygdeavgift = resultat.trygdeavgiftsperioder\n```\n\n### VedtakMetadata (Decision)\n```kotlin\nresultat.harVedtak()  \u002F\u002F Has decision metadata\n\n\u002F\u002F Set decision\nresultat.settVedtakMetadata(\n    vedtaksdato = Instant.now(),\n    vedtakKlagefrist = LocalDate.now().plusWeeks(6)\n)\n```\n\n### Clearing for Reprocessing\n```kotlin\n\u002F\u002F Clear all periods and clarifications\nbehandlingsresultatService.tømBehandlingsresultat(resultat)\n\n\u002F\u002F Clear only membership periods\nbehandlingsresultatService.tømMedlemskapsperioder(resultat)\n```\n\n## Important Interfaces\n\n### PeriodeOmLovvalg\nImplemented by: Lovvalgsperiode, Anmodningsperiode, Utpekingsperiode\n```kotlin\ninterface PeriodeOmLovvalg {\n    val lovvalgsland: Land_iso2\n    val bestemmelse: LovvalgBestemmelse?\n    \u002F\u002F ...\n}\n```\n\n### AvgiftspliktigPeriode\nImplemented by: Lovvalgsperiode, Medlemskapsperiode\n```kotlin\ninterface AvgiftspliktigPeriode {\n    val trygdeavgiftsperioder: Set\u003CTrygdeavgiftsperiode>\n    \u002F\u002F ...\n}\n```\n\n## Key Services\n\n### BehandlingsresultatService\n- `hentBehandlingsresultat()` - Fetch by ID\n- `lagreNyttBehandlingsresultat()` - Create (initial: IKKE_FASTSATT, MANUELT)\n- `oppdaterBehandlingsresultattype()` - Update type\n- `tømBehandlingsresultat()` - Clear for reprocessing\n\n### AngiBehandlingsresultatService\n- `oppdaterBehandlingsresultattypeOgAvsluttFagsakOgBehandling()` - Set type with validation and close case\n- Validates result type against case type, theme, and treatment type\n\n### ReplikerBehandlingsresultatService\n- `replikerBehandlingsresultat()` - Clone result for replicated treatment\n- Deep clones all relationships, resets to IKKE_FASTSATT\u002FMANUELT\n\n## Important Gotchas\n\n### 1. Single Period Assumption\nSome methods assume only one period of a type exists:\n```kotlin\n\u002F\u002F Throws if multiple lovvalgsperioder exist\nresultat.hentLovvalgsperiode()\n\n\u002F\u002F Safe alternative\nresultat.finnLovvalgsperiode()  \u002F\u002F Returns Optional\n```\n\n### 2. Type-Driven Logic\nBusiness logic depends heavily on `type` and `fagsak.erLovvalg()`:\n```kotlin\n\u002F\u002F Different period collections based on case type\nval perioder = if (fagsak.erLovvalg()) {\n    resultat.lovvalgsperioder\n} else {\n    resultat.medlemskapsperioder\n}\n```\n\n### 3. Cascade Deletion\nAll child entities use `CascadeType.ALL` with `orphanRemoval = true`.\nRemoving a period from the collection deletes it from the database.\n\n### 4. Conditional Eager Loading\nUse specific service methods to optimize loading:\n```kotlin\n\u002F\u002F Only loads anmodningsperioder\nhentBehandlingsresultatMedAnmodningsperioder()\n\n\u002F\u002F Loads both membership and lovvalg\nhentResultatMedMedlemskapOgLovvalg()\n```\n\n## Debugging\n\n### Find Behandlingsresultat\n```sql\nSELECT br.* FROM behandlingsresultat br\nWHERE br.id = :behandlingId;\n```\n\n### Find All Periods for a Result\n```sql\n-- Lovvalgsperioder\nSELECT * FROM lovvalgsperiode WHERE behandlingsresultat_id = :id;\n\n-- Medlemskapsperioder\nSELECT * FROM medlemskapsperiode WHERE behandlingsresultat_id = :id;\n\n-- Anmodningsperioder\nSELECT * FROM anmodningsperiode WHERE behandlingsresultat_id = :id;\n```\n\n### Find Results Without Decision\n```sql\nSELECT br.id, b.status\nFROM behandlingsresultat br\nJOIN behandling b ON b.id = br.id\nLEFT JOIN vedtak_metadata vm ON vm.behandlingsresultat_id = br.id\nWHERE vm.id IS NULL\nAND br.type != 'IKKE_FASTSATT';\n```\n\n### Find Results with Multiple Periods (potential issue)\n```sql\nSELECT br.id, COUNT(*) as period_count\nFROM behandlingsresultat br\nJOIN lovvalgsperiode lp ON lp.behandlingsresultat_id = br.id\nGROUP BY br.id\nHAVING COUNT(*) > 1;\n```\n\n## Detailed Documentation\n\n- **[Period Types](references\u002Fperiods.md)**: Deep dive into period types and their relationships\n- **[Result Types](references\u002Fresult-types.md)**: Complete result type reference\n","# Behandlingsresultat Domain\n\nBehandlingsresultat captures the outcome of a Behandling, including which law applies, membership status,\nperiods, decision metadata, and eligibility criteria results.\n\n## Quick Reference\n\n### Entity Structure\n```\nBehandling (1)\n    ↓ OneToOne\nBehandlingsresultat\n    ├─ VedtakMetadata (decision date, appeal deadline)\n    ├─ Lovvalgsperiode* (law choice periods)\n    │   └─ Trygdeavgiftsperiode*\n    ├─ Medlemskapsperiode* (membership periods)\n    │   └─ Trygdeavgiftsperiode*\n    ├─ Anmodningsperiode* (Article 16 request periods)\n    │   └─ AnmodningsperiodeSvar\n    ├─ Utpekingsperiode* (designation periods)\n    ├─ Vilkaarsresultat* (eligibility criteria)\n    ├─ Kontrollresultat* (verification results)\n    ├─ Avklartefakta* (clarified facts)\n    └─ HelseutgiftDekkesPeriode (EEA pensioner health coverage)\n```\n\n### Key Attributes\n\n| Attribute | Type | Description |\n|-----------|------|-------------|\n| `type` | Behandlingsresultattyper | IKKE_FASTSATT, FASTSATT_LOVVALGSLAND, MEDLEM_I_FOLKETRYGDEN, etc. |\n| `behandlingsmåte` | Behandlingsmaate | AUTOMATISERT, MANUELT, DELVIS_AUTOMATISERT |\n| `fastsattAvLand` | Land_iso2 | Country that determined the result |\n| `vedtakMetadata` | VedtakMetadata | Decision date and appeal deadline |\n| `begrunnelseFritekst` | String? | Free-text justification |\n\n### Result Types (Behandlingsresultattyper)\n\n| Type | Description | Use Case |\n|------|-------------|----------|\n| `IKKE_FASTSATT` | Not determined | Initial state |\n| `FASTSATT_LOVVALGSLAND` | Law choice country set | EU\u002FEEA lovvalg |\n| `MEDLEM_I_FOLKETRYGDEN` | Member of Norwegian NI | FTRL membership |\n| `UNNTATT_MEDLEMSKAP` | Exempt from membership | Non-member |\n| `AVSLAG_SØKNAD` | Application denied | Rejection |\n| `OPPHØRT` | Membership terminated | Termination |\n| `ANMODNING_OM_UNNTAK` | Article 16 exception request | Sent to foreign authority |\n| `REGISTRERT_UNNTAK` | Registered exception | Exception approved |\n| `HENLEGGELSE` | Case dismissed | Dropped case |\n| `FERDIGBEHANDLET` | Completed | Generic completion |\n| `MEDHOLD` | Appeal upheld | Klage result |\n| `OMGJORT` | Decision reversed | Klage result |\n\n## Period Types\n\n### Lovvalgsperiode (Law Choice Period)\nDetermines which country's social security law applies.\n\n```kotlin\nlovvalgsperiode.lovvalgsland        \u002F\u002F Land_iso2 - chosen country\nlovvalgsperiode.bestemmelse         \u002F\u002F LovvalgBestemmelse - regulation (Art. 11, 13, etc.)\nlovvalgsperiode.innvilgelsesresultat \u002F\u002F INNVILGET, AVSLAATT, OPPHØRT\nlovvalgsperiode.medlemskapstype     \u002F\u002F PLIKTIG, FRIVILLIG, UNNTATT\nlovvalgsperiode.dekning             \u002F\u002F Trygdedekninger\n```\n\n### Medlemskapsperiode (Membership Period)\nMembership in Norwegian National Insurance (folketrygden).\n\n```kotlin\nmedlemskapsperiode.innvilgelsesresultat  \u002F\u002F INNVILGET, AVSLAATT, OPPHØRT\nmedlemskapsperiode.medlemskapstype       \u002F\u002F PLIKTIG, FRIVILLIG, UNNTATT\nmedlemskapsperiode.trygdedekning         \u002F\u002F Coverage type\nmedlemskapsperiode.bestemmelse           \u002F\u002F Membership-specific provision\n```\n\n### Anmodningsperiode (Article 16 Request Period)\nRequest for exception under EU Regulation Article 16.\n\n```kotlin\nanmodningsperiode.sendtUtland           \u002F\u002F Sent to foreign authority\nanmodningsperiode.anmodetAv             \u002F\u002F Requested by\nanmodningsperiode.anmodningsperiodeSvar \u002F\u002F Response from authority\n```\n\n### Utpekingsperiode (Designation Period)\nProvisional designation of applicable law (EU\u002FEFTA).\n\n## Common Operations\n\n### Fetching Behandlingsresultat\n```kotlin\n\u002F\u002F Basic fetch\nval resultat = behandlingsresultatService.hentBehandlingsresultat(behandlingId)\n\n\u002F\u002F With specific relations loaded\nval resultat = behandlingsresultatService.hentBehandlingsresultatMedAnmodningsperioder(behandlingId)\nval resultat = behandlingsresultatService.hentResultatMedMedlemskapOgLovvalg(behandlingId)\n```\n\n### Status Checks\n```kotlin\nresultat.erInnvilgelse()           \u002F\u002F Is approval (lovvalg)\nresultat.erAvslag()                \u002F\u002F Is denial\nresultat.erOpphørt()               \u002F\u002F Is terminated\nresultat.erAnmodningOmUnntak()     \u002F\u002F Is Article 16 request\nresultat.erUtpeking()              \u002F\u002F Is designation\nresultat.erAutomatisert()          \u002F\u002F Was auto-processed\nresultat.erRegistrertUnntak()      \u002F\u002F Is registered exception\n```\n\n### Period Access\n```kotlin\n\u002F\u002F Single period (throws if multiple exist)\nval lovvalg = resultat.hentLovvalgsperiode()\nval anmodning = resultat.hentAnmodningsperiode()\n\n\u002F\u002F Optional access\nval lovvalg: Optional\u003CLovvalgsperiode> = resultat.finnLovvalgsperiode()\n\n\u002F\u002F Validated period (any type)\nval periode: PeriodeOmLovvalg? = resultat.finnValidertPeriodeOmLovvalg()\n\n\u002F\u002F Collections\nval medlemsperioder = resultat.medlemskapsperioder  \u002F\u002F Set\u003CMedlemskapsperiode>\n```\n\n### Trygdeavgift (Social Insurance Charges)\n```kotlin\n\u002F\u002F Get all charge-liable periods\nval avgiftsPerioder = resultat.finnAvgiftspliktigPerioder()\n\n\u002F\u002F Check overlap with tax year\nresultat.harInnvilgetAvgiftspliktigPeriodeSomOverlapperMedÅr(2024)\n\n\u002F\u002F Get all charge periods\nval trygdeavgift = resultat.trygdeavgiftsperioder\n```\n\n### VedtakMetadata (Decision)\n```kotlin\nresultat.harVedtak()  \u002F\u002F Has decision metadata\n\n\u002F\u002F Set decision\nresultat.settVedtakMetadata(\n    vedtaksdato = Instant.now(),\n    vedtakKlagefrist = LocalDate.now().plusWeeks(6)\n)\n```\n\n### Clearing for Reprocessing\n```kotlin\n\u002F\u002F Clear all periods and clarifications\nbehandlingsresultatService.tømBehandlingsresultat(resultat)\n\n\u002F\u002F Clear only membership periods\nbehandlingsresultatService.tømMedlemskapsperioder(resultat)\n```\n\n## Important Interfaces\n\n### PeriodeOmLovvalg\nImplemented by: Lovvalgsperiode, Anmodningsperiode, Utpekingsperiode\n```kotlin\ninterface PeriodeOmLovvalg {\n    val lovvalgsland: Land_iso2\n    val bestemmelse: LovvalgBestemmelse?\n    \u002F\u002F ...\n}\n```\n\n### AvgiftspliktigPeriode\nImplemented by: Lovvalgsperiode, Medlemskapsperiode\n```kotlin\ninterface AvgiftspliktigPeriode {\n    val trygdeavgiftsperioder: Set\u003CTrygdeavgiftsperiode>\n    \u002F\u002F ...\n}\n```\n\n## Key Services\n\n### BehandlingsresultatService\n- `hentBehandlingsresultat()` - Fetch by ID\n- `lagreNyttBehandlingsresultat()` - Create (initial: IKKE_FASTSATT, MANUELT)\n- `oppdaterBehandlingsresultattype()` - Update type\n- `tømBehandlingsresultat()` - Clear for reprocessing\n\n### AngiBehandlingsresultatService\n- `oppdaterBehandlingsresultattypeOgAvsluttFagsakOgBehandling()` - Set type with validation and close case\n- Validates result type against case type, theme, and treatment type\n\n### ReplikerBehandlingsresultatService\n- `replikerBehandlingsresultat()` - Clone result for replicated treatment\n- Deep clones all relationships, resets to IKKE_FASTSATT\u002FMANUELT\n\n## Important Gotchas\n\n### 1. Single Period Assumption\nSome methods assume only one period of a type exists:\n```kotlin\n\u002F\u002F Throws if multiple lovvalgsperioder exist\nresultat.hentLovvalgsperiode()\n\n\u002F\u002F Safe alternative\nresultat.finnLovvalgsperiode()  \u002F\u002F Returns Optional\n```\n\n### 2. Type-Driven Logic\nBusiness logic depends heavily on `type` and `fagsak.erLovvalg()`:\n```kotlin\n\u002F\u002F Different period collections based on case type\nval perioder = if (fagsak.erLovvalg()) {\n    resultat.lovvalgsperioder\n} else {\n    resultat.medlemskapsperioder\n}\n```\n\n### 3. Cascade Deletion\nAll child entities use `CascadeType.ALL` with `orphanRemoval = true`.\nRemoving a period from the collection deletes it from the database.\n\n### 4. Conditional Eager Loading\nUse specific service methods to optimize loading:\n```kotlin\n\u002F\u002F Only loads anmodningsperioder\nhentBehandlingsresultatMedAnmodningsperioder()\n\n\u002F\u002F Loads both membership and lovvalg\nhentResultatMedMedlemskapOgLovvalg()\n```\n\n## Debugging\n\n### Find Behandlingsresultat\n```sql\nSELECT br.* FROM behandlingsresultat br\nWHERE br.id = :behandlingId;\n```\n\n### Find All Periods for a Result\n```sql\n-- Lovvalgsperioder\nSELECT * FROM lovvalgsperiode WHERE behandlingsresultat_id = :id;\n\n-- Medlemskapsperioder\nSELECT * FROM medlemskapsperiode WHERE behandlingsresultat_id = :id;\n\n-- Anmodningsperioder\nSELECT * FROM anmodningsperiode WHERE behandlingsresultat_id = :id;\n```\n\n### Find Results Without Decision\n```sql\nSELECT br.id, b.status\nFROM behandlingsresultat br\nJOIN behandling b ON b.id = br.id\nLEFT JOIN vedtak_metadata vm ON vm.behandlingsresultat_id = br.id\nWHERE vm.id IS NULL\nAND br.type != 'IKKE_FASTSATT';\n```\n\n### Find Results with Multiple Periods (potential issue)\n```sql\nSELECT br.id, COUNT(*) as period_count\nFROM behandlingsresultat br\nJOIN lovvalgsperiode lp ON lp.behandlingsresultat_id = br.id\nGROUP BY br.id\nHAVING COUNT(*) > 1;\n```\n\n## Detailed Documentation\n\n- **[Period Types](references\u002Fperiods.md)**: Deep dive into period types and their relationships\n- **[Result Types](references\u002Fresult-types.md)**: Complete result type reference\n",{"name":5,"description":7},"main","b22eca2e974f918ce591c5b2bd829fb7510e0191","Skills\u002Fbehandlingsresultat",18,"https:\u002F\u002Fgithub.com\u002FFDU-INS\u002FInsurance-Skills","https:\u002F\u002Fgithub.com\u002FFDU-INS","Fudan University Department of Risk Management and Insurance","2026-07-12 12:54:34",{"source":8,"skillName":5,"commands":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add FDU-INS\u002FInsurance-Skills --skill behandlingsresultat",{"tool":57,"command":58},"bunx","bunx skills add FDU-INS\u002FInsurance-Skills --skill behandlingsresultat",{"tool":60,"command":61},"pnpm","pnpm dlx skills add FDU-INS\u002FInsurance-Skills --skill behandlingsresultat","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FFDU-INS\u002FInsurance-Skills\u002Fblob\u002Fmain\u002FSkills\u002Fbehandlingsresultat\u002FSKILL.md",true,[65,71,75],{"path":66,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":69,"sourceHtmlUrl":70},"references\u002Fperiods.md","REFERENCE","参考文档",5427,"https:\u002F\u002Fgithub.com\u002FFDU-INS\u002FInsurance-Skills\u002Fblob\u002Fmain\u002FSkills\u002Fbehandlingsresultat\u002Freferences\u002Fperiods.md",{"path":72,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":73,"sourceHtmlUrl":74},"references\u002Fresult-types.md",4454,"https:\u002F\u002Fgithub.com\u002FFDU-INS\u002FInsurance-Skills\u002Fblob\u002Fmain\u002FSkills\u002Fbehandlingsresultat\u002Freferences\u002Fresult-types.md",{"path":76,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":77,"sourceHtmlUrl":78},"references\u002Ftrygdeavgift.md",4427,"https:\u002F\u002Fgithub.com\u002FFDU-INS\u002FInsurance-Skills\u002Fblob\u002Fmain\u002FSkills\u002Fbehandlingsresultat\u002Freferences\u002Ftrygdeavgift.md",[80,103,127,153,175,199],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":38},"01M713QW6EGEG0YAD75440GSD0","로인장 (Roinjiang)","Activates when the user needs legal advice, contract review, insurance law consultation, startup legal support, or any legal\u002Fregulatory matter. She is a top-tier in-house lawyer with absolute loyalty to the CEO, specializing in insurance law, financial consumer protection, privacy, contracts, labor law, family law, civil and criminal matters.","https:\u002F\u002Fgithub.com\u002FFDU-INS\u002FInsurance-Skills\u002Fblob\u002Fmain\u002FSkills\u002F로인장 (Roinjiang)\u002FSKILL.md",[],[82,87,20,88,89,90,22,91,92,25,93,94,95,96,97,98,99,100,101,102],"insurance law","civil","contract","family","review","loyalty","top","contract review","ceo","support","advice","consultation","regulatory","privacy","protection","startup",{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":38},"01M713QRN8VFMA9VKS6R4DJ2WS","zocdoc-doctor-finder","Use when a user needs to find a doctor, dentist, specialist, therapist, or healthcare provider — especially when they mention insurance, in-network, availability, location, appointments, or booking. Also use for browsing provider reviews, comparing doctors by specialty, or checking if a provider takes their insurance.","https:\u002F\u002Fgithub.com\u002FFDU-INS\u002FInsurance-Skills\u002Fblob\u002Fmain\u002FSkills\u002Fzocdoc-doctor-finder\u002FSKILL.md",[],[110,111,112,113,20,114,115,22,116,117,118,119,120,121,122,123,124,125,32,126],"zocdoc doctor finder","doctor","healthcare","reviews","browser automation","access","browsing","browser","booking","network","therapist","computer","availability","for","provider","tool","automation",{"skillNo":128,"name":129,"nameZh":6,"description":130,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":131,"categories":132,"keywords":133,"publishedAt":38},"01M713QKGV3FTX7EEYWKDM8ENZ","zenmux-context","Answers any question about ZenMux by reading the latest official documentation. Use this skill whenever the user asks about ZenMux product features, API usage, configuration, integration, pricing, models, providers, routing, fallback, streaming, multimodal, structured output, tool calling, reasoning, prompt caching, image generation, video generation, web search, long context, observability, logs, cost tracking, usage analytics, insurance, subscription, pay-as-you-go, invoices, best practices for tools like Claude Code, Cursor, Cline, CodeX, Gemini CLI, opencode, Cherry Studio, Obsidian, Sider, Open-WebUI, Dify, Neovate, GitHub Copilot, OpenClaw, CC-Switch, Immersive Translate, Studio Chat, architecture, benchmarks, FAQ, contact, privacy, terms of service, compliance, or any other ZenMux-related topic. Also trigger when the user writes in Chinese about ZenMux: 文档, 使用指南, 快速开始, API 参考, 最佳实践, 模型路由, 供应商路由, 订阅, 按量计费, 可观测性, 帮助, 常见问题, 接入指南, 配置. Trigger on phrases like \"how to use ZenMux\", \"ZenMux docs\", \"ZenMux API\", \"ZenMux integration\", \"ZenMux 怎么用\", \"ZenMux 接入\", \"ZenMux 配置\". Even if the user doesn't say \"ZenMux\" explicitly but asks about LLM API aggregation, model routing, provider fallback in a context where ZenMux is the project being worked on, this skill should activate.","https:\u002F\u002Fgithub.com\u002FFDU-INS\u002FInsurance-Skills\u002Fblob\u002Fmain\u002FSkills\u002Fzenmux-context\u002FSKILL.md",[],[134,135,136,137,20,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152],"context","zenmux context","Video","chinese","project","web search","translate","search","open","question","pay","image","you","activate","architecture","logs","streaming","cherry studio","how",{"skillNo":154,"name":155,"nameZh":6,"description":156,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":157,"categories":158,"keywords":159,"publishedAt":38},"01M713QHWTBG634BCBV7NBJME1","workers-comp-guide","Guide workers compensation compliance and claims management.\nTRIGGERS - Use when user needs help with workers-comp-guide related tasks.","https:\u002F\u002Fgithub.com\u002FFDU-INS\u002FInsurance-Skills\u002Fblob\u002Fmain\u002FSkills\u002Fworkers-comp-guide\u002FSKILL.md",[],[160,161,162,163,164,20,165,166,32,22,167,25,168,169,170,171,172,173,174],"workers","comp","workers comp","workers comp guide","guide","triggers","workers-comp","tasks","claims management","claims","compliance","help","compensation","management","user",{"skillNo":176,"name":177,"nameZh":6,"description":178,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":179,"categories":180,"keywords":181,"publishedAt":38},"01M713QF45VMV1685AFNF1GPMA","weekly-kpi-report","Generate McKinsey-style board presentation PPTs from weekly auto insurance data. Automatically calculates 16+ KPIs, creates executive-level slides with actionable insights, and supports week-over-week comparisons. Use when user uploads insurance cost data (Excel\u002FCSV) and requests board report, weekly presentation, executive briefing, or mentions keywords like 董事会汇报, 周报PPT, 经营分析演示, McKinsey-style reports.","https:\u002F\u002Fgithub.com\u002FFDU-INS\u002FInsurance-Skills\u002Fblob\u002Fmain\u002FSkills\u002Fweekly-kpi-report\u002FSKILL.md",[],[182,183,184,185,186,20,187,188,189,190,22,191,192,193,194,195,196,197,32,198],"weekly","weekly kpi report","kpi","report","xlsx","actionable","insights","briefing","auto","board report","reports","generate","演示","data","presentation","slides","uploads",{"skillNo":200,"name":201,"nameZh":6,"description":202,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":203,"categories":204,"keywords":205,"publishedAt":38},"01M713QA9WJDHMNVTTY1ENRKVB","wealth-advisory","Wealth management and financial planning for HNW and UHNW clients. Activate when the user\nmentions wealth management, financial planning, retirement, estate planning, tax planning,\nGRAT, IDGT, trust, asset allocation, withdrawal rate, Monte Carlo simulation, goals-based\ninvesting, tax-loss harvesting, Roth conversion, insurance, annuity, mortgage strategy,\nconcentrated stock, family office, direct indexing, 529 plan, charitable giving, donor-advised\nfund, private foundation, or asks about personal finance strategy, inheritance, long-term\nfinancial planning, or UHNW advisory.","https:\u002F\u002Fgithub.com\u002FFDU-INS\u002FInsurance-Skills\u002Fblob\u002Fmain\u002FSkills\u002Fwealth-advisory\u002FSKILL.md",[],[206,207,20,208,209,22,147,210,211,212,213,214,215,216,217,218,219,220,221,222],"wealth advisory","advisory","stock","inheritance","conversion","indexing","plan","simulation","personal finance","rate","allocation","asset","direct","personal","investing","trust","planning"]