in src/Services/Infection/Infection.WebApi/Services/InfectionService.cs [80:90]
public string GetMedicalCode(bool isRequiresContactDiscovery)
{
// generates an 8-letter one time password.
// the last character of the generated medical code will have a special meaning:
// S: Requires sharing the meeting information(Share)
// H: Does not require sharing the meeting information(Healthy)
var otp = GenerateOneTimePassword(maxLength: 7);
return otp + (isRequiresContactDiscovery ? "S" : "H");
}