## 5 Gaia-X-Med: Our Solutions
### The Four Main Processes  
To reduce the complexity of the overall process, the Yo-Ga-X framework defines the following four sub-processes (see Figure 5), each only focusing on a few involved Participants and Federation Services:  
* _Participant Onboarding_, where both Providers and Consumers initially provide information about themselves and join the Gaia-X-based federation, which is the basis for the Yo-Ga-X-powered service ecosystem,
* _Service Onboarding_, where Providers register their offered Service in the federation's Catalog,
* _Service Discovery and Contract Negotiation_, where Consumers browse the Catalog to find Services they are interested in and initiate the negotiation of a Contract with the Provider of a chosen Service,
* _Service Consumption_, where consumers finally consume the Service they negotiated a Contract for, including the authentication at the Provider.  
In the following, we present these processes in further detail.  
Figure 5: Four diagrams showing each of the four main processes in detail. First, a participant is onboard, then their service is onboarded, next the service is discovered by another participant and both negotiate a contract for its usage, so that finally the service can be consumed.  
During Participant Onboarding, all Participants--Consumers as well as Providers--first create a credential containing identifying details about themselves and their legal person which they wish to share with other Participants. The federation's _Compliance Service_ then validates the credential's structure and certifies it as being part of the federation. Finally, the Participant receives a _Participant Identity File_, representing his participation in the federation, while simultaneously acting as the passkey for authentication.  
During Service Onboarding, Providers first create a credential containing details about the particular Service they intend to provide and certify that they are the Participant responsible for its management. Again, the Compliance Service validates the credential's structure and certifies the Service as being part of the federation and that it belongs to the Provider. Finally, the Provider registers the Service in the _Catalog_, another Federation Service, where it can be discovered by potential Consumers.  
During Service Discovery, Consumers first authenticate themselves in the Catalog as a Participant of the federation. They are able to browse it and choose a Service they intend to consume. This choice then initiates the _Contract Negotiation_ process, during which the _Negotiation Service_, yet another Federation Service, corresponds with the soon-to-be Consumer and the Provider of the Service to form a Contract expressing the informed consent of both parties to the future service consumption.  
During the actual Service Consumption, Consumers attempt to authenticate themselves at the Provider's Service using their Participant Identity File, containing their certificate of participation in the federation. Since this identifying certificate is also part of the Contract the Provider received during the Contract Negotiation process, the Provider can verify the requesting party's identity and provide the Service according to the negotiated conditions.  
Having presented the four main processes and how they fit together, we next present how we implemented the systems that enable them.