Skip to content

Fixing 'Path /composer is choice but PartyIdentified is missing OptionFor' warnings #676

@hkabbech

Description

@hkabbech

Hi,

I am having a lot of warnings popping up in the logs related to PartyIdenfitied or PartySelf, for examples:

2025-08-06T09:37:27.376+02:00  WARN 1 --- [nio-8080-exec-7] o.e.o.s.s.dto.DtoToCompositionWalker     : Path /composer is choice but PartyIdentified is missing OptionFor
2025-08-06T09:37:27.376+02:00  WARN 1 --- [nio-8080-exec-7] o.e.o.s.s.dto.DtoToCompositionWalker     : Path /composer is choice but PartyIdentified is missing OptionFor
2025-08-06T09:37:27.376+02:00  WARN 1 --- [nio-8080-exec-7] o.e.o.s.s.dto.DtoToCompositionWalker     : Path /composer is choice but PartyIdentified is missing OptionFor
2025-08-06T09:37:26.450+02:00  WARN 1 --- [nio-8080-exec-8] o.e.o.s.s.dto.DtoToCompositionWalker     : Path /content[openEHR-EHR-OBSERVATION.adl.v0 and name/value='template-1']/subject is choice but PartySelf is missing OptionFor

Seems to be related to missing headers such as @OptionFor("PARTY_IDENTIFIED") but I can't find a fix for it.

PartyIdentified and PartySelf are imported from nedap.archie.

import com.nedap.archie.rm.generic.PartyIdentified;
import com.nedap.archie.rm.generic.PartySelf;

I am using EHRbase SDK version 2.17.0.

Thanks,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions