Patch: how to retrieve the gender, group and/or block affiliation of an additional service

We received a wish request for providing information about the gender, group and/or block relevance of an additional service. In order to not change the interface structure, the information is retrieved by patching the ISearch::SearchAdditionalService() method.

  • append a '#SB' (service block) to the service code: ISearch::SearchAdditionalService("aCode#SB",...)
    • after searching, position to the first record with ISearch::MoveFirst() and then the ISearch::MechanicCode() property returns a hash separated string with the mechanic code and a possible service block affiliation.
      E.g. searching for "24.6760#SB" returns "25" for the service 00.1420, meaning that service 00.1420 has the mechanic code 25 and is not a member of a service block.

  • append a '#SG' (service group) to the service code: ISearch::SearchAdditionalService("aCode#SG",...)
    • after searching, position to the first record with ISearch::MoveFirst() and then the ISearch::MechanicCode() property returns a hash separated string with the mechanic code and a possible service group affiliation.
      E.g. searching for "24.6760#SB#SG" returns "15#SG18#SG64" for the service 00.1420, meaning that service 00.1420 has the mechanic code 15 and is not a of a service block and belongs to the service groups 18 and 64.

  • append a '#SEX' to the service code: ISearch::SearchAdditionalService("aCode#SEX",...)
    • after searching, position to the first record with ISearch::MoveFirst() and then the ISearch::MechanicCode() property returns a hash separated string with the mechanic code and a possible gender relevance code, where code 0=not relevant; code 1=male only; code 2=female only
      E.g. searching for "24.6760#SEX" returns "15#SEX0" for the service 00.1420, meaning that service 00.1420 has the mechanic code 15 and has a gender relevance code 0 (aka not relevant)