Skip to content

React FHIR Middleware

Noranda Brown edited this page Nov 4, 2016 · 16 revisions

React-FHIR Middleware

Patients

API

/Patient? :

  • _count=10 : number of patients per page
  • _offset=0 : page offset
  • _query=group&groupId=huddle1234 : filter by huddle
  • _query=group&groupId=huddle1234&groupId=pop5678 : filter by huddle and population
  • _query=group&groupId=pop5678&groupId=pop9012 : filter by more than one population using intersection
  • _query=group&groupId=pop5678,pop9012 : filter by more than one population using union
  • _sort=name,birthdate : sort options (primary, secondary)
    • Sort options include name, birthdate, gender, address, riskScore, notifications

Structure After Middleware

META: object
├── total: number
└── link: array of objects
    ├── relation: string
    └── url: string

PATIENTS: array of objects
├── id: string
├── address: object
    ├── street: string
    ├── city: string
    ├── state: string
    └── postalCode: string
├── age: number
├── gender: string
├── birthDate: string
└── name: array of objects
    ├── family: string
    ├── given: string
    └── full: string

Populations

API

/Group?actual=false

Structure After Middleware

POPULATIONS: array of objects
├── id: string
├── meta: object
|   └── lastUpdated: string
├── name: string
└── characteristic: array of objects
    ├── code: object
        ├── coding: array of objects
            ├── code: string
            ├── system: string
            └── userSelected: boolean
    ├── exclude: boolean
    ├── valueBoolean: boolean
    └── valueRange: object
        ├── high: object
            └── value: number
        └── low: object
            └── value: number

Huddles

API

/Group?actual=true

Structure After Middleware

HUDDLE_GROUP: array of objects
├── id: string
├── name: string
└── dates: array of objects
    ├── id: string
    ├── datetime: string
    ├── practitioner: string
    └── patients: array of object
        ├── id: string
        └── reason: object
            ├── code: string
            └── text: string

Risk Assessments

API

/RiskAssessment?:

  • subject:Patient=id1 : filter by patient
  • subject:Patient=id1,id2,id3 : filter by multiple patients
  • _tag=http://interventionengine.org/tags/|MOST_RECENT : filter by most recent risk
  • method=http://interventionengine.org/risk-assessments|MultiFactor : filter by risk method

Structure After Middleware

RISK_ASSESSMENT_TYPE: object
├── id: string
├── name: string
└── method: string

RISK_ASSESSMENT: array of objects
├── id: string
├── name: string
└── patients: array of objects
    ├── id: string
    └── risks: array of object
        ├── date: string
        ├── value: number
        └── pie: string
Clone this wiki locally