@fitpeo/fit-plan-creator
v1.6.2
Published
React reusable compoent to create Careplan or Treatement Plan.
Downloads
7
Keywords
Readme
fit-plan-creator
Install
npm install @fitpeo/fit-plan-creator
props
It takes 12 props:
- patientInfoDetail = {object}
- diagnosticData = [{icdCode, description},{},{},...]
- type = 'ccm' or 'rpm' or "pcm"
- answers = {} //useState variagle
- setAnswers = {} //useState Setter Function.
- navigate = {instance of useNavigate()} // in case of ccm
- navigateUrl = Stirng url address for redirecting to specific page.
- addingBy = {name, userType} // who is going to add the plan
- providers = ["provider name1", "provider name2", "", "", ...]
- practitioners = ["practitioner name1", "practitioner name2", "", "", ...]
- caretakers = [{firstName, middleName, lastName}, {firstName, middleName, lastName}, ...]
- submissionLoading = {false} // submit button loading status
Usage
import AddCareplan from "@fitpeo/fit-plan-creator";
import { useNavigate } from "react-router-dom";
const [answers, setAnswers] = useState([]);
const navigate = useNavigate();
<AddCareplan
patientInfoDetail={patientInfo}
diagnosticData={diagnosticData}
addingBy={addingBy}
providers={providers}
practitioners={practitioners}
caretakers={caretakers}
type="ccm"
answers={answers}
setAnswers={setAnswers}
navigate={navigate}
navigateUrl="/specific/address"
submissionLoading={loading}
/>
License
MIT © Fitpeo