-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate patient fields from metadata shared between server and client #185
Commits on Aug 31, 2022
-
Create Metadata class to store field metadata
Move patient field setup into metadata/patient.js.
Configuration menu - View commit details
-
Copy full SHA for 12a86cf - Browse repository at this point
Copy the full SHA 12a86cfView commit details -
Move metadata into src/metadata
CRA annoyingly refuses to import anything from outside that folder.
Configuration menu - View commit details
-
Copy full SHA for 638c97f - Browse repository at this point
Copy the full SHA 638c97fView commit details -
Add getters/setters to Ringdown based on field metadata from patient
Also generate PropTypes from field metadata. Use a shared DeliveryStatus in Ringdown.js instead of defining a copy. Move deliveryStatus.js to src/constants/DeliveryStatus.js. Rename Metadata.js to ModelMetadata.js. Add FieldMetadata.js and convertToSequelizeField.js.
Configuration menu - View commit details
-
Copy full SHA for 0310650 - Browse repository at this point
Copy the full SHA 0310650View commit details -
Configuration menu - View commit details
-
Copy full SHA for c021cc6 - Browse repository at this point
Copy the full SHA c021cc6View commit details -
Add new fields to patient metadata
Add PatientFields and Ringdown changes from 169-ems-update-form branch. Fix default value for status indicator.
Configuration menu - View commit details
-
Copy full SHA for 13cacd1 - Browse repository at this point
Copy the full SHA 13cacd1View commit details -
Add migration for new fields in patient database
Pass table and model names to ModelMetadata constructor.
Configuration menu - View commit details
-
Copy full SHA for b2d558d - Browse repository at this point
Copy the full SHA b2d558dView commit details -
Pass the type instead of the whole field object. Prettier and eslint nonsense.
Configuration menu - View commit details
-
Copy full SHA for 185fb35 - Browse repository at this point
Copy the full SHA 185fb35View commit details -
Use getFieldHash() for getting the prop types as well, passing in convertToPropType.
Configuration menu - View commit details
-
Copy full SHA for b4b39ad - Browse repository at this point
Copy the full SHA b4b39adView commit details -
Configuration menu - View commit details
-
Copy full SHA for ce55e04 - Browse repository at this point
Copy the full SHA ce55e04View commit details -
Configuration menu - View commit details
-
Copy full SHA for f1a4eee - Browse repository at this point
Copy the full SHA f1a4eeeView commit details -
Create Form component to provide context to fields
Provide ringdown data and onChange handler to form fields via the Form context. Create Field component to generate checkboxes, numeric inputs, and text areas based on the metadata type. Add label and unit strings to the patient metadata. Tweak restraint label.
Configuration menu - View commit details
-
Copy full SHA for ea894db - Browse repository at this point
Copy the full SHA ea894dbView commit details -
Move Field component into FormField.js
Add form to wrap children and receive props in Form component. Remove unnecessary fragment wrapper on PatientFields. Fix degree symbol on temp.
Configuration menu - View commit details
-
Copy full SHA for ae71c02 - Browse repository at this point
Copy the full SHA ae71c02View commit details -
Update prettier to 2.7.1. Force Prettier to ignore parts of some files and allow it uglify others.
Configuration menu - View commit details
-
Copy full SHA for dc3c960 - Browse repository at this point
Copy the full SHA dc3c960View commit details -
Configuration menu - View commit details
-
Copy full SHA for b0d4154 - Browse repository at this point
Copy the full SHA b0d4154View commit details -
Fix wrapping in O2 label and field
Make "optional" align right in the Header elemens by removing an extra div.
Configuration menu - View commit details
-
Copy full SHA for 2d9d881 - Browse repository at this point
Copy the full SHA 2d9d881View commit details -
Move Urgency field up into Incident info section
Refactor and simplify creation of validationData in Ringdown.js. Update section labels in ringdown form. Fix Form.children prop type.
Configuration menu - View commit details
-
Copy full SHA for c8dc2d5 - Browse repository at this point
Copy the full SHA c8dc2d5View commit details
Commits on Sep 1, 2022
-
In ModelMetadata, always add the created and updated fields to the model, so they don't have to get included over and over.
Configuration menu - View commit details
-
Copy full SHA for 023565e - Browse repository at this point
Copy the full SHA 023565eView commit details -
Add metadata for ambulance, emergencyMedicalServiceCall, and emergenc…
…yMedicalServiceCallAmbulance
Configuration menu - View commit details
-
Copy full SHA for 44635e1 - Browse repository at this point
Copy the full SHA 44635e1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 85e5ba1 - Browse repository at this point
Copy the full SHA 85e5ba1View commit details -
Make sure defaultValue included in Sequelize attributes, fix tests fo…
…r new defaultValue default for booleans
Configuration menu - View commit details
-
Copy full SHA for 916a5b4 - Browse repository at this point
Copy the full SHA 916a5b4View commit details
Commits on Sep 3, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 273b9e3 - Browse repository at this point
Copy the full SHA 273b9e3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 347748b - Browse repository at this point
Copy the full SHA 347748bView commit details -
Configuration menu - View commit details
-
Copy full SHA for ee6ebda - Browse repository at this point
Copy the full SHA ee6ebdaView commit details -
Add support in convertToSequelizeField() for sequelize getters/setters, validate key and virtual type fields.
Configuration menu - View commit details
-
Copy full SHA for 56b95c4 - Browse repository at this point
Copy the full SHA 56b95c4View commit details -
Add defaultValue for timezone in organization to fix tests
Simplify convertToSequelizeField.
Configuration menu - View commit details
-
Copy full SHA for a6f084d - Browse repository at this point
Copy the full SHA a6f084dView commit details
Commits on Sep 4, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 4da5add - Browse repository at this point
Copy the full SHA 4da5addView commit details -
Refactor ands simplify ModelMetadata
Add toString method to FieldMetadata.
Configuration menu - View commit details
-
Copy full SHA for dcad4ad - Browse repository at this point
Copy the full SHA dcad4adView commit details -
Configuration menu - View commit details
-
Copy full SHA for 79c90e0 - Browse repository at this point
Copy the full SHA 79c90e0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 928020a - Browse repository at this point
Copy the full SHA 928020aView commit details
Commits on Sep 7, 2022
-
Create payload sub-objects and defaults programmatically
Add metadata/index.js. Change createValidationData() to setValidationData(),. Get rid of ambulance and emsCall getters defined in class.
Configuration menu - View commit details
-
Copy full SHA for 37d7ae5 - Browse repository at this point
Copy the full SHA 37d7ae5View commit details -
Configuration menu - View commit details
-
Copy full SHA for f942062 - Browse repository at this point
Copy the full SHA f942062View commit details -
Add the field getters/setters to the Ringdown prototype
Don't add them to every instance individually.
Configuration menu - View commit details
-
Copy full SHA for 59f96ad - Browse repository at this point
Copy the full SHA 59f96adView commit details
Commits on Sep 8, 2022
-
Configuration menu - View commit details
-
Copy full SHA for aeddf4a - Browse repository at this point
Copy the full SHA aeddf4aView commit details -
Configuration menu - View commit details
-
Copy full SHA for bf469e5 - Browse repository at this point
Copy the full SHA bf469e5View commit details