Dear all,
I am trying to understand the difference between RelatedParty and PartyRole, especially regarding the 'role' attribute that is present in both schemas.
Context: I am creating a new schema and I want to have a link to a (role, party) pair. I am unsure which approach to use. It seems to me that I have two options:
- Have an attribute of type "PartyRole", where I specify the "role" (string) and the "engagedParty" (ref: EngagedParty/PartyRef.schema.json), which in turn is just a sub-type of "EntityRef".
- Have an attribute of type "RelatedParty", which is directly a sub-type of "EntityRef", but adds an additional "role" (string) attribute.
When instantiating objects, they would have a similar, but slightly different structure depending on which approach I chose:
- myAttribute1 (PartyRole)
- role: "myRole" (string)
- engagedParty (PartyRef)
- id: 0001
- href: "http://url-to-party"
- name: "John Smith"
- @referredType: EngagedParty/Individual.schema.json
- myAttribute2 (RelatedParty)
- role: "myRole" (string)
- id: 0001
- href: "http://url-to-party"
- name: "John Smith"
- @referredType: EngagedParty/Individual.schema.json
My questions are: Is the thinking above correct and there are indeed two approaches to represent a link to a (role, party) pair? Which approach is typically used and in which scenarios?
Thank you for your support!
Lovely greetings from Zurich,
Claude
------------------------------
Claude Barthels
Swisscom (Schweiz) AG
------------------------------