BackgroundWith significant advancements in the area of precision medicine, the breadth and complexity of the relevant knowledge in the field has increased significantly. However, the difficulty associated with dynamic modelling and the disorganization of such knowledge hinders its rapid development potential.ResultsTo overcome the difficulty in using the relational database model for dynamic modelling, and to aid in the organization of precision medicine knowledge, we developed the Mind Mapping Knowledgebase Prototyping (MMKP) tool. The MMKP implements a novel design that we call a “polymorphic foreign key”, which allows the establishment of a logical linkage between a single table field and a record from any table. This design has advantages in supporting dynamic changes to the structural relationships in precision medicine knowledge. Knowledge stored in MMKP is presented as a mind map to facilitate human interaction. When using this tool, medical experts may curate the structure and content of the precision knowledge in a flow that is similar to the human thinking process.ConclusionsThe design of polymorphic foreign keys natively supports knowledge modelling in the form of mind mapping, which avoids the hard-coding of medical logic into a rigid database schema and significantly reduces the workload that is required for adapting a relational data model to future changes to the medical logic. The MMKP tool provides a graphical user interface for both data management and knowledgebase prototyping. It supports the flexible customization of the data field constraints and annotations. MMKP is available as open-source code on GitHub: https://github.com/ZjuLiangsl/mmkp.