XML 59 R48.htm IDEA: XBRL DOCUMENT
v3.8.0.1

Related Party Transactions - Additional Information (Details) $ in Thousands | 3 Months Ended |  |
--- | --- | --- | ---
Mar. 31, 2018 USD ($) RenewalOption Agreement Building | Mar. 31, 2017 USD ($) | Dec. 31, 2017 USD ($) | Dec. 31, 2016 Parcel
Related Party Transaction [Line Items] |  |  |  |
Reimbursed out-of-pocket revenue with related parties |  | $ 700 |  |
Accounts receivable and unbilled, net | 1,300 |  | $ 1,000 |
Advanced billings | 300 |  | 1,700 |
Pre-funded study costs with related parties |  |  | 1,000 |
Deemed landlord liability, long-term portions | 26,091 |  | 26,602 |
Revenue, Net |  |  |  |
Related Party Transaction [Line Items] |  |  |  |
Revenue with related parties | 1,500 |  |  |
Employee Loans | Prepaid Expenses and Other Current Assets and Other Assets |  |  |  |
Related Party Transaction [Line Items] |  |  |  |
Employee advances receivables | 200 |  | 200 |
Service Agreements | Coherus Bio Sciences Inc |  |  |  |
Related Party Transaction [Line Items] |  |  |  |
Revenue with related parties |  | 3,300 |  |
Reimbursed out-of-pocket revenue with related parties |  | 600 |  |
Accounts receivable and unbilled, net |  |  | 300 |
Advanced billings |  |  | 1,500 |
Pre-funded study costs with related parties |  |  | 1,000 |
Service Agreements | Xenon |  |  |  |
Related Party Transaction [Line Items] |  |  |  |
Revenue with related parties |  | 500 |  |
Service Agreements | Cymabay |  |  |  |
Related Party Transaction [Line Items] |  |  |  |
Revenue with related parties |  | 100 |  |
Accounts receivable and unbilled, net | 600 |  | 100 |
Advanced billings | 100 |  |  |
Service Agreements | Cymabay | Revenue, Net |  |  |  |
Related Party Transaction [Line Items] |  |  |  |
Revenue with related parties | 700 |  |  |
Service Agreements | LIB |  |  |  |
Related Party Transaction [Line Items] |  |  |  |
Revenue with related parties |  | 100 |  |
Accounts receivable and unbilled, net | 700 |  | 500 |
Advanced billings | 200 |  | 200 |
Service Agreements | LIB | Revenue, Net |  |  |  |
Related Party Transaction [Line Items] |  |  |  |
Revenue with related parties | 800 |  |  |
Purchase of Real Estate Properties | Chief Executive Officer |  |  |  |
Related Party Transaction [Line Items] |  |  |  |
Number of parcel in real estate property | Parcel |  |  |  | 4
Purchase price of real estate property | $ 400 |  |  |
Transaction closed date | Jan. 11, 2017 |  |  |
Leased Real Estate | Chief Executive Officer |  |  |  |
Related Party Transaction [Line Items] |  |  |  |
Term of lease | 12 years |  |  |
Lease expiration period | 2022-11 |  |  |
Number of lease renewal, 10-year option | RenewalOption | 1 |  |  |
Lease term upon renewal | 10 years |  |  |
Lease expense recognized | $ 500 | 500 |  |
Leased Real Estate | Chief Executive Officer And Immediate Family |  |  |  |
Related Party Transaction [Line Items] |  |  |  |
Number of lease renewal, 10-year option | RenewalOption | 1 |  |  |
Number of lease agreements | Agreement | 2 |  |  |
Number of buildings | Building | 2 |  |  |
Lease occupancy year | 2012 |  |  |
Lease expiration year | 2027 |  |  |
Lease term upon renewal | 10 years |  |  |
Term of lease | 15 years |  |  |
Related party capital lease payments | $ 1,000 | 900 |  |
Deemed landlord liability, current | 2,000 |  | 1,900 |
Deemed landlord liability, long-term portions | 26,100 |  | 26,600 |
Leased Real Estate | Property and Equipment, Net | Chief Executive Officer And Immediate Family | Building |  |  |  |
Related Party Transaction [Line Items] |  |  |  |
Deemed assets, net | 15,900 |  | $ 16,300 |
Travel Services | Chief Executive Officer |  |  |  |
Related Party Transaction [Line Items] |  |  |  |
Travel expenses with related party | $ 400 | $ 300 |  |

X
- Definition Accounts receivable and unbilled, related parties, current. + References No definition available. + Details
Name: | medp_AccountsReceivableAndUnbilledRelatedPartiesCurrent
Namespace Prefix: | medp_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Advanced billings represents cash received from related parties or billed amounts per an agreed upon payment schedule where cash has not been received in advance of services being performed or revenue being recognized. + References No definition available. + Details
Name: | medp_DeferredRevenueCurrentWithRelatedParties
Namespace Prefix: | medp_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Lease expiration month and year. + References No definition available. + Details
Name: | medp_LeaseExpirationMonthAndYear
Namespace Prefix: | medp_
Data Type: | xbrli:gYearMonthItemType
Balance Type: | na
Period Type: | duration

X
- Definition Lease expiration year. + References No definition available. + Details
Name: | medp_LeaseExpirationYear
Namespace Prefix: | medp_
Data Type: | xbrli:gYearItemType
Balance Type: | na
Period Type: | duration

X
- Definition Lease occupancy year. + References No definition available. + Details
Name: | medp_LeaseOccupancyYear
Namespace Prefix: | medp_
Data Type: | xbrli:gYearItemType
Balance Type: | na
Period Type: | duration

X
- Definition Lessee leasing arrangements capital leases renewal term. + References No definition available. + Details
Name: | medp_LesseeLeasingArrangementsCapitalLeasesRenewalTerm
Namespace Prefix: | medp_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Lessee leasing arrangements capital leases term of contract. + References No definition available. + Details
Name: | medp_LesseeLeasingArrangementsCapitalLeasesTermOfContract
Namespace Prefix: | medp_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Number of buildings. + References No definition available. + Details
Name: | medp_NumberOfBuilding
Namespace Prefix: | medp_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | duration

X
- Definition Number of lease agreements. + References No definition available. + Details
Name: | medp_NumberOfLeaseAgreements
Namespace Prefix: | medp_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | duration

X
- Definition Number of lease renewal options. + References No definition available. + Details
Name: | medp_NumberOfLeaseRenewalOptions
Namespace Prefix: | medp_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | duration

X
- Definition Funds received from related parties in advance of study expenditures. + References No definition available. + Details
Name: | medp_PreFundedStudyCostsWithRelatedParties
Namespace Prefix: | medp_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Reimbursed out-of-pocket revenue with related parties including, but not limited to, travel, meetings, printing, and shipping and handling fees. + References No definition available. + Details
Name: | medp_ReimbursedOutOfPocketRevenueWithRelatedParties
Namespace Prefix: | medp_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Related party capital lease payments. + References No definition available. + Details
Name: | medp_RelatedPartyCapitalLeasePayments
Namespace Prefix: | medp_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of capital lease obligation due within one year or the normal operating cycle, if longer. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 840 -SubTopic 30 -Section 50 -Paragraph 1 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=84164817&loc=d3e45280-112737 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(19)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 840 -SubTopic 30 -Section 45 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=84164758&loc=d3e45023-112735 + Details
Name: | us-gaap_CapitalLeaseObligationsCurrent
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount equal to the present value (the principal) at the beginning of the lease term of minimum lease payments during the lease term (excluding that portion of the payments representing executory costs such as insurance, maintenance, and taxes to be paid by the lessor, together with any profit thereon) net of payments or other amounts applied to the principal, through the balance sheet date and due to be paid more than one year (or one operating cycle, if longer) after the balance sheet date. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 840 -SubTopic 30 -Section 50 -Paragraph 1 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=84164817&loc=d3e45280-112737 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 840 -SubTopic 30 -Section 45 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=84164758&loc=d3e45023-112735 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.22) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 + Details
Name: | us-gaap_CapitalLeaseObligationsNoncurrent
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The total gross amount less the charge for the use of the long-lived depreciable assets subject to a lease meeting the criteria for capitalization. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 840 -SubTopic 30 -Section 50 -Paragraph 1 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=84164817&loc=d3e45280-112737 + Details
Name: | us-gaap_CapitalLeasesBalanceSheetAssetsByMajorClassNet
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition For an unclassified balance sheet, amounts due from an Entity employee, not to include stockholders or officers. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 235 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.4-08.(k)(1)) -URI http://asc.fasb.org/extlink&oid=26873400&loc=d3e23780-122690 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-03.3) -URI http://asc.fasb.org/extlink&oid=6879938&loc=d3e572229-122910 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 850 -SubTopic 10 -Section 50 -Paragraph 1 -Subparagraph (d) -URI http://asc.fasb.org/extlink&oid=6457730&loc=d3e39549-107864 Reference 4: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 850 -SubTopic 10 -Section 50 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=6457730&loc=d3e39599-107864 + Details
Name: | us-gaap_DueFromEmployees
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of rent expense incurred for leased assets, including but not limited to, furniture and equipment, that is not directly or indirectly associated with the manufacture, sale or creation of a product or product line. + References No definition available. + Details
Name: | us-gaap_LeaseAndRentalExpense
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Term of lessee's operating lease renewal, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 50 -Paragraph 3 -Subparagraph (a)(3) -URI http://asc.fasb.org/extlink&oid=77888426&loc=SL77918673-209980 + Details
Name: | us-gaap_LesseeLeasingArrangementsOperatingLeasesRenewalTerm
Namespace Prefix: | us-gaap_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Term of lessee's operating lease, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 50 -Paragraph 3 -Subparagraph (a)(3) -URI http://asc.fasb.org/extlink&oid=77888426&loc=SL77918673-209980 + Details
Name: | us-gaap_LesseeLeasingArrangementsOperatingLeasesTermOfContract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition The number of units in a real estate property owned as of the balance sheet date. + References No definition available. + Details
Name: | us-gaap_NumberOfUnitsInRealEstateProperty
Namespace Prefix: | us-gaap_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | instant

X
- Definition The cash outflow from the acquisition of a piece of land, anything permanently fixed to it, including buildings, structures on it and so forth; includes real estate intended to generate income for the owner; excludes real estate acquired for use by the owner. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 13 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=98514028&loc=d3e3213-108585 + Details
Name: | us-gaap_PaymentsToAcquireRealEstate
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Date of maturity or expiration of arrangements with a related party (for example, but not limited to, leasing and debt arrangements between related parties), in CCYY-MM-DD format. + References No definition available. + Details
Name: | us-gaap_RelatedPartyTransactionDate
Namespace Prefix: | us-gaap_
Data Type: | xbrli:dateItemType
Balance Type: | na
Period Type: | duration

X
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. + References No definition available. + Details
Name: | us-gaap_RelatedPartyTransactionLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of revenue, fees and commissions earned from transactions between (a) a parent company and its subsidiaries; (b) subsidiaries of a common parent; (c) an entity and trusts for the benefit of employees, for example, but not limited to, pension and profit-sharing trusts that are managed by or under the trusteeship of the entity's management; (d) an entity and its principal, owners, management, or members of their immediate families; and (e) affiliates. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 225 -SubTopic 10 -Section S99 -Paragraph 2 -Subparagraph (SX 210.5-03.1(e)) -URI http://asc.fasb.org/extlink&oid=63488584&loc=d3e20235-122688 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 946 -SubTopic 225 -Section S99 -Paragraph 1 -Subparagraph (SX 210.6-07.1(c)) -URI http://asc.fasb.org/extlink&oid=6488393&loc=d3e606610-122999 + Details
Name: | us-gaap_RevenueFromRelatedParties
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Expenses incurred for travel and entertainment during the period. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 225 -SubTopic 10 -Section S99 -Paragraph 2 -Subparagraph (SX 210.5-03.4) -URI http://asc.fasb.org/extlink&oid=63488584&loc=d3e20235-122688 + Details
Name: | us-gaap_TravelAndEntertainmentExpense
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Details
Name: | us-gaap_IncomeStatementLocationAxis=medp_RevenueNetMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_RelatedPartyTransactionAxis=medp_EmployeeLoansMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_BalanceSheetLocationAxis=medp_PrepaidExpensesAndOtherCurrentAssetsAndOtherAssetsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_RelatedPartyTransactionAxis=medp_RelatedPartyServiceAgreementsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_RelatedPartyTransactionsByRelatedPartyAxis=medp_CoherusBioSciencesIncMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_RelatedPartyTransactionsByRelatedPartyAxis=medp_XenonClinicalBiopharmaceuticalCompanyMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_RelatedPartyTransactionsByRelatedPartyAxis=medp_CymabayTherapeuticsCompanyMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_RelatedPartyTransactionsByRelatedPartyAxis=medp_LIBTherapeuticsLLCMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_RelatedPartyTransactionAxis=medp_PurchaseOfRealEstatePropertiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_RelatedPartyTransactionsByRelatedPartyAxis=us-gaap_ChiefExecutiveOfficerMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_RelatedPartyTransactionAxis=medp_LeasedRealEstateMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_RelatedPartyTransactionsByRelatedPartyAxis=medp_ChiefExecutiveOfficerAndImmediateFamilyMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_BalanceSheetLocationAxis=medp_PropertyAndEquipmentNetMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_PropertyPlantAndEquipmentByTypeAxis=us-gaap_BuildingMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_RelatedPartyTransactionAxis=medp_TravelServicesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |