0.3.1 • Published 11 months ago

@meetportal/healthcare-js v0.3.1

Weekly downloads
-
License
-
Repository
github
Last release
11 months ago

HealthCare Library for Portal

This library provides functionality for web applications integrating into Portal.

Installation

npm install @meetportal/portal-js @meetportal/healthcare-js

Usage

import { usePortalService } from '@meetportal/portal-js'
import { PATIENT_TYPE, PATIENT_VERSION, PatientResource } from '@meetportal/healthcare-js'

let resource: PatientResource = {
  id: '123',
  type: PATIENT_TYPE,
  version: PATIENT_VERSION,
  demographics: {
    ids: ['123'],
    firstName: 'John',
    lastName: 'Doe',
    dob: '01/01/1970',
    birthSex: 'M',
    email: 'john.doe@mail.com',
    phones: [
      {
        type: 'home',
        number: '123-456-7890',
      },
    ],
    address1: '123 Main St',
    address2: 'Apt 1',
    city: 'Anytown',
    state: 'NY',
    zip: '12345',
  },
  insurance: {
    insurance: 'Medicare',
    hasMedicare: true,
    hasMedicaid: false,
  },
}

usePortalService().setResource(resource)
0.3.0

11 months ago

0.3.1

11 months ago

0.2.1

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago