Skip to content

Constrain ehealth-skrs-patient generalPractitioner to 0..1 - #326

Closed
jhntrifork wants to merge 1 commit into
masterfrom
fix/skrs-patient-single-general-practitioner
Closed

Constrain ehealth-skrs-patient generalPractitioner to 0..1#326
jhntrifork wants to merge 1 commit into
masterfrom
fix/skrs-patient-single-general-practitioner

Conversation

@jhntrifork

@jhntrifork jhntrifork commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Summary

  • ehealth-skrs-patient had no cardinality constraint on generalPractitioner at all (inherited base FHIR's unconstrained 0..*), even though ehealth-patient (the canonical stored profile) already constrains it to 0..1.
  • fut-patient's updatePatientSKRS operation now rejects any incoming SKRS patient payload carrying more than one generalPractitioner reference (trifork/ehealth#4062), since a citizen only ever has one active GP.
  • This brings the profile's declared contract in line with that enforced business rule.

fut-patient now rejects SKRS patient updates carrying more than one
generalPractitioner reference, since a citizen only ever has one active GP.
The ehealth-skrs-patient profile previously had no cardinality constraint on
this element at all (inherited base FHIR's unconstrained 0..*); this brings
it in line with both the enforced business rule and the ehealth-patient
profile, which already constrains it to 0..1.
@jhntrifork

Copy link
Copy Markdown
Contributor Author

Closing in favor of #327, retargeted to release_2026.4-SNAPSHOT since fut-patient's corresponding fix (trifork/ehealth#4062) ships in release 2026.4, not master. release_2026.4-SNAPSHOT diverged from master before the 10.0.0/10.0.1 work landed, so a straight base-branch change here would have pulled in ~9 unrelated commits.

@jhntrifork jhntrifork closed this Aug 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant