Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDave1999 committed Mar 23, 2024
1 parent 1a46173 commit e0e29d5
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ DentallApp is a web application with chatbot for appointment management, reminde
- [Installation](#installation)
- [Plugin configuration](#plugin-configuration)
- [Credentials](#credentials)
- [Validate identity documents](#validate-identity-documents)
- [Diagrams](#diagrams)
- [General architecture](#general-architecture)
- [Core layer](#core-layer)
Expand Down Expand Up @@ -204,6 +205,20 @@ Request body:
}
```

## Validate identity documents

To validate identity documents, it depends largely on the country where the dental office is located. At the moment, we can only validate identity documents registered in Ecuador.

You can enable it from the configuration file, e.g.
```.env
PLUGINS="
Plugin.IdentityDocument.Ecuador.dll
"
```
In case there is no plugin loaded to validate the identity document, the host application will use a fake provider called [FakeIdentityDocument](https://github.com/DentallApp/back-end/blob/dev/src/Infrastructure/Services/FakeIdentityDocument.cs).

It was decided to implement the logic to validate identity documents from a plugin, because it is flexible, since it allows to change the implementation without having to modify the source code of the host application.

## Diagrams

### General architecture
Expand Down

0 comments on commit e0e29d5

Please sign in to comment.