# Patient Import

Import patients exported from a clinic platform (Jane first), after converting them to Micromeet's patient format.

```bash
micromeet crms patients import --file ./jane-import.json --vendor jane --dry-run
micromeet crms patients import --file ./jane-import.json --vendor jane
```

- Run with `--dry-run` first to check without importing.
- Running the same file again is safe: patients are matched by the platform's patient id.
- `--replace-relations` treats the file as the complete list of each patient's relations and removes ones no longer in it.
- The summary counts created and updated patients and lists each refused item. Any refused item makes the command fail.

## Related

- [Command Reference](https://docs.micromeet.ai/cli/command-reference.md)
