A health and wellness app handles data that the law treats with more rigor: information about a person's health is sensitive personal data. This does not prevent the app from existing, but it changes the project from the start: collect only what is necessary, ask for specific consent when applicable, limit who has access, protect storage and plan how the person corrects or deletes what they entered.
This guide is for anyone who is going to create or commission an app for tracking habits, sleep, mood, pregnancy, nutrition, training, appointments or mental health, and who wants to know what to take care of with sensitive data before talking about screens. It is not legal advice: the legal basis and the texts for your product should be defined with a lawyer. It also shows Luna's cost and timeline ranges.
What the LGPD says about health data
In Article 5, item II, Law 13,709/2018 (the LGPD, Brazil's General Data Protection Law) treats as sensitive personal data, among other things, "personal data concerning health or sex life, genetic or biometric data, when linked to a natural person". Article 11 establishes that the processing of sensitive data "may only occur in the following cases", and the first of them is the consent of the data subject or of their legal guardian, "in a specific and highlighted manner, for specific purposes". The same article provides for cases without consent, such as compliance with a legal or regulatory obligation by the controller, among others the law lists that depend on the situation.
In addition, the principles of Article 6 apply to all personal data: purpose ("legitimate, specific, explicit and informed purposes to the data subject"), necessity ("limitation of processing to the minimum necessary") and security (protection of data against "unauthorized access"). Article 46 repeats the duty to adopt these security measures. In short: with health data, "more or less" does not work; every field collected needs a recorded reason.
What counts as health data in an app
The boundary is broader than it seems. The following are usually handled with the care that sensitive data requires:
| Type of data | Example in an app | Extra care |
|---|---|---|
| Diagnosis, test, medication | List of medicines and reminders | Access only for the user and whoever they authorize |
| Measurements and vital signs | Weight, blood pressure, blood glucose, heart rate | Exportable and deletable history |
| Mental health and mood | Emotional diary | Never in a notification with visible text on the lock screen |
| Reproductive health and pregnancy | Cycle, weeks of pregnancy | No sharing with third parties without clear consent |
| Biometrics | Fingerprint or face for login | Prefer the device's native feature, without storing the image |
| Indirect data | Product purchases, searches and location that reveal a condition | Assess whether, taken together, they indicate a health problem |
An example of an app that deals with this area, pregnancy, is the Entre Mães case.
Collect only what is necessary
The question that decides the scope is: what is this data used for on the screen? If no function uses it, it should not be collected. In practice:
- Make a list of each field in the sign-up and in use, and write the purpose next to it.
- Replace open fields with options where possible, so the person doesn't write more than necessary.
- Make optional everything that is not essential for the app to work.
- Don't ask for the CPF (Brazilian individual tax ID), full address or exact date of birth if an age range solves the need.
- Define how long each piece of data is kept and what happens afterward.
Consent the person understands
"Specific and highlighted" consent is not a checkbox buried in the middle of the terms of use. Good design practices:
- A dedicated screen that explains, in plain language, which health data will be used and for what.
- A clear choice for each purpose, not a single blanket acceptance.
- An equally easy way to withdraw consent in the settings.
- A record of when and what was accepted, so it can be proven.
- Extra care with minors, who are subject to their own rules under the law; consult a lawyer.
Security: what to do in practice
The law requires "technical and administrative" measures. In an app, the most important are:
- Minimum access: each team profile sees only what it needs. See multi-user system with permissions by profile.
- Encryption in transit and at rest, and passwords never stored in plain text.
- Access log: who viewed or changed whose health data, and when.
- Separation: identification data kept apart from health data, when the app allows it.
- Test environments without real data: developers do not use the production database.
- Backups that are protected and have a disposal schedule.
- Incident response plan: who notifies whom, and within how long, if there is a leak.
No list guarantees total security. What is expected is a set of measures consistent with the risk of the data, maintained and reviewed. The starting outline for small businesses is in LGPD in systems for small businesses.
Sharing and third parties
Every external service that receives health data is a third party to consider: usage analytics, sending notifications, cloud storage, support chat, artificial intelligence. Before connecting any of them:
- Confirm that the service really needs to receive that data.
- Read the supplier's data processing terms.
- Avoid sending health data to advertising and behavioral analysis tools.
- If you use AI, define whether what the person types is sent to an external service and tell them so in the app. See artificial intelligence for businesses.
The app is not a clinic
A wellness app should make clear what it does and what it does not do. General guidance texts do not replace a consultation. Diagnosis, prescription and interpretation of tests are acts reserved for qualified professionals, and an app that seems to offer them without a responsible professional tends to create risk for both the users and whoever publishes it. If the app connects the person to a professional, the design now involves the professional's system; an example of scope is in system for a medical or dental clinic. The specific rules of each profession and of the app stores for this type of app should be checked before publishing.
How much it costs and how long it takes
In health, every extra piece of data adds to the project. Luna's ranges for the most common scenarios:
| Scenario | Expected investment | Expected timeline |
|---|---|---|
| Simple tracking, with sign-up and history (app MVP) | $125 to $890 for the simplest tracking | 3 to 10 days |
| Full app with reminders, charts and a panel | $460 to $9,210 (goes up with reminders, charts and profiles) | 2 weeks to 3 months (goes up with reminders, charts and profiles) |
| Professionals and patients with different profiles (multi-user) | $890 to $1,810 | 2 to 4 weeks |
| Clinic system, with medical records and scheduling (clinic project) | $890 to $2,760 | 3 to 8 weeks |
Health data requires more hours of design, testing and access review, which usually pushes the project into the larger ranges. Legal advice and any security audit are separate costs, depending on scope. Recurring costs are covered in how much it costs to maintain an app.
Common mistakes
- Collecting "for the future": data without a purpose is risk without benefit.
- Consent hidden in the terms: it is not "specific and highlighted".
- A notification that reveals the condition: sensitive text on the lock screen.
- A team with full access: everyone sees everything about everyone.
- Real data in a test environment: sensitive data on a developer's machine.
- Sending health data to advertising or analytics tools without need.
- No way to delete the account: the person cannot leave or request deletion.
Checklist before hiring
- A list of each piece of data collected, with its purpose and retention period.
- Which of them are health data, and the legal basis defined with a lawyer.
- A dedicated consent screen and a way to withdraw consent.
- Team access profiles and a record of who accesses what.
- A list of third-party services that will receive data, with the justification for each.
- An incident response plan and the contact of the person responsible.
- A way for users to export and delete their own data.
How Luna does it
At Luna Next-Gen, projects that handle health data start with the data inventory and the access design, before the screens, and follow the smallest cycle that works. The payment method is agreed in the proposal, and there is a 6-month warranty for bug fixes. The legal side stays with your lawyer; we make sure the app can deliver what they define. To get a sense of the size, use the budget estimator (in Portuguese). If you already have a health app in mind, ask for a quote.
Frequently asked questions
What does the LGPD consider sensitive data in a health app?
Article 5, item II, of the LGPD (Brazil's General Data Protection Law) lists health or sex life data, genetic data and biometric data, when linked to a natural person, among sensitive personal data. Diagnoses, medications, vital signs, mental health and reproductive health usually fall into this category.
Do I need consent to process health data?
Article 11 of the LGPD lists the cases in which sensitive data may be processed; the first is the data subject's consent, given in a specific and highlighted way for specific purposes. There are other cases, such as compliance with a legal obligation, that depend on the situation. Define your app's legal basis with a lawyer.
Can I use analytics and advertising tools in a health app?
With care. Sending health data to advertising or behavioral analysis tools requires justification and a legal basis, and the practical recommendation is to avoid it. Always confirm that the service really needs the data and read the supplier's data processing terms.
How much does a health and wellness app cost?
It depends on the scope. Using Luna's ranges, an app MVP falls between $125 and $890 (3 to 10 days), and a full app between $460 and $9,210 (2 weeks to 3 months). A clinic system falls between $890 and $2,760 (3 to 8 weeks). Sensitive data requires more hours of design and review, which is included in the proposal.
How do I protect users' health data?
Combine minimum access by profile, encryption in transit and at rest, a log of who accesses each piece of data, test environments without real data, protected backups and an incident response plan. The LGPD requires technical and administrative measures suitable for protecting the data.
Can the app give health guidance or diagnoses?
General wellness content is different from diagnosis or prescription, which are acts reserved for qualified professionals. The app should make clear what it does and what it does not do. The rules of each profession and of the app stores for this type of app should be checked before publishing.