Patient Summary module
Patient Summary
API URL
/api/patients/{patientId}
GET data
{ address:"40, High Street, Dublin, D8" allergies:[] contacts:[] dateOfBirth:318384000000 gender:"Female" gpAddress:"Newport Practice, Ap #491-7493 Donec Ave, Newport, Hampshire, JB48 4EL" gpName:"Bailey Demetrius B." id:9999999003 medications:[ { sourceId: "b693b071-d508-42dd-b114-d6cbd29c70bd", source: "Marand", text: "Aspirin" } ] name:"Emma Gallagher" nhsNumber:"9999999003" pasNumber:332546 problems:[ { sourceId: "05e6df7f-4dcc-46d1-8134-010835e61308", source: "EtherCIS", text: "angina pectoris" } ] telephone:"07624 647524" transfers:[] }
Component structure
//component template let templatePatientsSummary = require('./patients-summary.html'); //controller init class PatientsSummaryController { constructor($scope, $state, $stateParams, $ngRedux, $location, patientsActions) { } //component init const PatientsSummaryComponent = { template: templatePatientsSummary, controller: PatientsSummaryController }; //inject services/modules to controller PatientsSummaryController.$inject = ['$scope', '$state', '$stateParams', '$ngRedux', '$location', 'patientsActions']; //es6 export for component export default PatientsSummaryComponent;