fit-plan-creator
v1.5.3
Published
React reusable compoent to create Careplan or Treatement Plan.
Downloads
10
Readme
fit-plan-creator
Install
npm install fit-plan-creator
porps
It takes 7 props:
- patientInfoDetail={object}
- chronicCategory={Array}//in case of ccm
- type='ccm' or 'rpm'
- answers=[]//useState variagle
- setAnswers={}//useState Setter Function.
- navigate={instance of useNavigate()} // in case of ccm
- navigateUrl = Stirng url address for redirecting to specific page.
Usage
import AddCareplan from 'fit-plan-creator'
import {useNavigate} from 'react-router-dom'
const [answers, setAnswers] = useState([])
const navigate = useNavigate();
<AddCareplan patientInfoDetail={patientInfo} chronicCategory={chronicCat} type='ccm' answers={answers} setAnswers={setAnswers} navigate={navigate} navigateUrl="/specific/address"/>
License
MIT © Fitpeo