0.1.0 • Published 11 months ago

@meetportal/dentalcare-js v0.1.0

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

Dentalcare JS for Portal

This library provides schemas and helper functions for Portal dentalcare resources.

Installation

npm install @meetportal/dentalcare-js

If you have not already done so, you will also need to install the Portal JS library:

npm install @meetportal/portal-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',
  }
}

usePortalService().setResource(resource)
0.1.0

11 months ago