# Components

# How to write a component

3 core concepts:

  1. The entrance file is: search-interfaces.vue This component gives the search terms for the search dropdown by getting imported then defined and then mounted inside vl-search-box/index.vue For the flow chart see vl-search-box

  2. Each component will usually have sub components for vl and cl. Terms like vl and cl are explained in glossary. Which subcomponent is invoked is based on search term the keys ctToShowInCSVL and ctToShowInCL inside search-interfaces.vue

  3. Data in a component is CRUD through a model. During CRUD the status of row is maintained inside rowstatus.js

# Types of component

# Core components

# Name Programmer Status
1 Change layer tab manager Vikas Ready to use

# Health components

# Name Programmer Status
1 Recommendations Sanjay UI and DB final. Feature Under dev
2 Goals Raj UI and DB final. Feature Under dev
3 Diagnosis Anirban UI and DB final. Feature Under dev
4 Screening Jana UI and DB final. Feature Under dev
5 Body measurement Alexey Need to bring to nuxt
6 Mental status exam Alexey Need to bring to nuxt
7 Reminders
8 Medication

# Other components