Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

In order to sync qualifications, PLAY calls
/members/member-qualified

with the params

      organisation_id: // office externalid
      period_id: // from a seasonId mapped using `syncprovider.meta`
      qualification_type: // default to OFFICIAL
      last_updated_at: // date/time specified


Play then loops over the response.member and looks for member_qualification.qualification.qualification_category. It then creates the QualificationCategory in PLAY if it doesn't exist.

It then loops over response.member -> member_qualification again and parses the SID qualification:

{
  participant: {
    firstName: member.first_name,
    lastName: member.last_name,
    HCRId: member.unique_identifier,
    externalId: member.member_id,
    tenantId,
  },
  seasonId: member_qualification.period.start_date (parsed),
  level: member_qualification.qualification_level.display_order,
  notes: member_qualification.memo,
  expiry: member_qualification.expiration_date (parsed),
  officeExternalId: member.organisation.organisation_id,
  categoryExternalId: member_qualification.qualification_category.qualification_category_id
  externalId: member_qualification.member_qualification_id,
  isDeleted: result.deleted_at != null,
}

WILL NOT GET SYNCED IF:

  • level is undefined

  • seasonId is undefined

  • if can’t find the office in PLAY with the officeExternalId

  • if its isDeleted

  • No labels