Since meta.profile is optional (unless this is mentioned within the narrative in the IG), it might be a good idea to consider choosing which profile to validate for Observation resources based on the Observation.code which are set to fixed values for each of the profiles.
I understand this is a somewhat complex topic though. Having the server communicate the intended profile explicitly makes testing easier. But also it might be less realistic, or encourage a requirement (using meta.profile) that doesn't exist.
Since meta.profile is optional (unless this is mentioned within the narrative in the IG), it might be a good idea to consider choosing which profile to validate for Observation resources based on the Observation.code which are set to fixed values for each of the profiles.
https://github.com/inferno-framework/uds-plus-test-kit/blob/45eb63b829ed9467cf03b960bad13923476207e6/lib/uds_plus_test_kit/validate_income_test.rb#L55
I understand this is a somewhat complex topic though. Having the server communicate the intended profile explicitly makes testing easier. But also it might be less realistic, or encourage a requirement (using meta.profile) that doesn't exist.