Skip to content

Commit

Permalink
feat: v1.0 RELEASE (#310)
Browse files Browse the repository at this point in the history
* feat: added styles to the sidebar (#125)

* feat: added montserrat font

* feat: added styles to the sidebar

* fix: modify the height and width of the icon

* fix: modify width and color

* feat: added a new color

* fix: added a color for the border bottom

* feat: scrum 140 UI ux update student data (#126)

* feat: Added datalayer method for calling the api

* feat: Implemented update student information view

* feat: udpated tests

* feat: Added update student info logic

* feat: main CSS styling added (#124)

* feat: main CSS styling added

* feat: added a glow to the Icon Button

* fix: added more width to the searchBar

* feat: added getGeneralPatientInfo to SearchView

* feat: added function to calculate age

* feat: added deco for SearchView

* feat: added PatientCard component and story

* fix: reconfigured route due to missclick and moved to assets folder

* feat: implemented search and result pages, result pages handles promises resolving with Suspense and promiseWrapper

* fix: chaged stories to match the new view structure, pending test.jsx file

* fix: removed unused API call

* fix: now endpoint returns id, cui, names, and birthdate

* fix: now receiving and formatting data from search patient endpoint

* fix: now View only calls searchPatientApiCall to get the data properlly

* fix: refactored stories and tests for SearchPatientView

* fix: now bottom deco adjusts to screen

* fix: added JSDoc to date utils functions

* fix: fixed visuals

* feat: integrated custom hook for getting the window measures

* fix: fixed weird interaction with layout

* fix: added responsiveness and fixed mixing up of async and promise resolving

* fix: now PatientCard handles promise errors and View handles empty query errors

* fix: now cards container has overflow y property

* fix: restored default view

* fix: removed unnecessary React.Fragment

* feat: endpoint get for collaborator (#128)

* feat: endpoint get for collaborator

* fix: id correction for collaborator

* feat: general update UI UX was made (#127)

* feat: Added empty data return to studentinfo (#130)

* feat: Added empty data return to studentinfo

* fix: varios styles improvements to update patient

* fix: routing navigation error

* feat: colaborator view (#131)

* feat: colaborator view

* feat: colaborator view

* fix: fixed being unable to change patient sex (#133)

* fix: bug fixed, female option fixed (#136)

* fix: bug fixed, female option fixed

* fix: tests fixed

* fix: scrum 201 componentes de carga en datos generales (#135)

* feat: Adde throbber and improved default search view styles

* fix: search patient secondary view styles

* feat: Added throbbers to update general information view

* fix: endpoint shouldn't fail if data doesn't exists

* fix: carnet update bug on general tab (#138)

* fix: Added padding to error message in UpdateGeneralInformationView (#137)

* fix: Added padding to error message in UpdateGeneralInformationView

* fix: Removed a comment

* fix: reordered dashboard icons (#142)

* feat: gui and css to the surgical history view (#129)

* feat: added surgical history path

* feat: added api response for surgical history

* fix: fixed padding top for the name

* feat: added surgical history

* feat: added surgical and appointment card

* feat: added cursor pointer and change colors based on theme

* fix: change the border width for the card

* fix: fixed the get and update function

* fix: change route erros

* feat: added new features to surgical history view

* fix: import updatesurgicalhistory method

* feat: added JSDoc

* feat: added padding to return button

* feat: added read only prop

* feat: added read only to base input and drop down

* fix: fixed update information error in surgery history

* fix: modify truncate function

* fix: fixed an error in add new surgical history function

* fix: fixed a React error in Input

* feat: added storybook and vitest

* fix: change story component name

* fix: fixed the returns

* feat: added an index path

* fix: added an error state

* feat: added surgical history to sidebar

* fix: fixed api functions

* feat: added toast

* feat: added toast to the proyect

* fix: update InformationCard

* feat: added Suspense to the view

* fix: eliminate some duplicated files

* fix: fixed vitest

* fix: fix JSDoc and space in button

* fix: fix a bug

* fix: changed the format of get and update surgical history endpoint

* fix: fixed api call

* fix: fixed storybook

* fix: fixed not displaying errors

* fix: fixed error in test

* fix: fixed order by year

---------

Co-authored-by: ElrohirGT <[email protected]>

* feat: added familiar traumatological get put methods (#143)

* feat: added mapping functions for API responses

* feat: added test helper functions for familiar and traumatological history

* feat: added GET and PUT methods for familiar and traumatological endpoints

* feat: added GET endpoint and integration test for familiar history

* feat: added PUT endpoint and integration test for familiar history

* feat: added GET endpoint and integration test for traumatological history

* feat: added PUT endpoint and integration test for traumatological history

* feat: added defaultValues for both endpoints

* fix: fixed JSDoc

* fix: fixed GET endpoints to respond with 200 status on no data for patient

* feat: scrum 32 sso cognito backend (#134)

* feat: Cognito User Pool configuration for authentication

* fix: Added debug flag to sam command

* feat: Added UVG background image

* feat: Added basic login view

* feat: Added cognito identity

* feat: added folders for Logout and Register views

* fix: fixed storybook component names

* fix: fixed being unable to change patient sex (#133)

* fix: bug fixed, female option fixed (#136)

* fix: bug fixed, female option fixed

* fix: tests fixed

* fix: scrum 201 componentes de carga en datos generales (#135)

* feat: Adde throbber and improved default search view styles

* fix: search patient secondary view styles

* feat: Added throbbers to update general information view

* fix: endpoint shouldn't fail if data doesn't exists

* fix: carnet update bug on general tab (#138)

* fix: Added padding to error message in UpdateGeneralInformationView (#137)

* fix: Added padding to error message in UpdateGeneralInformationView

* fix: Removed a comment

* fix: reordered dashboard icons (#142)

* feat: gui and css to the surgical history view (#129)

* feat: added surgical history path

* feat: added api response for surgical history

* fix: fixed padding top for the name

* feat: added surgical history

* feat: added surgical and appointment card

* feat: added cursor pointer and change colors based on theme

* fix: change the border width for the card

* fix: fixed the get and update function

* fix: change route erros

* feat: added new features to surgical history view

* fix: import updatesurgicalhistory method

* feat: added JSDoc

* feat: added padding to return button

* feat: added read only prop

* feat: added read only to base input and drop down

* fix: fixed update information error in surgery history

* fix: modify truncate function

* fix: fixed an error in add new surgical history function

* fix: fixed a React error in Input

* feat: added storybook and vitest

* fix: change story component name

* fix: fixed the returns

* feat: added an index path

* fix: added an error state

* feat: added surgical history to sidebar

* fix: fixed api functions

* feat: added toast

* feat: added toast to the proyect

* fix: update InformationCard

* feat: added Suspense to the view

* fix: eliminate some duplicated files

* fix: fixed vitest

* fix: fix JSDoc and space in button

* fix: fix a bug

* fix: changed the format of get and update surgical history endpoint

* fix: fixed api call

* fix: fixed storybook

* fix: fixed not displaying errors

* fix: fixed error in test

* fix: fixed order by year

---------

Co-authored-by: ElrohirGT <[email protected]>

* feat: moved out functions from SearchView to a new file

* fix: removed unused imports

* feat: responsiveness implemented and css touch-ups

* feat: implemented LogoutView, storybook and responsive styles

* feat: Added cognito file

* feat: improved stability

* feat: Implemented suspense in RegisterView

* feat: Added register route

* fix: updated vite config to fix AWS issue

* feat: Added register view as index

* fix: Cognito initialization error on tests

---------

Co-authored-by: XavierLopez25 <[email protected]>
Co-authored-by: Angel Ortega <[email protected]>
Co-authored-by: Bianca Calderón <[email protected]>
Co-authored-by: DanielDubon <[email protected]>
Co-authored-by: Nahomy Castro <[email protected]>
Co-authored-by: Xavier López (Nathan) <[email protected]>

* feat: Added env variables to frontend deployment

* fix: deploy commands

* fix: linter errors

* fix: linter errors

* feat: scrum 95 personal medical history endpoints (#150)

* feat: Added personal history GET/UPDATE handlers

* fix: endpoints configuration

* fix: integration tests

* feat: Added documentation for medical history versioning (#149)

* feat: Added documentation for medical history versioning

* docs: added documentation for traumatological and familiar history

---------

Co-authored-by: XavierLopez25 <[email protected]>

* feat: scrum 95 personal medical history endpoints (#151)

* feat: Added personal history GET/UPDATE handlers

* fix: endpoints configuration

* fix: integration tests

* fix: Incorrect data format

* fix: integration test

* feat: Stash popped

* feat: Added endpoint documentation

* feat: Added endpoint documentation

* feat: loading state on addpatient added (#140)

* Feat/scrum 93 view traumatological update new (#146)

* feat: endpoint para actualizar datos colaborador (#112)

* feat: endpoint para actualizar datos colaborador

* fix: createResponse added, path fixed

* feat: scrum 139 implement update student data endpoint (#113)

* fix: Integration tests for updatePatient endpoint

* feat: Implemented update student data endpoint

* fix: integration tests

* fix: Integration tests for endpoint

* feat: Improved update-student-data query (#116)

* feat: added update get patient surgical history (#114)

* feat: added test function for update surgical history

* feat: added GET and PUT methods for surgical-history

* feat: added integration test for GET surgical patient history

* feat: added GET surgical patient history endpoint

* feat: added integration test for PUT surgical patient history

* feat: added PUT surgical patient history endpoint

* fix: removed parameter 'id'

* fix: made changes with respect to the change of PUT method not receiving id as a parameter URL anymore

* fix: added missing logic when hasSurgicalEvent is false and added CORS headers

* fix: updated some responses to return an array if the status is 200

* feat: Added default dashboard sidebar component and refactores some code (#117)

* fix: frontend tests (#118)

* feat: Fixed view tests for components

* fix: Removed caching in backend dev build

* fix: CI/CD now runs on the PR code

* feat: get student info endpoint (#119)

* refactor: update patient view (#120)

* refactor: Added suspense support

* fix: view tests

* feat: Added CSS conventions

* feat: added a theme file to use in pages (#122)

* feat: added style props to components (#123)

* feat: added style and children props

* fix: eliminate children prop

* feat: added style props to dropdown

* feat: added style props to base input

* feat: added style props to date input

* feat: added style props to radio input

* feat: added style props to search input

* fix: fixed button to base button and story

* feat: added an Icon button

* fix: fixed an error in search story

* fix: change button to base button in search patient view

* fix: update JSDoc

* fix: update the addpatientview story

* fix: modify jsDoc

* fix: modify style jsDoc

* feat: added styles to add patient view (#121)

* fix: fixed to receive styles as props

* feat: added a fontstyle to radio button

* feat: added styles to addpatientview page

* feat: added sanitas logo to assets

* fix: Border width

* fix: fullscreen view configuration

* fix: change margin to padding and px to rem

* feat: added theme elements to page

* fix: change position of the button

* fix: change title color to theme color and change the logo import route

* fix: change button css

* fix: fixed storybook

---------

Co-authored-by: ElrohirGT <[email protected]>

* feat: added styles to the sidebar (#125)

* feat: added montserrat font

* feat: added styles to the sidebar

* fix: modify the height and width of the icon

* fix: modify width and color

* feat: added a new color

* fix: added a color for the border bottom

* feat: scrum 140 UI ux update student data (#126)

* feat: Added datalayer method for calling the api

* feat: Implemented update student information view

* feat: udpated tests

* feat: Added update student info logic

* feat: main CSS styling added (#124)

* feat: main CSS styling added

* feat: added a glow to the Icon Button

* fix: added more width to the searchBar

* feat: added getGeneralPatientInfo to SearchView

* feat: added function to calculate age

* feat: added deco for SearchView

* feat: added PatientCard component and story

* fix: reconfigured route due to missclick and moved to assets folder

* feat: implemented search and result pages, result pages handles promises resolving with Suspense and promiseWrapper

* fix: chaged stories to match the new view structure, pending test.jsx file

* fix: removed unused API call

* fix: now endpoint returns id, cui, names, and birthdate

* fix: now receiving and formatting data from search patient endpoint

* fix: now View only calls searchPatientApiCall to get the data properlly

* fix: refactored stories and tests for SearchPatientView

* fix: now bottom deco adjusts to screen

* fix: added JSDoc to date utils functions

* fix: fixed visuals

* feat: integrated custom hook for getting the window measures

* fix: fixed weird interaction with layout

* fix: added responsiveness and fixed mixing up of async and promise resolving

* fix: now PatientCard handles promise errors and View handles empty query errors

* fix: now cards container has overflow y property

* fix: restored default view

* fix: removed unnecessary React.Fragment

* feat: endpoint get for collaborator (#128)

* feat: endpoint get for collaborator

* fix: id correction for collaborator

* feat: general update UI UX was made (#127)

* feat: Added empty data return to studentinfo (#130)

* feat: Added empty data return to studentinfo

* fix: varios styles improvements to update patient

* fix: routing navigation error

* feat: colaborator view (#131)

* feat: colaborator view

* feat: colaborator view

* fix: fixed being unable to change patient sex (#133)

* fix: bug fixed, female option fixed (#136)

* fix: bug fixed, female option fixed

* fix: tests fixed

* fix: scrum 201 componentes de carga en datos generales (#135)

* feat: Adde throbber and improved default search view styles

* fix: search patient secondary view styles

* feat: Added throbbers to update general information view

* fix: endpoint shouldn't fail if data doesn't exists

* fix: carnet update bug on general tab (#138)

* fix: Added padding to error message in UpdateGeneralInformationView (#137)

* fix: Added padding to error message in UpdateGeneralInformationView

* fix: Removed a comment

* fix: reordered dashboard icons (#142)

* feat: gui and css to the surgical history view (#129)

* feat: added surgical history path

* feat: added api response for surgical history

* fix: fixed padding top for the name

* feat: added surgical history

* feat: added surgical and appointment card

* feat: added cursor pointer and change colors based on theme

* fix: change the border width for the card

* fix: fixed the get and update function

* fix: change route erros

* feat: added new features to surgical history view

* fix: import updatesurgicalhistory method

* feat: added JSDoc

* feat: added padding to return button

* feat: added read only prop

* feat: added read only to base input and drop down

* fix: fixed update information error in surgery history

* fix: modify truncate function

* fix: fixed an error in add new surgical history function

* fix: fixed a React error in Input

* feat: added storybook and vitest

* fix: change story component name

* fix: fixed the returns

* feat: added an index path

* fix: added an error state

* feat: added surgical history to sidebar

* fix: fixed api functions

* feat: added toast

* feat: added toast to the proyect

* fix: update InformationCard

* feat: added Suspense to the view

* fix: eliminate some duplicated files

* fix: fixed vitest

* fix: fix JSDoc and space in button

* fix: fix a bug

* fix: changed the format of get and update surgical history endpoint

* fix: fixed api call

* fix: fixed storybook

* fix: fixed not displaying errors

* fix: fixed error in test

* fix: fixed order by year

---------

Co-authored-by: ElrohirGT <[email protected]>

* feat: Vista para antecedentes traumatológicos

---------

Co-authored-by: ElrohirGT <[email protected]>
Co-authored-by: Xavier López (Nathan) <[email protected]>
Co-authored-by: DanielDubon <[email protected]>
Co-authored-by: ElrohirGT <[email protected]>
Co-authored-by: Nahomy Castro <[email protected]>
Co-authored-by: Angel Ortega <[email protected]>

* feat: added gui to familiar history (#152)

* feat: added path to router and methods in datalayer

* fix: eliminated error useState

* fix: fixed width in components

* feat: added familiar type in card

* fix: fixed width in elements

* feat: added styles to familiar history

* fix: added backend elements to fix search problem

* fix: fixed styles in traumatological view

* fix: fixed a bug in dropdown

* fix: pendejo bug

---------

Co-authored-by: ElrohirGT <[email protected]>

* feat: adding gui to familiar history view (#153)

* feat: added path to router and methods in datalayer

* fix: eliminated error useState

* fix: fixed width in components

* feat: added familiar type in card

* fix: fixed width in elements

* feat: added styles to familiar history

* fix: added backend elements to fix search problem

* fix: fixed styles in traumatological view

* fix: fixed a bug in dropdown

* fix: pendejo bug

* fix: fixing update method

* fix: fixed a height in input

* fix: fixed get and update functions in familiar history view

* feat: added view card

* fix: typo error

* feat: added storybook

* feat: added tests to familiar history view

* fix: remove console logs

---------

Co-authored-by: ElrohirGT <[email protected]>

* feat: scrum 32 sso cognito backend (#148)

* feat: endpoint para actualizar datos colaborador (#112)

* feat: endpoint para actualizar datos colaborador

* fix: createResponse added, path fixed

* feat: scrum 139 implement update student data endpoint (#113)

* fix: Integration tests for updatePatient endpoint

* feat: Implemented update student data endpoint

* fix: integration tests

* fix: Integration tests for endpoint

* feat: Improved update-student-data query (#116)

* feat: added update get patient surgical history (#114)

* feat: added test function for update surgical history

* feat: added GET and PUT methods for surgical-history

* feat: added integration test for GET surgical patient history

* feat: added GET surgical patient history endpoint

* feat: added integration test for PUT surgical patient history

* feat: added PUT surgical patient history endpoint

* fix: removed parameter 'id'

* fix: made changes with respect to the change of PUT method not receiving id as a parameter URL anymore

* fix: added missing logic when hasSurgicalEvent is false and added CORS headers

* fix: updated some responses to return an array if the status is 200

* feat: Added default dashboard sidebar component and refactores some code (#117)

* fix: frontend tests (#118)

* feat: Fixed view tests for components

* fix: Removed caching in backend dev build

* fix: CI/CD now runs on the PR code

* feat: get student info endpoint (#119)

* refactor: update patient view (#120)

* refactor: Added suspense support

* fix: view tests

* feat: Added CSS conventions

* feat: added a theme file to use in pages (#122)

* feat: added style props to components (#123)

* feat: added style and children props

* fix: eliminate children prop

* feat: added style props to dropdown

* feat: added style props to base input

* feat: added style props to date input

* feat: added style props to radio input

* feat: added style props to search input

* fix: fixed button to base button and story

* feat: added an Icon button

* fix: fixed an error in search story

* fix: change button to base button in search patient view

* fix: update JSDoc

* fix: update the addpatientview story

* fix: modify jsDoc

* fix: modify style jsDoc

* feat: added styles to add patient view (#121)

* fix: fixed to receive styles as props

* feat: added a fontstyle to radio button

* feat: added styles to addpatientview page

* feat: added sanitas logo to assets

* fix: Border width

* fix: fullscreen view configuration

* fix: change margin to padding and px to rem

* feat: added theme elements to page

* fix: change position of the button

* fix: change title color to theme color and change the logo import route

* fix: change button css

* fix: fixed storybook

---------

Co-authored-by: ElrohirGT <[email protected]>

* feat: added styles to the sidebar (#125)

* feat: added montserrat font

* feat: added styles to the sidebar

* fix: modify the height and width of the icon

* fix: modify width and color

* feat: added a new color

* fix: added a color for the border bottom

* feat: scrum 140 UI ux update student data (#126)

* feat: Added datalayer method for calling the api

* feat: Implemented update student information view

* feat: udpated tests

* feat: Added update student info logic

* feat: main CSS styling added (#124)

* feat: main CSS styling added

* feat: added a glow to the Icon Button

* fix: added more width to the searchBar

* feat: added getGeneralPatientInfo to SearchView

* feat: added function to calculate age

* feat: added deco for SearchView

* feat: added PatientCard component and story

* fix: reconfigured route due to missclick and moved to assets folder

* feat: implemented search and result pages, result pages handles promises resolving with Suspense and promiseWrapper

* fix: chaged stories to match the new view structure, pending test.jsx file

* fix: removed unused API call

* fix: now endpoint returns id, cui, names, and birthdate

* fix: now receiving and formatting data from search patient endpoint

* fix: now View only calls searchPatientApiCall to get the data properlly

* fix: refactored stories and tests for SearchPatientView

* fix: now bottom deco adjusts to screen

* fix: added JSDoc to date utils functions

* fix: fixed visuals

* feat: integrated custom hook for getting the window measures

* fix: fixed weird interaction with layout

* fix: added responsiveness and fixed mixing up of async and promise resolving

* fix: now PatientCard handles promise errors and View handles empty query errors

* fix: now cards container has overflow y property

* fix: restored default view

* fix: removed unnecessary React.Fragment

* feat: endpoint get for collaborator (#128)

* feat: endpoint get for collaborator

* fix: id correction for collaborator

* feat: general update UI UX was made (#127)

* feat: Added empty data return to studentinfo (#130)

* feat: Added empty data return to studentinfo

* fix: varios styles improvements to update patient

* fix: routing navigation error

* feat: colaborator view (#131)

* feat: colaborator view

* feat: colaborator view

* feat: Cognito User Pool configuration for authentication

* fix: Added debug flag to sam command

* fix: fixed being unable to change patient sex (#133)

* fix: bug fixed, female option fixed (#136)

* fix: bug fixed, female option fixed

* fix: tests fixed

* fix: scrum 201 componentes de carga en datos generales (#135)

* feat: Adde throbber and improved default search view styles

* fix: search patient secondary view styles

* feat: Added throbbers to update general information view

* fix: endpoint shouldn't fail if data doesn't exists

* fix: carnet update bug on general tab (#138)

* fix: Added padding to error message in UpdateGeneralInformationView (#137)

* fix: Added padding to error message in UpdateGeneralInformationView

* fix: Removed a comment

* feat: Added UVG background image

* fix: reordered dashboard icons (#142)

* feat: Added basic login view

* feat: Added cognito identity

* feat: gui and css to the surgical history view (#129)

* feat: added surgical history path

* feat: added api response for surgical history

* fix: fixed padding top for the name

* feat: added surgical history

* feat: added surgical and appointment card

* feat: added cursor pointer and change colors based on theme

* fix: change the border width for the card

* fix: fixed the get and update function

* fix: change route erros

* feat: added new features to surgical history view

* fix: import updatesurgicalhistory method

* feat: added JSDoc

* feat: added padding to return button

* feat: added read only prop

* feat: added read only to base input and drop down

* fix: fixed update information error in surgery history

* fix: modify truncate function

* fix: fixed an error in add new surgical history function

* fix: fixed a React error in Input

* feat: added storybook and vitest

* fix: change story component name

* fix: fixed the returns

* feat: added an index path

* fix: added an error state

* feat: added surgical history to sidebar

* fix: fixed api functions

* feat: added toast

* feat: added toast to the proyect

* fix: update InformationCard

* feat: added Suspense to the view

* fix: eliminate some duplicated files

* fix: fixed vitest

* fix: fix JSDoc and space in button

* fix: fix a bug

* fix: changed the format of get and update surgical history endpoint

* fix: fixed api call

* fix: fixed storybook

* fix: fixed not displaying errors

* fix: fixed error in test

* fix: fixed order by year

---------

Co-authored-by: ElrohirGT <[email protected]>

* feat: added folders for Logout and Register views

* fix: fixed storybook component names

* fix: fixed being unable to change patient sex (#133)

* fix: bug fixed, female option fixed (#136)

* fix: bug fixed, female option fixed

* fix: tests fixed

* fix: scrum 201 componentes de carga en datos generales (#135)

* feat: Adde throbber and improved default search view styles

* fix: search patient secondary view styles

* feat: Added throbbers to update general information view

* fix: endpoint shouldn't fail if data doesn't exists

* fix: carnet update bug on general tab (#138)

* fix: Added padding to error message in UpdateGeneralInformationView (#137)

* fix: Added padding to error message in UpdateGeneralInformationView

* fix: Removed a comment

* fix: reordered dashboard icons (#142)

* feat: gui and css to the surgical history view (#129)

* feat: added surgical history path

* feat: added api response for surgical history

* fix: fixed padding top for the name

* feat: added surgical history

* feat: added surgical and appointment card

* feat: added cursor pointer and change colors based on theme

* fix: change the border width for the card

* fix: fixed the get and update function

* fix: change route erros

* feat: added new features to surgical history view

* fix: import updatesurgicalhistory method

* feat: added JSDoc

* feat: added padding to return button

* feat: added read only prop

* feat: added read only to base input and drop down

* fix: fixed update information error in surgery history

* fix: modify truncate function

* fix: fixed an error in add new surgical history function

* fix: fixed a React error in Input

* feat: added storybook and vitest

* fix: change story component name

* fix: fixed the returns

* feat: added an index path

* fix: added an error state

* feat: added surgical history to sidebar

* fix: fixed api functions

* feat: added toast

* feat: added toast to the proyect

* fix: update InformationCard

* feat: added Suspense to the view

* fix: eliminate some duplicated files

* fix: fixed vitest

* fix: fix JSDoc and space in button

* fix: fix a bug

* fix: changed the format of get and update surgical history endpoint

* fix: fixed api call

* fix: fixed storybook

* fix: fixed not displaying errors

* fix: fixed error in test

* fix: fixed order by year

---------

Co-authored-by: ElrohirGT <[email protected]>

* feat: moved out functions from SearchView to a new file

* fix: removed unused imports

* feat: responsiveness implemented and css touch-ups

* feat: implemented LogoutView, storybook and responsive styles

* feat: Added cognito file

* feat: improved stability

* feat: Implemented suspense in RegisterView

* feat: Added register route

* fix: updated vite config to fix AWS issue

* feat: Added register view as index

* fix: Cognito initialization error on tests

* feat: added familiar traumatological get put methods (#143)

* feat: added mapping functions for API responses

* feat: added test helper functions for familiar and traumatological history

* feat: added GET and PUT methods for familiar and traumatological endpoints

* feat: added GET endpoint and integration test for familiar history

* feat: added PUT endpoint and integration test for familiar history

* feat: added GET endpoint and integration test for traumatological history

* feat: added PUT endpoint and integration test for traumatological history

* feat: added defaultValues for both endpoints

* fix: fixed JSDoc

* fix: fixed GET endpoints to respond with 200 status on no data for patient

* feat: Register view done

* feat: Added super important comment

* feat: added signUp, signOut and getSession async functions

* feat: protected search route with cognito session jwt

* feat: protected search route with RequireAuth component

* fix: removed comments

* fix: added navigation between views

* feat: added logout function

* feat: added RequireAuth component and storybook

* fix: fixed test with session validation mock

* refactor: register user logic

* refactor: Using suspense on require auth

* refactor: Completely removed useEffect and added auth getSession refactor

* fix: stories to new props

* feat: updated datalayer logic

* fix: fixed RequireAuth stories

* fix: added JSDoc

* fix: Removed private keys

* feat: Added is production constant

* refactor: cognito pool creation

* fix: import

* fix: datalayer search endpoint

* fix: type password to form

---------

Co-authored-by: Bianca Calderón <[email protected]>
Co-authored-by: Xavier López (Nathan) <[email protected]>
Co-authored-by: DanielDubon <[email protected]>
Co-authored-by: Nahomy Castro <[email protected]>
Co-authored-by: Angel Ortega <[email protected]>
Co-authored-by: XavierLopez25 <[email protected]>

* feat: Changed default route (#157)

* feat: nonpatological history endpoints (#159)

* feat: added defaultValues generation for Non Patolohical patient history

* feat: added maping function for Non Pathological patient history

* feat: added helper function for non pathological patient history testing

* feat: added GET endpoint for Non Pathological patient history

* feat: added PUT endpoint for Non Pathological patient history

* feat: added configuration for new endpoints on template

* fix: Removed useless await

---------

Co-authored-by: ElrohirGT <[email protected]>

* feat: added GUI to personal history (#160)

* feat: added GUI to personal history

* fix: Router bug

* feat: finished personal history dataLayer and stories

* fix: added missing function

* fix: added another missing function

* fix: changed style and added function in storybook

---------

Co-authored-by: ElrohirGT <[email protected]>

* feat: nonpatological history endpoints (#159)

* feat: added defaultValues generation for Non Patolohical patient history

* feat: added maping function for Non Pathological patient history

* feat: added helper function for non pathological patient history testing

* feat: added GET endpoint for Non Pathological patient history

* feat: added PUT endpoint for Non Pathological patient history

* feat: added configuration for new endpoints on template

* fix: Removed useless await

---------

Co-authored-by: ElrohirGT <[email protected]>

* feat: added GUI to personal history (#160)

* feat: added GUI to personal history

* fix: Router bug

* feat: finished personal history dataLayer and stories

* fix: added missing function

* fix: added another missing function

* fix: changed style and added function in storybook

---------

Co-authored-by: ElrohirGT <[email protected]>

* fix: deploy backend url

* fix: deploy backend url

* fix: SanitasAPI stage name

* fix: Added a second url parameter for cognito protected endpoints

* fix: invalid template value

* feat: Added a SanitasAPI output to template

* feat: Added SecureBackendURL to deploy

* fix: CORS cognito validation

* feat: added autoconfirmation of email

* fix: deploy backend url

* fix: deploy backend url

* fix: SanitasAPI stage name

* fix: Added a second url parameter for cognito protected endpoints

* fix: invalid template value

* feat: Added a SanitasAPI output to template

* feat: Added SecureBackendURL to deploy

* fix: CORS cognito validation

* feat: added autoconfirmation of email

* feat: added biome toolchain (#139)

* feat: endpoint para actualizar datos colaborador (#112)

* feat: endpoint para actualizar datos colaborador

* fix: createResponse added, path fixed

* feat: scrum 139 implement update student data endpoint (#113)

* fix: Integration tests for updatePatient endpoint

* feat: Implemented update student data endpoint

* fix: integration tests

* fix: Integration tests for endpoint

* feat: Improved update-student-data query (#116)

* feat: added update get patient surgical history (#114)

* feat: added test function for update surgical history

* feat: added GET and PUT methods for surgical-history

* feat: added integration test for GET surgical patient history

* feat: added GET surgical patient history endpoint

* feat: added integration test for PUT surgical patient history

* feat: added PUT surgical patient history endpoint

* fix: removed parameter 'id'

* fix: made changes with respect to the change of PUT method not receiving id as a parameter URL anymore

* fix: added missing logic when hasSurgicalEvent is false and added CORS headers

* fix: updated some responses to return an array if the status is 200

* feat: Added default dashboard sidebar component and refactores some code (#117)

* fix: frontend tests (#118)

* feat: Fixed view tests for components

* fix: Removed caching in backend dev build

* fix: CI/CD now runs on the PR code

* feat: get student info endpoint (#119)

* refactor: update patient view (#120)

* refactor: Added suspense support

* fix: view tests

* feat: Added CSS conventions

* feat: added a theme file to use in pages (#122)

* feat: added style props to components (#123)

* feat: added style and children props

* fix: eliminate children prop

* feat: added style props to dropdown

* feat: added style props to base input

* feat: added style props to date input

* feat: added style props to radio input

* feat: added style props to search input

* fix: fixed button to base button and story

* feat: added an Icon button

* fix: fixed an error in search story

* fix: change button to base button in search patient view

* fix: update JSDoc

* fix: update the addpatientview story

* fix: modify jsDoc

* fix: modify style jsDoc

* feat: added styles to add patient view (#121)

* fix: fixed to receive styles as props

* feat: added a fontstyle to radio button

* feat: added styles to addpatientview page

* feat: added sanitas logo to assets

* fix: Border width

* fix: fullscreen view configuration

* fix: change margin to padding and px to rem

* feat: added theme elements to page

* fix: change position of the button

* fix: change title color to theme color and change the logo import route

* fix: change button css

* fix: fixed storybook

---------

Co-authored-by: ElrohirGT <[email protected]>

* feat: added styles to the sidebar (#125)

* feat: added montserrat font

* feat: added styles to the sidebar

* fix: modify the height and width of the icon

* fix: modify width and color

* feat: added a new color

* fix: added a color for the border bottom

* feat: scrum 140 UI ux update student data (#126)

* feat: Added datalayer method for calling the api

* feat: Implemented update student information view

* feat: udpated tests

* feat: Added update student info logic

* feat: main CSS styling added (#124)

* feat: main CSS styling added

* feat: added a glow to the Icon Button

* fix: added more width to the searchBar

* feat: added getGeneralPatientInfo to SearchView

* feat: added function to calculate age

* feat: added deco for SearchView

* feat: added PatientCard component and story

* fix: reconfigured route due to missclick and moved to assets folder

* feat: implemented search and result pages, result pages handles promises resolving with Suspense and promiseWrapper

* fix: chaged stories to match the new view structure, pending test.jsx file

* fix: removed unused API call

* fix: now endpoint returns id, cui, names, and birthdate

* fix: now receiving and formatting data from search patient endpoint

* fix: now View only calls searchPatientApiCall to get the data properlly

* fix: refactored stories and tests for SearchPatientView

* fix: now bottom deco adjusts to screen

* fix: added JSDoc to date utils functions

* fix: fixed visuals

* feat: integrated custom hook for getting the window measures

* fix: fixed weird interaction with layout

* fix: added responsiveness and fixed mixing up of async and promise resolving

* fix: now PatientCard handles promise errors and View handles empty query errors

* fix: now cards container has overflow y property

* fix: restored default view

* fix: removed unnecessary React.Fragment

* feat: endpoint get for collaborator (#128)

* feat: endpoint get for collaborator

* fix: id correction for collaborator

* feat: general update UI UX was made (#127)

* feat: Added empty data return to studentinfo (#130)

* feat: Added empty data return to studentinfo

* fix: varios styles improvements to update patient

* fix: routing navigation error

* feat: colaborator view (#131)

* feat: colaborator view

* feat: colaborator view

* fix: fixed being unable to change patient sex (#133)

* fix: bug fixed, female option fixed (#136)

* fix: bug fixed, female option fixed

* fix: tests fixed

* fix: scrum 201 componentes de carga en datos generales (#135)

* feat: Adde throbber and improved default search view styles

* fix: search patient secondary view styles

* feat: Added throbbers to update general information view

* fix: endpoint shouldn't fail if data doesn't exists

* fix: carnet update bug on general tab (#138)

* feat: Removed dprint and oxlint

* fix: Added padding to error message in UpdateGeneralInformationView (#137)

* fix: Added padding to error message in UpdateGeneralInformationView

* fix: Removed a comment

* fix: A lot of linter suggestions and formatting

* feat: Added biome config

* fix: linter and formatting errors

* fix: linter errors

* fix: linter and formatting

* feat: Removed JS linter and formatter precommit hook

* fix: updated CI/CD to new toolchain

* fix: linter errors

* fix: Backend formatting

* fix: frontend formatting

* chore: Formatted code with biome

* chore: Formatted code with biome

* fix: Applied linter fixes

* fix: backend stuff

* fix: fixable lints

* fix: linter errors

* fix: More linter errors

* fix: linter errors

* fix: test

---------

Co-authored-by: Bianca Calderón <[email protected]>
Co-authored-by: Xavier López (Nathan) <[email protected]>
Co-authored-by: DanielDubon <[email protected]>
Co-authored-by: Nahomy Castro <[email protected]>
Co-authored-by: Angel Ortega <[email protected]>

* feat: Added user pool domain for verification

* feat: added biome toolchain (#139)

* feat: endpoint para actualizar datos colaborador (#112)

* feat: endpoint para actualizar datos colaborador

* fix: createResponse added, path fixed

* feat: scrum 139 implement update student data endpoint (#113)

* fix: Integration tests for updatePatient endpoint

* feat: Implemented update student data endpoint

* fix: integration tests

* fix: Integration tests for endpoint

* feat: Improved update-student-data query (#116)

* feat: added update get patient surgical history (#114)

* feat: added test function for update surgical history

* feat: added GET and PUT methods for surgical-history

* feat: added integration test for GET surgical patient history

* feat: added GET surgical patient history endpoint

* feat: added integration test for PUT surgical patient history

* feat: added PUT surgical patient history endpoint

* fix: removed parameter 'id'

* fix: made changes with respect to the change of PUT method not receiving id as a parameter URL anymore

* fix: added missing logic when hasSurgicalEvent is false and added CORS headers

* fix: updated some responses to return an array if the status is 200

* feat: Added default dashboard sidebar component and refactores some code (#117)

* fix: frontend tests (#118)

* feat: Fixed view tests for components

* fix: Removed caching in backend dev build

* fix: CI/CD now runs on the PR code

* feat: get student info endpoint (#119)

* refactor: update patient view (#120)

* refactor: Added suspense support

* fix: view tests

* feat: Added CSS conventions

* feat: added a theme file to use in pages (#122)

* feat: added style props to components (#123)

* feat: added style and children props

* fix: eliminate children prop

* feat: added style props to dropdown

* feat: added style props to base input

* feat: added style props to date input

* feat: added style props to radio input

* feat: added style props to search input

* fix: fixed button to base button and story

* feat: added an Icon button

* fix: fixed an error in search story

* fix: change button to base button in search patient view

* fix: update JSDoc

* fix: update the addpatientview story

* fix: modify jsDoc

* fix: modify style jsDoc

* feat: added styles to add patient view (#121)

* fix: fixed to receive styles as props

* feat: added a fontstyle to radio button

* feat: added styles to addpatientview page

* feat: added sanitas logo to assets

* fix: Border width

* fix: fullscreen view configuration

* fix: change margin to padding and px to rem

* feat: added theme elements to page

* fix: change position of the button

* fix: change title color to theme color and change the logo import route

* fix: change button css

* fix: fixed storybook

---------

Co-authored-by: ElrohirGT <[email protected]>

* feat: added styles to the sidebar (#125)

* feat: added montserrat font

* feat: added styles to the sidebar

* fix: modify the height and width of the icon

* fix: modify width and color

* feat: added a new color

* fix: added a color for the border bottom

* feat: scrum 140 UI ux update student data (#126)

* feat: Added datalayer method for calling the api

* feat: Implemented update student information view

* feat: udpated tests

* feat: Added update student info logic

* feat: main CSS styling added (#124)

* feat: main CSS styling added

* feat: added a glow to the Icon Button

* fix: added more width to the searchBar

* feat: added getGeneralPatientInfo to SearchView

* feat: added function to calculate age

* feat: added deco for SearchView

* feat: added PatientCard component and story

* fix: reconfigured route due to missclick and moved to assets folder

* feat: implemented search and result pages, result pages handles promises resolving with Suspense and promiseWrapper

* fix: chaged stories to match the new view structure, pending test.jsx file

* fix: removed unused API call

* fix: now endpoint returns id, cui, names, and birthdate

* fix: now receiving and formatting data from search patient endpoint

* fix: now View only calls searchPatientApiCall to get the data properlly

* fix: refactored stories and tests for SearchPatientView

* fix: now bottom deco adjusts to screen

* fix: added JSDoc to date utils functions

* fix: fixed visuals

* feat: integrated custom hook for getting the window measures

* fix: fixed weird interaction with layout

* fix: added responsiveness and fixed mixing up of async and promise resolving

* fix: now PatientCard handles promise errors and View handles empty query errors

* fix: now cards container has overflow y property

* fix: restored default view

* fix: removed unnecessary React.Fragment

* feat: endpoint get for collaborator (#128)

* feat: endpoint get for collaborator

* fix: id correction for collaborator

* feat: general update UI UX was made (#127)

* feat: Added empty data return to studentinfo (#130)

* feat: Added empty data return to studentinfo

* fix: varios styles improvements to update patient

* fix: routing navigation error

* feat: colaborator view (#131)

* feat: colaborator view

* feat: colaborator view

* fix: fixed being unable to change patient sex (#133)

* fix: bug fixed, female option fixed (#136)

* fix: bug fixed, female option fixed

* fix: tests fixed

* fix: scrum 201 componentes de carga en datos generales (#135)

* feat: Adde throbber and improved default search view styles

* fix: search patient secondary view styles

* feat: Added throbbers to update general information view

* fix: endpoint shouldn't fail if data doesn't exists

* fix: carnet update bug on general tab (#138)

* feat: Removed dprint and oxlint

* fix: Added padding to error message in UpdateGeneralInformationView (#137)

* fix: Added padding to error message in UpdateGeneralInformationView

* fix: Removed a comment

* fix: A lot of linter suggestions and formatting

* feat: Added biome config

* fix: linter and formatting errors

* fix: linter errors

* fix: linter and formatting

* feat: Removed JS linter and formatter precommit hook

* fix: updated CI/CD to new toolchain

* fix: linter errors

* fix: Backend formatting

* fix: frontend formatting

* chore: Formatted code with biome

* chore: Formatted code with biome

* fix: Applied linter fixes

* fix: backend stuff

* fix: fixable lints

* fix: linter errors

* fix: More linter errors

* fix: linter errors

* fix: test

---------

Co-authored-by: Bianca Calderón <[email protected]>
Co-authored-by: Xavier López (Nathan) <[email protected]>
Co-authored-by: DanielDubon <[email protected]>
Co-authored-by: Nahomy Castro <[email protected]>
Co-authored-by: Angel Ortega <[email protected]>

* feat: Added user pool domain for verification

* fix: template typo

* fix: template typo

* feat: endpoint for allergic history added (#154)

* feat: endpoint for alllergic history added

* fix: URL chenged for template.yaml

* fix: endpoint update added

* fix: modifications added

* fix: number of parameters fixed

* fix: name correction

* fix: name correction

* fix: change in name and structure

* fix: changes in get endpoint

* fix: changes implemented

* fix: hook time extended

* fix: error on default values

* Merge conflicts resolved in defaultValues.mjs

* Merge conflicts resolved in index.mjs

* Merge conflicts resolved in testHelpers.mjs

* Merge conflicts resolved in template.yaml

* Update update-allergic-history-patient.integration.test.mjs

* fix: formatter issues

* fix: formatter issues

* fix: formatter issues

* fix: linting problems fixed

* fix: update patient tests

* fix: Create Patient endpoint fixed

* fix: linting and formmatter fixed

* fix: documentation added to readme.md

* fix: documentation added to readme.md

---------

Co-authored-by: ElrohirGT <[email protected]>

* feat: gui to non pathological history (#155)

* feat: added non pathological routes and starting gui

* fix: fixed an error in nav and router

* feat: added styles to the view

* feat: added functions to get and update

* feat: added the blood type

* feat: added update function

* feat: added readOnly feature and min elements to write

* feat: added toast error to prevent adding null data

* feat: added full graphical user interface and page functionalities

* feat: added storybook and tests

* fix: fixed lint errors

* fix: fixed linter errors

* feat: added a props function

* feat: added formated file

* fix: fixed a lint error

* feat: Added subcategory

---------

Co-authored-by: ElrohirGT <[email protected]>
Co-authored-by: ElrohirGT <[email protected]>

* feat: backend integration tests (#162)

* fix: Removed pg_setup service

* feat: updated flake dependencies

* feat: using custom devenv

* feat: specified custom pg_hba.conf setting

* feat: Added local rules

* feat: Added integration tests to CI

* fix: sleep timer

* feat: workflows can cancel if new updates are received

* feat: Removed tui from process-compose (#164)

* fix: integration tests on ci (#166)

* feat: Removed tui from process-compose

* feat: Added more wait time for tests

* fix: integration tests on ci (#167)

* feat: Removed tui from process-compose

* feat: Added more wait time for tests

* feat: Changed localhost to explicit ip

* fix: integration tests on ci (#168)

* feat: Removed tui from process-compose

* feat: Added more wait time for tests

* feat: Changed localhost to explicit ip

* fix: Integration tests reference to backend url

* feat: Added headers log

* feat: Added req headers log (#170)

* feat: endpoint for allergic history added (#154)

* feat: endpoint for alllergic history added

* fix: URL chenged for template.yaml

* fix: endpoint update added

* fix: modifications added

* fix: number of parameters fixed

* fix: name correction

* fix: name correction

* fix: change in name and structure

* fix: changes in get endpoint

* fix: changes implemented

* fix: hook time extended

* fix: error on default values

* Merge conflicts resolved in defaultValues.mjs

* Merge conflicts resolved in index.mjs

* Merge conflicts resolved in testHelpers.mjs

* Merge conflicts resolved in template.yaml

* Update update-allergic-history-patient.integration.test.mjs

* fix: formatter issues

* fix: formatter issues

* fix: formatter issues

* fix: linting problems fixed

* fix: update patient tests

* fix: Create Patient endpoint fixed

* fix: linting and formmatter fixed

* fix: documentation added to readme.md

* fix: documentation added to readme.md

---------

Co-authored-by: ElrohirGT <[email protected]>

* feat: gui to non pathological history (#155)

* feat: added non pathological routes and starting gui

* fix: fixed an error in nav and router

* feat: added styles to the view

* feat: added functions to get and update

* feat: added the blood type

* feat: added update function

* feat: added readOnly feature and min elements to write

* feat: added toast error to prevent adding null data

* feat: added full graphical user interface and page functionalities

* feat: added storybook and tests

* fix: fixed lint errors

* fix: fixed linter errors

* feat: added a props function

* feat: added formated file

* fix: fixed a lint error

* feat: Added subcategory

---------

Co-authored-by: ElrohirGT <[email protected]>
Co-authored-by: ElrohirGT <[email protected]>

* feat: backend integration tests (#162)

* fix: Removed pg_setup service

* feat: updated flake dependencies

* feat: using custom devenv

* feat: specified custom pg_hba.conf setting

* feat: Added local rules

* feat: Added integration tests to CI

* fix: sleep timer

* feat: workflows can cancel if new updates are received

* feat: Removed tui from process-compose (#164)

* fix: integration tests on ci (#166)

* feat: Removed tui from process-compose

* feat: Added more wait time for tests

* fix: integration tests on ci (#167)

* feat: Removed tui from process-compose

* feat: Added more wait time for tests

* feat: Changed localhost to explicit ip

* fix: integration tests on ci (#168)

* feat: Removed tui from process-compose

* feat: Added more wait time for tests

* feat: Changed localhost to explicit ip

* fix: Integration tests reference to backend url

* feat: Added headers log

---------

Co-authored-by: Bianca Calderón <[email protected]>
Co-authored-by: Nahomy Castro <[email protected]>

* feat: Added authorization to forms and views (#165)

* feat: Added component RequireAuth to forms

* feat: authorizing cognito

* fix: linting and format checked

* fix: fixing display logic for trauma history (#173)

* fix: fixed an error in height

* feat: added trauma information card

* fix: fixed an error sending the info to JSON in trauma history

* fix: add a change showing info in InformationCard

* fix: fixed the bug showing info in trauma history

* fix: fixed some bugs

* fix: fixed some error in tests

* feat: allergic view enpoint (#169)

* feat: allergic view endpoint

* feat: allergic view added

* feat: improveed view

* fix: allergic name typo and lint errors

* fix: allergic name typo and lint errors

* feat: stories tests and lint error fix

* fix: version is no longer cleared and console logs were removed.

* fix: tests fix because of capitalization error

* feat: role detection (#172)

* feat: Added doctor table

* feat: Added insert of doctor to DB

* feat: Added JWT decoder

* feat: Added DB is doctor method

* docs: Improved JSDoc

* feat: Added permission checking logic

* chore: formatting code

* feat: Added some JWT test helpers

* feat: Added createAuth header function

* feat: Added role protection to search-patient endpoint

* fix: Removed console.log

* feat: Added GetRole function

* fix: Removed unused authorizer property

* feat: Added basic get role implementation

* fix: tests

* fix: Removed empty code

* chore: linting and formatting

* feat: psy endpoint was finished (#174)

* fix: datalayer functions (#176)

* fix: Added authorization header

* fix: Endpoints URLs

* fix: Removed extra authorizer values and restapiid

* fix: datalayer JWT tokens

* feat: gynecoobstetric history endpoints (#175)

* fix: refactorized the database table for ANTECEDENTES_GINECOOBSTETRICOS

* feat: added helper function for generating default values for gynecological patient history

* feat: added mapping function for formatting database response

* feat: added test helper function for endpoint testing

* feat: added endpoints to the template

* feat: added GET endpoint with integration tests

* feat: added PUT endpoint with integration tests

* fix: removed authorizer on endpoints

* fix: resolved conflicts

* fix: removedconflict typo

* Update README.md (#179)

* feat: view was finished (#178)

* feat: cambios en la logica cui y subtitulos (#177)

* feat: cambios en la logica cui y subtitulos

* fix: arreglo de suspense

* fix: test and repetition in code

* fix: handle of update

* fix: updates in collaborator fixed

* fix: spam of success  toast fixed

* fix: linting fixed

* fix: disable option outside edit mode

* fix: datalayer code duplication

* fix: datalayer code duplication (#182)

* fix: role detection security (#183)

* fix: Added JWT parsing for isDoctor

* fix: test helpers

* fix: Added authorization to update family endpoint

* fix: Added JWT validation in gyneco

* fix: authorization header on non-pathological

* fix: Added update patient security checks

* fix: Added authorization to personal history

* fix: Added authorization logic to psychiatric

* fix: Added authorization to surgical

* fix: Added authorization to traumatological

* fix: updated flake reference to oficial devenv

* Revert "fix: updated flake reference to oficial devenv"

This reverts commit 48650c7caf1a667ab8ce0a4db01ed466f5d4e029.

* feat: update feature was added to allergic history (#184)

* feat: update feature was added to allergic history

* fix: format fix

* fix: console log removed

* fix: format error and center save button

* feat: scrum 246 view traumatological update (#186)

* feat: basic structure

* feat: basic structure added

* feat: basic structure added

* fix: able to edit fields

* feat: Update for traumatological view implemented

* console.log erased

* fix: handle cancel fixed

* Update index.jsx

* fix: fixing update method in surgical view (#189)

* fix: fixing update method in surgical view

* fix: fixed disabled in dropdown and an error canceling the edition

* fix: fixed cancel method

* fix: fixed cancel update (#194)

* fix: fixed cancel update

* fix: fixed cancel method in non pathologic

* fix: fixing global width

* fix: fixing patient name

* fix: update feature familiar view (#192)

* feat: adding update method

* feat: adding toast to trauma

* fix: fixed a toast

* fix: fixing update method

* fix: trying to add update to relatives

* fix: fixed update method

* fix: fixed update in array elements

* fix: finished all the updates in familiar view

* fix: fixed isEditable in base button

* fix: dropdown

* fix: fixed dropdown

* feat: update and cancel personal view (#196)

* feat: update and cancel personal view

* fix: empty data fixed

* fix: linting

* feat: handling empty fields

* fix: tests, empty fields

* fix: tests, empty fields

* feat: git init base UI was made(only base UI working PRE BETA) (#190)

* feat: git init base UI was made(only base UI working PRE BETA)

* feat: base UI finished, test aren't working

* feat: UI UPDATE with add more meds is working everything done, lint pending and UI tests

* feat: tests and UI were refactorized all working

* feat: nahomy UI changes were made

* fix: fixing bug in dropdown (#200)

* feat: adding name and image to web (#199)

* fix: patient general data refactoring (#193)

* fix: Refactored collaborator endpoint

* chore: Formatting and linting

* feat: Added security checks to update collaborator data

* fix: update collaborator and student data

* fix: tests

* fix: update patient redundancy

* fix: Seguros field

* fix: backend behaviour and insurance

* fix: Removed zombi code

* feat: Added collapsable component

* fix: Endpoints

* fix: Changed to default devenv

* fix: Added temporal nixpkgs version for samcli

* fix: Removed redundancy

* feat: Added contact information

* fix: tests

* fix: integration tests and backend

* fix: UI

* fix: Big general loading

* fix: Suspense bug

* fix: tests

* fix: main data styles

* fix: general styles

* fix: gapping

* fix: Section padding

* fix: Stiling

* fix: deleted zombi code

* feat: student surgery history (#197)

* feat: scrum 231 student login and surgery history

* fix: fixed the linting

* fix: changed format again

* feat: added endpoints for student surgical history

* fix: extracted checking function

* fix: fixed lint warnings

* fix: formatting

* fix: fixed tests

* fix: cleaned some errors in integration tests

* fix: eliminated horizontal scroll bar and did some responsive changes

* fix: format

* fix: fixed crash on login

---------

Co-authored-by: ElrohirGT <[email protected]>

* feat: add patient form patient pov (#198)

* feat: Added CreatePatientView

* feat: Added GetLinkedPatient endpoint

* feat: Added LinkAccountToPatient endpoint

* fix: test helper

* fix: formatting

* fix: Refactored endpoint to create patient

* fix: Typo

* feat: Implemented getlinked patient endpoint

* fix: linter suggestions

* feat: Added LinkPatientView

* feat: Added patient views to router

* fix: storybook

* feat: Added link patient capability

* fix: link patient

* fix: Story

* fix: integration tests

* feat: view for obs and gyn view (#180)

* feat: added elements for the ob and gyn view

* feat: added name to other diagnosis

* fix: fixed an error in css

* feat: added elements to the view

* feat: finished the view

* feat: added GET and PUT integration to view, pending linting warnings to fix

* fix: added linting and formatting

* feat: added stories for ObGyn view, pending error state to be implemented since view doesn't have it

* fix: added empty state handling in view and story

* fix: linting and format

* feat: added tests for obgyn view

* fix: formatting

* feat: adding edit icon and some changes

* fix: fixed error on add other diagnosis button and formatting

* fix: fixed operations sections dropdown bug

* fix: formatting

* fix: fixed tests to match frontend updates

* fix: fixing pr

---------

Co-authored-by: Xavier López (Nathan) <[email protected]>
Co-authored-by: XavierLopez25 <[email protected]>

* fix: role detection security (#183)

* fix: Added JWT parsing for isDoctor

* fix: test helpers

* fix: Added authorization to update family endpoint

* fix: Added JWT validation in gyneco

* fix: authorization header on non-pathological

* fix: Added update patient security checks

* fix: Added authorization to personal history

* fix: Added authorization logic to psychiatric

* fix: Added authorization to surgical

* fix: Added authorization to traumatological

* fix: updated flake reference to oficial devenv

* Revert "fix: updated flake reference to oficial devenv"

This reverts commit 48650c7caf1a667ab8ce0a4db01ed466f5d4e029.

* feat: update feature was added to allergic history (#184)

* feat: update feature was added to allergic history

* fix: format fix

* fix: console log removed

* …
  • Loading branch information
8 people authored Nov 11, 2024
1 parent 988fc49 commit 144f411
Show file tree
Hide file tree
Showing 283 changed files with 55,720 additions and 3,250 deletions.
33 changes: 21 additions & 12 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,33 @@ on: # yamllint disable-line rule:truthy
- opened
- edited
- synchronize

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number
|| github.ref }}
cancel-in-progress: true

jobs:
lintingAndTesting:
name: Lint
linting:
name: Backend checks
runs-on: ubuntu-latest
defaults:
run:
shell: nix develop .#cicdBackend --command bash {0}
working-directory: sanitas_backend
steps:
- uses: actions/checkout@v3
- name: Clone repository
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
- uses: DeterminateSystems/nix-installer-action@main
- name: Installing dependencies
run: npm install
- name: Formatting
run: npm run format:check
- name: Linting
run: npm install && npm run lint

# TODO: Integration tests can't be run automatically
# so they're commented out.
#
# - name: Testing
# run: |
# nix develop --impure . --command bash -c \
# "cd sanitas_backend/ && npm install && npm run test"
run: npm run lint
- name: Testing
run: cd .. && nix run .#integrationTests
33 changes: 28 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ jobs:
runs-on: ubuntu-latest
outputs:
backend_url: ${{ steps.get_url_step.outputs.url }}
secure_url: ${{ steps.get_secure_url.outputs.url }}
cognito_user_pool_id: ${{ steps.get_pool_id.outputs.id }}
cognito_pool_client_id: ${{ steps.get_client_id.outputs.id }}
defaults:
run:
shell: nix develop .#cicdBackend --command bash {0}
Expand All @@ -33,18 +36,34 @@ jobs:
aws-region: us-east-2
role-to-assume: ${{ secrets.BACKEND_DEPLOY_AWS_ROLE }}
- name: Building Backend
# yamllint disable-line rule:line-length
run: sam build --use-container
- name: Deploying Backend
# yamllint disable-line rule:line-length
# yamllint disable rule:line-length
run: sam deploy --no-confirm-changeset --no-fail-on-empty-changeset
--parameter-overrides PostgresURL=${{ secrets.DB_URL }}
- name: Saving Backend URL
id: get_url_step
# yamllint disable-line rule:line-length
run: echo url=$(sam list stack-outputs --stack-name sanitas-backend
--output json | jq .[1].OutputValue | sed -e 's/^\"//' -e
's/\/\"$//') >> $GITHUB_OUTPUT
- name: Saving Secured Backend URL
id: get_secure_url
run: echo url=$(sam list stack-outputs --stack-name sanitas-backend
--output json | jq .[0].OutputValue | sed -e 's/^\"//' -e
's/\"$//') >> $GITHUB_OUTPUT
's/\/\"$//') >> $GITHUB_OUTPUT
- name: Saving Cognito Pool ID
id: get_pool_id
run: echo id=$(sam list resources --stack-name sanitas-backend
--output json | jq '.[] | select(.LogicalResourceId == "CognitoUserPool")
| .PhysicalResourceId' | sed -e 's/^\"//' -e 's/\"$//') >>
$GITHUB_OUTPUT
- name: Saving Cognito Client ID
id: get_client_id
run: echo id=$(sam list resources --stack-name sanitas-backend
--output json | jq '.[] | select(.LogicalResourceId == "CognitoUserPoolClient")
| .PhysicalResourceId' | sed -e 's/^\"//' -e 's/\"$//') >>
$GITHUB_OUTPUT
# yamllint enable rule:line-length

frontend-deploy:
name: Frontend Deployment
Expand All @@ -64,9 +83,13 @@ jobs:
- uses: DeterminateSystems/nix-installer-action@main
- uses: actions/configure-pages@v4
- name: Building frontend
# yamllint disable-line rule:line-length
# yamllint disable rule:line-length
run: yarn && BACKEND_URL=${{ needs.backend-deploy.outputs.backend_url
}} COGNITO_POOL_ID=${{ needs.backend-deploy.outputs.cognito_user_pool_id
}} COGNITO_CLIENT_ID=${{ needs.backend-deploy.outputs.cognito_pool_client_id
}} PROTECTED_URL=${{ needs.backend-deploy.outputs.secure_url
}} yarn build --base=/Sanitas/
# yamllint enable rule:line-length
- name: Uploading to Github pages
uses: actions/upload-pages-artifact@v3
with:
Expand Down
25 changes: 20 additions & 5 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,33 @@ on: # yamllint disable-line rule:truthy
- opened
- edited
- synchronize

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number
|| github.ref }}
cancel-in-progress: true

jobs:
testAndLinting:
name: Lint
linting:
name: Frontend checks
runs-on: ubuntu-latest
defaults:
run:
shell: nix develop .#cicdFrontend --command bash {0}
working-directory: sanitas_frontend
steps:
- uses: actions/checkout@v3
- name: Clone repository
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
- uses: DeterminateSystems/nix-installer-action@main
- name: Installing dependencies
run: yarn install
- name: Formatting
run: yarn run format:check
- name: Linting
run: yarn && yarn run lint
run: yarn run lint
- name: Testing
run: yarn && yarn test
run: yarn test
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.devenv
.pre-commit-config.yaml
*.log
out/
.DS_Store
3 changes: 3 additions & 0 deletions .sqlfluff
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[sqlfluff]
templater = jinja
sql_file_exts = .sql,.sql.j2,.dml,.ddl
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# Sanitas

[![Deploy Sanitas](https://github.com/SanitasUVG/Sanitas/actions/workflows/deploy.yml/badge.svg)](https://github.com/SanitasUVG/Sanitas/actions/workflows/deploy.yml)
[![Backend Linting and Tests](https://github.com/SanitasUVG/Sanitas/actions/workflows/backend.yml/badge.svg)](https://github.com/SanitasUVG/Sanitas/actions/workflows/backend.yml)
[![Frontend Lint and Tests](https://github.com/SanitasUVG/Sanitas/actions/workflows/frontend.yml/badge.svg)](https://github.com/SanitasUVG/Sanitas/actions/workflows/frontend.yml)

Sistema de registro de fichas médicas para la comunidad UVG

Si tienes duda de algo recuerda que puedes buscar en la [wiki](wiki/README.md).
12 changes: 8 additions & 4 deletions database/init.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,19 @@ CREATE DATABASE sanitas;
CREATE USER root WITH PASSWORD 'root';
GRANT ALL PRIVILEGES ON DATABASE sanitas TO root;

-- Creating main user the API is going to connect to...
CREATE USER backend WITH PASSWORD 'backend';
REVOKE ALL ON DATABASE sanitas FROM backend;
GRANT CONNECT ON DATABASE sanitas TO backend;
GRANT SELECT, INSERT, UPDATE, DELETE ON ALL TABLES IN SCHEMA public TO backend;
GRANT USAGE ON ALL SEQUENCES IN SCHEMA public TO backend;

ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT,
-- Creating the SCHEMA to use for all Tables...
CREATE SCHEMA md_san AUTHORIZATION backend;
GRANT SELECT, INSERT, UPDATE, DELETE ON ALL TABLES IN SCHEMA md_san TO backend;
GRANT USAGE ON ALL SEQUENCES IN SCHEMA md_san TO backend;

ALTER DEFAULT PRIVILEGES IN SCHEMA md_san GRANT SELECT,
UPDATE ON SEQUENCES TO backend;
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT,
ALTER DEFAULT PRIVILEGES IN SCHEMA md_san GRANT SELECT,
UPDATE,
INSERT,
DELETE ON TABLES TO backend;
124 changes: 65 additions & 59 deletions database/inserts.sql
Original file line number Diff line number Diff line change
@@ -1,40 +1,27 @@
INSERT INTO SEGURO (NOMBRE, ESTADO_ACTIVO) VALUES
('Seguro Vida', TRUE),
('Seguro Salud', TRUE);

INSERT INTO USUARIO (EMAIL, TIPO) VALUES
('[email protected]', 'Administrador'),
('[email protected]', 'Doctor'),
('[email protected]', 'Doctor');

INSERT INTO SESION (TOKEN, CREATED, EMAIL) VALUES
('token1234', NOW(), '[email protected]'),
('token2345', NOW(), '[email protected]');

INSERT INTO PACIENTE (
CUI,
CORREO,
ES_MUJER,
NOMBRES,
APELLIDOS,
NOMBRE_CONTACTO1,
PARENTESCO_CONTACTO1,
TELEFONO_CONTACTO1,
NOMBRE_CONTACTO2,
PARENTESCO_CONTACTO2,
TELEFONO_CONTACTO2,
TIPO_SANGRE,
DIRECCION,
ID_SEGURO,
FECHA_NACIMIENTO,
TELEFONO
INSERT INTO md_san.paciente (
cui,
correo,
es_mujer,
nombres,
apellidos,
nombre_contacto1,
parentesco_contacto1,
telefono_contacto1,
nombre_contacto2,
parentesco_contacto2,
telefono_contacto2,
tipo_sangre,
direccion,
seguro,
fecha_nacimiento,
telefono
) VALUES
(
'1234567890123',
'[email protected]',
FALSE,
'Juan',
'Pérez',
'López Pérez',
'Maria Pérez',
'Madre',
'987654321',
Expand All @@ -43,7 +30,7 @@ INSERT INTO PACIENTE (
'987650123',
'O+',
'Calle Falsa 123, Ciudad',
1,
'El Roble',
'1990-01-01',
'1234567890'
),
Expand All @@ -61,61 +48,80 @@ INSERT INTO PACIENTE (
'876540123',
'A-',
'Avenida Siempre Viva 456, Ciudad',
2,
'IGSS',
'1992-02-02',
'2345678901'
);

INSERT INTO CONSULTA (
ID_PACIENTE,
FECHA,
MOTIVO,
FRECUENCIA_RESPIRATORIA,
TEMPERATURA,
SATURACION_OXIGENO,
GLUCOMETRIA,
FRECUENCIA_CARDIACA,
PRESION_SISTOLICA,
PRESION_DIASTOLICA,
EVALUADOR
INSERT INTO md_san.consulta (
id_paciente,
fecha,
motivo,
diagnostico,
examen_fisico,
frecuencia_respiratoria,
temperatura,
saturacion_oxigeno,
glucometria,
frecuencia_cardiaca,
presion_sistolica,
presion_diastolica,
evaluador,
medicamentos_data,
notas
) VALUES
(
1,
NOW(),
'Chequeo anual',
'16',
'Hipertensión leve',
'Examen físico normal, con excepción de presión arterial elevada',
16,
36.5,
98.5,
5.6,
70,
120,
80,
'[email protected]'
'[email protected]',
'[
{
"diagnosis": "Hipertensión leve",
"medication": "Lisinopril",
"quantity": "30"
}
]',
'El paciente debe realizar un seguimiento en 3 meses.'
),
(
2,
NOW() - interval '2 days',
'Consulta de seguimiento',
'18',
'Diabetes tipo 2 controlada',
'Paciente estable, sin signos de complicaciones',
18,
37.2,
97.5,
4.8,
75,
130,
85,
'[email protected]'
'[email protected]',
'[
{
"diagnosis": "Diabetes tipo 2 controlada",
"medication": "Metformina",
"quantity": "30"
}
]',
'Se ajustó la dosis de insulina y se recomienda seguir con el tratamiento
actual.'
);

INSERT INTO DIAGNOSTICO (ID_CONSULTA, NOMBRE, TRATAMIENTO) VALUES
(1, 'Hipertensión leve', 'Medicación antihipertensiva'),
(2, 'Diabetes tipo 2 controlada', 'Ajuste de dosis de insulina');

INSERT INTO MEDICAMENTO (NOMBRE, CANTIDAD, ID_CONSULTA) VALUES
('Metformina', 30, 2),
('Lisinopril', 30, 1);

INSERT INTO ESTUDIANTE (CARNET, CARRERA, ID_PACIENTE) VALUES
INSERT INTO md_san.estudiante (carnet, carrera, id_paciente) VALUES
('A01234567', 'Ingeniería en CC y TI', 1);

INSERT INTO COLABORADOR (CODIGO, AREA, ID_PACIENTE) VALUES
INSERT INTO md_san.colaborador (codigo, area, id_paciente) VALUES
('C001', 'Administración', 2);

INSERT INTO md_san.doctor (email) VALUES ('[email protected]');
Loading

0 comments on commit 144f411

Please sign in to comment.