# Qr Code Data Element

**URL:** <https://community.dhis2.org/t/qr-code-data-element/42592>\
**Category:** Support - Assistance technique\
**Tags:** android\
**Created:** [27 April 2021 10:20 UTC](https://community.dhis2.org/t/qr-code-data-element/42592 "2021-04-27T10:20:25Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![dina.mazloum](https://dhis2.b-cdn.net/letter_avatar_proxy/v4/letter/d/e9bcb4/32.png) [@dina.mazloum](https://community.dhis2.org/u/dina.mazloum)\
**Post date:** [27 April 2021 10:20 UTC](https://community.dhis2.org/t/qr-code-data-element/42592/1 "2021-04-27T10:20:25Z")

</div>

Hello @jaime.bosque, @marta  
I read the new documentation that includes a short description about the QR Code on DHIS2. I found that it should be a data element but how can I render it as QR in order to be able to scan a QR Code.

Thank you

---

<div class="post-metadata">

**Author:** ![jaime.bosque](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/jaime.bosque/32/42220_2.png) [@jaime.bosque](https://community.dhis2.org/u/jaime.bosque)\
**Post date:** [27 April 2021 10:42 UTC](https://community.dhis2.org/t/qr-code-data-element/42592/2 "2021-04-27T10:42:35Z")

</div>

Hi @dina.mazloum

This is not possible. The only way the App generates QR codes is for sharing among devices which can be found while clicking “Share” on a TEI.

What would you like to do with what you are asking? In the end the QR code is only a graphical representation and this can be done by other external tools. Could you describe your use case?

Thanks.

---

<div class="post-metadata">

**Author:** ![dina.mazloum](https://dhis2.b-cdn.net/letter_avatar_proxy/v4/letter/d/e9bcb4/32.png) [@dina.mazloum](https://community.dhis2.org/u/dina.mazloum)\
**Post date:** [27 April 2021 10:44 UTC](https://community.dhis2.org/t/qr-code-data-element/42592/3 "2021-04-27T10:44:24Z")

</div>

Thank you for your reply @jaime.bosque  
I need to configure the QR Code in order to be able to scan a QR for each member I register. How could it be done ?  
So scanning by opening the camera and then save the value of the qr

---

<div class="post-metadata">

**Author:** ![dina.mazloum](https://dhis2.b-cdn.net/letter_avatar_proxy/v4/letter/d/e9bcb4/32.png) [@dina.mazloum](https://community.dhis2.org/u/dina.mazloum)\
**Post date:** [28 April 2021 07:18 UTC](https://community.dhis2.org/t/qr-code-data-element/42592/4 "2021-04-28T07:18:24Z")

</div>

any advise ? @jaime.bosque

---

<div class="post-metadata">

**Author:** ![jaime.bosque](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/jaime.bosque/32/42220_2.png) [@jaime.bosque](https://community.dhis2.org/u/jaime.bosque)\
**Post date:** [28 April 2021 07:31 UTC](https://community.dhis2.org/t/qr-code-data-element/42592/5 "2021-04-28T07:31:46Z")

</div>

Ok, @dina.mazloum . I think I misunderstood you.

If I get what you want to do is having somewhere a QR/Barcode (i.e. a passport, product box, etc) and you want the Android App to be able to read this QR code and put that value into a data element. Is that correct?

---

<div class="post-metadata">

**Author:** ![dina.mazloum](https://dhis2.b-cdn.net/letter_avatar_proxy/v4/letter/d/e9bcb4/32.png) [@dina.mazloum](https://community.dhis2.org/u/dina.mazloum)\
**Post date:** [28 April 2021 12:07 UTC](https://community.dhis2.org/t/qr-code-data-element/42592/6 "2021-04-28T12:07:44Z")

</div>

yes exactlyyyy!!! @jaime.bosque

---

<div class="post-metadata">

**Author:** ![jaime.bosque](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/jaime.bosque/32/42220_2.png) [@jaime.bosque](https://community.dhis2.org/u/jaime.bosque)\
**Post date:** [28 April 2021 12:15 UTC](https://community.dhis2.org/t/qr-code-data-element/42592/7 "2021-04-28T12:15:58Z")

</div>

Ok! Then, what you need to do is create a text Attribute and/or Data Element and render it as QR or barcode as desired. The process is described in the official doc:  
[Home - DHIS2 Documentation](https://docs.dhis2.org/en/implement/configuring-the-android-app/new-visual-configurations.html#capture_app_visual_render_qr)

So basically, this is how it would look in the administration panel:

 ![image](https://dhis2.b-cdn.net/uploads/default/original/3X/d/0/d0cf12cdcca02d0182a2be525104f9c727b96779.png)

Please note this is only available in Android and not in the desktop version

---

<div class="post-metadata">

**Author:** ![dina.mazloum](https://dhis2.b-cdn.net/letter_avatar_proxy/v4/letter/d/e9bcb4/32.png) [@dina.mazloum](https://community.dhis2.org/u/dina.mazloum)\
**Post date:** [28 April 2021 12:25 UTC](https://community.dhis2.org/t/qr-code-data-element/42592/8 "2021-04-28T12:25:04Z")

</div>

Thank you so much for you support

---

<div class="post-metadata">

**Author:** ![hernandezmachava](https://dhis2.b-cdn.net/letter_avatar_proxy/v4/letter/h/34f0e0/32.png) [@hernandezmachava](https://community.dhis2.org/u/hernandezmachava)\
**Post date:** [28 April 2021 12:44 UTC](https://community.dhis2.org/t/qr-code-data-element/42592/9 "2021-04-28T12:44:25Z")

</div>

Hi @jaime.bosque,

How Server URL can be set via a QR code for easier Login in android phones or tablets?

Thanks

---

<div class="post-metadata">

**Author:** ![jaime.bosque](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/jaime.bosque/32/42220_2.png) [@jaime.bosque](https://community.dhis2.org/u/jaime.bosque)\
**Post date:** [28 April 2021 13:03 UTC](https://community.dhis2.org/t/qr-code-data-element/42592/10 "2021-04-28T13:03:12Z")

</div>

Hello @hernandezmachava . For this you just need to go to any QR generator site and enter the URL to generate a QR that you can later on print or share with your colleagues.

For example:

 ![image](https://dhis2.b-cdn.net/uploads/default/original/3X/3/1/31355258ed97dc6322ef4831b58628fd0b05394c.png)

The app, can use text or QR to login by clicking on the icon next to the URL address at the entry screen.

---

<div class="post-metadata">

**Author:** ![hernandezmachava](https://dhis2.b-cdn.net/letter_avatar_proxy/v4/letter/h/34f0e0/32.png) [@hernandezmachava](https://community.dhis2.org/u/hernandezmachava)\
**Post date:** [28 April 2021 13:33 UTC](https://community.dhis2.org/t/qr-code-data-element/42592/11 "2021-04-28T13:33:39Z")

</div>

Hi @jaime.bosque,

I can not see any button to print the QR.

Thanks

---

<div class="post-metadata">

**Author:** ![jaime.bosque](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/jaime.bosque/32/42220_2.png) [@jaime.bosque](https://community.dhis2.org/u/jaime.bosque)\
**Post date:** [28 April 2021 14:11 UTC](https://community.dhis2.org/t/qr-code-data-element/42592/12 "2021-04-28T14:11:08Z")

</div>

You can click on “SAVE” button to download it and past it in a document that you can edit and printer later on.

---

<div class="post-metadata">

**Author:** ![hernandezmachava](https://dhis2.b-cdn.net/letter_avatar_proxy/v4/letter/h/34f0e0/32.png) [@hernandezmachava](https://community.dhis2.org/u/hernandezmachava)\
**Post date:** [28 April 2021 14:27 UTC](https://community.dhis2.org/t/qr-code-data-element/42592/13 "2021-04-28T14:27:52Z")

</div>

Hi @jaime.bosque,

I managed to save and download the QR.

Thanks

---

<div class="post-metadata">

**Author:** ![Matthew\_Boddie](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/matthew_boddie/32/34043_2.png) [@Matthew\_Boddie](https://community.dhis2.org/u/Matthew_Boddie)\
**Post date:** [20 May 2022 15:29 UTC](https://community.dhis2.org/t/qr-code-data-element/42592/14 "2022-05-20T15:29:42Z")

</div>

@hernandezmachava and @jaime.bosque While using the QR code functionality for Android, I’m seeing a ]Q1 appearing as a prefix to every code I scan. I can confirm that this is happening across android versions (2.4 and 2.6), across DEs and TEAs, and across multiple devices. I can create a ticket obviously, but wondering if this is something that others have seen before? We’re on 2.35 DHIS2 version.

cc @chase.freeman

Update: Nevermind! I see it here: [[ANDROAPP-4745] - Jira](https://jira.dhis2.org/browse/ANDROAPP-4745)

---

<div class="post-metadata">

**Author:** ![jamal\_aljadan](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/jamal_aljadan/32/37493_2.png) [@jamal\_aljadan](https://community.dhis2.org/u/jamal_aljadan)\
**Post date:** [15 November 2023 09:17 UTC](https://community.dhis2.org/t/qr-code-data-element/42592/15 "2023-11-15T09:17:31Z")

</div>

Hi @jaime.bosque and @Matthew_Boddie  
Unfortunately, I encountered the same problem with the Android application by reading the QR code where ]d2 appeared as a prefix to every code I scanned.  
I used the Android app version 2.8.2

---

<div class="post-metadata">

**Author:** ![Matthew\_Boddie](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/matthew_boddie/32/34043_2.png) [@Matthew\_Boddie](https://community.dhis2.org/u/Matthew_Boddie)\
**Post date:** [15 November 2023 12:47 UTC](https://community.dhis2.org/t/qr-code-data-element/42592/16 "2023-11-15T12:47:22Z")

</div>

@jamal_aljadan interesting–I can’t replicate this (also on 2.8.2) in our server setup. Can you send a video/replicate it on Play?

---

<div class="post-metadata">

**Author:** ![jamal\_aljadan](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/jamal_aljadan/32/37493_2.png) [@jamal\_aljadan](https://community.dhis2.org/u/jamal_aljadan)\
**Post date:** [20 November 2023 17:39 UTC](https://community.dhis2.org/t/qr-code-data-element/42592/17 "2023-11-20T17:39:54Z")

</div>

Hello @Matthew_Boddie  
Thank you for your replying.  
The issue was discovered when I used the GS1 DataMatrix Code.  
Android app showed [d2 as a prefix for every code I scanned but when I used the QR code the app showed the correct value without any addition.

---

<div class="post-metadata">

**Author:** ![Matthew\_Boddie](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/matthew_boddie/32/34043_2.png) [@Matthew\_Boddie](https://community.dhis2.org/u/Matthew_Boddie)\
**Post date:** [31 January 2024 18:35 UTC](https://community.dhis2.org/t/qr-code-data-element/42592/18 "2024-01-31T18:35:03Z")

</div>

@jamal_aljadan Did you get around this? I am now hearing reports of ]d2 appearing as a prefix for QR code scanning in versions 2.8.2 and 2.9

---

<div class="post-metadata">

**Author:** ![jamal\_aljadan](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/jamal_aljadan/32/37493_2.png) [@jamal\_aljadan](https://community.dhis2.org/u/jamal_aljadan)\
**Post date:** [31 January 2024 19:34 UTC](https://community.dhis2.org/t/qr-code-data-element/42592/19 "2024-01-31T19:34:10Z")

</div>

Hello @Matthew_Boddie  
I just changed Mobile render type from Gs1 datamatrix to Qr code from the Attribute section in the Program Tracker.  
I encountered an issue with the Android app while scanning GS1 DataMatrix codes. The app consistently added a “[d2” prefix to every code I scanned. This behavior was not observed when using the QR code, which displayed the correct values without any additions.

---

<div class="post-metadata">

**Author:** ![Matthew\_Boddie](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/matthew_boddie/32/34043_2.png) [@Matthew\_Boddie](https://community.dhis2.org/u/Matthew_Boddie)\
**Post date:** [8 February 2024 14:28 UTC](https://community.dhis2.org/t/qr-code-data-element/42592/20 "2024-02-08T14:28:11Z")

</div>

Thanks alot @jamal_aljadan . I can confirm that this is still very much an issue for GS1 DataMatrix codes (and that its not a problem for QR Codes). Your comment saved me a tone of time @jamal_aljadan !!
