Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added list of functions for flag component

...

DependencyFunctionalityLink
React-tableRendering tables.
Reactjs-popupGenerate modals.
React-ReduxState management.

Project Structure

Project Structure image

Components

Flags

API Endpoints used:

EndpointRef

GET /patientflags/flag

full

DELETE /patientflags/flag/{flagName}

def

Functions:

FunctionParameterDescription
deleteFlagrowIndexDelete flag data at particular row of table
buttonGeneratorindex, passedDataGenerate edit and delete action buttons for a particular record.
tagListGeneratorpassedDataGenerate object containing names of associated tags - rendered in table as comma separated values
handleOptionChangeTags
Handler for selecting tags when filtering flags by associated tags
handleEvaluatorChange
Handler for selecting how to filter tags (radio button options)
handleSubmit
Handler containing logic for filtering table data based on tags.
editCallbackdataFromChild, indexHandles data object returned from Edit Flags modal.

Edit Flags (Modal)

API Endpoints used:

EndpointRef

GET /patientflags/flag/{flagName}

def

POST /patientflags/flag/{FlagName}

def

Functions:

FunctionParameterDescription
selectionMappingdataMaps selected tags and priorities to state objects
postFlag
dispatches updateFlag action to POST new/updated flag data
handleOptionChangeTags
Handler for multi-select box when tags associated with flag are changed.
handleOptionChangePriority
Handler for drop down menu when priority associated with flag is changed.
handleSubmit
Handler for when flag data form is submitted.

Tags

API Endpoints used:

EndpointRef

GET /patientflags/flag

full

DELETE /patientflags/flag/{flagName}

def

Functions:

FunctionParameterDescription
deleteFlagrowIndexDelete flag data at particular row of table
buttonGeneratorindex, passedDataGenerate edit and delete action buttons for a particular record.
tagListGeneratorpassedDataGenerate object containing names of associated tags - rendered in table as comma separated values
handleOptionChangeTags
Handler for selecting tags when filtering flags by associated tags
handleEvaluatorChange
Handler for selecting how to filter tags (radio button options)
handleSubmit
Handler containing logic for filtering table data based on tags.
editCallbackdataFromChild, indexHandles data object returned from Edit Flags modal.

Edit Tags (Modal)

API Endpoints used:

EndpointRef

GET /patientflags/flag/{flagName}

def

POST /patientflags/flag/{FlagName}

def

Functions:

FunctionParameterDescription
selectionMappingdataMaps selected tags and priorities to state objects
postFlag
dispatches updateFlag action to POST new/updated flag data
handleOptionChangeTags
Handler for multi-select box when tags associated with flag are changed.
handleOptionChangePriority
Handler for drop down menu when priority associated with flag is changed.
handleSubmit
Handler for when flag data form is submitted.


Priorities

API Endpoints used:

EndpointRef

GET /patientflags/flag

full

DELETE /patientflags/flag/{flagName}

def

Functions:

FunctionParameterDescription
deleteFlagrowIndexDelete flag data at particular row of table
buttonGeneratorindex, passedDataGenerate edit and delete action buttons for a particular record.
tagListGeneratorpassedDataGenerate object containing names of associated tags - rendered in table as comma separated values
handleOptionChangeTags
Handler for selecting tags when filtering flags by associated tags
handleEvaluatorChange
Handler for selecting how to filter tags (radio button options)
handleSubmit
Handler containing logic for filtering table data based on tags.
editCallbackdataFromChild, indexHandles data object returned from Edit Flags modal.

Edit Priority (Modal)

API Endpoints used:

EndpointRef

GET /patientflags/flag/{flagName}

def

POST /patientflags/flag/{FlagName}

def

Functions:

FunctionParameterDescription
selectionMappingdataMaps selected tags and priorities to state objects
postFlag
dispatches updateFlag action to POST new/updated flag data
handleOptionChangeTags
Handler for multi-select box when tags associated with flag are changed.
handleOptionChangePriority
Handler for drop down menu when priority associated with flag is changed.
handleSubmit
Handler for when flag data form is submitted.