Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CNFT1-2778] Patient add API: Sex & Birth #1835

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

adamloup-enquizit
Copy link
Collaborator

@adamloup-enquizit adamloup-enquizit commented Sep 19, 2024

Description

Adds support for saving Sex & Birth demographics when creating a patient.

Scenario: I can create a patient with birth demographics information
    Given I enter the birth demographics as of date 07/03/1990
    And I enter the birth demographics with the patient born on 04/31/1990
    And I enter the birth demographics with the patient born as Unknown
    And the birth demographics are included in the extended patient data
    When I create a patient with extended data
    And I view the Patient Profile Birth demographics
    Then the patient profile birth demographics has the as of date 07/03/1990
    And the patient profile birth demographics has the patient born on 04/31/1990
    And the patient profile birth demographics has patient born as Unknown

  Scenario: I can create a patient with multiple birth demographics information
    Given I enter the birth demographics with the patient multiple as Yes
    And I enter the birth demographics with the patient born 17th
    And the birth demographics are included in the extended patient data
    When I create a patient with extended data
    And I view the Patient Profile Birth demographics
    Then the patient profile birth demographics has Yes for multiple birth
    And the patient profile birth demographics has the patient born 17th

  Scenario: I can create a patient with birth location demographics
    Given I enter the birth demographics with the patient born in the city of "Salem Center"
    And I enter the birth demographics with the patient born in the county of Westchester County
    And I enter the birth demographics with the patient born in the state of New York
    And I enter the birth demographics with the patient born in the country of United States
    And the birth demographics are included in the extended patient data
    When I create a patient with extended data
    And I view the Patient Profile Birth demographics
    Then the patient profile birth demographics has the patient born in the city of "Salem Center"
    And the patient profile birth demographics has the patient born in the county of Westchester County
    And the patient profile birth demographics has the patient born in the state of New York
    And the patient profile birth demographics has the patient born in the country of United States

  Scenario: I can create a patient with gender demographics information
    Given I enter the gender demographics as of date 07/03/1990
    And I enter the gender demographics with the current gender of Female
    And I enter the gender demographics with the additional gender "another gender"
    And I enter the gender demographics with preferred gender of FTM
    And the gender demographics are included in the extended patient data
    When I create a patient with extended data
    And I view the Patient Profile Gender demographics
    Then the patient profile gender demographics has the as of date 07/03/1990
    And the patient profile gender demographics has the current gender as Female
    And the patient profile gender demographics has the additional gender "another gender"
    And the patient profile gender demographics has the preferred gender FTM

  Scenario: I can create a patient with unknown gender demographics
    Given I enter the gender demographics as of date 04/06/2010
    And I enter the gender demographics with the unknown reason of did not ask
    And the gender demographics are included in the extended patient data
    When I create a patient with extended data
    And I view the Patient Profile Gender demographics
    Then the patient profile gender demographics has the unknown reason did not ask
  • Adds BDD testing support for various value sets

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

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.

1 participant