Skip to content

Doctor entity

Generate doctors with identity, specialty, licence, experience, hospital, and contact data.

Why: Use Doctor when clinical workflows need a coherent provider identity with specialty, licence, experience, hospital, and contact data; use NpiGenerator for an isolated provider identifier.

1
<variable name="value" entity="Doctor"/>

Output: Typed Doctor value.

Parameters

  • dataset: str | null; Default None — Country dataset used for provider identity, licence, and contact values.

Attributes

  • accepting_new_patients (bool): Whether the doctor accepts new patients.
  • address (dict): Structured postal address fields.
  • age (int): Calculated age in years.
  • birthdate (datetime): Date of birth.
  • certifications (list[str]): Professional certifications held.
  • doctor_id (str): Synthetic identifier with DOC prefix.
  • email (str): Primary email address.
  • family_name (str): Doctor family name.
  • full_name (str): Concatenated full name.
  • gender (str): Gender token inherited from person profile.
  • given_name (str): Doctor given name.
  • graduation_year (int): Year of graduation from medical school.
  • hospital (Hospital): Associated hospital entity.
  • license_number (str): State medical licence identifier.
  • medical_school (str): Medical school attended.
  • npi_number (str): 10-digit National Provider Identifier.
  • office_hours (dict[str, str]): Weekly office hours schedule.
  • phone (str): Generic contact phone number.
  • specialty (str): Primary medical specialty.
  • years_of_experience (int): Total years of practising experience.

Limits

The available attributes and values depend on the registered entity, its dataset, and its documented constructor options.