Giter Club home page Giter Club logo

Comments (6)

gmcressman avatar gmcressman commented on May 30, 2024

Same issue with the following field: Contact Mobile # (patient/relative)

from coconut-mobile-plugin-zanzibar.

scloo avatar scloo commented on May 30, 2024

@mikeymckay
I noticed the inconsistency in the naming of the attributes for the Facility questions.
in some doc it is spelled as ContactMobilepatientrelative, while in others it is spelled ContactMobilePatientRelative. Likewise for 'HeadOfHouseholdName' and 'HeadofHouseholdName'.

I think causes issue in createHousehold() in the plugin Case. And the Head of Household Name and the Contact Mobile Patient Relative are not saved to the Household question.

from coconut-mobile-plugin-zanzibar.

scloo avatar scloo commented on May 30, 2024

@mikeymckay I suspect that the Form2jsPlugins that you introduced in the plugin, converts the attribute names to camelize form that is inconsistent with previous Facility question docs that do not use camelize form in the attribute names.
And I suspect that the other questions are also affected similarly.

In Case.coffee - createHousehold(), you have
HeadofHouseholdName: @Facility.HeadofHouseholdName
ContactMobilepatientrelative: @Facility.ContactMobilepatientrelative

Attribute @Facility.HeadofHouseholdName does longer exist as you have already camelize to @Facility.HeadOfHouseholdName when saving the completed Facility question.

from coconut-mobile-plugin-zanzibar.

mikeymckay avatar mikeymckay commented on May 30, 2024

from coconut-mobile-plugin-zanzibar.

scloo avatar scloo commented on May 30, 2024

@mikeymckay I see that you have made changes (Nov 25 in plugin codes) that took care of the camel case to HeadOfHouseHoldName. That solves the issue in Facility results view that was missing the Head of House Name. However in the Household result view, the data is still missing for Head Of Household Name and Total Number of Residents in the Household. Does this have anything to do with the fact that in the Case doc, the attributes are still in the old format "HeadofHouseholdName"?
Screen Shot 2017-12-05 at 4.18.13 PM.png

from coconut-mobile-plugin-zanzibar.

gmcressman avatar gmcressman commented on May 30, 2024

Tested. Fixed. @scloo - Does the problem in your Dec 5 comment on this issue still exist?

from coconut-mobile-plugin-zanzibar.

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.