Module Expr Str Import alias alias Import alias alias alias alias ImportFrom alias ImportFrom alias alias alias alias alias alias alias alias alias alias alias ImportFrom alias alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body If UnaryOpNot Call NameLoad AttributeLoad NameLoad attr Str body Return Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Call NameLoad Str attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Str If NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str keyword NameLoad If BoolOpAnd NameLoad CompareEq Call NameLoad NameLoad Num body Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Num attr Assign NameStore CompareEq NameLoad Str Assign NameStore CompareEq NameLoad Str If BoolOpOr CompareEq AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr CompareEq AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call NameLoad NameLoad For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign TupleStore NameStore NameStore AttributeLoad NameLoad attr If CompareEq NameLoad Str body Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr AttributeLoad NameLoad attr Assign NameStore Set Str Str Str Str Str Str Str Str Str Assign NameStore Dict Assign NameStore Set Str Str Str Assign NameStore Dict Assign NameStore Set Str Str Str Assign NameStore Dict Assign NameStore Set Str Str Assign NameStore Dict Assign NameStore Dict FunctionDef arguments args NameParam defaults body For NameStore NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If CompareGtE Call NameLoad NameLoad Str Num Num body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr If BoolOpAnd Call AttributeLoad NameLoad attr NameLoad CompareIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad NameLoad orelse If BoolOpAnd Call AttributeLoad NameLoad attr NameLoad CompareIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad NameLoad orelse If BoolOpAnd Call AttributeLoad NameLoad attr NameLoad CompareIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad NameLoad orelse If BoolOpAnd Call AttributeLoad NameLoad attr NameLoad CompareIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign NameStore TupleLoad AttributeLoad NameLoad attr IfExp CompareIsNot NameLoad NameLoad AttributeLoad NameLoad attr NameLoad IfExp CompareIsNot NameLoad NameLoad AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body If CompareIn NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str keyword TupleLoad NameLoad NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index NameLoad NameLoad If AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr TryExcept body If CompareLt AttributeLoad NameLoad attr Num body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad handlers ExceptHandler type NameLoad body Pass If AttributeLoad NameLoad attr body Expr Call NameLoad AttributeLoad NameLoad attr decorator_list Expr Call NameLoad AttributeLoad NameLoad attr If NameLoad body If CompareNotIn Str NameLoad body Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str keyword NameLoad orelse If CompareLt AttributeLoad SubscriptLoad NameLoad Index Str attr Str body Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str keyword NameLoad For TupleStore NameStore NameStore NameStore NameStore TupleLoad TupleLoad NameLoad Str Call NameLoad Str Str TupleLoad NameLoad Str Call NameLoad Str Str TupleLoad NameLoad Str Call NameLoad Str Str TupleLoad NameLoad Str Call NameLoad Str Str TupleLoad NameLoad Str Call NameLoad Str Str TupleLoad NameLoad Str Call NameLoad Str Str TupleLoad NameLoad Str Call NameLoad Str Str body If CompareNotIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad keyword NameLoad keyword TupleLoad Str Str Str Str Str Str Str If BoolOpAnd CompareNotIn Str NameLoad CompareNotIn Str NameLoad body Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str keyword NameLoad If BoolOpAnd CompareNotIn Str NameLoad CompareNotIn Str NameLoad body Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str keyword NameLoad If BoolOpAnd CompareNotIn Str NameLoad CompareNotIn Str NameLoad body Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str keyword NameLoad If NameLoad body If CompareNotIn Str NameLoad body Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str keyword NameLoad orelse Assign NameStore AttributeLoad SubscriptLoad NameLoad Index Str attr For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If CompareNotEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str keyword NameLoad keyword NameLoad keyword Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str Num decorator_list decorator_list
N/A N/A 
Created on May 20, 2011

@author: Mark V Systems Limited
(c) Copyright 2011 Mark V Systems Limited, All rights reserved.

based on http://www.hmrc.gov.uk/ebu/ct_techpack/joint-filing-validation-checks.pdf

Deprecated Nov 15, 2015.  Use plugin/validate/HMRC/__init__.py

 N/A xml.dom xml.parsers N/A os re collections datetime collections defaultdict arelle ModelObject ModelDocument ModelValue ValidateXbrl ModelRelationshipSet XmlUtil XbrlConst UrlUtil ValidateFilingDimensions ValidateFilingDTS ValidateFilingText arelle.XmlValidate UNVALIDATED VALID ValidateHmrc N/A N/A ValidateXbrl ValidateXbrl N/A __init__ N/A N/A self modelXbrl N/A N/A N/A N/A N/A N/A super ValidateHmrc self __init__ modelXbrl N/A validate N/A N/A self modelXbrl parameters N/A None N/A N/A N/A N/A hasattr N/A modelXbrl modelDocument xmlDocument N/A N/A N/A busNamespacePattern N/A N/A re compile ^http://www\.xbrl\.org/uk/cd/business N/A gaapNamespacePattern N/A N/A re compile ^http://www\.xbrl\.org/uk/gaap/core N/A ifrsNamespacePattern N/A N/A re compile ^http://www\.iasb\.org/.*ifrs N/A direpNamespacePattern N/A N/A re compile ^http://www\.xbrl\.org/uk/reports/direp N/A labelHasNegativeTermPattern N/A N/A re compile .*[(].*\w.*[)].* N/A N/A N/A N/A super ValidateHmrc self validate modelXbrl parameters N/A xbrlInstDoc N/A N/A modelXbrl modelDocument xmlDocument N/A N/A self modelXbrl modelXbrl N/A N/A N/A N/A modelXbrl modelManager showStatus N/A N/A N/A _ validating {0} format N/A N/A self disclosureSystem name N/A isAccounts N/A N/A XmlUtil hasAncestor N/A N/A modelXbrl modelDocument xmlRootElement http://www.govtalk.gov.uk/taxation/CT/3 Accounts N/A isComputation N/A N/A XmlUtil hasAncestor N/A N/A modelXbrl modelDocument xmlRootElement http://www.govtalk.gov.uk/taxation/CT/3 Computation N/A parameters N/A N/A p N/A N/A N/A self parameters get N/A N/A ModelValue qname type noPrefixIsNoNamespace True N/A N/A p N/A N/A len p 2 N/A N/A paramType N/A N/A N/A p N/A 1 lower N/A isAccounts N/A paramType accounts N/A isComputation N/A paramType computation N/A N/A N/A N/A N/A modelXbrl modelDocument type N/A N/A ModelDocument Type INSTANCE N/A N/A N/A modelXbrl modelDocument type N/A N/A ModelDocument Type INLINEXBRL N/A N/A companyReferenceNumberContexts N/A defaultdict list N/A c1 N/A N/A N/A modelXbrl contexts values N/A N/A N/A scheme identifier N/A c1 entityIdentifier N/A N/A scheme http://www.companieshouse.gov.uk/ N/A N/A N/A N/A N/A companyReferenceNumberContexts N/A identifier append N/A c1 id N/A busLocalNames N/A EntityCurrentLegalOrRegisteredName StartDateForPeriodCoveredByReport EndDateForPeriodCoveredByReport BalanceSheetDate DateApprovalAccounts NameDirectorSigningAccounts EntityDormant EntityTrading UKCompaniesHouseRegisteredNumber N/A busItems N/A N/A gaapLocalNames N/A DateApprovalAccounts NameDirectorSigningAccounts ProfitLossForPeriod N/A gaapItems N/A N/A ifrsLocalNames N/A DateAuthorisationFinancialStatementsForIssue ExplanationOfBodyOfAuthorisation ProfitLoss N/A ifrsItems N/A N/A direpLocalNames N/A DateSigningDirectorsReport DirectorSigningReport N/A direpItems N/A N/A uniqueFacts N/A checkFacts N/A N/A facts N/A N/A N/A f1 facts N/A N/A context N/A f1 context N/A unit N/A f1 unit N/A N/A N/A getattr f1 xValid 0 4 N/A N/A factNamespaceURI N/A N/A f1 qname namespaceURI N/A factLocalName N/A N/A f1 qname localName N/A N/A N/A N/A busNamespacePattern match factNamespaceURI N/A factLocalName busLocalNames N/A N/A N/A busItems N/A factLocalName f1 N/A N/A N/A N/A N/A gaapNamespacePattern match factNamespaceURI N/A factLocalName gaapLocalNames N/A N/A N/A gaapItems N/A factLocalName f1 N/A N/A N/A N/A N/A ifrsNamespacePattern match factNamespaceURI N/A factLocalName ifrsLocalNames N/A N/A N/A ifrsItems N/A factLocalName f1 N/A N/A N/A N/A N/A direpNamespacePattern match factNamespaceURI N/A factLocalName direpLocalNames N/A N/A N/A direpItems N/A factLocalName f1 N/A dupKey N/A N/A f1 concept N/A N/A context None N/A context contextDimAwareHash None N/A N/A unit None N/A unit hash None N/A f1 xmlLang N/A N/A context None N/A N/A N/A f1 uniqueFacts N/A N/A f2 N/A uniqueFacts N/A f1 N/A N/A N/A f1 effectiveValue N/A f2 effectiveValue N/A N/A N/A N/A modelXbrl error HMRC.14 N/A _ Inconsistent duplicate facts %(fact)s context %(contextID)s and %(contextID2)s. modelObject N/A f1 f2 fact N/A f1 qname contextID N/A f1 contextID contextID2 N/A f2 contextID N/A N/A uniqueFacts N/A dupKey f1 N/A N/A f1 isNumeric N/A N/A N/A f1 precision N/A N/A N/A N/A modelXbrl error HMRC.5.4 N/A _ Numeric fact %(fact)s of context %(contextID)s has a precision attribute '%(precision)s' modelObject f1 fact N/A f1 qname contextID N/A f1 contextID precision N/A f1 precision N/A N/A N/A N/A N/A f1 xValue 0 N/A N/A label N/A N/A N/A f1 concept label lang en N/A N/A N/A N/A labelHasNegativeTermPattern match label N/A N/A N/A N/A modelXbrl error HMRC.5.3 N/A _ Numeric fact %(fact)s of context %(contextID)s has a negative value '%(value)s' but label does not have a bracketed negative term (using parentheses): %(label)s modelObject f1 fact N/A f1 qname contextID N/A f1 contextID value N/A f1 value label label N/A N/A N/A AttributeError N/A N/A N/A N/A f1 modelTupleFacts N/A N/A N/A checkFacts N/A f1 modelTupleFacts N/A N/A N/A checkFacts N/A modelXbrl facts N/A isAccounts N/A N/A N/A StartDateForPeriodCoveredByReport busItems N/A N/A N/A N/A modelXbrl error HMRC.02 N/A _ Period Start Date (uk-bus:StartDateForPeriodCoveredByReport) is missing. modelObject modelXbrl N/A N/A N/A N/A N/A busItems N/A StartDateForPeriodCoveredByReport value 2008-04-06 N/A N/A N/A N/A modelXbrl error HMRC.02 N/A _ Period Start Date (uk-bus:StartDateForPeriodCoveredByReport) must be 6 April 2008 or later. modelObject modelXbrl N/A N/A items name msg ref N/A N/A busItems EntityCurrentLegalOrRegisteredName N/A _ Company Name (uk-bus:EntityCurrentLegalOrRegisteredName) is missing. 01 N/A busItems EndDateForPeriodCoveredByReport N/A _ Period End Date (uk-bus:EndDateForPeriodCoveredByReport) is missing. 03 N/A busItems BalanceSheetDate N/A _ Balance Sheet Date (uk-bus:BalanceSheetDate) is missing. 06 N/A busItems EntityDormant N/A _ Dormant/non-dormant indicator (uk-bus:EntityDormant) is missing. 09 N/A busItems EntityTrading N/A _ Trading/non-trading indicator (uk-bus:EntityTrading) is missing. 10 N/A direpItems DateSigningDirectorsReport N/A _ Date of signing Directors Report (uk-direp:DateSigningDirectorsReport) is missing. 12 N/A direpItems DirectorSigningReport N/A _ Name of Director signing Directors Report (uk-direp:DirectorSigningReport) is missing. 13 N/A N/A N/A name items N/A N/A N/A N/A modelXbrl error N/A N/A HMRC.{0} format ref msg modelObject modelXbrl messageCodes N/A HMRC.01 HMRC.03 HMRC.06 HMRC.09 HMRC.10 HMRC.12 HMRC.13 N/A N/A N/A DateApprovalAccounts gaapItems N/A DateAuthorisationFinancialStatementsForIssue ifrsItems N/A N/A N/A N/A modelXbrl error HMRC.07 N/A _ Balance Sheet Date of Approval (uk-gaap:DateApprovalAccounts) is missing OR Balance Sheet Date of Approval (uk-ifrs:DateAuthorisationFinancialStatementsForIssue) is missing. modelObject modelXbrl N/A N/A N/A NameDirectorSigningAccounts gaapItems N/A ExplanationOfBodyOfAuthorisation ifrsItems N/A N/A N/A N/A modelXbrl error HMRC.08 N/A _ Name of Director Approving Balance Sheet (uk-gaap:NameDirectorSigningAccounts) is missing OR Name of Director Approving Balance Sheet (ifrs:ExplanationOfBodyOfAuthorisation) is missing. modelObject modelXbrl N/A N/A N/A ProfitLossForPeriod gaapItems N/A ProfitLoss ifrsItems N/A N/A N/A N/A modelXbrl error HMRC.11 N/A _ Profit or Loss for the period (uk-gaap:ProfitLossForPeriod OR ifrs:ProfitLoss) is missing. modelObject modelXbrl N/A companyReferenceNumberContexts N/A N/A N/A UKCompaniesHouseRegisteredNumber busItems N/A N/A N/A N/A modelXbrl error HMRC.16.1 N/A _ Company Reference Number (uk-bus:UKCompaniesHouseRegisteredNumber) is missing. modelObject modelXbrl N/A N/A factCompNbr N/A N/A busItems N/A UKCompaniesHouseRegisteredNumber value N/A N/A compRefNbr contextIds N/A N/A companyReferenceNumberContexts items N/A N/A N/A compRefNbr factCompNbr N/A N/A N/A N/A modelXbrl error HMRC.16.2 N/A _ Context entity identifier (%(entityIdentifier)s) does not match Company Reference Number (uk-bus:UKCompaniesHouseRegisteredNumber) Location: Accounts (context id %(contextID)s). modelObject modelXbrl entityIdentifier compRefNbr contextID N/A N/A , join contextIds N/A N/A N/A N/A modelXbrl modelManager showStatus N/A _ ready 2000 N/A N/A