Code Monkey home page Code Monkey logo

Comments (1)

HMSConnect avatar HMSConnect commented on June 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.