--- title: "Medical Notes Setup" description: "Configure a medical notes mapping so Leyr can translate its note templates into the fields of each EHR." canonical_url: "http://localhost/product/leyr-setup/medical-notes" --- # Medical Notes Setup > Configure a medical notes mapping so Leyr can translate its note templates into the fields of each EHR. Medical notes allow you to create and retrieve clinical documentation in the EHR on behalf of your users. Before you can use the [Medical Notes API](https://api.leyr.io/docs#tag/Medical-Notes), you need to configure a **medical notes mapping** for the EHR in your application settings in the [Developer Portal](https://leyr.io/developers). ## What is a medical notes mapping? Different EHRs structure clinical notes differently - some use templates with named fields, others use a single free-text area. The medical notes mapping tells Leyr how to translate between a [Leyr template](#leyr-templates) and the corresponding template in the EHR. Each mapping connects: - a **Leyr template** (e.g. `leyr_unstructured`) to the matching template in the EHR - each **Leyr field** in that template to the corresponding field name or ID in the EHR ## Leyr Templates Leyr defines a set of standard templates. Each template has a fixed set of content fields that your integration sends when creating a note.
| Template ID | Description |
|---|---|
leyr_unstructured
|
Single free-text field - the simplest and most widely supported template |
leyr_acute_visit
|
Acute visit note |
leyr_new_visit_psychology
|
Structured psychology intake note with fields for reason of visit, anamnesis, assessment, and plan |
leyr_follow_up_visit_psychology
|
Structured follow-up psychology note |
leyr_care_status
|
Nursing care status note with clinical fields |