Skip to content

Create knownRelationshipScoringStrategy #226

@paulalbert1

Description

@paulalbert1

Prerequisite: #218. This populates mentor/mentee data in the identity table. Right now, we can't do this on a broad scale until we integrate with the WCM-blessed instance of AWS because of HIPAA, but it would be okay to do this for the test case provided below.

  1. Get all authors and their respective ranks from article where targetAuthor=FALSE.

  2. Get all instances of identity.knownRelationships.

3a. In cases where identity.knownRelationships.firstInitial = article.author.firstInitial, and identity.knownRelationships.lastName = article.author.lastName, output the following:

relationshipName: Carl Nathan
relationshipType: co-investigator, HR
relationshipMatchingScore: 2

Unit test: jobuck, 16043520. Note that a given person might have multiple known relationships.

3b. For each case above, does identity.knownRelationships.firstName = article.author.firstName?

  • If yes, output the following:
relationshipMatchType: verbose
relationshipVerboseMatchModifier: 0.2
  • If no, output the following:
relationshipMatchType: initial
  1. For each case above, does relationshipType=mentor?
  • If yes, output the following:
relationshipMatchModifier-Mentor: 3
  • If no, stop.
    Unit test PMID: jhzippin (mentee - currently a faculty) jobuck (mentor - also currently a faculty) 14769862
  1. For each case above, is the matching author the highest ranked (senior) author?
  • If yes, output the following:
relationshipMatchModifier-Mentor-SeniorAuthor: 3
  • If no, stop.

Unit test: chk2019 (mentee) scb2005 (mentor) PMID = 29503865

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions