open-index/open-npm huggingface dataset:
npm package: @fitpeo/fit-plan-creator
Description: React reusable compoent to create Careplan or Treatement Plan.
Author: Aadil
Latest version: 1.6.6

# fit-plan-creator

>

[![NPM](https://img.shields.io/npm/v/fit-plan-creator.svg)](https://www.npmjs.com/package/fit-plan-creator) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## Install

```bash
npm install @fitpeo/fit-plan-creator
```

## props

It takes 12 props:

1. patientInfoDetail = {object}
2. diagnosticData = [{icdCode, description},{},{},...]
3. type = 'ccm' or 'rpm' or "pcm"
4. answers = {} //useState variagle
5. setAnswers = {} //useState Setter Function.
6. navigate = {instance of useNavigate()} // in case of ccm
7. navigateUrl = Stirng url address for redirecting to specific page.
8. addingBy = {name, userType} // who is going to add the plan
9. providers = ["provider name1", "provider name2", "", "", ...]
10. practitioners = ["practitioner name1", "practitioner name2", "", "", ...]
11. caretakers = [{firstName, middleName, lastName}, {firstName, middleName, lastName}, ...]
12. submissionLoading = {false} // submit button loading status
13. prefilledData = [{name , value, quesType},{},{},.....]

## Usage

```jsx
import AddCareplan from "@fitpeo/fit-plan-creator";
import { useNavigate } from "react-router-dom";

const [answers, setAnswers] = useState([]);
const navigate = useNavigate();

<AddCareplan
  prefilledData={prefilledData}
  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
npm package: @fitpeo/fit-plan-viewer
Description: React reusable component for patients plans
Author: Aadil
Latest version: 0.5.10

# React Reusable Patient Plan View Component

## Props

It accepts 11 props:

1. plan type('ccm' or 'rpm' or 'pcm')
   eg: type='ccm'
2. patientInfoDetail={object}
3. plan={object}
4. addedBy = {name, userType} // who added the plan
5. planIcds = {planIcds} // array of icds of current plan
6. isDarkMode (optional) => true/false; by default false
7. providers = ["provider name1", "provider name2", "", "", ...]
8. practitioners = ["practitioner name1", "practitioner name2", "", "", ...]
9. caretakers = [{firstName, middleName, lastName}, {firstName, middleName, lastName}, ...]
10. planDate = {planDate} // Date Of Service string
11. userType = {"patient"} // effective in patient portal only
12. ismobileView = {boolean} // for mobile screen keep this true

## Usage

```jsx
import PlanView from "@fitpeo/fit-plan-viewer";

<PlanView
  type="ccm"
  patientInfoDetail={patientInfoDetail}
  providers={providers}
  practitioners={practitioners}
  caretakers={caretakers}
  planIcds={planIcds}
  addedBy={addedBy}
  plan={plan}
  planDate={planDate}
  userType={"patient"}
  ismobileView={false}
/>
```

## License

MIT © Fitpeo