PHPackages                             mylifeid/healthdata - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. mylifeid/healthdata

ActiveLibrary

mylifeid/healthdata
===================

Package to allow third party users to connect to users.mylifeid.com and fetch and put patient's data using their pocket cloud card ID

02PHP

Since Jun 18Pushed 4y ago1 watchersCompare

[ Source](https://github.com/mylifeid/health-data)[ Packagist](https://packagist.org/packages/mylifeid/healthdata)[ RSS](/packages/mylifeid-healthdata/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

health-data
===========

[](#health-data)

allow third party users to connect to users.mylifeid.com and fetch and put patient's data using their pocket cloud card ID

1. Open the project folder in terminal/CMD, and run the following command: composer require mylifeid/healthdata
2. All the files and dependencies of the library will be installed. Open the class file where you need to use it. Put the following code at the beginning of your file, after the namespace statement (if any) along with other “use” statements:

use mylifeid\\HealthData\\DataExchange;

3. Now, you are ready to use your library. This library class “DataExchange” defines 4 methods: • Public function authorize() • Public function defineRecordProperties() • Public function getRecords() • Public function putRecords()

A. Authorize() This method will be called at the beginning of each connection. The parameters required will be an array having following key elements: company\_name ip\_address language username email\_address password

Once the user is authorized, you will receive 200 status and response with a JWT token. You need to pass this token in the remaining method calls as the “Authorization Bearer” in the header.

B. defineRecordProperties() This is the second method call after authorize() which defines the data set that needs to be accessed for your company. The token received in previous authorize() call will be sent in the header as “Authorization Bearer”. The parameter will be an array with the following key elements:

company\_name language ip\_address record\_set api\_direction patient\_set record\_type record\_privacy

If your company has the permission to access the data as specified in the request data (record\_set, api\_direction, patient\_srt, record\_type and record\_privacy), you will receive 200 status with a success response message.

C. getRecords() Once you have the data set prepared for access in your company from the previous call defineRecordProperties(), you can now receive the data for the fields defined as the data set. You can either fetch the data for specific patients using their Pocket Cloud Card ID. The parameter for this call will be an array with the following key elements:

company\_name language ip\_address patient\_id record\_history\_date

D. putRecords() In the previous call, you received the data set fields with value for all/specified patients. In this call, you can update the data for these fields. The parameter will be an array with following key elements:

company\_name language ip\_address insert\_data (this itself is an array of the fields and value with following elements) \[patient\_id fieldname value\], \[patient\_id fieldname value\], and so on.

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity29

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/86093519?v=4)[mylifeid](/maintainers/mylifeid)[@mylifeid](https://github.com/mylifeid)

---

Top Contributors

[![mylifeid](https://avatars.githubusercontent.com/u/86093519?v=4)](https://github.com/mylifeid "mylifeid (1 commits)")

### Embed Badge

![Health badge](/badges/mylifeid-healthdata/health.svg)

```
[![Health](https://phpackages.com/badges/mylifeid-healthdata/health.svg)](https://phpackages.com/packages/mylifeid-healthdata)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
