Comments (3)
This code change would require change in rules for following FormElements across multiple organisations:
select o.name, form_element.name, form_element.uuid
from form_element
join organisation o on form_element.organisation_id = o.id
where rule like '%nrolment.individual.affiliatedGroups%';
# | name | name | uuid |
---|---|---|---|
1 | JSSCP UAT | Enrolment ID | a2628836-c7cb-4557-ad21-eb2172f07f2d |
2 | JSS Singrauli UAT | Enrolment ID | cb2328f2-8245-446e-89ca-b6e2f58ea700 |
3 | JSSCP | Enrolment ID | a2628836-c7cb-4557-ad21-eb2172f07f2d |
4 | JSS | Enrolment ID | cb2328f2-8245-446e-89ca-b6e2f58ea700 |
5 | JSSCP Support | Enrolment ID | a2628836-c7cb-4557-ad21-eb2172f07f2d |
6 | Achala Test | Enrolment ID | a2628836-c7cb-4557-ad21-eb2172f07f2d |
7 | JSSCP UAT NEW | Enrolment ID | a2628836-c7cb-4557-ad21-eb2172f07f2d |
8 | Mobile creches | Enrolment ID | cb2328f2-8245-446e-89ca-b6e2f58ea700 |
Old Rule snippet
const phulwariName = _.get(_.find(programEnrolment.individual.affiliatedGroups, ({voided}) => !voided), ['groupSubject', 'firstName'], '');
New Rule snippet
const phulwariName = _.get(_.find(params.entityContext.affiliatedGroups, ({voided}) => !voided), ['groupSubject', 'firstName'], '');
##Support ticket
https://avni.freshdesk.com/a/tickets/2925
from avni-models.
@himeshr added to release card - avniproject/avni-client#1021
from avni-models.
Dev testing done on staging environment for :
- Subject registration summary has GroupAffiliation msg (Phulwari org)
- Enrolment to program has Enrolment ID auto generated based on GroupAffiliation (JSS SIngrauli org)
Attached screen shots for the same:
from avni-models.
Related Issues (17)
- For age greater than 6 months display age in months instead of weeks
- Add ability to use TypeScript
- Convert all important model classes to TypeScript and add comments
- add html documentation
- Refactor model to cater to richer display of non-primitive data types HOT 2
- Client models for syncing dashboard and card metadata
- Unable to retreive RepeatableQuestionGroup Observation concept value for a ProgramEncounter HOT 1
- Add support in rules-server to handle question group concepts - both repeatable and non-repeatable HOT 13
- getEncounters doesn't sortBy cancelDateTime
- Encounter sync is extremely slow HOT 4
- Add method in models to check for active program enrolment
- Duplication of code across webapp and rules-server HOT 1
- Issue with scheduledEncountersOfType HOT 3
- Create one method to get observation from last filled encounter from individual HOT 1
- Add method for getting location observation value
- [Helper] For converting date fields to IST
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 avni-models.