Clinical trial protocol conflict detection method based on knowledge graph
By using a knowledge graph-based approach, a knowledge graph of rule assertions and object instances is established, forming activity snapshots, compiling time relationships and conditional rules. This solves the consistency problem of multi-document rule object association and conflict detection in clinical trial protocols, and achieves accurate conflict identification and consistency updates.
Patent Information
- Application Number
- CN202611636143.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-22
- Publication Date
- 2026-11-27
AI Technical Summary
Existing technologies struggle to effectively identify and resolve issues related to multi-document rule object association, cross-time benchmark combination detection, and post-revision evidence maintenance in clinical trial protocols, resulting in insufficient consistency in conflict localization and resolution decisions.
A knowledge graph-based approach is adopted to create an activity snapshot by establishing a knowledge graph of rule assertions, object instances, and time anchors. This compiles time relationships and conditional rules, performs joint satisfiability checks, recompiles and reduces the source clause conflict set, updates conflict evidence, and ensures consistency before and after revision.
It enables accurate association and conflict identification of rules in clinical trial protocols, reduces rule omissions and erroneous resolution decisions, and improves the accuracy and consistency of conflict detection.
Smart Images

Figure CN123182876A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of clinical trial information processing, and more particularly to a method for detecting clinical trial protocol conflicts based on knowledge graphs. Background Technology
[0002] The visit arrangements, examination items, sample collection conditions, and data collection requirements in the clinical trial protocol are jointly expressed by the main text of the protocol, the visit flowchart, revision documents, and the data collection rule documents. Consistency checks on these electronic documents require converting textual and tabular rules into associative data objects and identifying the corresponding visit, procedure, sample, and data fields. With ongoing protocol revisions, it is also necessary to determine the source version and scope of application of each rule to form the testing input for that specific version.
[0003] When using name matching or item-by-item verification, different names of the same operation may not be associated, and instances of the same operation concept in different visits or samples may be merged. When the time window uses the screening date, randomization date, or first dosing date as the baseline, simply comparing the time values in the rules cannot directly determine the joint temporal relationship between events; and simply performing pairwise rule checks cannot rule out situations where multiple temporal relationships and conditional obligations cannot be satisfied simultaneously.
[0004] Furthermore, interpreting revisions as a complete overhaul of the entire document might cause older rules not falling within the scope of replacement to be excluded from detection; conversely, deleting only the results corresponding to the changed rules while retaining the anchor derivations that depend on those rules might allow the continued use of invalid evidence. Conversely, the loss of support for one conflicting piece of evidence does not mean that other sources no longer constitute a conflict. The lack of joint processing of source dependencies and the scope of revision-related constraints will affect the consistency of conflict localization and resolution determination.
[0005] Therefore, there is a need for a knowledge graph-based clinical trial protocol conflict detection method that can address the shortcomings of the existing technologies. Summary of the Invention
[0006] One objective of this invention is to propose a knowledge graph-based method for detecting conflicts in clinical trial protocols. Addressing the problems of existing technologies in multi-document rule object association, cross-time benchmark combination detection, and post-revision evidence maintenance, this invention proposes a technical solution involving source-based assertion knowledge graphs, activity snapshot screening, joint time and condition solving, and reduction of the source clause conflict set. By distinguishing object instances and preserving the original anchor relationships, the solution evidence is expanded to the source clauses. When a revision occurs, the failure derivation is revoked along the supporting relationships. The system is recompiled and detected within the complete relevant components of the union of the two variable-constraint association graphs before and after the revision. The conflict evidence is updated based on the new results, and unknown inputs are retained as pending verification. This invention possesses the technical effects of identifying cross-benchmark joint constraint conflicts, tracing direct sources and associated effects, and reducing residual failure derivations and erroneous resolution decisions.
[0007] This invention provides a knowledge graph-based method for detecting conflicts in clinical trial protocols, comprising: S1 receives clinical trial rule files, extracts rule assertions that retain their source location, version, and scope of application, distinguishes object instances involved in the rules, and establishes a knowledge graph connecting rule assertions, object instances, and time anchors; S2, based on the target version and scope of application, selects valid rule assertions from the knowledge graph that have not been replaced or revoked within the corresponding scope, and forms an activity snapshot; S3 compiles the temporal relationships and conditional rules in the activity snapshot into differential constraints and conditional logic constraints that retain the source, establishing source support relationships for the derivation formed by anchor point transformation; S4, perform joint satisfiability testing on the test scenarios that must be supported, and provide source support for the solution evidence for the unsatisfiable scenarios. Recompile and reduce the source clauses by grouping them into groups, and obtain a set of source clause conflicts that cannot be further deleted. S5, Receive rule revisions, update the activity snapshot and revoke the derivation and conflict evidence of inactive assertion support along the source support relationship, recompile, detect and reduce the complete constraint components associated with the revision based on the original assertions of the new snapshot activity, and update the conflict set; S6 outputs the conflict set, source location, and affected clauses based on the detection results and knowledge graph. The conflict is only marked as resolved when the re-detection can satisfy the conditions and the required anchor point, object identity, and conditions have been determined. Undetermined information affecting the determination is output as pending verification status.
[0008] Optionally, S1 includes: extracting each rule from the main body of the protocol, the visit process table, the revised document, and the data collection rule file into rule assertions, and recording the document identifier, document version, main body paragraph or table cell position, business effective period, system record period, and scope of application. The scope of application is limited by the trial queue, treatment group, visit, and triggering conditions to which the rule applies. Associate names representing the same operational concept with the same concept identifier, distinguish object instances based on visit attribution, sample identifier, and the identity relationship explicitly given in the rules, and set instance identifiers for operations corresponding to different visits or different samples respectively; A knowledge graph is built using rule assertions, document versions, visit instances, operation instances, samples, data fields, and time anchors as nodes, and source, dependency, relative time, condition triggering, and substitution relationships as edges, while preserving the source assertions corresponding to the object associations.
[0009] Optionally, S2 includes: receiving snapshot query conditions consisting of target version, business time point, system record time point, and scope of application to be detected; and filtering rule assertions in the knowledge graph that the version belongs to the document set under the target version, the business effective period covers the business time point, the system record period covers the system record time point, and the scope of application intersects with the scope of application to be detected. The rule revision is parsed as addition, replacement, revocation, and scope change. Only when there is a clear identifier of the replaced or revoked assertion and its scope of application, the corresponding old assertion is removed from the active snapshot within the intersection of its scope of application and its original scope of application. Outside the intersection, the valid part of the old assertion is retained. The filtered rule assertions and their respective valid parts are combined to form an activity snapshot.
[0010] Optionally, S3 includes: representing the events and time anchors associated with the object instance as time variables, and converting the time window of the event relative to the time anchor and the original relationship between different time anchors into difference constraints that limit the upper or lower bound of the difference between the two time variables. Convert the sample collection conditions, collection obligations, and data field requirements into conditional logic constraints that use conditional propositions and object instances as operation objects, so that the events in the conditional logic constraints and the corresponding events in the difference constraints use the same instance identifier; Save the source assertions and applicable scope for each compilation constraint, use the compilation constraints corresponding to the original active assertion as the detection input, and establish the source support relationship pointing to the original anchor relationship and the object association basis for each upper or lower bound obtained by anchor point transformation; Furthermore, derivation evidence is established for each upper or lower bound obtained from the anchor point transformation. The derivation evidence records the original anchor point relationship, the version of the leaf-level source assertion, the time measurement convention, and the common domain of application. The common domain of application is the intersection of the applicable scope of each premise assertion. Based on the time measurement convention, the time unit, the day boundary and the endpoint inclusion rules are unified, and valid derivation evidence is generated only when the common applicable domain is not empty and the preconditions can be jointly satisfied. For different derivation paths with the same upper or lower bound, save the derivation evidence separately, establish a reverse index from each leaf-level source assertion version to the derivation evidence containing that version, use the reverse index as the retrieval structure of the source support relationship, so that when a support is inactive, only the evidence that depends on that support is withdrawn, and when other valid evidence still exists, the valid part of the corresponding conclusion is retained.
[0011] Optionally, S4 includes: establishing scenario conditions based on the trial cohort, treatment group, visit and triggering conditions explicitly required by the clinical trial rule document, and jointly solving differential constraints and conditional logic constraints under each scenario condition; When the solution result is unsatisfiable, extract the solution evidence of the unsatisfiable constraint, expand along the source support relationship to the source assertion on which the original anchor relationship and object association depend, and group the expanded source assertions according to the document version and original clause identifier. Given fixed scenario conditions and the scope of application to be tested, the original assertions in the candidate clause group are recompiled to verify unsatisfiability. If unsatisfiability cannot be reproduced, the candidate clause group is expanded to the clause group corresponding to all original assertions of activities within the scenario. Try deleting one clause group at a time and remove the derivation that depends on the deleted group. Recompile and solve from the remaining clause groups. Only retain the deletion if it is still unsatisfiable. Repeat the deletion trial until deleting any of the remaining clause groups can no longer keep unsatisfiable. Determine the remaining clause groups as the source clause conflict set that cannot be deleted further. When a solution exception occurs that makes it impossible to determine satisfiability, the incomplete state is retained, and the incomplete reduction result is not marked as no longer deletable.
[0012] Optionally, S5 includes: saving the old snapshot before the revision and generating the new snapshot after the revision, and constructing variable-constraint association graphs with time variables, conditional propositions and compilation constraints as nodes and variables or conditional propositions participating in compilation constraints as associated edges; Starting with the variables and conditional propositions involved in the assertions that have been added, deactivated, or have changed in scope of application due to revision, the two variable-constraint relationship graphs before and after the revision are merged. The complete connected component containing the starting point is taken from the resulting union set, and the variables, conditional propositions, and adjacent constraints in the component are taken as the recalculation scope. This deactivates the old support within the scope of the revision's effect and removes the time projection and conflict evidence that depend on the old support along the source support relationship; From the new snapshot, extract the original assertions of the activities within the recalculation scope, recompile, solve jointly, and reduce by grouping by source clauses to generate a new set of conflicts and new evidence to replace the old results; When the boundaries of independent components cannot be determined, the process falls back to recompiling, detecting, and reducing all original assertions for the new snapshot. Furthermore, component fingerprints are generated for independent components not included in the recalculation scope. The component fingerprints are jointly determined by the original assertion content and version of the activity, the object instance identifier, the original anchor relationship, the applicable scope, the scenario conditions, the time measurement convention, and the compilation rule version. The old detection results and still valid evidence are reused only when the variables and conditional propositions of the old and new components are not related to the recalculation range and the component fingerprints are the same; otherwise, the corresponding components are included in the recalculation range. When the conditional propositions or object associations of the connected components change, the recalculation scope is redefined and recalculated in both the variable-constraint association diagrams before and after the revision.
[0013] Optionally, S6 includes: outputting the scope of application, inference evidence, and source location for the conflict set, where the source location includes the corresponding text paragraph, table cell, and data collection field location; Search for other clauses in the dependency conflict set along the dependency relationships in the knowledge graph, list the other clauses as affected clauses, and output them separately from the clauses that directly cause conflict. Compare the detection results of the same scenario and overlapping applicable scope before and after the revision. If there are other sources that still cause conflict, output the persistent conflict and the updated evidence. Output the conflict resolution only when the re-detection can meet the requirements and the required anchor point, object identity and conditions have been determined. Record the reasons for unverified anchor points, undetermined object identities, unresolved conditions, and incomplete solutions, and maintain a distinction from verified results; Furthermore, the activity snapshot identifier, scenario conditions, scope of application, original assertion of the activity and its source version, object association basis, time measurement convention, compilation rule version and source clause grouping record are associated and saved with the test results to form a replay record; Restore the detection input based on the replay record, re-execute the joint satisfiability test and source clause grouping reduction, and map the newly obtained conflict clause group to the saved source location; The revision differences record the changes in directly conflicting clauses and their evidence, the affected clauses where dependencies are reached, and the changes in the pending status.
[0014] The beneficial effects of this invention are: 1. By preserving the source location, version, and scope of application for rule assertions, and distinguishing object instances of the same operational concept in different visits and samples, cross-document expressions are associated with distinguishable data objects; by updating activity snapshots within a clear alternative scope, the rules involved in the detection correspond to the target version and scope of application, reducing rule omissions caused by erroneous object merging or complete overwriting.
[0015] 2. By jointly compiling and solving the original anchor point relationship, event time window, and conditional obligation, combined conflicts that cannot be eliminated by single or pairwise rule checks can be identified; by expanding source support, recompiling clause groups, and reducing them group by group, the reasons for non-satisfaction are located to the set of source clauses that cannot be further deleted, and direct evidence and dependency effects are output respectively, preserving replayable evidence for cross-document verification.
[0016] 3. By recording derivation evidence and reverse indexes, the derivation supported by the source of inactivation is revoked within the revision scope; the recalculation range is determined by the union of the two variable-constraint association graphs before and after revision, and the original assertion is solved again. This allows for updating evidence when alternative evidence still constitutes a conflict, and confirming the release when the input is complete and the resolution is satisfactory. Independent components are reused only when the fingerprints are consistent, ensuring that cache updates and conflict state determinations maintain a correspondence. Attached Figure Description
[0017] The accompanying drawings are provided to further illustrate the invention and form part of the specification. They are used in conjunction with embodiments of the invention to explain the invention and do not constitute a limitation thereof. In the drawings: Figure 1 This is a flowchart of the clinical trial protocol conflict detection method based on knowledge graphs according to the present invention.
[0018] Figure 2 This is a flowchart of the S4 joint satisfiability detection and source clause conflict set reduction in this invention. Detailed Implementation
[0019] The present invention will now be described in further detail with reference to the accompanying drawings. These drawings are simplified schematic diagrams, illustrating only the basic structure of the invention, and therefore only show the components relevant to the invention.
[0020] refer to Figures 1-2 Knowledge graph-based methods for detecting conflicts in clinical trial protocols include: S1 receives clinical trial rule files, extracts rule assertions that retain their source location, version, and scope of application, distinguishes object instances involved in the rules, and establishes a knowledge graph connecting rule assertions, object instances, and time anchors; S2, based on the target version and scope of application, selects valid rule assertions from the knowledge graph that have not been replaced or revoked within the corresponding scope, and forms an activity snapshot; S3 compiles the temporal relationships and conditional rules in the activity snapshot into differential constraints and conditional logic constraints that retain the source, establishing source support relationships for the derivation formed by anchor point transformation; S4, perform joint satisfiability testing on the test scenarios that must be supported, and provide source support for the solution evidence for the unsatisfiable scenarios. Recompile and reduce the source clauses by grouping them into groups, and obtain a set of source clause conflicts that cannot be further deleted. S5, Receive rule revisions, update the activity snapshot and revoke the derivation and conflict evidence of inactive assertion support along the source support relationship, recompile, detect and reduce the complete constraint components associated with the revision based on the original assertions of the new snapshot activity, and update the conflict set; S6 outputs the conflict set, source location, and affected clauses based on the detection results and knowledge graph. The conflict is only marked as resolved when the re-detection can satisfy the conditions and the required anchor point, object identity, and conditions have been determined. Undetermined information affecting the determination is output as pending verification status.
[0021] In this specific embodiment, S1 includes: This specific implementation method is executed by the clinical trial rule management server. The server is equipped with a file parsing module, a map maintenance module, a constraint compilation module, and a detection module. It receives the protocol text, visit flowchart, revision documents, and data collection rule files of the same trial. After the files enter the version repository, the content summary is calculated based on the original bytes. The document identifier and version number are used to locate the non-overwriteable file copy. The text is located by paragraph number, the tables are located by table number, row number, and column number, and the data collection rules are located by form identifier and field path. The old copy is still retained after revision, so that subsequent evidence always points to the original text of the detected version. The document parsing module expands rule units according to title level and header inheritance relationship, splitting a rule into fields such as subject, operation, object, time relationship, condition, obligation and scope of application. Each split assertion stores the same original clause identifier, character start and end positions and original text fragments. The queue of merged cells and visit titles are passed to the data cells they cover. Footnotes are attached to the corresponding rule units through footnote tags. Assertion records include assertion identifier, document identifier, document version, clause identifier, source location, business effective start and end time, system record start and end time, queue, treatment group, visit and trigger condition expression. The split assertions maintain group relationship through clause identifiers. During parsing, a versioned terminology dictionary and deterministic sentence rules are used. Each record in the terminology dictionary associates blood collection with the concept of blood sample collection. The dictionary also stores the source and effective version of the rule that recognizes the synonymy. Time sentences extract time windows according to relative events, directions, values, units, and endpoints. Conditional sentences build a parenthesized syntax tree according to conjunctions such as if, and, or, unless, and must, without changing the negation scope of the original sentence. For conditions with multiple references, missing headers, or those that cannot be uniquely parsed, the original text is retained and written to the verification queue. After confirmation by the rule maintainers, a new assertion version with confirmation records is formed. Missing conditions are not directly interpreted as true or false. This specific implementation uses a set of rules to illustrate the processing procedure. The target queue is queue A, the treatment group is the experimental group, and the visit is the second visit. The triggering condition is the need for pharmacokinetic sampling. Clause A stipulates that the second visit begins when the seventh full 24-hour period after the first dose is reached. Clause B stipulates that a specified blood sample must be collected in this scenario and the collection must occur between 24 and 48 hours after the start of the second visit. Clause C stipulates that the same blood sample must be collected within 120 hours after the first dose. Clause D in the data collection rules independently gives the same 120-hour upper limit. Clause E requires that the collection time field must exist and be bound to the sampling instance when the sampling occurs. The above time parameters are used to demonstrate the rule calculation and are not used as clinical treatment parameters. Object instance registration uses a composite retrieval key consisting of trial, cohort, treatment group, visit, operation concept, and sample identifier. Object correspondence is established only when the visit affiliation, sample identifier, and original document's stated identity relationship are consistent. Blood samples from the second visit and the third visit are assigned different instance identifiers even if they have the same name. Two blood samples collected within the same visit are also registered separately if the sample identifiers are different. The first administration, the start of the second visit, and the designated blood sample collection each obtain an event instance and a time anchor identifier. For rules that do not clearly indicate whether the blood samples are the same, candidate associations and reasons to be verified are retained. Instances are not merged due to synonym matching. When searching for instances, candidates are first filtered by operational concepts, and then precise matching is performed by visit identifier and sample identifier. Instances are reused only if the key fields and explicit identity criteria match. If there are more than two candidates, one is not selected at random. Instead, each candidate identifier, along with the fields required for differentiation, is written into the record to be verified. The original rule text has directly given the clauses with the same test, visit, and sample identifiers, using their own content as the basis for object association. Instances in rules A to E of this setting are determined in this way, without relying on implicit identity merging outside the candidate clause group. The graph maintenance module establishes a typed node table based on rule assertions, document versions, visit instances, operation instances, samples, data fields, and time anchors. It also establishes an edge table based on start point identifier, edge type, end point identifier, source assertion version, and applicable scope. Assertions pointing to document versions form source edges, collection operations pointing to their respective visits and samples form dependency edges, events pointing to reference anchors form relative time edges, conditional syntax trees pointing to controlled operations form conditional trigger edges, and revision assertions pointing to explicitly replaced assertions form replacement edges. Duplicate node retrieval keys reuse nodes but do not merge edges from different sources. Object association criteria are also stored as sourced assertions. Identity edges in the graph are registered based on terms, versions, scope of application, and confirmation records. Identity criteria with the same semantics but different sources are stored separately. When compiling constraints, the original text can be traced along the association edges. For candidate objects whose identity cannot be confirmed temporarily, the server retains different instances and uncertain markers. Subsequent detection only uses the original assertions with confirmed associations. Scenarios affected by uncertain associations should not give conflict resolution conclusions. The server creates indexes based on document version, assertion identifier, and instance identifier, and creates dependent inverse indexes based on edge endpoints. The valid business range uses a range with a start point but no end point. Records without an end point are kept open. The system record range indicates when the assertion version enters and exits the known record set. The time axis field and the event time in the rule are stored separately. Graph nodes, edges, original text locations, and records to be verified are committed in the same import transaction. After successful commit, the graph version identifier and assertion index are handed over to S2 to generate an activity snapshot.
[0022] In this specific embodiment, S2 includes: The snapshot management module reads the map version submitted by S1, receives the target version, business time point, system record time point, and scope of application to be tested. The target version list records the solution text version, visit process table version, data collection rule version, and revision document version that it is responsible for. The query does not use the maximum version number of all files to replace the relationship. After selecting the list, its content summary is fixed. If there is no responsible document or there are two unconfirmed responsible versions of the same document, the corresponding scope is marked as pending verification and the conflicting list items are saved. The module first reads candidate assertions according to the version list, and then checks whether the business time point falls within the business valid range and whether the system record time point falls within the system record range. Queries at the end of the range will no longer hit old records. The assertion range checked by the two times is intersected with the query range. Assertions with an empty intersection will not be included in this snapshot. Non-empty intersections will be stored as the valid part in the snapshot member record. The original graph assertions will not be rewritten due to a query. The applicable scope is represented by the queue set, treatment group set, visit set and condition syntax tree. The intersection of set fields is obtained according to the explicit identifier. The condition part is first concatenated and then the satisfiability is checked according to the value range and mutual exclusion relationship given in the source file. When the condition expression cannot be parsed or the source of the mutual exclusion relationship is incomplete, it is kept in the pending state. The server shall not treat the unconfirmed range as an empty set and delete the assertion. Unrestricted fields in the original text are marked as covering their known value range. Fields that are missing to the point that it is impossible to determine whether they are restricted are marked as missing. To ensure that range operations are replayable, queue, treatment group, and visit values are first expanded according to the limited identifier fields registered in the file. Duplicate identifiers are deduplicated. The same sub-expressions in the condition tree share nodes but retain their original appearance positions. Candidate ranges only enter the determined valid part when all three set dimensions are not empty and the condition conjunction can be satisfied. In the case of complete input, if the condition enumeration is exhaustive and no assignment is satisfied, it is judged as an empty range. Records with unknown range conditions do not participate in the deletion of the determined valid set, but remain in the snapshot waiting set and pass on their possible affected ranges. The revision parsing module reads the operation type, target assertion identifier, revision scope, effective time, and new content from the revision file. New operations only register the new assertion, replacement operations register both the new assertion and the replacement edge pointing to the old assertion, and revocation operations register the revocation record. Scope changes preserve the differences between the old and new scopes. Only when the revision file explicitly specifies the assertion being replaced or revoked and its scope, and the revision itself belongs to the current inherited version and passes both time checks, will the revision-covered portion be deducted from the currently valid portion of the old assertion. The range deduction adopts a combination rule of set difference and conditional negation. First, the intersection of the new revised range and the old assertion range is calculated. The old support is removed in the intersection part, and the original content and source are retained in the non-intersecting part. Continuous revisions are applied in their clear order of succession and the reason for each deduction is retained. When two revisions on the same succession level are contradictory and there is no basis for their order, one of them is not overwritten by the import time. Instead, two records and the version relationship pending verification mark are saved. In setting the rules, the first revision only changed the upper limit of Clause C for the second visit of the cohort A trial group to 240 hours after the first dose. At the same time, the revision clarified the assertion identifier of the old Clause C. The snapshot module created a new assertion member for this intersection. The old upper limit of 120 hours was retained for the cohort B covered by the same original clause. Clause D comes from the data collection rule file. If the revision does not explicitly cover Clause D, its old upper limit will remain valid. It cannot be removed along with Clause C just because of textual similarity. The snapshot member record saves the original assertion version, valid range expression, applicable business time point, system record time point, and entry or exit reason. The inactive record points separately to the revision source that caused the inactive status. After the same assertion is split into ranges, it shares the original assertion identifier and is assigned different range fragment identifiers. The fragments are operated on by set to ensure that they do not overlap. Subsequent solutions use the range fragments, and the output location still uses the original assertion's document, clause, and character position. The server sorts member records by assertion version and normalized range expression, and generates an activity snapshot summary along with the target version list and query conditions. It persistently saves snapshot members, exited members, and pending records, sends the content of the original activity assertions and their respective valid parts to S3, and saves the range to be covered by this query to avoid directly treating the range that did not match the rules as the range that has been detected.
[0023] In this specific embodiment, S3 includes: The constraint compilation module reads the activity snapshot of S2, first deduplicating and verifying unit fields according to the original assertion version and range fragment. Missing fields are passed along with the record to be verified. Rational number time variables are assigned to each determined event instance and time anchor. Boolean propositions are assigned to triggering conditions, event occurrence, and field existence. Variable registration records are bound to instance identifiers and original assertion versions. Condition constraints and time constraints reference sampled events through the same instance registration table. Time variables of events that have not occurred do not participate in the time window check of the event. When the sampling obligation is met, the event must occur. It is not allowed to evade time conflicts by setting the sampled events that must occur as false. The time measurement convention in this specific implementation unifies the duration to hours, converts 24 hours into a complete continuous day, and maps the calendar date to a unified time axis according to the time zone and local zero-hour boundary declared in the rules. Specific calendar days and continuous 24 hours are not interchangeable. Endpoint terms are converted into non-strict inequalities, and those without endpoint terms are converted into strict inequalities. Calendar boundaries that cross time zones or daylight saving time are converted according to the rules of the corresponding time zone. The seven days in this setting rule are clearly seven complete continuous days. Therefore, the visit offset is 168 hours. When the meaning of the day boundary cannot be determined, it is reserved for verification rather than guessing. For the original two-sided time window contained at both ends, the compiler forms ,in This represents the lower bound of the time difference extracted from the current source assertion and converted to hours. The upper bound of the time difference for the same original time window is represented by two finite rational numbers, both in hours. The source rules with inverted upper and lower bounds are not corrected in advance, and the inverted time window is identified as unsatisfactory by the detection module. This indicates the time when the current operation event instance is to occur on the unified timeline. This indicates the time of occurrence of the anchor instance referenced by the event on the same timeline, where both are in hours and are rational numbers. The correspondence between the event and the anchor is determined by the S1 instance registration and its source. The subscript indicates the time of occurrence. Indicates the role of the event, The anchor role is represented by a dimensionless role marker and does not represent a summation index. If the original time window does not contain the element at either end, the non-strict comparison corresponding to that end is changed to a strict comparison, and the strictness field is saved according to the original semantics of that end. The solution is obtained by the strict difference constraint processing flow of S4. The compiler splits the two-sided time window into an upper bound difference constraint and an upper bound difference constraint after exchanging events and anchors. The constant of the latter is the opposite of the original lower bound. The one-sided time window only generates the actual existing side and does not artificially add a zero lower bound. The precise offset generates equal boundaries on both sides at the same time. Each constraint records the variable pair, boundary value, strictness, activation condition, source assertion version and valid range. Whether sampling must occur is controlled separately by the conditional logic. The time window is only activated under the condition that the corresponding event and anchor occur. Clause B's "must sample" is compiled to specify that a sampling event occurs when pharmacokinetic sampling is required. Clause E is compiled to specify that the sampling time field exists and belongs to the event instance when the sampling event occurs. The "prohibit sampling" statement is compiled to specify that the event does not occur when the condition is true. Connectives are converted to conjunctions, disjunctions, implications, and negations according to the syntax tree preserved in S1. The existence of optional fields cannot be set to tautology. The existence of visits, the occurrence of the first dose, and the value of pharmacokinetic sampling required in the scenario declaration are passed to S4 as explicit scenario conditions. Each Boolean constraint retains the corresponding source clause to avoid forming two sets of incompatible event names with the time constraints. Anchor point transformation is synthesized according to the direction of the differential relation chain. The upper bound of the same direction is added to obtain the upper bound of the cross-anchor point, and the lower bound of the same direction is added to obtain the lower bound of the cross-anchor point. When any participating edge is strict, the synthesized edge remains strict. During synthesis, the activation conditions of the two edges are combined and the intersection is calculated with respect to the applicable range of the source. Only when the intersection is non-empty and the preconditions can be jointly satisfied in the scene background are valid derivation evidences registered. When the preconditions are unknown, the candidate evidences are reserved as pending verification. When the time system as a whole can no longer be satisfied, the original constraints are still used to solve the problem. The derivation edge is not regarded as a permanent axiom that is detached from the source. For each transformed upper and lower bound, the evidence identifier, start and end anchor instance, boundary value and strictness, direct premise evidence identifier, original anchor relationship, object association basis, all leaf-level source assertion versions, time measurement agreement version and common applicable domain are stored respectively. The direct premise is expanded until the original assertion to obtain the leaf-level source set. The evidence is deduplicated according to the premise chain and filtered according to the start and end anchor and common applicable domain. When the same conclusion is obtained from different original sources, the paths are stored separately. The sources are not merged because the boundary values are equal. During the generation process, the same event node is prohibited from being used repeatedly in the same premise chain. The original constraints are still completely preserved. Cross-loop contradictions are handed over to the original constraints for detection instead of relying on exhaustive projection paths. In setting the rules, the visit offset given in Clause A and the sampling time window given in Clause B are combined to specify that the lower limit of sampling relative to the first administration is 192 hours and the upper limit is 216 hours. The evidence for the upper and lower limits refers back to Clause A, Clause B and the source basis for confirming that the two samples are the same instance. The upper limit of 120 hours in Clause C and Clause D is retained as independent evidence. Even if the two produce the same boundary value, they do not constitute the same support. If there is another valid conversion path for the same upper limit, it is retained as another evidence and is only valid within its own common domain of application. The graph maintenance module establishes a reverse index with the leaf-level assertion version as the key and the evidence identifier and effective range as the value. The evidence then points to the threshold conclusion it supports. When a single source is deactivated, only the part of the evidence that depends on it within the revised range is revoked. The effective range of the conclusion is determined by the union of the coverage of the remaining evidence. The overlapping range of the non-deactivated evidence and the revoked evidence is still effectively supported. All evidence expands the leaf-level index when it is generated, and the dependents of the multi-layered inference can be directly retrieved later. The compilation module saves the differential constraints, conditional logic constraints, instance registration, and evidence index corresponding to the original assertions of the activity to the snapshot compilation package. The compilation rule version and the time metering convention version are written together in the package header. S4 uses the compilation result of the original assertions as the complete detection input. The time projection is only used for evidence display and acceleration with source. When recompiling, the old projection must not be used as the new input without source constraints.
[0024] In this specific embodiment, S4 includes: The detection module reads the snapshot compilation package of S3, performs joint satisfiability testing on the test scenarios that must be supported, and generates scenario records according to the queues, treatment groups, visits and triggering conditions that are explicitly required to be supported in the source file. The scenario records save the condition values, the sources that must be supported and the scope to be tested. In this setting, the scenario is fixed that the first queue, the test group, the second visit and the pharmacokinetic sampling must be established, and declares that the first dosing and the second visit events have occurred. After the scenario scope intersects with the effective scope of each assertion, only the corresponding part is activated. The scenarios that must be supported are reserved as fixed backgrounds and their triggering conditions cannot be turned off in order to obtain satisfiability results. This specific implementation method adopts a joint solution combining Boolean search and differential constraint checking. First, Boolean propagation is performed based on conditional logic, and undetermined Boolean assignments are enumerated. Under each assignment that satisfies the Boolean part, the time differential edge is activated. Negative cycles are checked with time variables as nodes and upper bound constraints as directed edges. If there are no negative cycles, the time variable assignment is constructed and combined with the Boolean assignment to form a satisfyable witness. If there are negative cycles, a conflict clause that prevents the Boolean combination is generated from the activation condition on the cycle, and the search continues. Only when all Boolean combinations are excluded is it determined that the combination is unsatisfactory. The weights of the difference edges are stored in pairs using rational principal terms and infinitesimal coefficients. The coefficients of non-strict upper bounds are zero, and the coefficients of strict upper bounds are negative one. When adding paths, the two components are added separately and compared in lexicographical order with the principal term as the priority. Cycles with negative principal terms or zero principal terms and negative coefficients are considered contradictions. Symbolic infinitesimal operations are used to avoid changing the meaning of strict inequalities with arbitrary fixed errors. All node distances are initialized to zero. Relaxation is performed repeatedly according to the stable edge order. Negative cycles are obtained by backtracking along the predecessor when the distance can still be improved in the corresponding rounds of the variable node number. When there is a direct contradiction in the Boolean part, the propagation cause chain is preserved. Both types of evidence are uniformly mapped to compilation constraints and source assertions. The resource limit for each solution is set to thirty seconds in this specific implementation. If the limit is reached or an execution exception occurs, only the solution is returned as incomplete, and it is not considered as satisfied or unsatisfiable. When there are no negative cycles, the final sign distance is used as the expression for time assignment. For all principal terms with positive relaxation and constraints where infinitesimal coefficient differences consume the relaxation, the upper bound of the allowed positive infinitesimal substitution value is calculated respectively. Half of the minimum value of these finite positive upper bounds is taken. If no such upper bound exists, one hour is taken. After substitution, the original strict or non-strict relations are checked one by one. Only when the check passes is the rational number time witness saved. The Boolean conflict clause is attached with the source proof parent node. Each branch of the search tree records the reason for exclusion. When there are no feasible branches, the source of Boolean contradiction and time negative cycle can be jointly expanded, instead of just retaining the last negative cycle. After obtaining evidence of unsatisfactory results, the detection module expands along the S3 support index to the leaf-level original anchor point relationship and object association basis. The leaf-level assertions are grouped according to document identifier, document version and original clause identifier. Time constraints, condition constraints and object association assertions extracted from the same clause must be retained in groups or deleted in groups. The scenario background is listed separately and is not implicitly mixed into a candidate clause group. Duplicate sources but different document versions must not be grouped together simply because of text equality. The module fixes the current scenario conditions and detection range, rereads the original assertions from the candidate clause group, clears the derivation cache of the candidate solver, and re-establishes instance correspondence and compilation constraints based on the remaining object associations. If the candidate group is found to be unsatisfiable after re-solving, it enters the reduction phase. If it is found to be satisfiable, the candidate is expanded to all active original assertion clause groups in the scenario for re-verification. If it returns incomplete, the current candidate and progress are recorded and the reduction is stopped. If the original unsatisfiable result is still not reproduced after expansion, an evidence replay exception is recorded and the verified conflict set is not output. The source clause reduction process involves sequentially deleting one group at a time according to a fixed order of document identifier, version number, and clause identifier. Each time, the remaining original assertions are recompiled, and projections, instance associations, and conflict evidences that depend on the deleted group are removed. If the deletion is still unsatisfiable after the deletion, the deletion is permanently retained. If the deletion is satisfactory after the deletion, the group is restored and the satisfactory witness is saved. If the deletion causes the necessary object associations to be no longer certain, the deletion is marked as unsatisfiable and the group is restored. If the solution is incomplete, the group is also restored and the reduction remains incomplete. After completing one round, the remaining clause groups are deleted and verified one by one. Only when the current set has been verified as unsatisfiable and a witness has been obtained for any of the deleted groups, is the flag that it cannot be deleted further written. If there are undetermined deletion results, the incomplete candidate is saved. When a new retained deletion result appears after deletion, the final verification is re-executed. The resulting set is a conflict set that cannot be deleted further under a fixed scenario background. It is not claimed to be the set with the fewest clauses, nor is it claimed to have enumerated all conflicts in the scenario. In the rules, when clauses A, B, and C exist simultaneously, the lower bound of the sampling time exceeds the upper bound of clause C, resulting in an unsatisfactory outcome. After deleting clause A, the first administration and visit are no longer subject to the seven-day offset constraint. After deleting clause B, the mandatory sampling obligation and the relative visit time window are removed together. After deleting clause C, sampling can be conducted within 192 to 216 hours. Therefore, if clause D has been reduced and deleted by the candidate, clauses A, B, and C form a set that cannot be further reduced. If the sorting retains clause D and deletes clause C, a replacement set of clauses A, B, and D is obtained. The output records are determined according to the actual reduction order, without confusing the two independent sources. Each scenario's result record saves the activity snapshot identifier, scenario background, scope fragment, solution status, evidence that can be satisfied or cannot be satisfied, candidate clause grouping, trial deletion order in each round, and return status. The detection results and evidence index are stored in the same transaction. S5 reads this record as the baseline before revision, and S6 reads its verification flag to distinguish between verified conflicts and candidates that have not yet been reduced.
[0025] In this specific embodiment, S5 includes: The revision processing module receives revisions with target assertion identifiers, scope, and effective time. It first freezes the old snapshot and detection records used by S4, then generates a new snapshot according to the same rules as S2. It aligns the new and old members according to the original assertion version and effective scope, extracts newly added, deactivated, and scope-changed assertions, and records the variables, conditional propositions, and object association basis covered before and after the changes. If the original rules remain unchanged but the identity basis changes, they are also included in the change set. The old detection records are not overwritten during the revision process. The module builds variable-constraint relationship graphs from the original assertion compilation results of the old and new snapshots respectively. Time variables, conditional propositions and compilation constraints each occupy a node. The constraint node connects all variables and propositions referenced in its text, activation condition and negation condition. Composite background conditions in the scene also participate in connectivity analysis as constraint nodes. Object identity is connected to the instances to be associated in the relationship graph using relation nodes with sources. Then, during the solution, the instances are unified according to this to avoid losing the dependency between the two instances after premature merging. For the two variable-constraint association graphs before and after the revision, the same stable instance identifiers and the same condition proposition keys are aligned. Constraints compiled from the same source assertions are aligned according to version and constraint sequence number. All new and old variables, propositions and object association endpoints involved in the changed assertions are taken as the starting point. The union of the two variable-constraint association graphs before and after the revision is traversed in breadth-first order until the queue is empty. The complete connected component containing these starting points is taken and all reached variables, propositions and adjacent constraints are included. No fixed number of hops is set or only one level of neighbors is traced. When the deletion of constraints causes the component to split, the original component is still included through the variable-constraint association graph corresponding to the old snapshot. When the new connection causes the component to merge, the newly added associated part is included through the variable-constraint association graph corresponding to the new snapshot. If multiple compilation constraints of a source clause are located in different components, the module establishes group associations for source clause reduction, and includes the components involved in the same clause group in this recalculation. This is repeated until the range is stable, so that when the group is deleted, the constraints of the same clause in another component will not be left behind. When the revision involves multiple range fragments, the atomic fragments that do not overlap are first divided according to the old and new effective range boundaries, and then the graph is constructed and solved within the fragments. The condition ranges that cannot be precisely divided are recalculated as a whole and the reasons for the kernel are retained. Before recalculation, the module deactivates the old support within the scope of the revision's effect, queries the S3 inverse index by the deactivated assertion version, sets the evidence fragments that intersect with the scope of the revision's effect to deactivate, and updates the corresponding time projection and conflicting evidence. If there is still independent and valid evidence for a certain conclusion, the part covered by that evidence is retained. At the same time, the scenario state affected by the revision is set to be recalculated. The failure of old unsatisfiable evidence only means that the evidence can no longer be cited, not that the scenario is already satisfiable. The detection module must then reconstruct the complete relevant components from the original snapshot of the original assertion. The module extracts all the original assertions required for recalculating components and grouping associations from the new snapshot, clears the old derivations in this solution, recompiles according to S3 and performs joint detection and source clause reduction according to S4, records the new set of satisfiable witnesses or unsatisfiable sets, and submits the results with a summary of the new snapshot used. If the snapshot has been advanced by another revision before submission, the current result is retained as a history and the latest snapshot is re-queued to avoid earlier tasks from overwriting newer results. For independent components not included in the recalculation scope, the module serializes the original assertion content and version, object instance identifier, identity basis, original anchor relationship, normalization scope, scenario conditions, time measurement convention, and compilation rule version in a fixed field order, generates a component fingerprint with a content summary, and retains the complete serialized content for equivalence verification. The set is sorted by stable identifier, the condition syntax tree retains parentheses and negation levels, and changes in storage order do not change the fingerprint, while changes in source or semantic fields will fail the fingerprint check. The old detection results are reused only when the time variables and conditional propositions of the old and new components are not related to the recalculation scope, the source clause grouping has no cross-component dependency, the component fingerprints and their serialized content are the same and the supporting evidence is still valid. If any condition is not met, it is included in the recalculation. When adding a conditional proposition or object association connecting two components, the union of the two variable-constraint association graphs before and after the revision is re-traversed and expanded to stability. If the version of the compilation rule changes and the fingerprint is different and triggers the recalculation, if the parsing condition cannot list all its variables, the instance mapping is unclear or the component boundary cannot be determined, it is rolled back to the recompilation, detection and reduction of all original assertions of the new snapshot. The component fingerprint comparison first filters the candidate components that can be matched with the stable instance set, and then checks the activity assertions and scene backgrounds item by item. If the old component has been split in the variable-constraint association graph corresponding to the new snapshot or multiple old components have been merged in the variable-constraint association graph corresponding to the new snapshot, the overall conclusion of the old component is not reused. The changed component enters the recalculation queue. The queue is deduplicated by snapshot identifier, scene key and range fragment. When the same queue item receives a new association starting point, the complete connected traversal is re-executed. Only when no new nodes, constraints or same clause groups are added is the input of this recalculation sealed. The first revision changed the upper limit of Clause C to 240 hours, while Clause D still gave an upper limit of 120 hours. After re-examination, the persistent conflict formed by Clauses A, B, and D was preserved, and the old evidence of Clauses A, B, and C could not be deleted and the termination declared. The second revision explicitly changed Clause D in the same range to 240 hours as well. The recalculation showed that the first administration was recorded as zero, the second visit was considered as 168 hours, and the sampling was 192 hours. The evidence that the collection time field existed could satisfy the witness. Here, the zero point only fixes the overall translational degree of freedom and does not make up for the missing original anchor point relationship. The recalculation module submits the replacement results with the new snapshot, scene, and range fragment as keys, and saves the old and new evidence correspondence, the list of inactive support, the recalculated components, the reused components, and the fingerprint comparison records. For fragments whose anchor identity or triggering conditions cannot be determined, the reasons for verification and the currently verifiable parts are retained. The complete revision difference package is handed over to S6 to uniformly output the conflict status and affected clauses.
[0026] In this specific embodiment, S6 includes: The results output module reads the detection records of S4 and the revision difference package of S5, organizes the results according to the activity snapshot, scenario, and applicable scope fragment, and outputs the direct conflict clause group, group version, no further deletion flag, inferred evidence and source location for the verified unsatisfiable records. The text source outputs the paragraph number and character range, the table source outputs the table number, row and column position and inherited table header position, and the data collection source outputs the form and field path. The output link points to the saved, non-overwriteable document copy, and does not impersonate the old evidence source with the same paragraph in the new version. Starting with the directly conflicting clauses, the server searches for other clauses that depend on these clauses along the dependency reverse index established by S1. In each traversal, it intersects the applicable scope of the path with the current result scope and combines the triggering conditions. It only continues to traverse paths where the intersection is not empty and the conditions can be satisfied. For unknown path conditions, it lists the pending associations. The visited marker consists of the clause identifier and the scope fragment to terminate the loop. After excluding the directly conflicting clauses themselves, the reached clauses are listed as affected clauses. The affected clauses and the clauses that directly constitute a conflict are output separately, and the reach path of each affected clause is recorded. Clause E is displayed as an affected clause because it depends on the sampled event. Its arrival itself does not prove that it directly constitutes a time conflict. The revision comparison aligns the old and new results with the semantic keys of the scene queue, treatment group, visit, and trigger condition. The range of old and new results is divided into the overlapping part, the old-only part, and the new-only part. Only the overlapping part is subjected to continuous conflict or decomparison comparison. The old-only part is marked as no longer applicable, and the new-only part is marked as a new detection result. When the scene definition or required to be supported by the trigger condition changes, a new result is created and the scene change is noted. Cancelled scenes are not marked as decompensated by re-detection. For the intersection range of the same scenario, if the new detection still cannot satisfy it, output the persistent conflict and the current source evidence. Even if the direct conflict clause group has changed, the persistent conflict flag is still retained. If the new detection can satisfy it, check whether the necessary input is complete. The check items include whether all participating rules have been parsed, whether the reference anchor point is clear, whether the object instance and identity basis are determined, whether the scenario triggering condition has been determined and whether the relevant solution has been completed. Only when all checks pass can the conflict be resolved. The pure relative time system allows the zero point to be fixed by translation. The unknown anchor point means that the object referenced by the original rule or the necessary relationship is not determined. Cases without absolute dates but with complete relative relationships should not be misjudged as missing. This specific implementation stores the fact verification status and integrity status separately. When it is determined that the source is sufficient to prove that the condition is unsatisfactory, the verified conflict is retained. At the same time, additional rules that have not yet been verified are listed. Existing contradictions are not erased by the addition of items to be verified. If a new test can satisfy the condition after the existing evidence is withdrawn but the necessary input is missing, the output is "to be verified" instead of "removed". Unknown anchor points, undetermined object identity, unresolved conditions, incomplete solution and incomplete reduction are recorded with reason code, source location, scope of influence and last processing time respectively. Candidate clause groups and verified sets that cannot be further deleted are marked with different flags to maintain the distinction from the verified results. The server generates an unwriteable replay record for each result, which includes the activity snapshot identifier, target version list, scenario background and its source, query scope, all original assertions and valid fragments of the activity, source document summary, object association basis, time measurement convention, compilation rule version, source clause grouping and stable trial deletion order, along with the solution implementation version, resource limitations, detection results, witness and evidence summary, and is stored in the result database. Necessary original copies are associated with the source version for a long time. The replay does not call the latest graph member to replace the historical snapshot. The output status update uses snapshot summary consistency check. If the snapshot referenced by the result record is different from the currently displayed snapshot, it is only for historical query and does not change the current conflict status. When a user opens any direct clause or affected clause, the server first checks and saves a copy according to the source document summary, and then jumps to the original text location. If the copy is missing or the location content summary is inconsistent, the result and evidence identifier are retained and the reason why the source cannot be located is output. It is not replaced by similar sentences found in the current file. During replay, first check if the record summary and referenced files are complete. Then, based on the saved original assertions and object associations, reconstruct instances, conditions, and time constraints. Re-execute joint detection and source clause grouping reduction according to the saved scenario background. Use stable clause sorting to obtain a definite deletion order. Map the newly obtained clause group back to the source location where the replay record is saved. If the solution is not completed, output that the replay is not completed and retain the original verified record. If the conclusion is determined to be inconsistent with the original record, record the replay difference and stop updating the current state with this result. In the results of the two revisions mentioned above, the first revision showed that the source of direct conflict changed from the old set containing clause C to the new set containing clause D. The affected field rules were still listed separately according to the dependency path. The second revision showed that the corresponding scope conflict was resolved when the new rule could be satisfied and the anchor, object and condition were complete. The queue outside the scope retained the old rule and continued to use its own detection status. The revision differences recorded the changes in direct conflict clauses and evidence, changes in affected clauses and dependency paths, and changes in the reasons for verification and status. Finally, the results, original text location and replay entry were saved as the output of the same snapshot.
[0027] The above description is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any equivalent substitutions or modifications made by those skilled in the art within the scope of the technology disclosed in the present invention, based on the technical solution and inventive concept of the present invention, should be covered within the scope of protection of the present invention.
[0028] This invention transforms the content of clinical trial rule documents into source-dependent computational objects, jointly processing event time difference constraints and conditional logic constraints, enabling event relationships under different time bases to participate in the satisfiability assessment of the same scenario. During the source clause grouping and reduction process, the original assertions are recompiled and unfounded derivations are removed, ensuring that conflict interpretations correspond to the actual rule sources involved in the testing.
[0029] This invention simultaneously maintains source support relationships and variable-constraint relationships, uses inactivation propagation to remove expired derivations, and recalculates the actual satisfiability of remaining rules using complete relevant components. Different supports for the same conclusion are retained separately, and combined with common application domains, component fingerprints, and pending verification status processing, changes in direct evidence and changes in related impacts can be reflected separately in the revision differences.
Claims
1. A knowledge graph-based method for detecting conflicts in clinical trial protocols, characterized in that, include: S1 receives clinical trial rule files, extracts rule assertions that retain their source location, version, and scope of application, distinguishes object instances involved in the rules, and establishes a knowledge graph connecting rule assertions, object instances, and time anchors; S2, based on the target version and scope of application, selects valid rule assertions from the knowledge graph that have not been replaced or revoked within the corresponding scope, and forms an activity snapshot; S3 compiles the temporal relationships and conditional rules in the activity snapshot into differential constraints and conditional logic constraints that retain the source, and establishes source support relationships for the derivation formed by anchor point transformation; S4, perform joint satisfiability testing on the test scenarios that must be supported, and provide source support for the solution evidence for the unsatisfiable scenarios. Recompile and reduce the source clauses by grouping them into groups, and obtain a set of source clause conflicts that cannot be further deleted. S5, Receive rule revisions, update the activity snapshot and revoke the derivation and conflict evidence of inactive assertion support along the source support relationship, recompile, detect and reduce the complete constraint components associated with the revision based on the original assertions of the new snapshot activity, and update the conflict set; S6 outputs the conflict set, source location, and affected clauses based on the detection results and knowledge graph. The conflict is only marked as resolved when the re-detection can satisfy the conditions and the required anchor point, object identity, and conditions have been determined. Undetermined information affecting the determination is output as pending verification status.
2. The clinical trial protocol conflict detection method based on knowledge graphs according to claim 1, characterized in that, S1 includes: Each rule in the main body of the plan, the visit process table, the revised document, and the data collection rule file is extracted into a rule assertion. The document identifier, document version, main body paragraph or table cell position, business effective period, system record period, and scope of application are recorded. The scope of application is limited by the trial queue, treatment group, visit, and triggering conditions to which the rule applies. Associate names representing the same operational concept with the same concept identifier, distinguish object instances based on visit attribution, sample identifier, and the identity relationship explicitly given in the rules, and set instance identifiers for operations corresponding to different visits or different samples respectively; A knowledge graph is built using rule assertions, document versions, visit instances, operation instances, samples, data fields, and time anchors as nodes, and source, dependency, relative time, condition triggering, and substitution relationships as edges, while preserving the source assertions corresponding to the object associations.
3. The clinical trial protocol conflict detection method based on knowledge graph according to claim 1, characterized in that, S2 include: It receives snapshot query conditions consisting of target version, business time point, system record time point, and scope of application to be detected. It filters the knowledge graph for rule assertions that the version belongs to the document set under the target version, the business effective period covers the business time point, the system record period covers the system record time point, and the scope of application intersects with the scope of application to be detected. The rule revision is parsed as addition, replacement, revocation, and scope change. Only when there is a clear identifier of the replaced or revoked assertion and its scope of application, the corresponding old assertion is removed from the active snapshot within the intersection of its scope of application and its original scope of application. Outside the intersection, the valid part of the old assertion is retained. The filtered rule assertions and their respective valid parts are combined to form an activity snapshot.
4. The clinical trial protocol conflict detection method based on knowledge graph according to claim 1, characterized in that, S3 include: Represent the events and time anchors associated with object instances as time variables, and convert the time windows of events relative to time anchors and the original relationships between different time anchors into difference constraints that limit the upper or lower bounds of the difference between two time variables. Convert the sample collection conditions, collection obligations, and data field requirements into conditional logic constraints that use conditional propositions and object instances as operation objects, so that the events in the conditional logic constraints and the corresponding events in the difference constraints use the same instance identifier; Save the source assertions and applicable scope for each compilation constraint, use the compilation constraints corresponding to the original active assertion as the detection input, and establish source support relationships for each upper or lower bound obtained by anchor point transformation, pointing to the original anchor point relationship and the basis for object association.
5. The clinical trial protocol conflict detection method based on knowledge graph according to claim 1, characterized in that, S4 include: Establish scenario conditions based on the trial cohorts, treatment groups, visits, and triggering conditions explicitly required by the clinical trial rule documents, and jointly solve differential constraints and conditional logic constraints under each scenario condition; When the solution result is unsatisfiable, extract the solution evidence of the unsatisfiable constraint, expand along the source support relationship to the source assertion on which the original anchor relationship and object association depend, and group the expanded source assertions according to the document version and original clause identifier. Given fixed scenario conditions and the scope of application to be tested, the original assertions in the candidate clause group are recompiled to verify unsatisfiability. If unsatisfiability cannot be reproduced, the candidate clause group is expanded to the clause group corresponding to all original assertions of activities within the scenario. Try deleting one clause group at a time and remove the derivation that depends on the deleted group. Recompile and solve from the remaining clause groups. Only retain the deletion if it is still unsatisfiable. Repeat the deletion trial until deleting any of the remaining clause groups can no longer keep unsatisfiable. Determine the remaining clause groups as the source clause conflict set that cannot be deleted further. When a solution exception occurs that makes it impossible to determine satisfiability, the incomplete state is retained, and the incomplete reduction result is not marked as no longer deletable.
6. The clinical trial protocol conflict detection method based on knowledge graph according to claim 1, characterized in that, S5 include: Save the old snapshot before revision and generate the new snapshot after revision. Construct variable-constraint relationship graphs with time variables, conditional propositions and compilation constraints as nodes and variables or conditional propositions participating in compilation constraints as associated edges. Starting with the variables and conditional propositions involved in the assertions that have been added, deactivated, or have changed in scope of application due to revision, the two variable-constraint relationship graphs before and after the revision are merged. The complete connected component containing the starting point is taken from the resulting union set, and the variables, conditional propositions, and adjacent constraints in the component are taken as the recalculation scope. This deactivates the old support within the scope of the revision's effect and removes the time projection and conflict evidence that depend on the old support along the source support relationship; From the new snapshot, extract the original assertions of the activities within the recalculation scope, recompile, solve jointly, and reduce by grouping by source clauses to generate a new set of conflicts and new evidence to replace the old results; When the boundaries of independent components cannot be determined, the process falls back to recompiling, detecting, and reducing all original assertions for the new snapshot.
7. The clinical trial protocol conflict detection method based on knowledge graph according to claim 1, characterized in that, S6 include: Output the scope of application, inference evidence, and source location for the conflict set. The source location includes the corresponding text paragraph, table cell, and data collection field location. Search for other clauses in the dependency conflict set along the dependency relationships in the knowledge graph, list the other clauses as affected clauses, and output them separately from the clauses that directly cause conflict. Compare the detection results of the same scenario and overlapping applicable scope before and after the revision. If there are other sources that still cause conflict, output the persistent conflict and the updated evidence. Output the conflict resolution only when the re-detection can meet the requirements and the required anchor point, object identity and conditions have been determined. Record the reasons for unverified anchor points, undetermined object identities, unresolved conditions, and incomplete solutions, and maintain a distinction from verified results.
8. The clinical trial protocol conflict detection method based on knowledge graphs according to claim 4, characterized in that, In step S3, derivation evidence is established for each upper or lower bound obtained from the anchor point transformation. The derivation evidence records the original anchor point relationship, the version of the leaf-level source assertion, the time measurement convention, and the common domain of application. The common domain of application is the intersection of the applicable scope of each premise assertion. Based on the time measurement convention, the time unit, the day boundary and the endpoint inclusion rules are unified, and valid derivation evidence is generated only when the common applicable domain is not empty and the preconditions can be jointly satisfied. For different derivation paths with the same upper or lower bound, save the derivation evidence separately, establish a reverse index from each leaf-level source assertion version to the derivation evidence containing that version, use the reverse index as the retrieval structure of the source support relationship, so that when a support is inactive, only the evidence that depends on that support is withdrawn, and when other valid evidence still exists, the valid part of the corresponding conclusion is retained.
9. The knowledge graph-based clinical trial protocol conflict detection method according to claim 6, characterized in that, In step S5, component fingerprints are generated for independent components not included in the recalculation scope. The component fingerprints are jointly determined by the original assertion content and version of the activity, object instance identifier, original anchor relationship, applicable scope, scenario conditions, time measurement convention and compilation rule version. The old detection results and still valid evidence are reused only when the variables and conditional propositions of the old and new components are not related to the recalculation range and the component fingerprints are the same; otherwise, the corresponding components are included in the recalculation range. When the conditional propositions or object associations of the connected components change, the recalculation scope is redefined and recalculated in both the variable-constraint association diagrams before and after the revision.
10. The knowledge graph-based clinical trial protocol conflict detection method according to claim 7, characterized in that, In step S6, the activity snapshot identifier, scenario conditions, scope of application, original assertion of the activity and its source version, object association basis, time measurement convention, compilation rule version and source clause grouping record are associated with the detection results and saved to form a replay record; Restore the detection input based on the replay record, re-execute the joint satisfiability test and source clause grouping reduction, and map the newly obtained conflict clause group to the saved source location; The revision differences record the changes in directly conflicting clauses and their evidence, the affected clauses where dependencies are reached, and the changes in the pending status.
