Giter VIP home page Giter VIP logo

Comments (7)

dubdabasoduba avatar dubdabasoduba commented on September 24, 2024

@jingtang10 do you mind looking into this?

from android-fhir.

hamza-vd avatar hamza-vd commented on September 24, 2024

@f-odhiambo cc: @jingtang10
I am picking up this ticket. As discussed I'll be adding two items to QuestionnaireResponse, questionnaire-launch-time and questionnaire-submission-time

from android-fhir.

hamza-vd avatar hamza-vd commented on September 24, 2024

@f-odhiambo cc: @jingtang10 @qiarie

After some discussion and scoping, the following enhancements will be implemented:

  1. Both QuestionnaireResponseItemComponent and QuestionnaireItemComponent will be included at both the launch and submission stages. A sample QuestionnaireResponseItemComponent is illustrated below:
QuestionnaireResponseItemComponent().apply {
    linkId = "submission-timestamp"
    answer = arrayListOf<QuestionnaireResponseItemAnswerComponent?>().apply {
        add(QuestionnaireResponseItemAnswerComponent().apply {
            value = StringType("<timestamp>")
        })
    }
}

  1. The introduced functionality will be configurable.

from android-fhir.

hamza-vd avatar hamza-vd commented on September 24, 2024

A sample QR will look like

{
  "resourceType": "QuestionnaireResponse",
  "item": [
    {
      "linkId": "1",
      "text": "Choose one from the options below",
      "answer": [
        {
          "valueCoding": {
            "code": "option-1",
            "display": "Option 1"
          },
          "item": [
            {
              "linkId": "1-select-one",
              "text": "Select one"
            }
          ]
        }
      ]
    },
    {
      "linkId": "launch-timestamp",
      "answer": [
        {
          "valueString": "2024-01-04T11:39:30.040+05:00"
        }
      ]
    },
    {
      "linkId": "submission-timestamp",
      "answer": [
        {
          "valueString": "2024-01-04T11:41:01.095+05:00"
        }
      ]
    }
  ]
}

from android-fhir.

hamza-vd avatar hamza-vd commented on September 24, 2024

As per the PR comments, there will be a change in the implementation. I will implement the following changes.

  1. The authored field will be used as a submission timestamp.
  2. The launch-timestamp will be added as an extension to the QuestionnaireResponse.

from android-fhir.

hamza-vd avatar hamza-vd commented on September 24, 2024

A new sample implementation

{
  "resourceType": "QuestionnaireResponse",
  "extension": [
    {
      "urI": "launch-timestamp",
      "valueDateTime'": "2024-02-22T15:25:29+05:00"
    }
  ],
  "authored": "2024-02-22715:25:32+05:00",
  "item": []
}

from android-fhir.

jingtang10 avatar jingtang10 commented on September 24, 2024

thanks for creating this discussion @hamza-vd: https://chat.fhir.org/#narrow/stream/179255-questionnaire/topic/Ability.20to.20Capture.20Questionnaire.20Launch.20and.20Submit.20Timestamp

from android-fhir.

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.