# Function createDocumentID

- createDocumentID(value: string): DocumentID

  Factory function to create a validated Document ID

  #### Parameters

  - value: string

    String to convert to Document ID

  #### Returns DocumentID

  Branded Document ID

  #### Throws

  If value is not a valid Document ID format

  #### Example

      const docId = createDocumentID("A9-2024/0123");
      const doc = await getDocument(docId);

  #### Security

  Input validation prevents injection attacks

  - Defined in types/branded.ts:270