If you want to work as a doctor in Germany with foreign training, you must apply for a license (approbation). If you come to Germany as a late repatriate, special regulations may apply.
If you have suffered harm as a result of unlawful detention, you can claim social compensation benefits.