Skip to content

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

Open
jhntrifork wants to merge 1 commit into
release_2026.4-SNAPSHOTfrom
fix/skrs-patient-single-general-practitioner-2026.4
Open

Constrain ehealth-skrs-patient generalPractitioner to 0..1#327
jhntrifork wants to merge 1 commit into
release_2026.4-SNAPSHOTfrom
fix/skrs-patient-single-general-practitioner-2026.4

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.
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