本文へ移動
cccskills
無料GitHub で公開

mottatteopplysninger

Received application data (MottatteOpplysninger) patterns for A1 applications, SED-based cases, and exception requests. Use when working with application forms, person/employer data, work locations, or modifying MottatteOpplysningerData subclasses. Triggers: "mottatteopplysninger", "søknad data", "application form", "MottatteOpplysningerData".

日本語の概要は準備中です。原文の説明を表示しています。

インストール方法を見る

含まれるファイル(1)

  • SKILL.md8.4 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

MottatteOpplysninger Domain

MottatteOpplysninger stores received application data for a Behandling. Data is persisted as JSON and deserialized to type-specific subclasses.

Architecture

┌─────────────────────────────────────────────────────────────────────┐
│                    MottatteOpplysninger (Entity)                     │
│  - id, behandling, type, versjon, jsonData, originalData            │
│  - mottatteOpplysningerData (Transient - deserialized from JSON)    │
└──────────────────────────────────┬──────────────────────────────────┘
                                   │
            ┌──────────────────────┴──────────────────────┐
            │      MottatteOpplysningerKonverterer        │
            │  - Maps type → class for deserialization    │
            │  - Triggered by MottatteOpplysningerListener│
            └──────────────────────┬──────────────────────┘
                                   │
┌──────────────────────────────────┴──────────────────────────────────┐
│                   MottatteOpplysningerData (Base)                    │
│  - soeknadsland, periode, personOpplysninger                        │
│  - arbeidPaaLand, foretakUtland, maritimtArbeid, luftfartBaser      │
│  - juridiskArbeidsgiverNorge, selvstendigArbeid, bosted, oppholdUtl │
└─────────────────────────────────────────────────────────────────────┘
        │               │               │               │
        ▼               ▼               ▼               ▼
   ┌─────────┐    ┌───────────┐  ┌─────────────┐  ┌──────────────┐
   │ Soeknad │    │SedGrunnlag│  │Anmodning-   │  │SøknadNorge-  │
   │  (EØS)  │    │  (SED)    │  │EllerAttest  │  │EllerUtenforEØS│
   └─────────┘    └───────────┘  └─────────────┘  └──────────────┘

Type Mapping

MottatteopplysningertyperClassUse Case
SØKNAD_A1_YRKESAKTIVE_EØSSoeknadA1 for occupationally active (employed or self-employed) in EEA
SØKNAD_A1_UTSENDTE_ARBEIDSTAKERE_EØSSoeknadA1 for posted workers
SØKNAD_YRKESAKTIVE_NORGE_ELLER_UTENFOR_EØSSøknadNorgeEllerUtenforEØSFTRL/bilateral
SØKNAD_IKKE_YRKESAKTIVSøknadIkkeYrkesaktivNon-occupationally active
SEDSedGrunnlagFrom SED documents
ANMODNING_ELLER_ATTESTAnmodningEllerAttestException requests (anmodning) and incoming attests

Key Files

FilePurpose
domain/.../MottatteOpplysninger.javaJPA entity
domain/.../MottatteOpplysningerData.javaBase data class
domain/.../MottatteOpplysningerKonverterer.javaJSON ↔ Object conversion
domain/.../jpa/MottatteOpplysningerListener.javaJPA lifecycle hooks
service/.../MottatteOpplysningerService.ktBusiness logic
frontend-api/.../MottatteOpplysningerController.javaREST endpoints

Data Structure

Base Fields (MottatteOpplysningerData)

soeknadsland: Soeknadsland          // Country of application
periode: Periode                     // Application period (fom/tom)
personOpplysninger: OpplysningerOmBrukeren  // Person info, family
arbeidPaaLand: ArbeidPaaLand        // Physical work locations
foretakUtland: List<ForetakUtland>  // Foreign employers
maritimtArbeid: List<MaritimtArbeid> // Maritime work
luftfartBaser: List<LuftfartBase>   // Aviation bases
juridiskArbeidsgiverNorge: JuridiskArbeidsgiverNorge
selvstendigArbeid: SelvstendigArbeid // Self-employment
bosted: Bosted                       // Residence
oppholdUtland: OppholdUtland        // Foreign stays

Soeknad Extensions

loennOgGodtgjoerelse: LoennOgGodtgjoerelse  // Salary info
arbeidsgiversBekreftelse: ArbeidsgiversBekreftelse
utenlandsoppdraget: Utenlandsoppdraget
arbeidssituasjonOgOevrig: ArbeidssituasjonOgOevrig

SedGrunnlag Extensions

overgangsregelbestemmelser: List<Overgangsregelbestemmelser>
ytterligereInformasjon: String?

AnmodningEllerAttest Extensions

avsenderland: Land_iso2?   // Sending country
lovvalgsland: Land_iso2?   // Applicable legislation country

Common Patterns

Creating MottatteOpplysninger

// Via service (recommended)
mottatteOpplysningerService.opprettSøknadEllerAnmodningEllerAttest(
    behandling, periode, soeknadsland
)

// For SED-based
mottatteOpplysningerService.opprettSedGrunnlag(behandlingId, sedGrunnlag)

// For Altinn søknad
mottatteOpplysningerService.opprettSøknadUtsendteArbeidstakereEøs(
    behandlingID, originalData, soeknad, eksternReferanseID
)

Accessing Data

val mottatteOpplysninger = mottatteOpplysningerService.hentMottatteOpplysninger(behandlingId)
val data = mottatteOpplysninger.mottatteOpplysningerData

// Type-safe casting
when (data) {
    is Soeknad -> data.loennOgGodtgjoerelse
    is SedGrunnlag -> data.overgangsregelbestemmelser
    is AnmodningEllerAttest -> data.avsenderland
}

Updating Data

// Update via JSON (from frontend)
mottatteOpplysningerService.oppdaterMottatteOpplysninger(behandlingId, jsonNode)

// Update via object
val mo = hentMottatteOpplysninger(behandlingId)
mo.mottatteOpplysningerData.periode = newPeriode
mottatteOpplysningerService.oppdaterMottatteOpplysninger(mo)

Serialization Notes

  • Uses Jackson 3.x (tools.jackson) with only KotlinModule registered (.addModule(new KotlinModule.Builder().build()))
  • @JsonIgnoreProperties(ignoreUnknown = true) on base class
  • Converter uses EnumMap<Mottatteopplysningertyper, Class> for type mapping
  • JPA listener auto-converts on load/persist

Helper Methods

// On MottatteOpplysningerData
hentAlleOrganisasjonsnumre()           // All org numbers
hentUtenlandskeArbeidsstederLandkode() // Foreign work location countries
hentUtenlandskeArbeidsgivereUuid()     // Foreign employer UUIDs
hentFnrMedfølgendeBarn()               // Set<String> – accompanying children FNR
hentMedfølgendeBarn()                  // Map<String, MedfolgendeFamilie> (keyed by UUID)
hentMedfølgendeEktefelle()             // Map<String, MedfolgendeFamilie> (keyed by UUID)

Testing

Test factories (Kotlin DSL builders):

  • domain/src/test/kotlin/.../MottatteOpplysningerTestFactory.kt – mottatteOpplysningerForTest { ... }
  • domain/src/test/kotlin/.../SoeknadTestFactory.kt – soeknadForTest { ... }
// Build a MottatteOpplysninger with a Soeknad payload via the DSL
val mottatteOpplysninger = mottatteOpplysningerForTest {
    type = Mottatteopplysningertyper.SØKNAD_A1_YRKESAKTIVE_EØS
    mottatteOpplysningerData = soeknadForTest {
        periode(fom = LocalDate.now(), tom = LocalDate.now().plusMonths(12))
        landkoder("DE")
        fysiskeArbeidssted { landkode = "DE" }
        utenlandskIdent(ident = "12345", landkode = "DE")
    }
}

// Or use the soeknad { ... } extension helper directly:
val mo = mottatteOpplysningerForTest { soeknad { landkoder("DE") } }

Note: OpplysningerOmBrukeren has no fnr; it exposes utenlandskIdent, medfolgendeFamilie and foedestedOgLand.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

Expert knowledge of Altinn A1 application processing for posted workers in melosys-api. Use when: (1) Understanding Altinn søknad/skjema processing, (2) Debugging MedlemskapArbeidEOS form mapping, (3) Understanding SoeknadMapper transformations, (4) Investigating posted worker application issues, (5) Understanding the MOTTAK_SOKNAD_ALTINN saga flow.

日本語の概要は準備中です。原文の説明を表示しています。

navikt/melosys-api22026年10月21日 更新

Expert knowledge of Employer/Employment integration (EREG/AAREG) in melosys-api. Use when: (1) Working with organization data from EREG (Enhetsregisteret), (2) Working with employment data from AAREG (Arbeidsforhold), (3) Understanding employer/organization lookup, (4) Debugging employer or employment issues, (5) Understanding the mapping between register data and domain models. Triggers: orgnummer, arbeidsforhold, EREG, AAREG, Enhetsregisteret, registeropplysninger, ansettelsesperiode, saksopplysning.

日本語の概要は準備中です。原文の説明を表示しています。

navikt/melosys-api22026年10月21日 更新

Modular monolith architecture overview for melosys-api. Use when needing to understand module structure, dependencies between modules, where to place new code, or when changes in one module might affect others. Triggers: "architecture", "module dependencies", "where should I put", "which modules", "dependency graph".

日本語の概要は準備中です。原文の説明を表示しています。

navikt/melosys-api22026年10月21日 更新

Expert knowledge of Behandling (case treatment) domain in melosys-api. Use when: (1) Understanding the behandling lifecycle and status transitions, (2) Debugging issues with behandling creation, status changes, or closure, (3) Understanding relationships between Fagsak, Behandling, and Behandlingsresultat, (4) Investigating why a behandling is stuck or has wrong status, (5) Understanding Behandlingstyper, Behandlingstema, Behandlingsstatus enums, (6) Debugging journalføring or SED-triggered behandling creation, (7) Understanding behandling creation via saksflyt sagas.

日本語の概要は準備中です。原文の説明を表示しています。

navikt/melosys-api22026年10月21日 更新

Expert knowledge of Behandlingsresultat (treatment result) domain in melosys-api. Use when: (1) Understanding result types and their meaning (FASTSATT_LOVVALGSLAND, MEDLEM_I_FOLKETRYGDEN, etc.), (2) Working with periods - Lovvalgsperiode, Medlemskapsperiode, Anmodningsperiode, Utpekingsperiode, (3) Debugging vedtak/decision metadata, criteria evaluation, or social insurance charges, (4) Understanding EU/EEA coordination logic and Article 16 exception handling, (5) Working with trygdeavgift (social insurance charge) calculations.

日本語の概要は準備中です。原文の説明を表示しています。

navikt/melosys-api22026年10月21日 更新

brev

無料

Expert knowledge of Brev (letter generation) in melosys-api. Use when: (1) Producing letters and decision documents (vedtaksbrev), (2) Understanding Dokgen templates and mapping, (3) Configuring letter recipients and distribution, (4) Debugging letter generation issues, (5) Adding new letter types or templates.

日本語の概要は準備中です。原文の説明を表示しています。

navikt/melosys-api22026年10月21日 更新

navikt のスキルをすべて見る

このスキルの問題を報告する