DocumentType

Type of document with business rules and properties.

8 properties
Schema

Properties

PropertyTypeModeDescriptionRequired
codestring
stored

Unique document type code

Example: "INVOICE"

Required
labelstring
stored

Human-readable label

Example: "Invoice"

Required
categorystring
stored

Category of document

Values: commercial, identity, consent, insurance, medical, legal, administrative, other

Example: "commercial"

Required
descriptionstring
stored

Detailed description of this document type

Optional
isAccountingDocumentboolean
stored

Whether this is an accounting/fiscal document

Example: true

Optional
requiresSignatureboolean
stored

Whether this document requires signature

Optional
hasLegalValueboolean
stored

Whether this document has legal/contractual value

Example: true

Optional
hasExpirationDateboolean
stored

Whether this document type has an expiration date

Optional

Examples

Example 1

{
  "@type": "DocumentType",
  "code": "QUOTE",
  "label": "Quote",
  "category": "commercial",
  "description": "Proposal document with no legal value until accepted",
  "isAccountingDocument": false,
  "requiresSignature": false,
  "hasLegalValue": false
}

Example 2

{
  "@type": "DocumentType",
  "code": "ORDER",
  "label": "Purchase Order",
  "category": "commercial",
  "description": "Commitment to purchase, legally binding when accepted",
  "isAccountingDocument": false,
  "requiresSignature": true,
  "hasLegalValue": true
}

Example 3

{
  "@type": "DocumentType",
  "code": "INVOICE",
  "label": "Invoice",
  "category": "commercial",
  "description": "Accounting and fiscal document requesting payment",
  "isAccountingDocument": true,
  "requiresSignature": false,
  "hasLegalValue": true
}

Example 4

{
  "@type": "DocumentType",
  "code": "ID_CARD",
  "label": "Identity Card",
  "category": "identity",
  "description": "National identity card or government-issued ID",
  "requiresSignature": false,
  "hasLegalValue": true,
  "hasExpirationDate": true
}

Example 5

{
  "@type": "DocumentType",
  "code": "PASSPORT",
  "label": "Passport",
  "category": "identity",
  "description": "Travel passport document",
  "requiresSignature": false,
  "hasLegalValue": true,
  "hasExpirationDate": true
}

Example 6

{
  "@type": "DocumentType",
  "code": "INSURANCE_CARD",
  "label": "Insurance Card",
  "category": "insurance",
  "description": "Health insurance membership card",
  "requiresSignature": false,
  "hasLegalValue": false,
  "hasExpirationDate": true
}

Example 7

{
  "@type": "DocumentType",
  "code": "CONSENT_TREATMENT",
  "label": "Treatment Consent",
  "category": "consent",
  "description": "Consent for medical treatment",
  "requiresSignature": true,
  "hasLegalValue": true,
  "hasExpirationDate": false
}

Example 8

{
  "@type": "DocumentType",
  "code": "CONSENT_DATA",
  "label": "Data Processing Consent",
  "category": "consent",
  "description": "Consent for personal data processing (GDPR/HIPAA)",
  "requiresSignature": true,
  "hasLegalValue": true,
  "hasExpirationDate": false
}

Example 9

{
  "@type": "DocumentType",
  "code": "MEDICAL_CERTIFICATE",
  "label": "Medical Certificate",
  "category": "medical",
  "description": "Certificate issued by a healthcare professional",
  "requiresSignature": true,
  "hasLegalValue": true,
  "hasExpirationDate": true
}

Example 10

{
  "@type": "DocumentType",
  "code": "PRESCRIPTION",
  "label": "Prescription",
  "category": "medical",
  "description": "Medication prescription",
  "requiresSignature": true,
  "hasLegalValue": true,
  "hasExpirationDate": true
}

Example 11

{
  "@type": "DocumentType",
  "code": "LAB_RESULTS",
  "label": "Laboratory Results",
  "category": "medical",
  "description": "Results from laboratory tests",
  "requiresSignature": false,
  "hasLegalValue": false,
  "hasExpirationDate": false
}

Example 12

{
  "@type": "DocumentType",
  "code": "POWER_OF_ATTORNEY",
  "label": "Power of Attorney",
  "category": "legal",
  "description": "Legal authority to make decisions on behalf of another",
  "requiresSignature": true,
  "hasLegalValue": true,
  "hasExpirationDate": true
}