Skip to content

CNFT1-3312 API: Update API to handle Operators for Last Name#1981

Merged
stevegsa merged 6 commits into
mainfrom
steveu-last-name-operator
Nov 1, 2024
Merged

CNFT1-3312 API: Update API to handle Operators for Last Name#1981
stevegsa merged 6 commits into
mainfrom
steveu-last-name-operator

Conversation

@stevegsa

@stevegsa stevegsa commented Oct 30, 2024

Copy link
Copy Markdown
Contributor

Description

Add new field name with a patient name type

input PatientNameCriteria {
  last: TextCriteria
}

that is a generic type of

input TextCriteria {
  equals: String
  not: String
  startsWith:String
  contains: String
  soundsLike: String
}

and the search filter was updated as follows:

input PersonFilter {
  id: String
  name: PatientNameCriteria
  lastName: String
  firstName: String
  ...
}

If that field is populated diverge from old code (for backwards compatibility) and call the new searches wrt each operator.

Tickets

Checklist before requesting a review

  • PR focuses on a single story
  • Code has been fully tested to meet acceptance criteria
  • PR is reasonably small and reviewable (Generally less than 10 files and 500 changed lines)
  • All new functions/classes/components reasonably small
  • Functions/classes/components focused on one responsibility
  • Code easy to understand and modify (clarity over concise/clever)
  • PRs containing TypeScript follow the Do's and Don'ts
  • PR does not contain hardcoded values (Uses constants)
  • All code is covered by unit or feature tests

@sonarqubecloud

sonarqubecloud Bot commented Nov 1, 2024

Copy link
Copy Markdown

@stevegsa
stevegsa requested a review from joeaxcdw November 1, 2024 15:35
@stevegsa
stevegsa merged commit 2f058ad into main Nov 1, 2024
@adamloup-enquizit
adamloup-enquizit deleted the steveu-last-name-operator branch November 6, 2024 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants