Class ComplexConceptBlockProcessor

java.lang.Object
org.asciidoctor.extension.BaseProcessor
org.asciidoctor.extension.BlockProcessor
network.ike.docs.koncept.ComplexConceptBlockProcessor
All Implemented Interfaces:
org.asciidoctor.extension.Processor

@Name("complex-concept") @Contexts(":listing") @ContentModel(":raw") public class ComplexConceptBlockProcessor extends org.asciidoctor.extension.BlockProcessor
The [complex-concept] block in the documentation build: the static projection of the complex concept editor the assistant surface draws for the same block (dev-decision-point-knowledge). It reads the block store-free (ComplexConceptSource) and puts in its place the document form of the editor: one sentence naming the concept, what it is a kind of and what its expansion focuses on, then a table with one row per prerequisite, each an ANF performance statement whose circumstance fixes the result, the statement's topic, the result in words, and the value as written with its unit.
[complex-concept, title="The decision point"]
----
concept: k:SurveillanceDecision[Surveillance imaging decision after aneurysm seal] @id=rda-surveillance-decision
  expansion: focused k:ImagingDecision[Surveillance imaging decision] @id=rda-imaging-decision
    prerequisite: k:AneurysmSealed[Intracranial aneurysm sealed by endovascular treatment] @id=rda-aneurysm-sealed
      value = [1,1] k:Presence[presence] @id=rda-presence
----
A concept with a SNOMED CT identifier or a UUID is a Koncept chip; one whose identifier is a symbol local to the document is set in italics with the role koncept-local, the dashed chip of the live surface, and a note says so. The block is remembered by its identifier, so a [decision-tree] later in the document whose decision names it says which decision point it is. A block with no readable root renders as a literal block, so the text is visible, never dropped. The output is AsciiDoc re-parsed in place, so it is backend-agnostic.
  • Field Summary

    Fields inherited from class org.asciidoctor.extension.BlockProcessor

    name
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new block processor instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    process(org.asciidoctor.ast.StructuralNode parent, org.asciidoctor.extension.Reader reader, Map<String,Object> attributes)
     

    Methods inherited from class org.asciidoctor.extension.BlockProcessor

    getName, setName

    Methods inherited from class org.asciidoctor.extension.BaseProcessor

    createBlock, createBlock, createBlock, createBlock, createBlock, createBlock, createBlock, createDocument, createList, createList, createList, createListItem, createListItem, createPhraseNode, createPhraseNode, createPhraseNode, createPhraseNode, createPhraseNode, createPhraseNode, createSection, createSection, createSection, createSection, createSection, createTable, createTable, createTableCell, createTableCell, createTableCell, createTableCell, createTableColumn, createTableColumn, createTableRow, getConfig, log, newCursor, newCursor, newCursor, newReader, newReader, newReader, newReader, parseContent, setConfig, unwrap, updateConfig

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ComplexConceptBlockProcessor

      public ComplexConceptBlockProcessor()
      Creates a new block processor instance.
  • Method Details

    • process

      public Object process(org.asciidoctor.ast.StructuralNode parent, org.asciidoctor.extension.Reader reader, Map<String,Object> attributes)
      Specified by:
      process in class org.asciidoctor.extension.BlockProcessor