Extracted from #687 :
valid patient profile (note that the UI and backend always accepts exactly one patient profile) - if different patient profile in CRTDL throw error accordingly
As of now we can't really validate that since the patient profile is just another attributeGroup with a patient profile as groupRef attribute. We could check if all groupRefs containing "patient" match the one defined profile...but that is not really a good solution (and maybe in the future, new profiles contain the word patient but are not "the" patient profile).
@juliangruendner please think about a good solution here.