# Pharma Pack

File: `AdminApp/data/crm/feature-packs/pharma_pack.json`
Profile: `taskco-crm-pharma`
Domain: Lead → Doctor · Deal → Order · Contact → Contact

---

```json
{
  "slug": "pharma_pack",
  "name": "Pharma CRM",
  "version": "1.0.0",
  "entity_domain_maps": [
    {"entity_type": "lead",    "label": "Doctor",  "label_plural": "Doctors"},
    {"entity_type": "deal",    "label": "Order",   "label_plural": "Orders"},
    {"entity_type": "contact", "label": "Contact", "label_plural": "Contacts"}
  ],
  "custom_fields": {
    "lead": [
      {"slug": "preferred_country",    "label": "Territory",
       "type": "select", "is_searchable": true,
       "options": ["North", "South", "East", "West", "Central"]},
      {"slug": "specialty",            "label": "Medical Specialty",
       "type": "select",
       "options": ["GP", "Cardiologist", "Oncologist", "Neurologist", "Dermatologist", "Other"]},
      {"slug": "hospital_affiliation", "label": "Hospital / Clinic",       "type": "text"},
      {"slug": "monthly_prescription", "label": "Monthly Prescriptions",   "type": "number"},
      {"slug": "visit_frequency",      "label": "Visit Frequency",
       "type": "select",
       "options": ["Weekly", "Biweekly", "Monthly", "Quarterly"]}
    ],
    "deal": [
      {"slug": "product_name",      "label": "Product Name",        "type": "text"},
      {"slug": "country",           "label": "Territory",
       "type": "text", "is_searchable": true},
      {"slug": "quantity",          "label": "Quantity (Units)",     "type": "number"},
      {"slug": "unit_price",        "label": "Unit Price (USD)",     "type": "number"},
      {"slug": "expected_delivery", "label": "Expected Delivery",    "type": "date"}
    ],
    "contact": []
  },
  "pipelines": [
    {
      "slug": "pharma_doctor_pipeline",
      "name": "Doctor Engagement",
      "pipeline_type": "lead",
      "is_default": true,
      "stages": [
        {"slug": "identification", "name": "Identification",       "sort_order": 1, "color": "#6366f1"},
        {"slug": "first_visit",    "name": "First Visit",          "sort_order": 2, "color": "#3b82f6"},
        {"slug": "follow_up",      "name": "Follow Up",            "sort_order": 3, "color": "#f59e0b"},
        {"slug": "prescription",   "name": "Prescription Started", "sort_order": 4, "color": "#8b5cf6"},
        {"slug": "key_account",    "name": "Key Account",          "sort_order": 5, "color": "#10b981", "is_won": true}
      ]
    },
    {
      "slug": "pharma_order_pipeline",
      "name": "Order Pipeline",
      "pipeline_type": "deal",
      "is_default": true,
      "stages": [
        {"slug": "order_received", "name": "Order Received", "sort_order": 1, "color": "#6366f1"},
        {"slug": "processing",     "name": "Processing",     "sort_order": 2, "color": "#3b82f6"},
        {"slug": "dispatched",     "name": "Dispatched",     "sort_order": 3, "color": "#f59e0b"},
        {"slug": "delivered",      "name": "Delivered",      "sort_order": 4, "color": "#10b981", "is_won": true}
      ]
    }
  ],
  "workflow_rules": []
}
```

## Notes

- `preferred_country` maps to sales territory (North/South/East/West/Central) — real column stores the zone value
- `country` on deals also stores territory for deal-level reporting
- No auto-assign rule — MRs are assigned by territory manager
