Comments (1)
From your question :
Backend
For clients to render correct data format (SFHIR/HMS Connect), we would like to confirm which approach should be used.
a. Server explicitly inform client. e.g. special HTTP Header
b. Client try to auto-detect the format. e.g. find some unique indicator
Assumption: Client may try to specify required format, but in some situations, the server might not be able to honor the request.
For my opinion:
client should be stateless and server side should handle a little task. So I suggest you to implement middleware for parsing/compiling the data object. The middleware can be implemented in frontend/backend upon your design.
Frontend
For hms-data that have multiple sets, which set of data that we should use for search or display? Such as patient’s names for the SFHIR standard that have 2 sets, Official and Maiden.
Should support both formats
I suggest following the patient-browser for display hms-data.
I'm not sure what patient-browser is...
We will add Typescript for React.
OK krub, please don't forget add some comment in you source code.
We have to add the folder structure.
app/services → a service to fetch data from the server.
app/hooks → sometimes we use a hook to implement a stateful function.
OK krub. If you can design middleware to parse/compile the data object, please attach it into this topic.
Are we understand component structure correct?
/base → as same as components in Material-UI library (Stateless)
such as Button, Grid, Input
/template → many bases combined (Stateless)
such as Searchbar
/widget → many templates combined (Stateful)
such as PatientSearch
OK krub.
from hms-widget-sdk.
Related Issues (20)
- [Patient] Patient Observation - Vital-Sign (Backend) HOT 1
- [Patient] Patient Observation - Vital-Sign (Frontend) HOT 1
- [Patient] Patient Observation - Laboratory (Backend) HOT 1
- [Patient] Patient Observation - Laboratory (Frontend) HOT 1
- [Opinion] branch feature/structure HOT 1
- [POC] Widget gallery (including demo app) HOT 2
- [Q&A] The issue about "ผลการวินิจฉัย" key in each encounter HOT 2
- Demo app HOT 1
- Apply HMS Schema to HMS Widget SDK HOT 1
- Modify authentication flow HOT 1
- Practitioner & Participant employeeId mismatch HOT 1
- Can't request `Care Plan` domain resource HOT 2
- careplan ResourceType is null HOT 6
- How to know the token expiration date in `hmshealthapi`? HOT 3
- Diastolic and Systolic in Vital-Sign can multiple fields? HOT 1
- Can add field code in vital-sign ? HOT 6
- No example of Heart rate in vital-sign? HOT 1
- medicationdispense schema.ResourceType is null HOT 2
- cannot request load from patient HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hms-widget-sdk.