consolidating Generator into this repo

This commit is contained in:
GAJ3T 2026-10-13 15:54:55 -04:00
parent 3e3805fd29
commit 2f5686c3a1
92 changed files with 23167 additions and 2 deletions

63
PHI.Data.Generator/.gitattributes vendored Normal file
View File

@ -0,0 +1,63 @@
###############################################################################
# Set default behavior to automatically normalize line endings.
###############################################################################
* text=auto
###############################################################################
# Set default behavior for command prompt diff.
#
# This is need for earlier builds of msysgit that does not have it on by
# default for csharp files.
# Note: This is only used by command line
###############################################################################
#*.cs diff=csharp
###############################################################################
# Set the merge driver for project and solution files
#
# Merging from the command prompt will add diff markers to the files if there
# are conflicts (Merging from VS is not affected by the settings below, in VS
# the diff markers are never inserted). Diff markers may cause the following
# file extensions to fail to load in VS. An alternative would be to treat
# these files as binary and thus will always conflict and require user
# intervention with every merge. To do so, just uncomment the entries below
###############################################################################
#*.sln merge=binary
#*.csproj merge=binary
#*.vbproj merge=binary
#*.vcxproj merge=binary
#*.vcproj merge=binary
#*.dbproj merge=binary
#*.fsproj merge=binary
#*.lsproj merge=binary
#*.wixproj merge=binary
#*.modelproj merge=binary
#*.sqlproj merge=binary
#*.wwaproj merge=binary
###############################################################################
# behavior for image files
#
# image files are treated as binary by default.
###############################################################################
#*.jpg binary
#*.png binary
#*.gif binary
###############################################################################
# diff behavior for common document formats
#
# Convert binary document formats to text before diffing them. This feature
# is only available from the command line. Turn it on by uncommenting the
# entries below.
###############################################################################
#*.doc diff=astextplain
#*.DOC diff=astextplain
#*.docx diff=astextplain
#*.DOCX diff=astextplain
#*.dot diff=astextplain
#*.DOT diff=astextplain
#*.pdf diff=astextplain
#*.PDF diff=astextplain
#*.rtf diff=astextplain
#*.RTF diff=astextplain

363
PHI.Data.Generator/.gitignore vendored Normal file
View File

@ -0,0 +1,363 @@
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
##
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
# User-specific files
*.rsuser
*.suo
*.user
*.userosscache
*.sln.docstates
# User-specific files (MonoDevelop/Xamarin Studio)
*.userprefs
# Mono auto generated files
mono_crash.*
# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
[Ww][Ii][Nn]32/
[Aa][Rr][Mm]/
[Aa][Rr][Mm]64/
bld/
[Bb]in/
[Oo]bj/
[Oo]ut/
[Ll]og/
[Ll]ogs/
# Visual Studio 2015/2017 cache/options directory
.vs/
# Uncomment if you have tasks that create the project's static files in wwwroot
#wwwroot/
# Visual Studio 2017 auto generated files
Generated\ Files/
# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*
# NUnit
*.VisualState.xml
TestResult.xml
nunit-*.xml
# Build Results of an ATL Project
[Dd]ebugPS/
[Rr]eleasePS/
dlldata.c
# Benchmark Results
BenchmarkDotNet.Artifacts/
# .NET Core
project.lock.json
project.fragment.lock.json
artifacts/
# ASP.NET Scaffolding
ScaffoldingReadMe.txt
# StyleCop
StyleCopReport.xml
# Files built by Visual Studio
*_i.c
*_p.c
*_h.h
*.ilk
*.meta
*.obj
*.iobj
*.pch
*.pdb
*.ipdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*_wpftmp.csproj
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.svclog
*.scc
# Chutzpah Test files
_Chutzpah*
# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opendb
*.opensdf
*.sdf
*.cachefile
*.VC.db
*.VC.VC.opendb
# Visual Studio profiler
*.psess
*.vsp
*.vspx
*.sap
# Visual Studio Trace Files
*.e2e
# TFS 2012 Local Workspace
$tf/
# Guidance Automation Toolkit
*.gpState
# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper
*.DotSettings.user
# TeamCity is a build add-in
_TeamCity*
# DotCover is a Code Coverage Tool
*.dotCover
# AxoCover is a Code Coverage Tool
.axoCover/*
!.axoCover/settings.json
# Coverlet is a free, cross platform Code Coverage Tool
coverage*.json
coverage*.xml
coverage*.info
# Visual Studio code coverage results
*.coverage
*.coveragexml
# NCrunch
_NCrunch_*
.*crunch*.local.xml
nCrunchTemp_*
# MightyMoose
*.mm.*
AutoTest.Net/
# Web workbench (sass)
.sass-cache/
# Installshield output folder
[Ee]xpress/
# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html
# Click-Once directory
publish/
# Publish Web Output
*.[Pp]ublish.xml
*.azurePubxml
# Note: Comment the next line if you want to checkin your web deploy settings,
# but database connection strings (with potential passwords) will be unencrypted
*.pubxml
*.publishproj
# Microsoft Azure Web App publish settings. Comment the next line if you want to
# checkin your Azure Web App publish settings, but sensitive information contained
# in these scripts will be unencrypted
PublishScripts/
# NuGet Packages
*.nupkg
# NuGet Symbol Packages
*.snupkg
# The packages folder can be ignored because of Package Restore
**/[Pp]ackages/*
# except build/, which is used as an MSBuild target.
!**/[Pp]ackages/build/
# Uncomment if necessary however generally it will be regenerated when needed
#!**/[Pp]ackages/repositories.config
# NuGet v3's project.json files produces more ignorable files
*.nuget.props
*.nuget.targets
# Microsoft Azure Build Output
csx/
*.build.csdef
# Microsoft Azure Emulator
ecf/
rcf/
# Windows Store app package directories and files
AppPackages/
BundleArtifacts/
Package.StoreAssociation.xml
_pkginfo.txt
*.appx
*.appxbundle
*.appxupload
# Visual Studio cache files
# files ending in .cache can be ignored
*.[Cc]ache
# but keep track of directories ending in .cache
!?*.[Cc]ache/
# Others
ClientBin/
~$*
*~
*.dbmdl
*.dbproj.schemaview
*.jfm
*.pfx
*.publishsettings
orleans.codegen.cs
# Including strong name files can present a security risk
# (https://github.com/github/gitignore/pull/2483#issue-259490424)
#*.snk
# Since there are multiple workflows, uncomment next line to ignore bower_components
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
#bower_components/
# RIA/Silverlight projects
Generated_Code/
# Backup & report files from converting an old project file
# to a newer Visual Studio version. Backup files are not needed,
# because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm
ServiceFabricBackup/
*.rptproj.bak
# SQL Server files
*.mdf
*.ldf
*.ndf
# Business Intelligence projects
*.rdl.data
*.bim.layout
*.bim_*.settings
*.rptproj.rsuser
*- [Bb]ackup.rdl
*- [Bb]ackup ([0-9]).rdl
*- [Bb]ackup ([0-9][0-9]).rdl
# Microsoft Fakes
FakesAssemblies/
# GhostDoc plugin setting file
*.GhostDoc.xml
# Node.js Tools for Visual Studio
.ntvs_analysis.dat
node_modules/
# Visual Studio 6 build log
*.plg
# Visual Studio 6 workspace options file
*.opt
# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
*.vbw
# Visual Studio LightSwitch build output
**/*.HTMLClient/GeneratedArtifacts
**/*.DesktopClient/GeneratedArtifacts
**/*.DesktopClient/ModelManifest.xml
**/*.Server/GeneratedArtifacts
**/*.Server/ModelManifest.xml
_Pvt_Extensions
# Paket dependency manager
.paket/paket.exe
paket-files/
# FAKE - F# Make
.fake/
# CodeRush personal settings
.cr/personal
# Python Tools for Visual Studio (PTVS)
__pycache__/
*.pyc
# Cake - Uncomment if you are using it
# tools/**
# !tools/packages.config
# Tabs Studio
*.tss
# Telerik's JustMock configuration file
*.jmconfig
# BizTalk build output
*.btp.cs
*.btm.cs
*.odx.cs
*.xsd.cs
# OpenCover UI analysis results
OpenCover/
# Azure Stream Analytics local run output
ASALocalRun/
# MSBuild Binary and Structured Log
*.binlog
# NVidia Nsight GPU debugger configuration file
*.nvuser
# MFractors (Xamarin productivity tool) working folder
.mfractor/
# Local History for Visual Studio
.localhistory/
# BeatPulse healthcheck temp database
healthchecksdb
# Backup folder for Package Reference Convert tool in Visual Studio 2017
MigrationBackup/
# Ionide (cross platform F# VS Code tools) working folder
.ionide/
# Fody - auto-generated XML schema
FodyWeavers.xsd

View File

@ -0,0 +1,33 @@
BEGIN TRANSACTION;
ALTER TABLE [dbo].[TrainingItem] ADD [KeywordId] int NULL;
CREATE TABLE [dbo].[Keyword] (
[Id] int NOT NULL IDENTITY,
[CategoryId] int NOT NULL,
[Value] nvarchar(450) NOT NULL,
CONSTRAINT [PK_Keyword] PRIMARY KEY ([Id]),
CONSTRAINT [FK_Keyword_Category_CategoryId] FOREIGN KEY ([CategoryId]) REFERENCES [dbo].[Category] ([Id]) ON DELETE NO ACTION
);
CREATE TABLE [dbo].[KeywordVariant] (
[Id] int NOT NULL IDENTITY,
[ParentId] int NOT NULL,
[Value] nvarchar(450) NOT NULL,
CONSTRAINT [PK_KeywordVariant] PRIMARY KEY ([Id]),
CONSTRAINT [FK_KeywordVariant_Keyword_ParentId] FOREIGN KEY ([ParentId]) REFERENCES [dbo].[Keyword] ([Id]) ON DELETE CASCADE
);
CREATE INDEX [IX_TrainingItem_KeywordId] ON [dbo].[TrainingItem] ([KeywordId]);
CREATE UNIQUE INDEX [IX_Keyword_CategoryId_Value] ON [dbo].[Keyword] ([CategoryId], [Value]);
CREATE UNIQUE INDEX [IX_KeywordVariant_ParentId_Value] ON [dbo].[KeywordVariant] ([ParentId], [Value]);
ALTER TABLE [dbo].[TrainingItem] ADD CONSTRAINT [FK_TrainingItem_Keyword_KeywordId] FOREIGN KEY ([KeywordId]) REFERENCES [dbo].[Keyword] ([Id]) ON DELETE NO ACTION;
INSERT INTO [__EFMigrationsHistory] ([MigrationId], [ProductVersion])
VALUES (N'20260727025048_AddKeywordCatalog', N'10.0.8');
COMMIT;
GO

View File

@ -0,0 +1,10 @@
using System.ComponentModel.DataAnnotations;
namespace RLHF.Generator.Api.Contracts;
public sealed record CompleteTextRequest(
[property: Required] string Text,
string? Tense = null,
bool? IsFragment = null,
string? ProtectedMedicalTerm = null,
IReadOnlyList<string>? AllowedMedicalForms = null);

View File

@ -0,0 +1,9 @@
namespace RLHF.Generator.Api.Contracts;
public sealed record GenerationRunResponse(
Guid RunId,
string Status,
int RowsCommittedThisRequest,
int TotalCommittedRows,
int TotalExpectedRows,
bool Resumed);

View File

@ -0,0 +1,9 @@
namespace RLHF.Generator.Api.Contracts;
public sealed record KeywordLoadResponse(
int SourceKeywordCount,
int SourceVariantCount,
int ExistingKeywordCount,
int ExistingVariantCount,
int InsertedKeywordCount,
int InsertedVariantCount);

View File

@ -0,0 +1,11 @@
namespace RLHF.Generator.Api.Contracts;
public sealed record TrainingItemKeywordBackfillResponse(
bool DryRun,
int TotalTrainingItemCount,
int AlreadyAssignedCount,
int ProcessedCount,
int UniqueMatchCount,
int UpdatedCount,
int UnmatchedCount,
int AmbiguousCount);

View File

@ -0,0 +1,3 @@
namespace RLHF.Generator.Api.Contracts;
public sealed record TrainingItemsResetResponse(bool Reset);

View File

@ -0,0 +1,296 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.OpenApi;
using Scalar.AspNetCore;
using RLHF.Generator.Api.Contracts;
using RLHF.Generator.Generation;
using RLHF.Generator.Keywords;
using RLHF.Generator.LmStudio;
using RLHF.Generator.Persistence;
using RLHF.Generator.TrainingData;
var builder = WebApplication.CreateBuilder(args);
string connectionString = builder.Configuration.GetConnectionString("RLHFGenerator")
?? throw new InvalidOperationException("Connection string 'RLHFGenerator' was not found.");
builder.Services.AddDbContext<RlhfGeneratorDbContext>(options =>
options.UseSqlServer(connectionString));
LmStudioOptions lmStudioOptions;
try
{
lmStudioOptions = builder.Configuration
.GetSection(LmStudioOptions.SectionName)
.Get<LmStudioOptions>()
?? throw new InvalidOperationException();
}
catch (Exception exception)
{
throw new InvalidOperationException(
$"Configuration section '{LmStudioOptions.SectionName}' is missing or invalid.",
exception);
}
builder.Services.AddSingleton(lmStudioOptions);
builder.Services.AddHttpClient<LmStudioClient>((serviceProvider, httpClient) =>
httpClient.Timeout = TimeSpan.FromSeconds(
serviceProvider.GetRequiredService<LmStudioOptions>().TimeoutSeconds));
GenerationOptions generationOptions;
try
{
generationOptions = builder.Configuration
.GetSection(GenerationOptions.SectionName)
.Get<GenerationOptions>()
?? throw new InvalidOperationException();
}
catch (Exception exception)
{
throw new InvalidOperationException(
$"Configuration section '{GenerationOptions.SectionName}' is missing or invalid.",
exception);
}
builder.Services.AddSingleton(generationOptions);
builder.Services.AddSingleton(
new TrainingDataReader(Path.Combine(AppContext.BaseDirectory, "Data")));
builder.Services.AddScoped<TrainingGenerationService>();
builder.Services.AddScoped<TrainingItemResetService>();
builder.Services.AddScoped<KeywordLoadService>();
builder.Services.AddScoped<TrainingItemKeywordBackfillService>();
builder.Services.AddEndpointsApiExplorer();
builder.Services.AddSwaggerGen(options =>
{
options.SwaggerDoc(
"v1",
new OpenApiInfo
{
Title = "RLHF Generator API",
Version = "v1",
Description = "Generates balanced RLHF training data from category and pattern files using SQL Server and LM Studio."
});
});
var app = builder.Build();
if (app.Environment.IsDevelopment())
{
app.UseSwagger();
app.UseSwaggerUI(options =>
{
options.SwaggerEndpoint(
"/swagger/v1/swagger.json",
"RLHF Generator API v1");
options.RoutePrefix = "swagger";
options.DocumentTitle = "RLHF Generator API - Swagger";
});
app.MapScalarApiReference(options =>
{
options
.WithTitle("RLHF Generator API")
.WithOpenApiRoutePattern(
"/swagger/{documentName}/swagger.json");
});
}
app.MapGet("/", () => "RLHF Generator API")
.WithName("GetApiRoot")
.WithSummary("Get API status")
.WithDescription("Returns a simple response confirming that the RLHF Generator API is running.")
.WithTags("System")
.Produces<string>(StatusCodes.Status200OK, "text/plain");
app.MapPost(
"/api/lm-studio/complete",
async (CompleteTextRequest? request, LmStudioClient client, CancellationToken cancellationToken) =>
{
if (request is null
|| string.IsNullOrWhiteSpace(request.Text)
|| request.IsFragment is null)
{
return Results.BadRequest();
}
if (!SentenceTenses.TryNormalize(request.Tense, out string? normalizedTense))
{
return Results.BadRequest();
}
bool hasProtectedMedicalTerm = request.ProtectedMedicalTerm is not null;
bool hasAllowedMedicalForms = request.AllowedMedicalForms is not null;
if (hasProtectedMedicalTerm != hasAllowedMedicalForms)
{
return Results.BadRequest(
"ProtectedMedicalTerm and AllowedMedicalForms must either both be provided or both be omitted.");
}
string? protectedMedicalTerm = null;
IReadOnlyList<string>? allowedMedicalForms = null;
if (hasProtectedMedicalTerm)
{
protectedMedicalTerm = request.ProtectedMedicalTerm!.Trim();
if (protectedMedicalTerm.Length == 0)
{
return Results.BadRequest("ProtectedMedicalTerm cannot be empty or whitespace.");
}
if (request.AllowedMedicalForms!.Count == 0)
{
return Results.BadRequest("AllowedMedicalForms must contain at least one form.");
}
string[] trimmedForms = new string[request.AllowedMedicalForms.Count];
HashSet<string> uniqueForms = new(StringComparer.OrdinalIgnoreCase);
for (int index = 0; index < request.AllowedMedicalForms.Count; index++)
{
string? form = request.AllowedMedicalForms[index];
if (string.IsNullOrWhiteSpace(form))
{
return Results.BadRequest(
$"AllowedMedicalForms[{index}] cannot be null, empty, or whitespace.");
}
string trimmedForm = form.Trim();
if (!uniqueForms.Add(trimmedForm))
{
return Results.BadRequest(
$"AllowedMedicalForms contains duplicate form '{trimmedForm}'.");
}
trimmedForms[index] = trimmedForm;
}
if (!string.Equals(
protectedMedicalTerm,
trimmedForms[0],
StringComparison.OrdinalIgnoreCase))
{
return Results.BadRequest(
"ProtectedMedicalTerm must exactly match the first AllowedMedicalForms value.");
}
allowedMedicalForms = trimmedForms;
}
string completion = await client.CompleteAsync(
request.Text,
normalizedTense,
request.IsFragment.Value,
protectedMedicalTerm: protectedMedicalTerm,
allowedMedicalForms: allowedMedicalForms,
cancellationToken: cancellationToken);
return Results.Text(completion, "text/plain");
})
.WithName("CompleteTextWithLmStudio")
.WithSummary("Complete text with LM Studio")
.WithDescription("Returns completed text without writing to the database. Tense is optional and supports past, present, and future. isFragment is required: true means a notes-field fragment with an omitted singular subject; false means the input contains its explicit subject.")
.WithTags("LM Studio")
.Accepts<CompleteTextRequest>("application/json")
.Produces<string>(StatusCodes.Status200OK, "text/plain")
.Produces(StatusCodes.Status400BadRequest)
.Produces(StatusCodes.Status500InternalServerError);
app.MapPost(
"/api/keywords/load",
async (KeywordLoadService service, CancellationToken cancellationToken) =>
{
KeywordLoadResult result = await service.LoadAsync(cancellationToken);
return Results.Ok(new KeywordLoadResponse(
result.SourceKeywordCount,
result.SourceVariantCount,
result.ExistingKeywordCount,
result.ExistingVariantCount,
result.InsertedKeywordCount,
result.InsertedVariantCount));
})
.WithName("LoadKeywords")
.WithSummary("Load keyword catalog")
.WithDescription("Additively and idempotently loads missing keywords and variants from category files. Does not backfill TrainingItem rows.")
.WithTags("Keywords")
.Produces<KeywordLoadResponse>(StatusCodes.Status200OK, "application/json")
.Produces(StatusCodes.Status500InternalServerError);
app.MapPost(
"/api/training-items/backfill-keywords",
async (
TrainingItemKeywordBackfillService service,
CancellationToken cancellationToken,
bool dryRun = true,
int batchSize = TrainingItemKeywordBackfillService.DefaultBatchSize) =>
{
if (batchSize is < 1 or > TrainingItemKeywordBackfillService.MaximumBatchSize)
{
return Results.BadRequest(
$"batchSize must be between 1 and {TrainingItemKeywordBackfillService.MaximumBatchSize}.");
}
try
{
TrainingItemKeywordBackfillResult result = await service.BackfillAsync(
dryRun,
batchSize,
cancellationToken);
return Results.Ok(new TrainingItemKeywordBackfillResponse(
result.DryRun,
result.TotalTrainingItemCount,
result.AlreadyAssignedCount,
result.ProcessedCount,
result.UniqueMatchCount,
result.UpdatedCount,
result.UnmatchedCount,
result.AmbiguousCount));
}
catch (KeywordsNotLoadedException exception)
{
return Results.Conflict(exception.Message);
}
})
.WithName("BackfillTrainingItemKeywords")
.WithSummary("Backfill training-item keywords")
.WithDescription("Matches existing TrainingItem.Value text and assigns KeywordId only for one unique concept. Unmatched and ambiguous rows remain null, dry-run is the default, and generated text is not modified.")
.WithTags("Keywords")
.Produces<TrainingItemKeywordBackfillResponse>(StatusCodes.Status200OK, "application/json")
.Produces(StatusCodes.Status400BadRequest)
.Produces(StatusCodes.Status409Conflict)
.Produces(StatusCodes.Status500InternalServerError);
app.MapPost(
"/api/generation/run",
async (TrainingGenerationService service, CancellationToken cancellationToken) =>
{
GenerationRunResult result = await service.GenerateAsync(cancellationToken);
return Results.Ok(new GenerationRunResponse(
result.RunId,
result.Status,
result.RowsCommittedThisRequest,
result.TotalCommittedRows,
result.TotalExpectedRows,
result.Resumed));
})
.WithName("RunTrainingGeneration")
.WithSummary("Generate training items")
.WithDescription("Starts or resumes compatible deterministic generation. Committed batches remain durable, and the HTTP request remains open until generation succeeds, is cancelled, or fails.")
.WithTags("Training Generation")
.Produces<GenerationRunResponse>(StatusCodes.Status200OK, "application/json")
.Produces(StatusCodes.Status500InternalServerError);
app.MapPost(
"/api/training-items/reset",
async (TrainingItemResetService service, CancellationToken cancellationToken) =>
{
await service.ResetAsync(cancellationToken);
return Results.Ok(new TrainingItemsResetResponse(true));
})
.WithName("ResetTrainingItems")
.WithSummary("Reset training items")
.WithDescription("Truncates TrainingItem, resets its identity, and clears generation-run checkpoints. Category data is not changed.")
.WithTags("Training Generation")
.Produces<TrainingItemsResetResponse>(StatusCodes.Status200OK, "application/json")
.Produces(StatusCodes.Status500InternalServerError);
app.Run();
public partial class Program;

View File

@ -0,0 +1,23 @@
{
"$schema": "https://json.schemastore.org/launchsettings.json",
"profiles": {
"http": {
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true,
"applicationUrl": "http://localhost:5257",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"https": {
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true,
"applicationUrl": "https://localhost:7034;http://localhost:5257",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
}

View File

@ -0,0 +1,22 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\RLHF.Generator\RLHF.Generator.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="10.0.8">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Scalar.AspNetCore" Version="2.16.16" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="10.2.3" />
</ItemGroup>
</Project>

View File

@ -0,0 +1,28 @@
{
"ConnectionStrings": {
"RLHFGenerator": "Data Source=.;Initial Catalog=RLHFGenerator;Integrated Security=True;Persist Security Info=False;Pooling=False;MultipleActiveResultSets=False;Connect Timeout=300;Encrypt=True;TrustServerCertificate=True;Command Timeout=0"
},
"LmStudio": {
"ChatCompletionsUrl": "http://localhost:1234/v1/chat/completions",
"ModelName": "qwen/qwen3.5-9b",
"SystemPrompt": "You are a deterministic English sentence and notes-fragment normalization engine. Treat each request as stateless and use only the one system message and one user message supplied for that request. Return only the corrected sentence or fragment on one line and nothing else. Do not return quotation marks around the complete response, explanations, labels, metadata, Markdown, JSON, code fences, alternatives, or commentary. The user message contains an Is fragment line, optional Protected subject, optional Protected medical term, optional Allowed medical forms, optional Requested tense, and a Sentence line. These instruction lines are metadata only and must never appear in the response. Resolve every bracketed template expression and return no unresolved square brackets. Preserve the original medical concept, the original subject when present, the assertion polarity, and whether the text describes a real person, a hypothetical example, research, education, fiction, history, negation, or an actual medical fact. Do not add facts or change positive meaning to negative meaning or negative meaning to positive meaning. Improve grammar and natural wording as needed. You may correct capitalization, diacritical marks, punctuation, articles, verb agreement, grammatical number, attributive noun forms, conventional spelling, and minor grammatical structure. When Is fragment is true, the Sentence is a notes-field fragment with an omitted singular third-person subject equivalent to a member or patient. Use that implied subject only to determine subject-verb agreement, auxiliaries, verb forms, and tense. Never add, return, expose, or invent the implied subject. Preserve the response as a subjectless fragment. When Is fragment is false, preserve the explicit subject and its meaning while making natural grammatical corrections. Resolve bracketed pipe-separated alternatives such as [is|are|was|were], [has|have|had], or another [option1|option2|...] form using the explicit subject when Is fragment is false and the implied singular subject when Is fragment is true. Exact [a|an] expressions are resolved before the request and will not be supplied. When no tense is requested, use explicit temporal context when present; otherwise use natural present tense. When a tense is requested, rewrite the verb phrase and surrounding auxiliaries as needed to produce natural English in that tense. Requested tense takes precedence over literal bracket options. For a fragment in present tense, use singular third-person grammar such as is and has. For a fragment in past tense, use singular past grammar such as was and had. For a fragment in future tense, use constructions such as will be, will have, or will followed by the appropriate base verb. Protected medical term identifies the canonical concept. Allowed medical forms lists surface forms for that same concept. Use an allowed medical form when appropriate, including the form that produces the most natural grammar and ordinary usage, but do not replace the medical concept with a different condition, medication, allergen, procedure, test, treatment, symptom, or unrelated concept. When Is fragment is true, never invent or append a predicate, condition, state, event, or other semantic content that is not present in the Sentence. Apply Requested tense only to a verb or auxiliary already present in the fragment. If the fragment contains no verb or auxiliary that can be placed into the requested tense, ignore Requested tense and return the fragment without inventing a predicate. Never add phrases such as is present, was present, will be present, is reported, was reported, occurred, existed, or any equivalent invented wording. Return one line with no unresolved bracketed alternatives.",
"Temperature": 0.0,
"TopP": 1.0,
"MaxTokens": 96,
"Seed": 42,
"TimeoutSeconds": 300
},
"Generation": {
"RandomSeed": 42,
"MaxDegreeOfParallelism": 8,
"SaveBatchSize": 24,
"ProgressLogIntervalSeconds": 5
},
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"AllowedHosts": "*"
}

View File

@ -0,0 +1,126 @@
using System.Net;
using System.Reflection;
using System.Runtime.ExceptionServices;
using System.Text.Json;
using RLHF.Generator.Generation;
using RLHF.Generator.LmStudio;
using RLHF.Generator.TrainingData;
using Xunit;
namespace RLHF.Generator.Tests;
public sealed class CaseInsensitiveLmValidationTests
{
[Theory]
[InlineData("Member received a varicose vein diagnosis.")]
[InlineData("Member taught a class about Legg-Calvé-Perthes disease.")]
[InlineData("She reported an allergy to shellfish.")]
[InlineData("The member does not have a penicillin allergy.")]
[InlineData("allergic to honeybees")]
[InlineData("history of a heart attack")]
[InlineData("Helpful information about allergies")]
public void NaturalCorrections_PassStructuralValidation(string returnedValue)
{
ValidateResponse(returnedValue);
}
[Theory]
[InlineData("")]
[InlineData(" ")]
[InlineData("Member has an allergy.\rFollow-up is required.")]
[InlineData("Member has an allergy.\nFollow-up is required.")]
[InlineData("Member has [a|an] peanut allergy.")]
[InlineData("Member has an allergy to [x].")]
[InlineData("\"Member has a peanut allergy.\"")]
[InlineData("'Member has a peanut allergy.'")]
[InlineData("```Member has a peanut allergy.```")]
[InlineData("```text\nMember has a peanut allergy.\n```")]
[InlineData("{\"text\":\"Member has a peanut allergy.\"}")]
[InlineData("[\"Member has a peanut allergy.\"]")]
[InlineData("Output: Member has a peanut allergy.")]
[InlineData("result: Member has a peanut allergy.")]
[InlineData("Completed text: Member has a peanut allergy.")]
[InlineData("CORRECTED SENTENCE: Member has a peanut allergy.")]
public void StructurallyInvalidOutput_IsRejected(string returnedValue)
{
Assert.Throws<InvalidDataException>(() => ValidateResponse(returnedValue));
}
[Theory]
[InlineData("The result: Member has a peanut allergy.")]
[InlineData("Member said, \"I have a peanut allergy.\"")]
[InlineData("Member's allergy is documented.")]
[InlineData("Object {value} is discussed without square brackets.")]
public void OrdinarySentenceSyntax_IsNotTreatedAsAWrapper(string returnedValue)
{
ValidateResponse(returnedValue);
}
[Fact]
public async Task LmStudioClient_TrimsOnlySurroundingWhitespace()
{
const string generatedText = " Member has a peanut allergy. ";
LmStudioOptions options = new()
{
ChatCompletionsUrl = "http://localhost/v1/chat/completions",
ModelName = "test-model",
SystemPrompt = "test prompt",
Temperature = 0,
TopP = 1,
MaxTokens = 32,
Seed = 42,
TimeoutSeconds = 30
};
using HttpClient httpClient = new(new FixedResponseHandler(generatedText));
LmStudioClient client = new(httpClient, options);
string result = await client.CompleteAsync(
"Member has a peanut allergy.",
tense: null,
isFragment: false);
Assert.Equal("Member has a peanut allergy.", result);
}
private static void ValidateResponse(string returnedValue)
{
MethodInfo validateMethod = typeof(TrainingGenerationService).GetMethod(
"ValidateLmStudioResponse",
BindingFlags.Static | BindingFlags.NonPublic)!;
InvokeUnwrapped(
validateMethod,
[returnedValue, TrainingCategories.All[0], true]);
}
private static object? InvokeUnwrapped(MethodInfo method, object?[] arguments)
{
try
{
return method.Invoke(null, arguments);
}
catch (TargetInvocationException exception) when (exception.InnerException is not null)
{
ExceptionDispatchInfo.Capture(exception.InnerException).Throw();
throw;
}
}
private sealed class FixedResponseHandler(string content) : HttpMessageHandler
{
protected override Task<HttpResponseMessage> SendAsync(
HttpRequestMessage request,
CancellationToken cancellationToken)
{
string responseBody = JsonSerializer.Serialize(new
{
choices = new[] { new { message = new { content } } }
});
HttpResponseMessage response = new(HttpStatusCode.OK)
{
Content = new StringContent(responseBody)
};
return Task.FromResult(response);
}
}
}

View File

@ -0,0 +1,742 @@
using System.Net;
using System.Text.Json;
using Microsoft.Data.Sqlite;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Diagnostics;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Logging.Abstractions;
using RLHF.Generator.Generation;
using RLHF.Generator.LmStudio;
using RLHF.Generator.Persistence;
using RLHF.Generator.TrainingData;
using Xunit;
namespace RLHF.Generator.Tests;
public sealed class CommittedBatchGenerationTests
{
[Fact]
public async Task SuccessfulLargeRun_CommitsConfiguredBatchesAndFinalPartialBatch()
{
await using GenerationFixture fixture = await GenerationFixture.CreateAsync(1_001);
BatchObservationInterceptor observer = new();
await using ServiceInstance instance = fixture.CreateService(interceptor: observer);
GenerationRunResult result = await instance.Service.GenerateAsync();
Assert.Equal(2_024, result.TotalCommittedRows);
Assert.Equal(2_024, result.RowsCommittedThisRequest);
Assert.False(result.Resumed);
Assert.Equal(Enumerable.Repeat(10, 202).Append(4), observer.CommittedBatchSizes);
Assert.Equal(2_024, await fixture.CountRowsAsync());
}
[Fact]
public async Task SeparateConnection_ObservesCommittedBatchBeforeRunCompletes()
{
await using GenerationFixture fixture = await GenerationFixture.CreateAsync(
1,
requiresLmStudio: true);
GatedLmStudioHandler handler = new(allowBeforeGate: 12);
await using ServiceInstance instance = fixture.CreateService(handler);
Task<GenerationRunResult> generationTask = instance.Service.GenerateAsync();
await handler.GateReached.WaitAsync(TimeSpan.FromSeconds(10));
int visibleRowCount = await fixture.WaitForVisibleRowsAsync();
Assert.Equal(10, visibleRowCount);
Assert.False(generationTask.IsCompleted);
handler.Release();
GenerationRunResult result = await generationTask;
Assert.Equal(24, result.TotalCommittedRows);
}
[Fact]
public async Task LmStudioCapitalization_IsStoredExactlyAsReturned()
{
await using GenerationFixture fixture = await GenerationFixture.CreateAsync(
1,
requiresLmStudio: true);
fixture.ReplaceFirstCategoryValues("klippel-trenaunay syndrome");
CapitalizingLmStudioHandler handler = new();
await using ServiceInstance instance = fixture.CreateService(handler);
await instance.Service.GenerateAsync();
IReadOnlyList<string> storedValues = await fixture.GetValuesAsync();
Assert.NotEmpty(handler.CapitalizedResponses);
Assert.All(
handler.CapitalizedResponses,
returnedValue => Assert.Contains(returnedValue, storedValues));
}
[Fact]
public async Task FailureAfterOneThousandCommittedRows_ResumesWithoutDuplicates()
{
await using GenerationFixture fixture = await GenerationFixture.CreateAsync(1_001);
BatchFaultInterceptor failure = BatchFaultInterceptor.BeforeSave(103);
await using (ServiceInstance failedInstance = fixture.CreateService(interceptor: failure))
{
await Assert.ThrowsAsync<InvalidOperationException>(
() => failedInstance.Service.GenerateAsync());
}
GenerationRun failedRun = await fixture.GetSingleRunAsync();
Assert.Equal(GenerationRunStatuses.Failed, failedRun.Status);
Assert.Equal(1_010, failedRun.TotalCommittedRowCount);
Assert.Equal(1_009, failedRun.LastCommittedPlanOrdinal);
Assert.Equal(1_010, await fixture.CountRowsAsync());
await using ServiceInstance resumedInstance = fixture.CreateService();
GenerationRunResult resumed = await resumedInstance.Service.GenerateAsync();
Assert.True(resumed.Resumed);
Assert.Equal(1_014, resumed.RowsCommittedThisRequest);
Assert.Equal(2_024, resumed.TotalCommittedRows);
Assert.Equal(0, await fixture.CountDuplicateRecordKeysAsync());
Assert.Equal(2_024, await fixture.CountDistinctOrdinalsAsync(resumed.RunId));
}
[Fact]
public async Task Cancellation_PreservesCommittedRowsAndPermitsResume()
{
await using GenerationFixture fixture = await GenerationFixture.CreateAsync(1_001);
using CancellationTokenSource cancellation = new();
BatchFaultInterceptor failure = BatchFaultInterceptor.CancelBeforeSave(4, cancellation);
await using (ServiceInstance failedInstance = fixture.CreateService(interceptor: failure))
{
await Assert.ThrowsAnyAsync<OperationCanceledException>(
() => failedInstance.Service.GenerateAsync(cancellation.Token));
}
GenerationRun cancelledRun = await fixture.GetSingleRunAsync();
Assert.Equal(GenerationRunStatuses.Cancelled, cancelledRun.Status);
Assert.Equal(20, cancelledRun.TotalCommittedRowCount);
Assert.Equal(20, await fixture.CountRowsAsync());
await using ServiceInstance resumedInstance = fixture.CreateService();
GenerationRunResult resumed = await resumedInstance.Service.GenerateAsync();
Assert.True(resumed.Resumed);
Assert.Equal(2_024, resumed.TotalCommittedRows);
Assert.Equal(0, await fixture.CountDuplicateRecordKeysAsync());
}
[Fact]
public async Task LmStudioTimeout_PreservesCommittedBatchAndPermitsResume()
{
await AssertLmFailureResumesAsync(new TimeoutAfterResponsesHandler(12));
}
[Fact]
public async Task InvalidLmStudioOutput_PreservesCommittedBatchAndPermitsResume()
{
await AssertLmFailureResumesAsync(new InvalidOutputAfterResponsesHandler(12));
}
[Fact]
public async Task FailedBatch_DoesNotAdvanceCheckpointOrLeaveInsertedRows()
{
await using GenerationFixture fixture = await GenerationFixture.CreateAsync(20);
BatchFaultInterceptor failure = BatchFaultInterceptor.AfterSave(3);
await using ServiceInstance instance = fixture.CreateService(interceptor: failure);
await Assert.ThrowsAsync<InvalidOperationException>(
() => instance.Service.GenerateAsync());
GenerationRun run = await fixture.GetSingleRunAsync();
Assert.Equal(10, run.TotalCommittedRowCount);
Assert.Equal(9, run.LastCommittedPlanOrdinal);
Assert.Equal(10, await fixture.CountRowsAsync());
}
[Fact]
public async Task ChangedInputFiles_RejectUnsafeResume()
{
await using GenerationFixture fixture = await CreateFailedFixtureAsync();
fixture.AppendFirstCategoryValue("changed-input");
await using ServiceInstance instance = fixture.CreateService();
InvalidOperationException exception = await Assert.ThrowsAsync<InvalidOperationException>(
() => instance.Service.GenerateAsync());
Assert.Contains("Unsafe resume", exception.Message, StringComparison.Ordinal);
Assert.Equal(10, await fixture.CountRowsAsync());
}
[Fact]
public async Task ChangedRelevantConfiguration_RejectsUnsafeResume()
{
await using GenerationFixture fixture = await CreateFailedFixtureAsync();
LmStudioOptions changedOptions = fixture.CreateLmStudioOptions();
changedOptions.MaxTokens++;
await using ServiceInstance instance = fixture.CreateService(
lmStudioOptions: changedOptions);
InvalidOperationException exception = await Assert.ThrowsAsync<InvalidOperationException>(
() => instance.Service.GenerateAsync());
Assert.Contains("Unsafe resume", exception.Message, StringComparison.Ordinal);
Assert.Equal(10, await fixture.CountRowsAsync());
}
[Fact]
public async Task CompletedRun_IsNotResumedAsIncomplete()
{
await using GenerationFixture fixture = await GenerationFixture.CreateAsync(1);
await using (ServiceInstance firstInstance = fixture.CreateService())
{
GenerationRunResult first = await firstInstance.Service.GenerateAsync();
Assert.False(first.Resumed);
}
await using ServiceInstance secondInstance = fixture.CreateService();
GenerationRunResult second = await secondInstance.Service.GenerateAsync();
Assert.False(second.Resumed);
Assert.Equal(2, await fixture.CountRunsAsync());
Assert.Equal(48, await fixture.CountRowsAsync());
Assert.Equal(0, await fixture.CountDuplicateRecordKeysAsync());
}
private static async Task AssertLmFailureResumesAsync(HttpMessageHandler failureHandler)
{
await using GenerationFixture fixture = await GenerationFixture.CreateAsync(
1,
requiresLmStudio: true);
await using (ServiceInstance failedInstance = fixture.CreateService(failureHandler))
{
await Assert.ThrowsAnyAsync<Exception>(
() => failedInstance.Service.GenerateAsync());
}
GenerationRun failedRun = await fixture.GetSingleRunAsync();
Assert.Equal(GenerationRunStatuses.Failed, failedRun.Status);
Assert.Equal(12, failedRun.TotalCommittedRowCount);
Assert.Equal(12, await fixture.CountRowsAsync());
await using ServiceInstance resumedInstance = fixture.CreateService(
new SuccessfulLmStudioHandler());
GenerationRunResult resumed = await resumedInstance.Service.GenerateAsync();
Assert.True(resumed.Resumed);
Assert.Equal(24, resumed.TotalCommittedRows);
Assert.Equal(0, await fixture.CountDuplicateRecordKeysAsync());
}
private static async Task<GenerationFixture> CreateFailedFixtureAsync()
{
GenerationFixture fixture = await GenerationFixture.CreateAsync(20);
BatchFaultInterceptor failure = BatchFaultInterceptor.BeforeSave(3);
await using ServiceInstance instance = fixture.CreateService(interceptor: failure);
await Assert.ThrowsAsync<InvalidOperationException>(
() => instance.Service.GenerateAsync());
return fixture;
}
}
internal sealed class GenerationFixture : IAsyncDisposable
{
private readonly string _rootDirectory;
private readonly string _databasePath;
private readonly string _connectionString;
private GenerationFixture(string rootDirectory, string databasePath)
{
_rootDirectory = rootDirectory;
_databasePath = databasePath;
_connectionString = $"Data Source={databasePath};Pooling=False";
}
public string DataDirectory => Path.Combine(_rootDirectory, "Data");
public static async Task<GenerationFixture> CreateAsync(
int firstCategoryValueCount,
bool requiresLmStudio = false)
{
string rootDirectory = Path.Combine(
Path.GetTempPath(),
$"RLHF.Generator.Tests-{Guid.NewGuid():N}");
Directory.CreateDirectory(rootDirectory);
GenerationFixture fixture = new(
rootDirectory,
Path.Combine(rootDirectory, "generation.db"));
fixture.WriteTrainingData(firstCategoryValueCount, requiresLmStudio);
await fixture.CreateDatabaseAsync();
return fixture;
}
public ServiceInstance CreateService(
HttpMessageHandler? handler = null,
SaveChangesInterceptor? interceptor = null,
GenerationOptions? generationOptions = null,
LmStudioOptions? lmStudioOptions = null,
ILogger<TrainingGenerationService>? logger = null,
TimeProvider? timeProvider = null)
{
DbContextOptionsBuilder<RlhfGeneratorDbContext> builder = new();
builder.UseSqlite(_connectionString);
if (interceptor is not null)
{
builder.AddInterceptors(interceptor);
}
RlhfGeneratorDbContext dbContext = new(builder.Options);
LmStudioOptions resolvedLmOptions = lmStudioOptions ?? CreateLmStudioOptions();
HttpClient httpClient = new(handler ?? new SuccessfulLmStudioHandler())
{
Timeout = TimeSpan.FromSeconds(resolvedLmOptions.TimeoutSeconds)
};
TrainingGenerationService service = new(
new TrainingDataReader(DataDirectory),
new LmStudioClient(httpClient, resolvedLmOptions),
dbContext,
generationOptions ?? CreateGenerationOptions(),
resolvedLmOptions,
logger ?? NullLogger<TrainingGenerationService>.Instance,
timeProvider);
return new ServiceInstance(dbContext, httpClient, service);
}
public GenerationOptions CreateGenerationOptions() => new()
{
RandomSeed = 42,
MaxDegreeOfParallelism = 4,
SaveBatchSize = 10,
ProgressLogIntervalSeconds = 5
};
public LmStudioOptions CreateLmStudioOptions() => new()
{
ChatCompletionsUrl = "http://localhost/v1/chat/completions",
ModelName = "test-model",
SystemPrompt = "test-system-prompt",
Temperature = 0,
TopP = 1,
MaxTokens = 32,
Seed = 42,
TimeoutSeconds = 30
};
public void AppendFirstCategoryValue(string value) => File.AppendAllText(
Path.Combine(DataDirectory, "Categories", "MEDICAL_ALLERGY.txt"),
$"{Environment.NewLine}{value}");
public void ReplaceFirstCategoryValues(params string[] values) => File.WriteAllLines(
Path.Combine(DataDirectory, "Categories", "MEDICAL_ALLERGY.txt"),
values);
public async Task<int> CountRowsAsync()
{
await using RlhfGeneratorDbContext context = CreateContext();
return await context.TrainingItems.CountAsync();
}
public async Task<int> CountRunsAsync()
{
await using RlhfGeneratorDbContext context = CreateContext();
return await context.GenerationRuns.CountAsync();
}
public async Task<IReadOnlyList<string>> GetValuesAsync()
{
await using RlhfGeneratorDbContext context = CreateContext();
return await context.TrainingItems
.AsNoTracking()
.Select(item => item.Value)
.ToListAsync();
}
public async Task<GenerationRun> GetSingleRunAsync()
{
await using RlhfGeneratorDbContext context = CreateContext();
return await context.GenerationRuns.AsNoTracking().SingleAsync();
}
public async Task<int> CountDuplicateRecordKeysAsync()
{
await using RlhfGeneratorDbContext context = CreateContext();
return await context.TrainingItems
.Where(item => item.RecordKey != null)
.GroupBy(item => item.RecordKey)
.CountAsync(group => group.Count() > 1);
}
public async Task<int> CountDistinctOrdinalsAsync(Guid runId)
{
await using RlhfGeneratorDbContext context = CreateContext();
return await context.TrainingItems
.Where(item => item.GenerationRunId == runId)
.Select(item => item.PlanOrdinal)
.Distinct()
.CountAsync();
}
public async Task<int> WaitForVisibleRowsAsync()
{
using CancellationTokenSource timeout = new(TimeSpan.FromSeconds(10));
while (!timeout.IsCancellationRequested)
{
int count = await CountRowsAsync();
if (count > 0)
{
return count;
}
await Task.Delay(20, timeout.Token);
}
throw new TimeoutException("No committed batch became visible.");
}
public async ValueTask DisposeAsync()
{
SqliteConnection.ClearAllPools();
await Task.Yield();
Directory.Delete(_rootDirectory, true);
}
private RlhfGeneratorDbContext CreateContext()
{
DbContextOptions<RlhfGeneratorDbContext> options =
new DbContextOptionsBuilder<RlhfGeneratorDbContext>()
.UseSqlite(_connectionString)
.Options;
return new RlhfGeneratorDbContext(options);
}
private async Task CreateDatabaseAsync()
{
await using SqliteConnection connection = new(_connectionString);
await connection.OpenAsync();
await using SqliteCommand command = connection.CreateCommand();
command.CommandText =
"""
PRAGMA foreign_keys = ON;
CREATE TABLE Category (
Id INTEGER NOT NULL PRIMARY KEY,
Name TEXT NOT NULL
);
CREATE TABLE GenerationRun (
Id TEXT NOT NULL PRIMARY KEY,
Status TEXT NOT NULL,
RandomSeed INTEGER NOT NULL,
InputFingerprint TEXT NOT NULL,
ConfigurationFingerprint TEXT NOT NULL,
CurrentCategoryId INTEGER NULL,
CurrentIsPositive INTEGER NULL,
LastCommittedPlanOrdinal INTEGER NOT NULL,
TotalExpectedRowCount INTEGER NOT NULL,
TotalCommittedRowCount INTEGER NOT NULL,
StartedAt TEXT NOT NULL,
LastCheckpointAt TEXT NOT NULL,
CompletedAt TEXT NULL,
FailureType TEXT NULL,
FailureMessage TEXT NULL,
FOREIGN KEY (CurrentCategoryId) REFERENCES Category (Id) ON DELETE RESTRICT
);
CREATE TABLE TrainingItem (
Id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
GenerationRunId TEXT NULL,
PlanOrdinal INTEGER NULL,
RecordKey TEXT NULL,
CategoryId INTEGER NOT NULL,
KeywordId INTEGER NULL,
IsPositive INTEGER NOT NULL,
Value TEXT NOT NULL,
FOREIGN KEY (GenerationRunId) REFERENCES GenerationRun (Id) ON DELETE RESTRICT,
FOREIGN KEY (CategoryId) REFERENCES Category (Id) ON DELETE RESTRICT
);
CREATE UNIQUE INDEX IX_TrainingItem_RecordKey
ON TrainingItem (RecordKey) WHERE RecordKey IS NOT NULL;
CREATE UNIQUE INDEX IX_TrainingItem_GenerationRunId_PlanOrdinal
ON TrainingItem (GenerationRunId, PlanOrdinal)
WHERE GenerationRunId IS NOT NULL AND PlanOrdinal IS NOT NULL;
""";
await command.ExecuteNonQueryAsync();
foreach (TrainingCategoryDefinition category in TrainingCategories.All)
{
command.Parameters.Clear();
command.CommandText = "INSERT INTO Category (Id, Name) VALUES ($id, $name);";
command.Parameters.AddWithValue("$id", category.Id);
command.Parameters.AddWithValue("$name", category.Name);
await command.ExecuteNonQueryAsync();
}
}
private void WriteTrainingData(int firstCategoryValueCount, bool requiresLmStudio)
{
string categoriesDirectory = Path.Combine(DataDirectory, "Categories");
string patternsDirectory = Path.Combine(DataDirectory, "Patterns");
Directory.CreateDirectory(categoriesDirectory);
Directory.CreateDirectory(patternsDirectory);
File.WriteAllLines(Path.Combine(DataDirectory, "Subjects.txt"), TrainingSubjects.All);
foreach (TrainingCategoryDefinition category in TrainingCategories.All)
{
int valueCount = category.Id == 1 ? firstCategoryValueCount : 1;
File.WriteAllLines(
Path.Combine(categoriesDirectory, $"{category.Name}.txt"),
Enumerable.Range(1, valueCount).Select(index => $"value-{category.Id}-{index}"));
string subject = requiresLmStudio ? "[sub] " : string.Empty;
File.WriteAllText(
Path.Combine(patternsDirectory, $"{category.Name}.positive.txt"),
$"{subject}confirms [x]");
File.WriteAllText(
Path.Combine(patternsDirectory, $"{category.Name}.negative.txt"),
$"{subject}denies [x]");
}
}
}
internal sealed class ServiceInstance : IAsyncDisposable
{
private readonly RlhfGeneratorDbContext _dbContext;
private readonly HttpClient _httpClient;
public ServiceInstance(
RlhfGeneratorDbContext dbContext,
HttpClient httpClient,
TrainingGenerationService service)
{
_dbContext = dbContext;
_httpClient = httpClient;
Service = service;
}
public TrainingGenerationService Service { get; }
public async ValueTask DisposeAsync()
{
await _dbContext.DisposeAsync();
_httpClient.Dispose();
}
}
internal sealed class BatchObservationInterceptor : SaveChangesInterceptor
{
public List<int> CommittedBatchSizes { get; } = [];
public override ValueTask<int> SavedChangesAsync(
SaveChangesCompletedEventData eventData,
int result,
CancellationToken cancellationToken = default)
{
int batchSize = eventData.Context!.ChangeTracker
.Entries<TrainingItem>()
.Count(entry => entry.State == EntityState.Unchanged);
if (batchSize > 0)
{
CommittedBatchSizes.Add(batchSize);
}
return base.SavedChangesAsync(eventData, result, cancellationToken);
}
}
internal sealed class BatchFaultInterceptor : SaveChangesInterceptor
{
private readonly int _failureCall;
private readonly bool _failAfterSave;
private readonly CancellationTokenSource? _cancellation;
private int _saveCallCount;
private bool _failed;
private BatchFaultInterceptor(
int failureCall,
bool failAfterSave,
CancellationTokenSource? cancellation)
{
_failureCall = failureCall;
_failAfterSave = failAfterSave;
_cancellation = cancellation;
}
public static BatchFaultInterceptor BeforeSave(int failureCall) =>
new(failureCall, false, null);
public static BatchFaultInterceptor AfterSave(int failureCall) =>
new(failureCall, true, null);
public static BatchFaultInterceptor CancelBeforeSave(
int failureCall,
CancellationTokenSource cancellation) =>
new(failureCall, false, cancellation);
public override ValueTask<InterceptionResult<int>> SavingChangesAsync(
DbContextEventData eventData,
InterceptionResult<int> result,
CancellationToken cancellationToken = default)
{
int call = Interlocked.Increment(ref _saveCallCount);
if (!_failed && !_failAfterSave && call == _failureCall)
{
_failed = true;
if (_cancellation is not null)
{
_cancellation.Cancel();
throw new OperationCanceledException(_cancellation.Token);
}
throw new InvalidOperationException("Injected batch persistence failure.");
}
return base.SavingChangesAsync(eventData, result, cancellationToken);
}
public override ValueTask<int> SavedChangesAsync(
SaveChangesCompletedEventData eventData,
int result,
CancellationToken cancellationToken = default)
{
if (!_failed && _failAfterSave && _saveCallCount == _failureCall)
{
_failed = true;
throw new InvalidOperationException("Injected failure before batch commit.");
}
return base.SavedChangesAsync(eventData, result, cancellationToken);
}
}
internal class SuccessfulLmStudioHandler : HttpMessageHandler
{
protected override async Task<HttpResponseMessage> SendAsync(
HttpRequestMessage request,
CancellationToken cancellationToken)
{
string sentence = await ReadSentenceAsync(request, cancellationToken);
return CreateResponse(sentence);
}
protected static async Task<string> ReadSentenceAsync(
HttpRequestMessage request,
CancellationToken cancellationToken)
{
string requestBody = await request.Content!.ReadAsStringAsync(cancellationToken);
using JsonDocument requestJson = JsonDocument.Parse(requestBody);
string userContent = requestJson.RootElement
.GetProperty("messages")[1]
.GetProperty("content")
.GetString()!;
return userContent
.Split('\n')
.Single(line => line.StartsWith("Sentence: ", StringComparison.Ordinal))[10..];
}
protected static HttpResponseMessage CreateResponse(string content)
{
string responseBody = JsonSerializer.Serialize(new
{
choices = new[] { new { message = new { content } } }
});
return new HttpResponseMessage(HttpStatusCode.OK)
{
Content = new StringContent(responseBody)
};
}
}
internal sealed class GatedLmStudioHandler : SuccessfulLmStudioHandler
{
private readonly int _allowBeforeGate;
private readonly TaskCompletionSource _gateReached =
new(TaskCreationOptions.RunContinuationsAsynchronously);
private readonly TaskCompletionSource _release =
new(TaskCreationOptions.RunContinuationsAsynchronously);
private int _requestCount;
public GatedLmStudioHandler(int allowBeforeGate)
{
_allowBeforeGate = allowBeforeGate;
}
public Task GateReached => _gateReached.Task;
public void Release() => _release.TrySetResult();
protected override async Task<HttpResponseMessage> SendAsync(
HttpRequestMessage request,
CancellationToken cancellationToken)
{
if (Interlocked.Increment(ref _requestCount) > _allowBeforeGate)
{
_gateReached.TrySetResult();
await _release.Task.WaitAsync(cancellationToken);
}
string sentence = await ReadSentenceAsync(request, cancellationToken);
return CreateResponse(sentence);
}
}
internal sealed class CapitalizingLmStudioHandler : SuccessfulLmStudioHandler
{
private readonly System.Collections.Concurrent.ConcurrentBag<string>
_capitalizedResponses = [];
public IReadOnlyCollection<string> CapitalizedResponses => _capitalizedResponses;
protected override async Task<HttpResponseMessage> SendAsync(
HttpRequestMessage request,
CancellationToken cancellationToken)
{
string sentence = await ReadSentenceAsync(request, cancellationToken);
string returnedValue = sentence.Replace(
"klippel-trenaunay syndrome",
"Klippel-Trenaunay syndrome",
StringComparison.Ordinal);
if (!string.Equals(sentence, returnedValue, StringComparison.Ordinal))
{
_capitalizedResponses.Add(returnedValue);
}
return CreateResponse(returnedValue);
}
}
internal sealed class TimeoutAfterResponsesHandler : SuccessfulLmStudioHandler
{
private readonly int _successfulResponses;
private int _requestCount;
public TimeoutAfterResponsesHandler(int successfulResponses)
{
_successfulResponses = successfulResponses;
}
protected override async Task<HttpResponseMessage> SendAsync(
HttpRequestMessage request,
CancellationToken cancellationToken)
{
if (Interlocked.Increment(ref _requestCount) > _successfulResponses)
{
throw new TaskCanceledException("Injected LM Studio timeout.");
}
string sentence = await ReadSentenceAsync(request, cancellationToken);
return CreateResponse(sentence);
}
}
internal sealed class InvalidOutputAfterResponsesHandler : SuccessfulLmStudioHandler
{
private readonly int _successfulResponses;
private int _requestCount;
public InvalidOutputAfterResponsesHandler(int successfulResponses)
{
_successfulResponses = successfulResponses;
}
protected override async Task<HttpResponseMessage> SendAsync(
HttpRequestMessage request,
CancellationToken cancellationToken)
{
int requestNumber = Interlocked.Increment(ref _requestCount);
string sentence = await ReadSentenceAsync(request, cancellationToken);
return CreateResponse(requestNumber > _successfulResponses
? $"\"{sentence}\""
: sentence);
}
}

View File

@ -0,0 +1,314 @@
using System.Net.Http.Json;
using System.Text.Json;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc.Testing;
using Microsoft.AspNetCore.TestHost;
using Microsoft.Data.Sqlite;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
using RLHF.Generator.Api.Contracts;
using RLHF.Generator.Generation;
using RLHF.Generator.LmStudio;
using RLHF.Generator.Persistence;
using RLHF.Generator.TrainingData;
using Xunit;
namespace RLHF.Generator.Tests;
public sealed class GenerationEndpointAwaitingTests
{
[Fact]
public async Task ManualEndpoint_AcceptsCaseInsensitiveCanonicalFormMatch()
{
await using EndpointFixture fixture = new();
fixture.Handler.ReleaseResponses();
using HttpClient client = fixture.Factory.CreateClient();
using HttpResponseMessage response = await client.PostAsJsonAsync(
"/api/lm-studio/complete",
new CompleteTextRequest(
"She received a Klippel-Trenaunay syndrome diagnosis.",
IsFragment: false,
ProtectedMedicalTerm: "klippel-trenaunay syndrome",
AllowedMedicalForms: ["Klippel-Trenaunay syndrome"]));
response.EnsureSuccessStatusCode();
Assert.Equal(
"She received a Klippel-Trenaunay syndrome diagnosis.",
await response.Content.ReadAsStringAsync());
}
[Fact]
public async Task ManualEndpoint_RejectsCaseInsensitiveDuplicateForms()
{
await using EndpointFixture fixture = new();
using HttpClient client = fixture.Factory.CreateClient();
using HttpResponseMessage response = await client.PostAsJsonAsync(
"/api/lm-studio/complete",
new CompleteTextRequest(
"Member is taking Aleve.",
IsFragment: false,
ProtectedMedicalTerm: "Aleve",
AllowedMedicalForms: ["Aleve", "aleve"]));
Assert.Equal(System.Net.HttpStatusCode.BadRequest, response.StatusCode);
}
[Fact]
public async Task RunEndpoint_AwaitsGenerationAndCommitBeforeResponding()
{
await using EndpointFixture fixture = new();
using HttpClient client = fixture.Factory.CreateClient();
Task<HttpResponseMessage> responseTask = client.PostAsync(
"/api/generation/run",
null);
await fixture.Handler.RequestStarted.WaitAsync(TimeSpan.FromSeconds(10));
Assert.False(responseTask.IsCompleted);
fixture.Handler.ReleaseResponses();
using HttpResponseMessage response = await responseTask;
response.EnsureSuccessStatusCode();
GenerationRunResponse? result =
await response.Content.ReadFromJsonAsync<GenerationRunResponse>();
Assert.NotNull(result);
Assert.NotEqual(Guid.Empty, result.RunId);
Assert.Equal(GenerationRunStatuses.Completed, result.Status);
Assert.Equal(24, result.TotalCommittedRows);
Assert.Equal(24, result.RowsCommittedThisRequest);
Assert.Equal(24, result.TotalExpectedRows);
Assert.False(result.Resumed);
Assert.Equal(
24,
await fixture.DbContext.TrainingItems.AsNoTracking().CountAsync());
}
private sealed class EndpointFixture : IAsyncDisposable
{
private readonly string _dataDirectory;
private readonly SqliteConnection _connection;
public EndpointFixture()
{
_dataDirectory = CreateTrainingData();
_connection = new SqliteConnection("Data Source=:memory:");
_connection.Open();
CreateDatabase(_connection);
DbContextOptions<RlhfGeneratorDbContext> dbOptions =
new DbContextOptionsBuilder<RlhfGeneratorDbContext>()
.UseSqlite(_connection)
.Options;
DbContext = new RlhfGeneratorDbContext(dbOptions);
Handler = new GatedLmStudioHandler();
Factory = new AtomicGenerationApiFactory(
dbOptions,
_dataDirectory,
Handler);
}
public RlhfGeneratorDbContext DbContext { get; }
public GatedLmStudioHandler Handler { get; }
public WebApplicationFactory<Program> Factory { get; }
public async ValueTask DisposeAsync()
{
await Factory.DisposeAsync();
await DbContext.DisposeAsync();
await _connection.DisposeAsync();
Directory.Delete(_dataDirectory, true);
}
private static void CreateDatabase(SqliteConnection connection)
{
using SqliteCommand command = connection.CreateCommand();
command.CommandText =
"""
CREATE TABLE Category (
Id INTEGER NOT NULL PRIMARY KEY,
Name TEXT NOT NULL
);
CREATE TABLE TrainingItem (
Id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
GenerationRunId TEXT NULL,
PlanOrdinal INTEGER NULL,
RecordKey TEXT NULL,
CategoryId INTEGER NOT NULL,
KeywordId INTEGER NULL,
IsPositive INTEGER NOT NULL,
Value TEXT NOT NULL,
FOREIGN KEY (GenerationRunId) REFERENCES GenerationRun (Id) ON DELETE RESTRICT,
FOREIGN KEY (CategoryId) REFERENCES Category (Id) ON DELETE RESTRICT
);
CREATE TABLE GenerationRun (
Id TEXT NOT NULL PRIMARY KEY,
Status TEXT NOT NULL,
RandomSeed INTEGER NOT NULL,
InputFingerprint TEXT NOT NULL,
ConfigurationFingerprint TEXT NOT NULL,
CurrentCategoryId INTEGER NULL,
CurrentIsPositive INTEGER NULL,
LastCommittedPlanOrdinal INTEGER NOT NULL,
TotalExpectedRowCount INTEGER NOT NULL,
TotalCommittedRowCount INTEGER NOT NULL,
StartedAt TEXT NOT NULL,
LastCheckpointAt TEXT NOT NULL,
CompletedAt TEXT NULL,
FailureType TEXT NULL,
FailureMessage TEXT NULL,
FOREIGN KEY (CurrentCategoryId) REFERENCES Category (Id) ON DELETE RESTRICT
);
CREATE INDEX IX_TrainingItem_CategoryId ON TrainingItem (CategoryId);
CREATE UNIQUE INDEX IX_TrainingItem_RecordKey
ON TrainingItem (RecordKey) WHERE RecordKey IS NOT NULL;
CREATE UNIQUE INDEX IX_TrainingItem_GenerationRunId_PlanOrdinal
ON TrainingItem (GenerationRunId, PlanOrdinal)
WHERE GenerationRunId IS NOT NULL AND PlanOrdinal IS NOT NULL;
""";
command.ExecuteNonQuery();
foreach (TrainingCategoryDefinition category in TrainingCategories.All)
{
command.Parameters.Clear();
command.CommandText =
"INSERT INTO Category (Id, Name) VALUES ($id, $name);";
command.Parameters.AddWithValue("$id", category.Id);
command.Parameters.AddWithValue("$name", category.Name);
command.ExecuteNonQuery();
}
}
private static string CreateTrainingData()
{
string dataDirectory = Path.Combine(
Path.GetTempPath(),
$"RLHF.Generator.EndpointTests-{Guid.NewGuid():N}");
string categoriesDirectory = Path.Combine(dataDirectory, "Categories");
string patternsDirectory = Path.Combine(dataDirectory, "Patterns");
Directory.CreateDirectory(categoriesDirectory);
Directory.CreateDirectory(patternsDirectory);
File.WriteAllLines(
Path.Combine(dataDirectory, "Subjects.txt"),
TrainingSubjects.All);
foreach (TrainingCategoryDefinition category in TrainingCategories.All)
{
File.WriteAllText(
Path.Combine(categoriesDirectory, $"{category.Name}.txt"),
$"value-{category.Id}");
File.WriteAllText(
Path.Combine(patternsDirectory, $"{category.Name}.positive.txt"),
"[sub] confirms [x]");
File.WriteAllText(
Path.Combine(patternsDirectory, $"{category.Name}.negative.txt"),
"[sub] denies [x]");
}
return dataDirectory;
}
}
private sealed class AtomicGenerationApiFactory : WebApplicationFactory<Program>
{
private readonly DbContextOptions<RlhfGeneratorDbContext> _dbOptions;
private readonly string _dataDirectory;
private readonly GatedLmStudioHandler _handler;
public AtomicGenerationApiFactory(
DbContextOptions<RlhfGeneratorDbContext> dbOptions,
string dataDirectory,
GatedLmStudioHandler handler)
{
_dbOptions = dbOptions;
_dataDirectory = dataDirectory;
_handler = handler;
}
protected override void ConfigureWebHost(IWebHostBuilder builder)
{
builder.ConfigureTestServices(services =>
{
services.RemoveAll<RlhfGeneratorDbContext>();
services.RemoveAll<DbContextOptions<RlhfGeneratorDbContext>>();
services.AddScoped(_ => new RlhfGeneratorDbContext(_dbOptions));
services.RemoveAll<TrainingDataReader>();
services.AddSingleton(new TrainingDataReader(_dataDirectory));
GenerationOptions generationOptions = new()
{
RandomSeed = 42,
MaxDegreeOfParallelism = 4,
SaveBatchSize = 10,
ProgressLogIntervalSeconds = 5
};
services.RemoveAll<GenerationOptions>();
services.AddSingleton(generationOptions);
LmStudioOptions lmStudioOptions = new()
{
ChatCompletionsUrl = "http://localhost/v1/chat/completions",
ModelName = "endpoint-test",
SystemPrompt = "endpoint-test",
Temperature = 0,
TopP = 1,
MaxTokens = 32,
Seed = 42,
TimeoutSeconds = 30
};
services.RemoveAll<LmStudioOptions>();
services.AddSingleton(lmStudioOptions);
services.RemoveAll<LmStudioClient>();
services.AddSingleton(
new LmStudioClient(new HttpClient(_handler), lmStudioOptions));
});
}
}
private sealed class GatedLmStudioHandler : HttpMessageHandler
{
private readonly TaskCompletionSource _requestStarted =
new(TaskCreationOptions.RunContinuationsAsynchronously);
private readonly TaskCompletionSource _release =
new(TaskCreationOptions.RunContinuationsAsynchronously);
public Task RequestStarted => _requestStarted.Task;
public void ReleaseResponses() => _release.TrySetResult();
protected override async Task<HttpResponseMessage> SendAsync(
HttpRequestMessage request,
CancellationToken cancellationToken)
{
_requestStarted.TrySetResult();
await _release.Task.WaitAsync(cancellationToken);
string requestBody = await request.Content!.ReadAsStringAsync(cancellationToken);
using JsonDocument requestJson = JsonDocument.Parse(requestBody);
string userContent = requestJson.RootElement
.GetProperty("messages")[1]
.GetProperty("content")
.GetString()!;
string sentence = userContent
.Split('\n')
.Single(line => line.StartsWith("Sentence: ", StringComparison.Ordinal))[10..];
string responseBody = JsonSerializer.Serialize(new
{
choices = new[]
{
new { message = new { content = sentence } }
}
});
return new HttpResponseMessage(System.Net.HttpStatusCode.OK)
{
Content = new StringContent(responseBody)
};
}
}
}

View File

@ -0,0 +1,416 @@
using System.Collections.Concurrent;
using Microsoft.Extensions.Logging;
using RLHF.Generator.Generation;
using Xunit;
namespace RLHF.Generator.Tests;
public sealed class GenerationThroughputLoggingTests
{
[Fact]
public async Task PeriodicLog_ReportsRatesCommitsConcurrencyEtaAndStopsAfterSuccess()
{
await using GenerationFixture fixture = await GenerationFixture.CreateAsync(
8,
requiresLmStudio: true);
ManualTimeProvider timeProvider = new();
TestLogger<TrainingGenerationService> logger = new();
CoordinatedLmStudioHandler handler = new(
allowBeforeGate: 4,
blockedRequestTarget: 4);
await using ServiceInstance instance = fixture.CreateService(
handler,
logger: logger,
timeProvider: timeProvider);
Task<GenerationRunResult> generationTask = instance.Service.GenerateAsync();
await handler.TargetBlockedRequestsReached.WaitAsync(TimeSpan.FromSeconds(10));
timeProvider.Advance(TimeSpan.FromSeconds(5));
TestLogEntry periodic = await logger.WaitForAsync(
entry => entry.Message.StartsWith("Generation progress:", StringComparison.Ordinal));
Assert.Contains("4/38", periodic.Message, StringComparison.Ordinal);
Assert.Contains("session 4", periodic.Message, StringComparison.Ordinal);
Assert.Contains("items/s current", periodic.Message, StringComparison.Ordinal);
Assert.Contains("items/s average", periodic.Message, StringComparison.Ordinal);
Assert.Contains("committed 0", periodic.Message, StringComparison.Ordinal);
Assert.Contains("LM active 4/4", periodic.Message, StringComparison.Ordinal);
Assert.Contains("LM peak 4", periodic.Message, StringComparison.Ordinal);
Assert.Contains("ETA ", periodic.Message, StringComparison.Ordinal);
handler.Release();
GenerationRunResult result = await generationTask;
Assert.Equal(38, result.TotalCommittedRows);
Assert.Contains(logger.Entries, entry =>
entry.Message.StartsWith("Generation execution started:", StringComparison.Ordinal));
TestLogEntry final = Assert.Single(logger.Entries, entry =>
entry.Message.StartsWith("Generation execution completed:", StringComparison.Ordinal));
Assert.Contains("session processed 38", final.Message, StringComparison.Ordinal);
Assert.Contains("committed 38", final.Message, StringComparison.Ordinal);
Assert.Contains("LM active 0", final.Message, StringComparison.Ordinal);
Assert.Contains("LM peak 4", final.Message, StringComparison.Ordinal);
int progressLogCount = logger.Entries.Count(entry =>
entry.Message.StartsWith("Generation progress:", StringComparison.Ordinal));
timeProvider.Advance(TimeSpan.FromMinutes(1));
await Task.Yield();
Assert.Equal(
progressLogCount,
logger.Entries.Count(entry =>
entry.Message.StartsWith("Generation progress:", StringComparison.Ordinal)));
}
[Fact]
public async Task DirectItems_NeverIncrementLmActivity()
{
await using GenerationFixture fixture = await GenerationFixture.CreateAsync(1);
TestLogger<TrainingGenerationService> logger = new();
await using ServiceInstance instance = fixture.CreateService(logger: logger);
await instance.Service.GenerateAsync();
TestLogEntry final = Assert.Single(logger.Entries, entry =>
entry.Message.StartsWith("Generation execution completed:", StringComparison.Ordinal));
Assert.Contains("session processed 24", final.Message, StringComparison.Ordinal);
Assert.Contains("LM active 0", final.Message, StringComparison.Ordinal);
Assert.Contains("LM peak 0", final.Message, StringComparison.Ordinal);
}
[Fact]
public async Task FailedLmItems_AreNotProcessedAndReporterStops()
{
await using GenerationFixture fixture = await GenerationFixture.CreateAsync(
8,
requiresLmStudio: true);
ManualTimeProvider timeProvider = new();
TestLogger<TrainingGenerationService> logger = new();
await using ServiceInstance instance = fixture.CreateService(
new InvalidOutputAfterResponsesHandler(0),
logger: logger,
timeProvider: timeProvider);
await Assert.ThrowsAsync<InvalidDataException>(
() => instance.Service.GenerateAsync());
TestLogEntry final = Assert.Single(logger.Entries, entry =>
entry.Message.StartsWith("Generation execution interrupted:", StringComparison.Ordinal));
Assert.Equal(LogLevel.Warning, final.Level);
Assert.Contains("session processed 0", final.Message, StringComparison.Ordinal);
Assert.Contains("committed 0", final.Message, StringComparison.Ordinal);
Assert.Contains("LM active 0", final.Message, StringComparison.Ordinal);
Assert.Matches("LM peak [1-4]", final.Message);
int logCount = logger.Entries.Count;
timeProvider.Advance(TimeSpan.FromMinutes(1));
await Task.Yield();
Assert.Equal(logCount, logger.Entries.Count);
}
[Fact]
public async Task Cancellation_DecrementsLmActivityAndStopsReporter()
{
await using GenerationFixture fixture = await GenerationFixture.CreateAsync(
8,
requiresLmStudio: true);
ManualTimeProvider timeProvider = new();
TestLogger<TrainingGenerationService> logger = new();
CoordinatedLmStudioHandler handler = new(
allowBeforeGate: 0,
blockedRequestTarget: 4);
await using ServiceInstance instance = fixture.CreateService(
handler,
logger: logger,
timeProvider: timeProvider);
using CancellationTokenSource cancellation = new();
Task<GenerationRunResult> generationTask = instance.Service.GenerateAsync(cancellation.Token);
await handler.TargetBlockedRequestsReached.WaitAsync(TimeSpan.FromSeconds(10));
await cancellation.CancelAsync();
await Assert.ThrowsAnyAsync<OperationCanceledException>(() => generationTask);
TestLogEntry final = Assert.Single(logger.Entries, entry =>
entry.Message.StartsWith("Generation execution interrupted:", StringComparison.Ordinal));
Assert.Contains("session processed 0", final.Message, StringComparison.Ordinal);
Assert.Contains("LM active 0", final.Message, StringComparison.Ordinal);
Assert.Contains("LM peak 4", final.Message, StringComparison.Ordinal);
int logCount = logger.Entries.Count;
timeProvider.Advance(TimeSpan.FromMinutes(1));
await Task.Yield();
Assert.Equal(logCount, logger.Entries.Count);
}
[Fact]
public async Task Resume_LogStartsSessionAtZeroAndRetainsCommittedProgress()
{
await using GenerationFixture fixture = await GenerationFixture.CreateAsync(
20,
requiresLmStudio: true);
BatchFaultInterceptor failure = BatchFaultInterceptor.BeforeSave(3);
await using (ServiceInstance failed = fixture.CreateService(interceptor: failure))
{
await Assert.ThrowsAsync<InvalidOperationException>(
() => failed.Service.GenerateAsync());
}
ManualTimeProvider timeProvider = new();
TestLogger<TrainingGenerationService> logger = new();
CoordinatedLmStudioHandler handler = new(
allowBeforeGate: 0,
blockedRequestTarget: 4);
await using ServiceInstance resumed = fixture.CreateService(
handler,
logger: logger,
timeProvider: timeProvider);
Task<GenerationRunResult> resumedTask = resumed.Service.GenerateAsync();
await handler.TargetBlockedRequestsReached.WaitAsync(TimeSpan.FromSeconds(10));
timeProvider.Advance(TimeSpan.FromSeconds(5));
TestLogEntry periodic = await logger.WaitForAsync(entry =>
entry.Message.StartsWith("Generation progress:", StringComparison.Ordinal));
Assert.Contains("10/62", periodic.Message, StringComparison.Ordinal);
Assert.Contains("session 0", periodic.Message, StringComparison.Ordinal);
Assert.Contains("committed 10", periodic.Message, StringComparison.Ordinal);
handler.Release();
await resumedTask;
TestLogEntry start = Assert.Single(logger.Entries, entry =>
entry.Message.StartsWith("Generation execution started:", StringComparison.Ordinal));
Assert.Contains("already committed 10", start.Message, StringComparison.Ordinal);
TestLogEntry final = Assert.Single(logger.Entries, entry =>
entry.Message.StartsWith("Generation execution completed:", StringComparison.Ordinal));
Assert.Contains("session processed 52", final.Message, StringComparison.Ordinal);
Assert.Contains("committed 62", final.Message, StringComparison.Ordinal);
}
[Fact]
public async Task FailedCommit_DoesNotAdvanceLoggedCommittedCount()
{
await using GenerationFixture fixture = await GenerationFixture.CreateAsync(20);
TestLogger<TrainingGenerationService> logger = new();
BatchFaultInterceptor failure = BatchFaultInterceptor.BeforeSave(2);
await using ServiceInstance instance = fixture.CreateService(
interceptor: failure,
logger: logger);
await Assert.ThrowsAsync<InvalidOperationException>(
() => instance.Service.GenerateAsync());
TestLogEntry final = Assert.Single(logger.Entries, entry =>
entry.Message.StartsWith("Generation execution interrupted:", StringComparison.Ordinal));
Assert.Contains("committed 0", final.Message, StringComparison.Ordinal);
Assert.Equal(0, await fixture.CountRowsAsync());
}
[Fact]
public async Task NonPositiveProgressInterval_IsRejected()
{
await using GenerationFixture fixture = await GenerationFixture.CreateAsync(1);
GenerationOptions options = fixture.CreateGenerationOptions();
options.ProgressLogIntervalSeconds = 0;
InvalidOperationException exception = Assert.Throws<InvalidOperationException>(
() => fixture.CreateService(generationOptions: options));
Assert.Contains("ProgressLogIntervalSeconds", exception.Message, StringComparison.Ordinal);
}
}
internal sealed class CoordinatedLmStudioHandler : SuccessfulLmStudioHandler
{
private readonly int _allowBeforeGate;
private readonly int _blockedRequestTarget;
private readonly TaskCompletionSource _targetBlockedRequestsReached =
new(TaskCreationOptions.RunContinuationsAsynchronously);
private readonly TaskCompletionSource _release =
new(TaskCreationOptions.RunContinuationsAsynchronously);
private int _requestCount;
private int _blockedRequestCount;
public CoordinatedLmStudioHandler(int allowBeforeGate, int blockedRequestTarget)
{
_allowBeforeGate = allowBeforeGate;
_blockedRequestTarget = blockedRequestTarget;
}
public Task TargetBlockedRequestsReached => _targetBlockedRequestsReached.Task;
public void Release() => _release.TrySetResult();
protected override async Task<HttpResponseMessage> SendAsync(
HttpRequestMessage request,
CancellationToken cancellationToken)
{
if (Interlocked.Increment(ref _requestCount) > _allowBeforeGate)
{
if (Interlocked.Increment(ref _blockedRequestCount) == _blockedRequestTarget)
{
_targetBlockedRequestsReached.TrySetResult();
}
await _release.Task.WaitAsync(cancellationToken);
}
string sentence = await ReadSentenceAsync(request, cancellationToken);
return CreateResponse(sentence);
}
}
internal sealed record TestLogEntry(LogLevel Level, string Message);
internal sealed class TestLogger<T> : ILogger<T>
{
private readonly ConcurrentQueue<TestLogEntry> _entries = new();
private readonly SemaphoreSlim _logged = new(0);
public IReadOnlyCollection<TestLogEntry> Entries => _entries.ToArray();
public IDisposable? BeginScope<TState>(TState state) where TState : notnull => null;
public bool IsEnabled(LogLevel logLevel) => true;
public void Log<TState>(
LogLevel logLevel,
EventId eventId,
TState state,
Exception? exception,
Func<TState, Exception?, string> formatter)
{
_entries.Enqueue(new TestLogEntry(logLevel, formatter(state, exception)));
_logged.Release();
}
public async Task<TestLogEntry> WaitForAsync(Func<TestLogEntry, bool> predicate)
{
using CancellationTokenSource timeout = new(TimeSpan.FromSeconds(10));
while (true)
{
TestLogEntry? match = Entries.FirstOrDefault(predicate);
if (match is not null)
{
return match;
}
await _logged.WaitAsync(timeout.Token);
}
}
}
internal sealed class ManualTimeProvider : TimeProvider
{
private readonly object _sync = new();
private readonly List<ManualTimer> _timers = [];
private long _timestamp;
public override long TimestampFrequency => TimeSpan.TicksPerSecond;
public override long GetTimestamp() => Volatile.Read(ref _timestamp);
public override ITimer CreateTimer(
TimerCallback callback,
object? state,
TimeSpan dueTime,
TimeSpan period)
{
ManualTimer timer = new(this, callback, state, dueTime, period);
lock (_sync)
{
_timers.Add(timer);
}
return timer;
}
public void Advance(TimeSpan duration)
{
List<(TimerCallback Callback, object? State)> callbacks = [];
lock (_sync)
{
_timestamp += duration.Ticks;
foreach (ManualTimer timer in _timers.ToArray())
{
timer.CollectCallbacks(_timestamp, callbacks);
}
}
foreach ((TimerCallback callback, object? state) in callbacks)
{
callback(state);
}
}
private void Remove(ManualTimer timer)
{
lock (_sync)
{
_timers.Remove(timer);
}
}
private sealed class ManualTimer : ITimer
{
private readonly ManualTimeProvider _provider;
private readonly TimerCallback _callback;
private readonly object? _state;
private long _nextTimestamp;
private long _periodTicks;
private bool _disposed;
public ManualTimer(
ManualTimeProvider provider,
TimerCallback callback,
object? state,
TimeSpan dueTime,
TimeSpan period)
{
_provider = provider;
_callback = callback;
_state = state;
Change(dueTime, period);
}
public bool Change(TimeSpan dueTime, TimeSpan period)
{
if (_disposed)
{
return false;
}
_nextTimestamp = dueTime == Timeout.InfiniteTimeSpan
? long.MaxValue
: _provider.GetTimestamp() + dueTime.Ticks;
_periodTicks = period == Timeout.InfiniteTimeSpan
? 0
: period.Ticks;
return true;
}
public void Dispose()
{
_disposed = true;
_provider.Remove(this);
}
public ValueTask DisposeAsync()
{
Dispose();
return ValueTask.CompletedTask;
}
public void CollectCallbacks(
long timestamp,
List<(TimerCallback Callback, object? State)> callbacks)
{
while (!_disposed && timestamp >= _nextTimestamp)
{
callbacks.Add((_callback, _state));
if (_periodTicks <= 0)
{
_nextTimestamp = long.MaxValue;
break;
}
_nextTimestamp += _periodTicks;
}
}
}
}

View File

@ -0,0 +1,324 @@
using Microsoft.Data.SqlClient;
using Microsoft.Data.Sqlite;
using Microsoft.EntityFrameworkCore;
using RLHF.Generator.Keywords;
using RLHF.Generator.Persistence;
using RLHF.Generator.TrainingData;
using Xunit;
namespace RLHF.Generator.Tests;
public sealed class KeywordCatalogPhase1Tests
{
[Fact]
public async Task Model_ContainsNullableKeywordRelationshipAndRequiredIndexes()
{
await using KeywordFixture fixture = await KeywordFixture.CreateAsync();
await using RlhfGeneratorDbContext context = fixture.CreateContext();
Microsoft.EntityFrameworkCore.Metadata.IEntityType keyword =
context.Model.FindEntityType(typeof(Keyword))!;
Microsoft.EntityFrameworkCore.Metadata.IEntityType variant =
context.Model.FindEntityType(typeof(KeywordVariant))!;
Microsoft.EntityFrameworkCore.Metadata.IEntityType trainingItem =
context.Model.FindEntityType(typeof(TrainingItem))!;
Assert.Contains(
keyword.GetIndexes(),
index => index.IsUnique
&& index.Properties.Select(property => property.Name)
.SequenceEqual([nameof(Keyword.CategoryId), nameof(Keyword.Value)]));
Assert.Contains(
variant.GetIndexes(),
index => index.IsUnique
&& index.Properties.Select(property => property.Name)
.SequenceEqual([nameof(KeywordVariant.ParentId), nameof(KeywordVariant.Value)]));
Assert.True(trainingItem.FindProperty(nameof(TrainingItem.KeywordId))!.IsNullable);
Assert.Contains(
trainingItem.GetIndexes(),
index => !index.IsUnique
&& index.Properties.Single().Name == nameof(TrainingItem.KeywordId));
Assert.Contains(
keyword.GetForeignKeys(),
foreignKey => foreignKey.PrincipalEntityType.ClrType == typeof(Category)
&& foreignKey.PrincipalToDependent?.Name == nameof(Category.Keywords)
&& foreignKey.DeleteBehavior == DeleteBehavior.Restrict);
Assert.Contains(
variant.GetForeignKeys(),
foreignKey => foreignKey.PrincipalEntityType.ClrType == typeof(Keyword)
&& foreignKey.DeleteBehavior == DeleteBehavior.Cascade);
Assert.Contains(
trainingItem.GetForeignKeys(),
foreignKey => foreignKey.PrincipalEntityType.ClrType == typeof(Keyword)
&& foreignKey.DeleteBehavior == DeleteBehavior.Restrict);
}
[Fact]
public async Task Load_IsAdditiveCaseInsensitiveAndIdempotent()
{
await using KeywordFixture fixture = await KeywordFixture.CreateAsync();
fixture.WriteCategoryValues(
TrainingCategories.MedicalDiagnosis,
"Café-au-lait spot|cafe au lait spot");
await using RlhfGeneratorDbContext context = fixture.CreateContext();
context.Keywords.Add(new Keyword
{
CategoryId = TrainingCategories.MedicalDiagnosis.Id,
Value = "CAFÉ-AU-LAIT SPOT"
});
await context.SaveChangesAsync();
KeywordLoadService service = new(context, new TrainingDataReader(fixture.DataDirectory));
KeywordLoadResult first = await service.LoadAsync();
KeywordLoadResult second = await service.LoadAsync();
Assert.Equal(TrainingCategories.All.Count, first.SourceKeywordCount);
Assert.Equal(1, first.SourceVariantCount);
Assert.Equal(TrainingCategories.All.Count - 1, first.InsertedKeywordCount);
Assert.Equal(1, first.ExistingKeywordCount);
Assert.Equal(1, first.InsertedVariantCount);
Assert.Equal(0, second.InsertedKeywordCount);
Assert.Equal(0, second.InsertedVariantCount);
Assert.Equal(TrainingCategories.All.Count, await context.Keywords.CountAsync());
Keyword reused = await context.Keywords.SingleAsync(keyword =>
keyword.CategoryId == TrainingCategories.MedicalDiagnosis.Id);
KeywordVariant variant = Assert.Single(await context.KeywordVariants.ToListAsync());
Assert.Equal(reused.Id, variant.ParentId);
Assert.False(string.Equals(
reused.Value,
variant.Value,
StringComparison.OrdinalIgnoreCase));
}
[Fact]
public async Task Backfill_DryRunApplyAndRerun_HandleNormalizationBoundariesAndAmbiguity()
{
await using KeywordFixture fixture = await KeywordFixture.CreateAsync();
await using RlhfGeneratorDbContext context = fixture.CreateContext();
Keyword cafe = new()
{
CategoryId = TrainingCategories.MedicalDiagnosis.Id,
Value = "café-au-lait spot",
Variants = [new KeywordVariant { Value = "cafe au lait spot" }]
};
Keyword pain = new()
{
CategoryId = TrainingCategories.MedicalDiagnosis.Id,
Value = "pain"
};
Keyword chestPain = new()
{
CategoryId = TrainingCategories.MedicalDiagnosis.Id,
Value = "chest pain"
};
Keyword sharedOne = new()
{
CategoryId = TrainingCategories.MedicalDiagnosis.Id,
Value = "shared surface"
};
Keyword sharedTwo = new()
{
CategoryId = TrainingCategories.MedicalDiagnosis.Id,
Value = "different canonical",
Variants = [new KeywordVariant { Value = "shared surface" }]
};
context.Keywords.AddRange(cafe, pain, chestPain, sharedOne, sharedTwo);
await context.SaveChangesAsync();
Guid generationRunId = Guid.NewGuid();
TrainingItem alreadyAssigned = new()
{
GenerationRunId = generationRunId,
PlanOrdinal = 42,
RecordKey = new string('a', 64),
CategoryId = TrainingCategories.MedicalDiagnosis.Id,
KeywordId = pain.Id,
IsPositive = false,
Value = "Existing assigned metadata"
};
context.TrainingItems.AddRange(
CreateItem("The CAFE AU LAIT SPOT is unchanged."),
CreateItem("There is chest pain."),
CreateItem("There is chest pain and a café-au-lait spot."),
CreateItem("A shared surface is present."),
CreateItem("The painting is unchanged."),
new TrainingItem
{
CategoryId = TrainingCategories.MedicalAllergy.Id,
IsPositive = true,
Value = "Pain is mentioned in another category."
},
alreadyAssigned);
await context.SaveChangesAsync();
TrainingItemKeywordBackfillService service = new(context);
TrainingItemKeywordBackfillResult dryRun = await service.BackfillAsync(batchSize: 5);
Assert.Equal(7, dryRun.TotalTrainingItemCount);
Assert.Equal(1, dryRun.AlreadyAssignedCount);
Assert.Equal(6, dryRun.ProcessedCount);
Assert.Equal(2, dryRun.UniqueMatchCount);
Assert.Equal(2, dryRun.UnmatchedCount);
Assert.Equal(2, dryRun.AmbiguousCount);
Assert.Equal(0, dryRun.UpdatedCount);
Assert.Equal(1, await context.TrainingItems.CountAsync(item => item.KeywordId != null));
TrainingItemKeywordBackfillResult applied = await service.BackfillAsync(false, 5);
Assert.Equal(2, applied.UpdatedCount);
Assert.Equal(3, await context.TrainingItems.CountAsync(item => item.KeywordId != null));
TrainingItem preserved = await context.TrainingItems.SingleAsync(
item => item.Id == alreadyAssigned.Id);
Assert.Equal(pain.Id, preserved.KeywordId);
Assert.Equal(generationRunId, preserved.GenerationRunId);
Assert.Equal(42, preserved.PlanOrdinal);
Assert.Equal(new string('a', 64), preserved.RecordKey);
Assert.False(preserved.IsPositive);
Assert.Equal("Existing assigned metadata", preserved.Value);
TrainingItemKeywordBackfillResult rerun = await service.BackfillAsync(false, 5);
Assert.Equal(3, rerun.AlreadyAssignedCount);
Assert.Equal(4, rerun.ProcessedCount);
Assert.Equal(0, rerun.UpdatedCount);
}
[Fact]
public async Task Backfill_RejectsMissingCatalogAndInvalidBatchSize()
{
await using KeywordFixture fixture = await KeywordFixture.CreateAsync();
await using RlhfGeneratorDbContext context = fixture.CreateContext();
TrainingItemKeywordBackfillService service = new(context);
await Assert.ThrowsAsync<KeywordsNotLoadedException>(() => service.BackfillAsync());
await Assert.ThrowsAsync<ArgumentOutOfRangeException>(() => service.BackfillAsync(batchSize: 0));
}
[Fact]
public void DesignTimeFactory_UsesOnlyGuardedSqlServerCatalog()
{
RlhfGeneratorDesignTimeDbContextFactory factory = new();
using RlhfGeneratorDbContext context = factory.CreateDbContext([]);
string connectionString = context.Database.GetConnectionString()!;
SqlConnectionStringBuilder connection = new(connectionString);
Assert.True(context.Database.IsSqlServer());
Assert.Equal(
RlhfGeneratorDesignTimeDbContextFactory.DesignTimeDatabaseName,
connection.InitialCatalog);
InvalidOperationException productionException = Assert.Throws<InvalidOperationException>(
() => RlhfGeneratorDesignTimeDbContextFactory.ValidateDatabaseName("RLHFGenerator"));
Assert.Contains(
"forbidden from using the production RLHFGenerator database",
productionException.Message,
StringComparison.Ordinal);
Assert.Throws<InvalidOperationException>(
() => RlhfGeneratorDesignTimeDbContextFactory.ValidateDatabaseName("anything-else"));
}
private static TrainingItem CreateItem(string value) => new()
{
CategoryId = TrainingCategories.MedicalDiagnosis.Id,
IsPositive = true,
Value = value
};
}
internal sealed class KeywordFixture : IAsyncDisposable
{
private readonly string _rootDirectory;
private readonly string _connectionString;
private KeywordFixture(string rootDirectory)
{
_rootDirectory = rootDirectory;
_connectionString = $"Data Source={Path.Combine(rootDirectory, "keywords.db")};Pooling=False";
}
public string DataDirectory => Path.Combine(_rootDirectory, "Data");
public static async Task<KeywordFixture> CreateAsync()
{
string rootDirectory = Path.Combine(
Path.GetTempPath(),
$"RLHF.Generator.Keywords.Tests-{Guid.NewGuid():N}");
Directory.CreateDirectory(Path.Combine(rootDirectory, "Data", "Categories"));
KeywordFixture fixture = new(rootDirectory);
foreach (TrainingCategoryDefinition category in TrainingCategories.All)
{
fixture.WriteCategoryValues(category, $"value-{category.Id}");
}
await fixture.CreateDatabaseAsync();
return fixture;
}
public RlhfGeneratorDbContext CreateContext()
{
DbContextOptions<RlhfGeneratorDbContext> options =
new DbContextOptionsBuilder<RlhfGeneratorDbContext>()
.UseSqlite(_connectionString)
.Options;
return new RlhfGeneratorDbContext(options);
}
public void WriteCategoryValues(TrainingCategoryDefinition category, string content) =>
File.WriteAllText(
Path.Combine(DataDirectory, "Categories", $"{category.Name}.txt"),
content);
public async ValueTask DisposeAsync()
{
SqliteConnection.ClearAllPools();
await Task.Yield();
Directory.Delete(_rootDirectory, true);
}
private async Task CreateDatabaseAsync()
{
await using SqliteConnection connection = new(_connectionString);
await connection.OpenAsync();
await using SqliteCommand command = connection.CreateCommand();
command.CommandText =
"""
PRAGMA foreign_keys = ON;
CREATE TABLE Category (
Id INTEGER NOT NULL PRIMARY KEY,
Name TEXT NOT NULL
);
CREATE TABLE Keyword (
Id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
CategoryId INTEGER NOT NULL,
Value TEXT NOT NULL,
FOREIGN KEY (CategoryId) REFERENCES Category (Id) ON DELETE RESTRICT
);
CREATE UNIQUE INDEX IX_Keyword_CategoryId_Value ON Keyword (CategoryId, Value);
CREATE TABLE KeywordVariant (
Id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
ParentId INTEGER NOT NULL,
Value TEXT NOT NULL,
FOREIGN KEY (ParentId) REFERENCES Keyword (Id) ON DELETE CASCADE
);
CREATE UNIQUE INDEX IX_KeywordVariant_ParentId_Value
ON KeywordVariant (ParentId, Value);
CREATE TABLE TrainingItem (
Id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
GenerationRunId TEXT NULL,
PlanOrdinal INTEGER NULL,
RecordKey TEXT NULL,
CategoryId INTEGER NOT NULL,
KeywordId INTEGER NULL,
IsPositive INTEGER NOT NULL,
Value TEXT NOT NULL,
FOREIGN KEY (CategoryId) REFERENCES Category (Id) ON DELETE RESTRICT,
FOREIGN KEY (KeywordId) REFERENCES Keyword (Id) ON DELETE RESTRICT
);
CREATE INDEX IX_TrainingItem_KeywordId ON TrainingItem (KeywordId);
""";
await command.ExecuteNonQueryAsync();
foreach (TrainingCategoryDefinition category in TrainingCategories.All)
{
command.Parameters.Clear();
command.CommandText = "INSERT INTO Category (Id, Name) VALUES ($id, $name);";
command.Parameters.AddWithValue("$id", category.Id);
command.Parameters.AddWithValue("$name", category.Name);
await command.ExecuteNonQueryAsync();
}
}
}

View File

@ -0,0 +1,76 @@
using Microsoft.AspNetCore.Mvc.Testing;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
using RLHF.Generator.Persistence;
using Xunit;
namespace RLHF.Generator.Tests;
public sealed class ProductionProviderIsolationTests
{
[Fact]
public void ProductionDependencyInjection_UsesSqlServerProvider()
{
using WebApplicationFactory<Program> factory = new();
using IServiceScope scope = factory.Services.CreateScope();
RlhfGeneratorDbContext dbContext = scope.ServiceProvider
.GetRequiredService<RlhfGeneratorDbContext>();
DbContextOptions<RlhfGeneratorDbContext> options = scope.ServiceProvider
.GetRequiredService<DbContextOptions<RlhfGeneratorDbContext>>();
Assert.Equal(
"Microsoft.EntityFrameworkCore.SqlServer",
dbContext.Database.ProviderName);
Assert.Contains(
"Initial Catalog=RLHFGenerator",
dbContext.Database.GetConnectionString(),
StringComparison.OrdinalIgnoreCase);
Assert.Contains(
options.Extensions,
extension => extension.GetType().Name.Contains(
"SqlServerOptionsExtension",
StringComparison.Ordinal));
Assert.DoesNotContain(
options.Extensions,
extension => extension.GetType().Name.Contains(
"SqliteOptionsExtension",
StringComparison.Ordinal));
}
[Fact]
public void SqlitePackages_AreReferencedOnlyByTestProject()
{
DirectoryInfo repository = FindRepositoryRoot();
FileInfo[] projectFiles = repository.GetFiles(
"*.csproj",
SearchOption.AllDirectories);
FileInfo testProject = Assert.Single(
projectFiles,
file => file.Directory!.Name == "RLHF.Generator.Tests");
Assert.Contains(
"Sqlite",
File.ReadAllText(testProject.FullName),
StringComparison.OrdinalIgnoreCase);
foreach (FileInfo productionProject in projectFiles.Except([testProject]))
{
Assert.DoesNotContain(
"Sqlite",
File.ReadAllText(productionProject.FullName),
StringComparison.OrdinalIgnoreCase);
}
}
private static DirectoryInfo FindRepositoryRoot()
{
DirectoryInfo? directory = new(AppContext.BaseDirectory);
while (directory is not null
&& !File.Exists(Path.Combine(directory.FullName, "RLHF.Generator.slnx")))
{
directory = directory.Parent;
}
return directory
?? throw new DirectoryNotFoundException("Repository root was not found.");
}
}

View File

@ -0,0 +1,28 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="10.0.8" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite.Core" Version="10.0.8" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.1" />
<PackageReference Include="SQLitePCLRaw.provider.winsqlite3" Version="2.1.11" />
<PackageReference Include="xunit" Version="2.9.3" />
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.4">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\RLHF.Generator.Api\RLHF.Generator.Api.csproj" />
<ProjectReference Include="..\RLHF.Generator\RLHF.Generator.csproj" />
</ItemGroup>
</Project>

View File

@ -0,0 +1,11 @@
using System.Runtime.CompilerServices;
using SQLitePCL;
namespace RLHF.Generator.Tests;
internal static class TestSqliteProvider
{
[ModuleInitializer]
internal static void Initialize() =>
raw.SetProvider(new SQLite3Provider_winsqlite3());
}

View File

@ -0,0 +1,5 @@
<Solution>
<Project Path="RLHF.Generator/RLHF.Generator.csproj" />
<Project Path="RLHF.Generator.Api/RLHF.Generator.Api.csproj" />
<Project Path="RLHF.Generator.Tests/RLHF.Generator.Tests.csproj" />
</Solution>

Binary file not shown.

View File

@ -0,0 +1,779 @@
abacavir
ace inhibitor | ace inhibitors
acetaminophen | Tylenol | Paracetamol
acrylate | acrylates
adalimumab | Humira
adhesive agent
adhesive tape
albumen
albumin
alder pollen
alfentanil
allopurinol | Zyloprim
allura red
almond | almonds
almond oil
alpha-gal | galactose alpha 1 3 galactose
alpha-lactalbumin
alteplase
alternaria mold | alternaria
aluminum | aluminium
amidoamine
amikacin
aminoglycoside | aminoglycosides
amoxicillin
amoxicillin + clavulanate | Augmentin | amoxicillin clavulanate
ampicillin
ampicillin + sulbactam | Unasyn | ampicillin sulbactam
anchovy | anchovies
anesthesia medication | anesthesia medications
animal dander | animal dandruff
animal hair | animal fur
anise oil
annatto
ant sting | ant stings
ant venom
anthralin
anti-seizure medication | anti-seizure medications | anticonvulsant | anticonvulsants
antibiotic | antibiotics
apixaban | Eliquis
apple | apples
apple juice
articaine
ash pollen
aspartame | Nutrasweet
aspergillus mold | aspergillus
aspirin | acetylsalicylic acid
atracurium
azelaic acid
azilsartan
azithromycin | Zpak | Z-Pak | Zithromax
aztreonam
bacitracin
baker's yeast
balsam of peru
banana | bananas
barley
bean | beans
bee | bees
bee sting | bee stings
bee venom
bee venom protein
beef
bell pepper | bell peppers
benazepril
benzalkonium chloride
benzoate
benzocaine
benzoyl peroxide
benzylpenicillin
bermuda grass
bermuda grass pollen
beta-lactam | beta-lactams
beta-lactoglobulin
birch pollen
bird dander
bird feather | bird feathers
black rubber mix
bleomycin
blueberry | blueberries
bone cement
bovine insulin
brass
brazil nut | brazil nuts
brewer's yeast
buckwheat
budesonide
buffalo milk
bumblebee | bumble bee | bumblebees | bumble bees
bupivacaine | Marcaine
buprenorphine
buprenorphine + naloxone | Suboxone
butorphanol
cabazitaxel
camel milk
candesartan
canola
canola oil
capecitabine
capsicum
capsicum pepper
captopril
carbamate mix
carbamazepine | Tegretol
carbaryl
carboplatin
carmine
carob
carrot | carrots
casein
caseinate
cashew | cashews | cashew nut | cashew nuts
cat | cats
cat allergen | cat fur | cat hair | cat dander
catgut suture
cattle dander
cedar pollen
cefaclor
cefadroxil
cefazolin | Ancef
cefdinir | Omnicef
cefditoren
cefepime | Maxipime
cefixime
cefotaxime
cefotetan
cefoxitin
cefpodoxime
cefprozil
ceftaroline
ceftazidime | Fortaz
ceftazidime + avibactam | ceftazidime avibactam
ceftibuten
ceftolozane
ceftolozane + tazobactam | ceftolozane tazobactam
ceftriaxone | Rocephin
cefuroxime | Ceftin
celecoxib | Celebrex
celeriac | celery root
celery
cephalexin | Keflex
cephalosporin | cephalosporins
cephalothin
cephradine
cereal | cereals
cetuximab
cheese
chemotherapy
chemotherapy drug | chemotherapy drugs
cherry | cherries
chestnut | chestnuts
chicken | chickens
chicken egg | chicken eggs | hen's egg | hens' eggs
chickpea | chickpeas
chili pepper | chili peppers | chile pepper | chile peppers
chloramphenicol
chlorhexidine
chloroprocaine
chlorpromazine
chocolate
chromate
chromium
cinnamon
ciprofloxacin | Cipro
cisatracurium
cisplatin
citrate
citrus
citrus fruit | citrus fruits
cladosporium mold | cladosporium
clam | clams
clarithromycin | Biaxin
clavulanate
clavulanic acid
clindamycin | Cleocin
clove
cobalt
cobalt chloride
cocaine
cocamide dea
cocamidopropyl betaine
cochineal
cockroach | cockroaches | roach | roaches
cockroach allergen | cockroach protein
cockroach debris
cocoa butter
coconut | coconuts
cod | cods
codeine
colistin
colophony
contrast media | contrast dye | radiographic contrast | x-ray contrast
copper
coriander
corn
corn protein
cornmeal
cotton fiber
cottonwood pollen
cow dander
cow fur
cow hair
cow milk | cow's milk
cow milk protein | cow's milk protein
crab | crabs
crustacean | crustaceans
cumin
curry powder
cuttlefish | cuttlefishes
cyanoacrylate
cyclophosphamide
cypress
cypress pollen
cypress tree pollen
dabigatran | Pradaxa
dairy | dairy products
dalbavancin
dalteparin
daptomycin
date | dates
daunorubicin
delafloxacin
demeclocycline
dental acrylic
dental resin
desflurane
diatrizoate
diclofenac | Voltaren
dicloxacillin
diflunisal
dimethicone
dimethylaminopropylamine
diphenhydramine
disperse blue dye
disperse dye
divalproex
docetaxel | Taxotere
dog | dogs
dog allergen | dog fur | dog hair | dog dander
doripenem
down feathers | down feather
doxorubicin
doxycycline | Vibramycin
droperidol
duck | ducks
dust
dust mite | dust mites | house dust mite | house dust mites
dust mite protein
dye
edoxaban
efavirenz
egg | eggs
egg protein
egg white | egg whites
elm pollen
enalapril | Vasotec
enoxaparin | Lovenox
epoxy
epoxy resin
equal sweetener
ertapenem
erythromycin | Ery-Tab
ethanolamine
ethylene oxide
etodolac
etomidate
etoposide
eucalyptus oil
fava bean | fava beans | faba bean | faba beans | broad bean | broad beans
feather | feathers
febuxostat
fentanyl | Duragesic
ferric carboxymaltose
fescue pollen
fidaxomicin
fig | figs
filbert | filberts
finfish | fin fish
fire ant | fire ants
fire ant sting | fire ant stings
fire ant venom
fish | fishes
fish derived omega 3 fatty acid
fish oil | fish omega 3 | omega 3 fish oil
fish protein
flaxseed | flax seed | flax seeds
flea | fleas
flea bite | flea bites
flea saliva
flour
flower and weed pollen
flower pollen
flucloxacillin
fluoroquinolone | fluoroquinolones
fluorouracil
flurbiprofen
fondaparinux
food coloring
food dye | food colour
formaldehyde
formalin
fosfomycin
fosinopril
fosphenytoin
fragrance | fragrances
fragrance mix
fruit
fungal antigen | fungus antigen
fungal spores | fungal spore
fungus | fungi
gabapentin
gadobenate dimeglumine
gadobutrol | Gadovist
gadolinium contrast
gadopentetate | Magnevist
gadopentetate dimeglumine
gadoterate meglumine
gadoteridol
gadoxetate disodium
garlic
gelatin
gemcitabine
gemifloxacin
general anesthetic | general anesthetics
gentamicin
gerbil dander
ginger
glue
glutamate
gluten
goat milk | goat's milk
gold
gold sodium thiosulfate
goose | geese
grain
grapefruit | grapefruits
grass | grasses
grass pollen | grass pollens
guinea pig dander
hair dye | hair color | hair colour | hair coloring | hair colouring
haloperidol
hamster dander
hazelnut | hazelnuts
hemp seed
heparin
herbs and spices
hickory nut | hickory nuts
hickory pollen
honeybee | honey bee | honeybees | honey bees
hornet | hornets
hornet sting | hornet stings
hornet venom
horse | horses
horse dander
horse fur
horse hair
horsefly | horseflies
hot pepper | hot peppers
house dust | household dust | indoor dust
human insulin
hydrocodone
hydrocodone + acetaminophen | Norco | Vicodin
hydromorphone | Dilaudid
ibuprofen | Advil | Motrin
ifosfamide
imipenem
imipenem + cilastatin | imipenem cilastatin
indomethacin | Indocin
infliximab | Remicade
insect bite | insect bites
insect debris
insect saliva
insect salivary substance
insect sting | insect stings
insect venom
insulin
iodinated contrast | iodinated contrast media
iodine
iodixanol | Visipaque
iohexol | Omnipaque
iopamidol | Isovue
iopromide
iothalamate
ioversol
ipilimumab
irbesartan
irinotecan
iron
iron dextran
iron sucrose
isoflurane
johnson grass
johnson grass pollen
juniper pollen
kamut
kanamycin
ketamine
ketoprofen
ketorolac | Toradol
kiwi | kiwis | kiwifruit
kiwi fruit | kiwi fruits
lacosamide
lactose
lamb's quarters
lamb's quarters pollen
lamotrigine | Lamictal
lanolin
lanolin alcohol
latex | natural rubber latex | rubber latex | latex rubber
legume | legumes
lemon | lemons
lentil | lentils
lentil protein
levetiracetam | Keppra
levofloxacin | Levaquin
lidocaine | Xylocaine | Lignocaine
lime | limes
lincomycin
linezolid | Zyvox
Lisinopril | Zestril | Prinivil
lobster | lobsters
local anesthetic | local anesthetics
losartan
lupin | lupine
lupin flour | lupine flour
lupin seed | lupin seeds | lupine seed | lupine seeds
macadamia nut | macadamia nuts
macrolide | macrolides
maize
mammalian meat
mammalian milk
mammalian milk based food
mandarin | mandarins
mango | mangoes | mangos | mango fruit
maple pollen
marine crustacean
mci
mci/mi
meat
mefenamic acid
melon | melons
meloxicam | Mobic
meperidine | Demerol | Pethidine
mepivacaine
mercapto mix
mercaptobenzothiazole
meropenem
meropenem + vaborbactam | meropenem vaborbactam
metabisulfite | metabisulphite
methacrylate | methacrylates
methadone
methicillin
methohexital
methotrexate
methyl methacrylate
methylbenzethonium chloride
methylchloroisothiazolinone
methylisothiazolinone
metoclopramide
metrizoate
metronidazole | Flagyl
milk
milk product | milk products
milk protein
millet
minocycline
mite allergen
mite protein
mivacurium
moexipril
mold | molds | mould | moulds
mold spores | mold spore | mould spores | mould spore
mollusk | mollusks | mollusc | molluscs
monoclonal antibody | monoclonal antibodies
Morphine
mosquito | mosquitoes | mosquitos
mosquito bite | mosquito bites
mosquito saliva
mouse allergen
mouse dander
mouse epithelium
mouse skin protein
mouse urine protein | mouse urine proteins
moxifloxacin | Avelox
MSG | monosodium glutamate
mucor
mugwort
mugwort pollen
mulberry pollen
mushroom | mushrooms
mussel
mustard
mustard seed | mustard seeds
myroxylon pereirae
nabumetone
nafcillin
nalbuphine
naproxen | Aleve | Naprosyn
neomycin
nettle pollen
nevirapine
nickel
nitrofurantoin | Macrobid | Macrodantin
nitrous oxide
nivolumab | Opdivo
norfloxacin
NSAID | nsaids | nonsteroidal anti-inflammatory drugs | nonsteroidal anti-inflammatory drug
nut | nuts
nutmeg
nuts and seeds | nut and seed | nut and seeds
oak pollen
oat
oat protein
octopus | octopuses
ofloxacin
olive pollen
olive tree
olive tree pollen
olmesartan
omalizumab
ondansetron
onion
opiate | opiates
opioid | opioids
orange | oranges
orchard grass
orchard grass pollen
organochlorine pesticide
organophosphate insecticide
oritavancin
ovalbumin
ovomucoid
oxacillin
oxaliplatin
oxaprozin
oxcarbazepine
oxycodone
oxycodone + acetaminophen | Percocet
oxymorphone
oyster | oysters
paclitaxel | Taxol
pancuronium
paprika
paraben | parabens
paraffin
paromomycin
pea | peas
pea protein
peach | peaches
peanut | peanuts | groundnut | groundnuts | ground nut | ground nuts
pecan | pecans
pecan pollen
PEG | macrogol | polyethylene glycol | PEG 3350
pellitory pollen
pembrolizumab | Keytruda
penicillin | penicillins
penicillin g
penicillin v
penicillium mold | penicillium
pentazocine
perfume | perfumes
perindopril
PET dander
PET fur
PET hair
phenobarbital | Luminal
phenoxymethylpenicillin
phenytoin | Dilantin
pickle
pig meat
pignoli
pigweed
pigweed pollen
pine nut | pine nuts
pineapple
pinon nut | pinon nuts
piper pepper
piperacillin
piperacillin + tazobactam | Zosyn | piperacillin tazobactam
piroxicam
pistachio | pistachios | pistachio nut | pistachio nuts
plantain pollen
podophyllum resin
pollen | pollens
polycarbonate dental material
polymyxin b
polysorbate 20
polysorbate 80
polyvinyl alcohol
poplar pollen
poppy seed | poppy seeds
porcine insulin
pork
potassium dichromate
potato
poultry
povidone-iodine
PPD | paraphenylenediamine | para-phenylenediamine
prawn | prawns
pregabalin
prilocaine
primidone
procaine | Novocain | Novocaine
prochlorperazine
promethazine
propofol | Diprivan
propylene glycol
protamine | protamine sulfate
pulse | pulses | pulse vegetable | pulse vegetables
pyrethroid insecticide
quaternium-15
quinapril
quinoa
quinolone | quinolones
rabbit
rabbit dander
rabbit fur
rabbit hair
rabbit meat
ragweed
ragweed pollen | ragweed pollens
ramipril | Altace
raspberry | raspberries
rat dander
rat urine protein
red dye
red dye 40
red meat
remifentanil
rhizopus
rice
rifabutin
rifampin | rifampicin
rifapentine
rituximab | Rituxan
rivaroxaban | Xarelto
rocuronium
ropivacaine
rosin
rubber | natural rubber
rye
ryegrass pollen
sagebrush pollen
salicylate | salicylates
salmon
sardine | sardines
scallop | scallops
scorpion | scorpions
scorpion sting | scorpion stings
scorpion venom
seafood | sea food
seasonal pollen
seed
sesame
sesame protein
sesame seed | sesame seeds
sevoflurane
sheep milk | sheep's milk
shellfish | shell fish | shellfishes
shrimp | shrimps
shrub pollen
silicon
silicone
silk
silk suture
silver
sodium benzoate
soy | soya | soybean | soy bean | soy beans | soya bean | soya beans | soybeans
soy protein | soya protein | soybean protein
spelt
spider | spiders
spider bite | spider bites
spider venom
squid | squids
stinging insect venom
strawberry | strawberries
streptomycin
succinylcholine | suxamethonium
sufentanil
sulbactam
sulfa
sulfa drug | sulfa drugs
sulfacetamide
sulfadiazine
sulfadoxine
sulfamethoxazole
sulfamethoxazole + trimethoprim | Septra | Bactrim | Cotrimoxazole | Co-Trimoxazole | trimethoprim sulfamethoxazole
sulfasalazine
sulfisoxazole
sulfite | sulfites | sulphite | sulphites
sulfonamide | sulfonamides
sulfonamide antibiotic | sulfonamide antibiotics
sulfur
sulfur dioxide | sulphur dioxide
sulindac
sunflower oil
sunflower seed | sunflower seeds
surgical glue
swine meat
sycamore pollen
tahini
tangerine | tangerines
tapentadol
tartrazine
tazobactam
tea tree oil
tedizolid
teicoplanin
telavancin
telmisartan
tenecteplase
terpene
tetracaine
tetracycline
tetracycline antibiotics | tetracycline antibiotic
textile dye
thiopental
thiuram
thiuram mix
ticarcillin
ticarcillin + clavulanate | ticarcillin clavulanate
tick | ticks
tick bite | tick bites
tick saliva
tilapia
timothy grass
timothy grass pollen
tinidazole
tixocortol pivalate
tobramycin
tomato | tomatoes
topiramate
topotecan
tramadol | Ultram
trandolapril
trastuzumab | Herceptin
tree and shrub pollen
tree nut | tree nuts
tree pollen | tree pollens
tree resin
trimethoprim
trout
tuna | tuna fish
turkey | turkeys
valproic acid
valsartan
vancomycin | Vancocin
vanilla
vecuronium
vinblastine
vincristine
wall pellitory
wall pellitory pollen
walnut | walnuts | walnut nut
warfarin | Coumadin
wasp | wasps
wasp sting | wasp stings
wasp venom
watermelon
weed pollen | weed pollens
wheat
wheat gluten
whey
whey isolate
whey protein
white paraffin
willow pollen
wood
wool
wool alcohol | wool alcohols
wormwood
wormwood pollen
yeast
yellow dye
yellow dye 5
yellow jacket sting | yellow jacket stings
yellow jacket venom
yellow paraffin
yellowjacket | yellow jacket | yellowjackets | yellow jackets
zonisamide

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,6 @@
brother has asthma
family medical history | FHx | family hx | family health history
father has type 2 diabetes
maternal grandfather had heart disease
mother had breast cancer
sister was diagnosed with multiple sclerosis

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,154 @@
acrophobia
acute stress reaction
ADHD | attention-deficit/hyperactivity disorder
adjustment disorder
adjustment insomnia
adult-onset fluency disorder
agoraphobia
amnestic disorder
androphobia
anorexia nervosa
antisocial personality disorder
anxiety disorder
arachnophobia
asperger's syndrome
autistic disorder
avoidant personality disorder
avoidant/restrictive food intake disorder
binge eating disorder
bipolar disorder
bipolar ii disorder
body dysmorphic disorder
borderline personality disorder
brief psychotic disorder
bulimia nervosa
catatonia
childhood-onset fluency disorder
claustrophobia
conduct disorder
conversion disorder
cyclothymic disorder
delirium
delusional disorder
dementia
dependent personality disorder
depersonalization-derealization disorder | depersonalization-derealization syndrome
depression
depressive episode
developmental coordination disorder | specific developmental disorder of motor function
disinhibited attachment disorder of childhood
disorder of written expression
disruptive mood dysregulation disorder
dissociative amnesia
dissociative disorder
dissociative fugue
dissociative identity disorder
dual role transvestism
dyspareunia
dysthymia | persistent depressive disorder
eating disorder
encopresis
enuresis
erectile dysfunction | male erectile disorder
excoriation (skin-picking) disorder
exhibitionism
expressive language disorder
factitious disorder imposed on another
factitious disorder imposed on self
fear of blood
fear of bridges
fear of flying
fear of injections and transfusions
fear of injury
fear of thunderstorms
female orgasmic disorder
female sexual arousal disorder
fetishism
frotteurism
gambling disorder | pathological gambling
gender identity disorder | gender identity disorders
gender identity disorder of childhood
generalized anxiety disorder
gynephobia
histrionic personality disorder
hoarding disorder
hypersomnia
hypoactive sexual desire disorder
hypochondriasis
impulse control disorder
insomnia
insufficient sleep syndrome
intellectual disability
intermittent explosive disorder
kleptomania
major depressive disorder
male orgasmic disorder
manic episode
mathematics disorder | dyscalculia
mild neurocognitive disorder
mixed receptive-expressive language disorder
mood disorder
mood disorder due to medical condition
narcissistic personality disorder
night terrors | sleep terrors
nightmare disorder
obsessive-compulsive disorder | mixed obsessional thoughts and acts
obsessive-compulsive personality disorder
oppositional defiant disorder
orgasmic disorder
panic disorder
paradoxical insomnia
paranoid personality disorder
paraphilia
pedophilia
personality change
personality disorder
pervasive developmental disorder
phonological disorder
pica
post-traumatic stress disorder | PTSD
postpartum depression
postpartum psychosis | puerperal psychosis
premature ejaculation
premenstrual dysphoric disorder
prolonged grief disorder
pseudobulbar affect
psychological pain disorder
psychophysiologic insomnia
psychotic disorder
pyromania
reactive attachment disorder of childhood
rumination disorder
sadomasochism
schizoaffective disorder
schizoid personality disorder
schizophrenia
schizophreniform disorder
schizotypal disorder
selective mutism
separation anxiety disorder
sexual arousal disorder
sexual aversion disorder
sexual dysfunction
sexual masochism
sexual sadism
shared psychotic disorder
sleep disorder
social phobia
social pragmatic communication disorder
somatization disorder
somatoform disorder
somnambulism | sleepwalking
specific phobia
specific reading disorder | dyslexia
speech and language delay
stereotyped movement disorder
tic disorder
tourette's disorder
transient tic disorder
transsexualism
transvestic fetishism
trichotillomania
vaginismus
vascular dementia
voyeurism

View File

@ -0,0 +1,271 @@
A- blood type | blood type a-
A+ blood type | blood type a+
AB- blood type | blood type ab-
AB+ blood type | blood type ab+
able to ambulate
activity limitation
activity restriction | activity restrictions
adl assistance | needs assistance with activities of daily living
ADL dependence | dependent for activities of daily living
ADLs | activities of daily living
advance care plan | advance care planning
advance directive
ambulates independently
ambulates with assistance
ambulatory status
appendix removed | no appendix
artificial joint
asbestos exposure
assist x1 | one-person assist
assist x2 | two-person assist
assistance with bathing
assistance with dressing
assistance with feeding
assistance with grooming
assistance with toileting
assistance with transfers
assistive device
asymptomatic HIV status
B- blood type | blood type b-
B+ blood type | blood type b+
bedbound
BiPAP
bladder removed | no bladder
blood exposure
blood pressure | BP | blood pressure reading | blood pressure measurement
blood type | blood group | ABO blood type | ABO type | ABO blood group
bloodborne pathogen exposure
body mass index | BMI | body mass index measurement | BMI measurement | BMI reading
body temperature | temperature reading
bone marrow donor
bone marrow recipient
breast removed | mastectomy history
breastfeeding | lactating
cane
caregiver assistance
caregiver stress
carrier of infectious disease
central line | central venous catheter
cervix removed | no cervix
CGM | continuous glucose monitor
chemical exposure
childbearing status
cochlear implant
code status
cognitive assistance
colon removed | no colon
colonization status
colostomy
comfort measures only
communicable disease exposure
contraceptive status
cornea donor
cornea recipient
COVID-19 exposure | covid exposure
CPAP
crutches | crutch
cystostomy
dental implant
dialysis catheter
dialysis dependent | dialysis-dependent status
dialysis status
diastolic blood pressure | diastolic BP | diastolic blood pressure reading | diastolic blood pressure measurement
DNI | do not intubate | DNI status
DNR | do not resuscitate | no code | DNR status
due date | estimated due date
environmental exposure
eye removed | missing eye
fall precautions | fall precaution
fall risk
fallopian tube removed | no fallopian tube
feeding tube | gastrostomy tube | PEG tube
fertility status
first trimester
flu exposure
food insecurity
full code
full weight-bearing
fully vaccinated | fully immunized
functional impairment
functional limitation
functional status
gallbladder removed | no gallbladder
gastrostomy
genetic carrier
genetic mutation
genetic predisposition
genetic risk
genetic susceptibility
gestational age
goals of care
gravida
head circumference
hearing aid
heart donor
heart-lung donor
heart-lung recipient
heart rate | pulse rate
heart recipient
height | body height | patient height
hepatitis B carrier
hepatitis C carrier
hepatitis exposure
hereditary cancer risk
hip prosthesis
HIV exposure
homelessness
housing instability
ileostomy status | presence of ileostomy
immunization declined
immunization due
immunization exemption
immunization history | vaccination history | immunization record | vaccination record | immunization hx | vaccination hx
immunization not carried out
immunization overdue
immunization status | vaccination status
immunization up to date
immunosuppressed status
implanted cardiac device | cardiac implant
implanted defibrillator | cardiac defibrillator
implanted device
implanted port
independent activities of daily living
infectious disease exposure
instrumental activities of daily living | iadls
insulin pump
intestine donor
intestine recipient
IUD | intrauterine device
IVC filter
jejunostomy
joint prosthesis
kidney donor
kidney recipient
kidney removed | missing kidney
knee prosthesis
larynx removed | no larynx
lead exposure
lifting restriction | lifting restrictions
limb removed | limb amputation
liver donor
liver recipient
LMP | last menstrual period
lung donor
lung recipient
lung removed | missing lung
LVAD | left ventricular assist device | ventricular assist device | VAD
mechanical heart valve | artificial heart valve | heart valve prosthesis
medical clearance
medical device
medical history | PMH | medical hx | patient history | past medical history | personal medical history
medical restriction
menopausal status
menstrual status
mobility aid
mobility assistance
mobility limitation
mobility restriction
mold exposure
MRSA carrier | MRSA colonization
needlestick exposure | needle-stick exposure
needs caregiver assistance
nephrostomy tube | nephrostomy
non-weight bearing | NWB
nonambulatory | unable to ambulate
not pregnant
number of live births
number of pregnancies
nutrition status
O- blood type | blood type o-
O+ blood type | blood type o+
occupational exposure
organ donor status
organ recipient status
orthopedic brace
ovary removed | no ovary
oxygen dependent | oxygen-dependent status
oxygen equipment
oxygen saturation | SpO2 | pulse oximetry reading | blood oxygen saturation | pulse oximetry measurement | SpO2 reading | SpO2 measurement
pacemaker | cardiac pacemaker
pain score | pain level | pain rating
pancreas donor
pancreas recipient
parity
partial code
partial weight-bearing | PWB
partially vaccinated | partially immunized
peripheral IV
pesticide exposure
PICC line
port-a-cath
postmenopausal
postpartum status
pregnancy intent
pregnant | pregnancy status
prenatal status
prostate removed | no prostate
prosthetic device
prosthetic limb
radiation exposure
range-of-motion limitation | ROM limitation
respiratory rate | breathing rate
resting heart rate
return to work restriction
rh negative
rh positive
rh status
second trimester
sedentary restriction
sexual history
skin donor
skin recipient
sleep pattern
social history | social hx | Soc hx | SHx
social isolation
spinal cord stimulator
spleen removed | no spleen
stem cell donor
stem cell recipient
stent
stomach removed | no stomach
supplemental oxygen | home oxygen
surgical drain
systolic blood pressure | systolic BP | systolic blood pressure reading | systolic blood pressure measurement
tb exposure
testicle removed | missing testicle
third trimester
thyroid removed | no thyroid
tonsils removed | no tonsils
toxic exposure
tracheostomy
transfer assistance
transportation insecurity
trying to conceive
tuberculosis exposure
underimmunized
unknown blood type
unvaccinated | unimmunized
urinary catheter | Foley catheter
urostomy
uses assistive device
uterus removed | hysterectomy history
vaccinated
vaccine booster due
vaccine declined
vaccine refusal
vaccine series complete
vaccine series incomplete
vascular graft
ventilator | ventilator dependent
vital sign | vital signs
VRE carrier | VRE colonization
waist circumference
walker
WBAT | weight bearing as tolerated
weeks gestation | weeks pregnant
weight | body weight | patient weight
weight-bearing restriction
wheelchair
wheelchair dependent | wheelchair-bound
work restriction | work restrictions
workplace exposure

View File

@ -0,0 +1,694 @@
22q11.2 deletion syndrome | DiGeorge syndrome | velocardiofacial syndrome
abdominal aortic aneurysm | AAA
abscess
acanthosis nigricans
achalasia | esophageal achalasia | cardiospasm
acid and chemical burns
acne
acoustic neuroma
acromegaly | excess growth hormone
actinic keratosis | actinic keratoses
actinomycosis
acute bronchitis
acute cholecystitis
acute flaccid myelitis
acute kidney injury | AKI
acute lymphoblastic leukemia | acute lymphocytic leukemia | acute lymphoblastic leukaemia | acute lymphocytic leukaemia
acute myeloid leukemia | acute myeloid leukaemia
acute pancreatitis
acute respiratory distress syndrome | ARDS
Addison's disease | primary adrenal insufficiency
adenomyosis
adhesive capsulitis | frozen shoulder
age-related macular degeneration | AMD
albinism
alcohol poisoning
alcohol-related liver disease | ARLD
allergic rhinitis | hay fever
allergies | allergy
altitude sickness
amblyopia | lazy eye
amyloidosis | amyloid disease
anal cancer
anal fissure
anal fistula
anaphylaxis
androgen insensitivity syndrome
aneurysm
angina | angina pectoris
angioedema
animal bite | animal bites
ankle fracture | broken ankle
ankylosing spondylitis
antiphospholipid syndrome | APS
aphasia
appendicitis
arm fracture | broken arm
arrhythmia | dysrhythmia | heart arrhythmia
arthritis
asbestosis
aspergillosis
asthma
astigmatism
ataxia
atherosclerosis | hardening of the arteries
athlete's foot | tinea pedis | ringworm of the foot
atopic dermatitis | atopic eczema
atrial fibrillation
auditory processing disorder | central auditory processing disorder
autoimmune disease | autoimmune disorder
autosomal dominant polycystic kidney disease
autosomal recessive polycystic kidney disease
avian influenza | bird flu
bacterial vaginosis
Baker cyst | popliteal cyst
balanitis
Barrett's esophagus | Barrett's oesophagus
bartholin's cyst
bedbugs
behçet's disease
bell's palsy
benign brain tumor | benign brain tumour
benign prostate enlargement
benign prostatic hyperplasia | BPH | enlarged prostate
bilharzia
birth defect | birth defects
birthmark | birthmarks
black eye
bladder cancer
bladder pain syndrome
bladder stones | bladder stone | bladder calculi | bladder calculus
blepharitis
blindness
blister | blisters
blood clot | blood clots
blood clotting disorder
bone cancer
bone cyst
botulism
bowel cancer
bowel polyps | bowel polyp
bowen's disease
brain abscess
brain aneurysm | cerebral aneurysm
brain cancer
brain hemorrhage | brain haemorrhage
brain tumor | brain tumour
breast abscess
breast cancer
broken collarbone
broken finger
bronchiectasis
bronchiolitis
bronchitis
brucellosis
brugada syndrome
bullous pemphigoid
bunion | bunions
burn | burns
burns and scalds
bursitis
C. difficile infection | C. diff infection | Clostridioides difficile infection
cancer
carbon monoxide poisoning
cardiac arrest
cardiomyopathy
cardiovascular disease
carpal tunnel syndrome
cataract | cataracts
catarrh
cavernoma
celiac disease | coeliac disease
cellulitis
cerebral palsy
cervical cancer
cervical spondylosis
Charcot-Marie-Tooth disease | hereditary motor and sensory neuropathy | peroneal muscular atrophy
chest infection
Chiari malformation | Arnold-Chiari malformation
chickenpox | varicella
chilblains | chilblain
chipped tooth
chlamydia
cholangiocarcinoma | bile duct cancer
cholera
cholesteatoma
chronic disease
chronic illness
chronic kidney disease | CKD
chronic lymphocytic leukemia | chronic lymphocytic leukaemia
chronic myeloid leukemia | chronic myeloid leukaemia
chronic obstructive pulmonary disease | COPD
chronic pain
chronic pancreatitis
chronic traumatic encephalopathy
cirrhosis
cleft lip
cleft lip and palate
cleft palate
clubfoot
cluster headache | cluster headaches
coccyx pain
cold sore | cold sores
colic
colon cancer
color blindness | colour blindness | color vision deficiency | colour vision deficiency
common cold
compartment syndrome
complex regional pain syndrome | CRPS
concussion
congenital heart disease | congenital heart defect
congenital hip dislocation
conjunctivitis
constipation
contact dermatitis
corns and calluses | calluses and corns
coronary artery disease | CAD
corticobasal degeneration
costochondritis | costosternal syndrome | costosternal chondrodynia
COVID-19 | coronavirus disease 2019
cracked tooth
cradle cap
craniosynostosis
creutzfeldt-jakob disease
crohn's disease
croup
cushing's syndrome
cuts and grazes
cyclical vomiting syndrome
cyclospora
cystic fibrosis
cystitis
cytomegalovirus infection | CMV infection
dandruff
deafness
deep vein thrombosis | DVT
dehydration | hypohydration
dengue
dental abscess
detached retina
developmental dysplasia of the hip | DDH
diabetes
diabetes in pregnancy
diabetes insipidus
diabetic ketoacidosis | DKA
diabetic neuropathy
diabetic retinopathy
differences in sex development
diphtheria
discoid eczema
dislocated kneecap
dislocated shoulder
diverticular disease
diverticulitis
Down syndrome | trisomy 21
dupuytren's contracture
dwarfism
dysarthria
dysentery
dyshidrotic eczema | dyshidrosis | pompholyx
dystonia
ear infection | ear infections
early menopause
early puberty
earwax build-up
ebola virus disease
ectopic pregnancy
ectropion
edwards syndrome
ehlers-danlos syndrome | ehlers-danlos syndromes
ejaculation problems | ejaculation problem
encephalitis
endocarditis
endometrial cancer
endometriosis
epidermolysis bullosa
epididymitis
epiglottitis
epilepsy
erectile dysfunction | impotence
erythema multiforme
erythema nodosum
erythrocytosis
erythromelalgia
esophageal atresia | oesophageal atresia
esophageal cancer | oesophageal cancer
esophageal fistula | oesophageal fistula
eye cancer
eye injury | eye injuries
farsightedness | long-sightedness | hyperopia
febrile seizure | febrile seizures
fecal incontinence | bowel incontinence
female genital mutilation
fetal alcohol spectrum disorder
fibromyalgia
flat feet
flat head syndrome
food allergy
food intolerance
food poisoning | foodborne illness
foot drop | drop foot
frostbite
gallbladder cancer
gallstone | gallstones
ganglion cyst
gangrene
gastritis
gastroesophageal reflux disease | gastro-oesophageal reflux disease | GERD | GORD
gastroparesis | delayed gastric emptying
genital herpes
genital warts | genital wart
gestational diabetes
giant cell arteritis
giardiasis
gilbert's syndrome
glandular fever
glaucoma
glomerulonephritis
glue ear
goiter | goitre
gonorrhea | gonorrhoea
gout | gouty arthritis
granuloma annulare
granulomatosis with polyangiitis | GPA
group b strep
growing pains | growing pain
guillain-barré syndrome
gum disease
gynecomastia | gynaecomastia
Haemophilus influenzae type b infection | Hib infection
hamstring injury
hand foot and mouth disease
hantavirus
head injury
head lice | pediculosis capitis
hearing impairment
hearing loss
heart block
heart disease
heart failure | CHF
heart murmur
heart rhythm problems | heart rhythm problem
heart valve disease
heartburn
heartburn and acid reflux
heat exhaustion
heat rash
heatstroke
heavy periods | heavy period
hemochromatosis | haemochromatosis
hemolytic disease of the fetus and newborn | haemolytic disease of the fetus and newborn | HDFN
hemophilia | haemophilia
hemorrhoids | hemorrhoid | haemorrhoids | haemorrhoid | piles
henoch-schönlein purpura
hepatitis
hepatitis A | hep A | HAV infection
hepatitis B | hep B | HBV infection
hepatitis C | hep C | HCV infection
hereditary hemorrhagic telangiectasia | hereditary haemorrhagic telangiectasia
hereditary spastic paraplegia
hernia
herpes simplex eye infection | herpes simplex eye infections
herpes zoster | shingles
herpetic whitlow
hiatus hernia
hidradenitis suppurativa | HS
high cholesterol | hypercholesterolemia
hip dysplasia
hip fracture | broken hip
hirschsprung's disease
HIV | human immunodeficiency virus
hives
hodgkin lymphoma
human bite | human bites
human papillomavirus infection | HPV infection
Huntington's disease | Huntington disease | Huntington chorea
hydrocephalus
hydronephrosis
hyperacusis
hyperglycemia | hyperglycaemia | high blood sugar
hyperhidrosis | excessive sweating
hyperparathyroidism
hypertension | high blood pressure | high BP
hyperthyroidism | overactive thyroid
hypoglycemia | low blood sugar | hypoglycaemia
hypoparathyroidism
hypotension | low blood pressure
hypothermia | low body temperature
hypothyroidism | underactive thyroid
ichthyosis
idiopathic pulmonary fibrosis
immunodeficiency | immune deficiency
impetigo
indigestion | dyspepsia
infected piercing | infected piercings
infertility
inflammatory bowel disease | IBD
influenza | flu
ingrown hair | ingrown hairs
ingrown toenail
insect bite | insect bites
insect bites and stings
insect sting | insect stings
intracranial hypertension
iron deficiency anemia | iron deficiency anaemia
irritable bowel syndrome | IBS
japanese encephalitis
jaundice
jellyfish sting | jellyfish stings
jet lag
joint hypermobility syndrome
Kawasaki disease | mucocutaneous lymph node syndrome
keloid scar | keloid scars
keratosis pilaris | KP
kidney cancer | renal cancer
kidney disease
kidney failure | renal failure
kidney infection
kidney injury
kidney stone | kidney stones
klinefelter syndrome
knee cartilage damage
knock knees
knocked-out tooth
kyphosis | round back | hunchback
labial fusion
labyrinthitis
lactose intolerance | lactase deficiency
lambert-eaton myasthenic syndrome
laryngeal cancer
laryngitis
leg fracture | broken leg
leg ulcer
Legionnaires' disease | legionellosis
leptospirosis
leukemia | leukaemia
leukoplakia
lichen planus
lichen sclerosus
lipedema | lipoedema
lipoma
listeriosis | Listeria infection
liver cancer
liver disease
liver failure
long covid
long qt syndrome
low bp
low sperm count
low white blood cell count | leukopenia
lung cancer
lung disease
lyme disease
lymphedema | lymphoedema
lymphoma
ménière's disease
macular degeneration
macular hole
malaria
malignant brain tumor | malignant brain tumour
mallet finger
malnutrition
marfan syndrome
mastitis
mastocytosis
mastoiditis
measles | rubeola
melanoma | malignant melanoma
meningitis
meniscus tear
menopause
mesothelioma
metabolic dysfunction-associated steatotic liver disease | MASLD | nonalcoholic fatty liver disease | NAFLD
metabolic syndrome
Middle East respiratory syndrome | MERS
migraine
miscarriage
molar pregnancy
mole | moles
molluscum contagiosum
morton's neuroma
motion sickness
motor neuron disease | motor neurone disease | MND
mouth cancer
mouth ulcers | mouth ulcer
mpox
MRSA
mucositis
multiple sclerosis | MS
multiple system atrophy | MSA | Shy-Drager syndrome
mumps
muscular dystrophy
myalgic encephalomyelitis/chronic fatigue syndrome | ME/CFS
myasthenia gravis | MG
myelodysplastic syndrome
myeloma
myocardial infarction | heart attack
myositis
nail fungus | fungal nail infection | onychomycosis
nappy rash
narcolepsy
nasal and sinus cancer
nasal cancer
nasal polyps | nasal polyp
nasopharyngeal cancer
nearsightedness | myopia | short-sightedness
necrotising fasciitis
neonatal herpes
nephrotic syndrome
neurofibromatosis type 1 | NF1
neurofibromatosis type 2 | NF2
neuromyelitis optica spectrum disorder | NMOSD | neuromyelitis optica | NMO
newborn jaundice
newborn respiratory distress syndrome
noise sensitivity
non-allergic rhinitis
non-hodgkin lymphoma
non-melanoma skin cancer
noncancerous brain tumor | noncancerous brain tumour
noonan syndrome
norovirus
nose fracture | broken nose | fractured nose
obesity
oral thrush | oral candidiasis
organ failure
osteoarthritis | degenerative arthritis
osteomalacia
osteomyelitis | bone infection
osteoporosis
otitis externa | outer ear infection | swimmer's ear
otitis media
ovarian cancer
ovarian cyst
overweight
paget's disease of bone
paget's disease of the nipple
pancreatic cancer
paralysis
paraplegia
parkinson's disease
partial blindness
patau syndrome
pelvic inflammatory disease
pelvic organ prolapse
pemphigus vulgaris
penile cancer
peptic ulcer | stomach ulcer
perforated eardrum | ruptured eardrum | tympanic membrane perforation
pericarditis | pericardial inflammation
period pain
period problems | period problem
periods | period
peripheral arterial disease | PAD
peripheral neuropathy
peritonitis
peyronie's disease
phaeochromocytoma
phimosis
phlebitis
pilonidal sinus
pityriasis rosea
pityriasis versicolor
plantar fasciitis
pleurisy | pleuritis
pneumonia
poisoning
polio
polycystic kidney disease | PKD
polycystic ovary syndrome | PCOS | polyendocrine metabolic ovarian syndrome
polyhydramnios
polymorphic light eruption
polymyalgia rheumatica
post-herpetic neuralgia
postural orthostatic tachycardia syndrome | POTS
Prader-Willi syndrome | Prader-Labhart-Willi syndrome
pre-eclampsia
pregnancy
premature menopause
pressure ulcer | pressure sore | bedsore
primary biliary cholangitis | primary biliary cirrhosis
progressive supranuclear palsy | PSP | Steele-Richardson-Olszewski syndrome
prostate cancer
prostate enlargement
prostatitis
psoriasis
psoriatic arthritis
pubic lice
pudendal neuralgia
pulmonary embolism
pulmonary fibrosis | interstitial pulmonary fibrosis
pulmonary hypertension
pyoderma gangrenosum
q fever
quadriplegia
quinsy
rabies
Raynaud's phenomenon | Raynaud's disease
reactive arthritis
rectal cancer
renal disease
repetitive strain injury | RSI
respiratory failure
respiratory syncytial virus infection | RSV
respiratory tract infection | respiratory tract infections
restless legs syndrome | RLS
restricted growth
retinal detachment
retinal migraine
retinoblastoma
rett syndrome
reye's syndrome
rheumatic fever
rheumatoid arthritis | RA
rhinitis
rib fracture | broken rib | broken ribs | fractured rib
rickets
ringworm
rosacea
roseola
rubella | German measles | three-day measles
salivary gland stones | salivary gland stone
sarcoidosis
scabies
scarlet fever | scarlatina
scars | scar
schistosomiasis
sciatica
scleroderma
scoliosis
scurvy
seizure | seizures
sepsis
septic arthritis
septic shock
sexually transmitted infection | STI
shin splints | shin splint
shoulder impingement
sickle cell anemia | sickle cell anaemia | sickle cell disease
silicosis
sinusitis | sinus infection
sjögren's syndrome
skin abscess
skin cancer
skin cyst
skin tags | skin tag
slapped cheek syndrome
sleep apnea | sleep apnoea
slipped disc
snake bite | snake bites
soft tissue sarcoma
solar keratosis
spina bifida
spinal muscular atrophy
spondylolisthesis
sprain | sprains
squint
staph infection
stevens-johnson syndrome
stillbirth
stomach cancer | gastric cancer
strain | strains
strep a
stretch marks | stretch mark
stroke | cerebrovascular accident | CVA
stye
subarachnoid hemorrhage | subarachnoid haemorrhage
subdural hematoma | subdural haematoma
sunburn
superficial thrombophlebitis
supraventricular tachycardia | SVT
syphilis
systemic lupus erythematosus | SLE | lupus
tailbone pain
temporal arteritis
temporomandibular disorder | TMD | TMJ disorder
tendonitis
tennis elbow | lateral epicondylitis | lateral epicondylosis
tension headache | tension headaches
terminal disease
terminal illness
testicular cancer
tetanus
tetraplegia
thalassemia | thalassaemia | Cooley's anemia | Mediterranean anemia
thoracic outlet syndrome
threadworms | threadworm
thrombophilia
thrush
thyroid cancer
tick-borne encephalitis | TBE
tight foreskin
toe fracture | broken toe
tongue-tie
tonsillitis
tooth decay | dental cavities | cavities
toxic shock syndrome
toxocariasis
toxoplasmosis
transient ischemic attack | transient ischaemic attack | TIA
trichomoniasis
trigeminal neuralgia | tic douloureux
trigger finger | stenosing tenosynovitis
tuberculosis | TB
turner syndrome
type 1 diabetes
type 2 diabetes
typhoid fever
typhus
ulcerative colitis
umbilical hernia
undescended testicle | undescended testicles
urethritis
urinary incontinence
urinary tract infection | UTI
uterine cancer | womb cancer
uterine fibroid | uterine fibroids
uveitis
vaginal cancer
vaginismus
vaginitis
varicose eczema
varicose veins | varicose vein | varicosities | varicosity
vasculitis
venous leg ulcer
verruca | verrucas
vestibular neuritis
vision loss
visual impairment | vision impairment
vitamin B12 deficiency anemia | vitamin B12 deficiency anaemia
vitamin B12 or folate deficiency anemia | vitamin B12 or folate deficiency anaemia
vitiligo
vomiting bug
von willebrand disease
vulvar cancer | vulval cancer
vulvodynia
warts | wart
weil's disease
whiplash
whitlow finger
whooping cough
wolff-parkinson-white syndrome
worms | worm
wrist fracture | broken wrist
yellow fever
zika virus

View File

@ -0,0 +1,115 @@
abdominoplasty
ablation
abortion | termination of pregnancy
amniocentesis
amnioinfusion
amniotomy
amputation
aneurysm clipping | clipping, aneurysm
angioplasty
anoscopy
appendectomy
arthrocentesis
arthrodesis
arthroplasty
arthroscopy
arthrotomy
artificial insemination | insemination, artificial
atherectomy
blood transfusion | transfusion
bone fixation | fixation, bone
bone marrow transplant
bronchoscopy
cannulation
cardiac catheterization
cardiopulmonary bypass | bypass, cardiopulmonary
cardiopulmonary resuscitation | CPR
cardioversion | countershock, cardiac
casting
cataract surgery
cauterization
cervical cerclage | cerclage
cervical conization | conization, cervix
cesarean section | c-section | caesarean section | cesarean delivery | section, cesarean
chemoembolization
chest tube placement | thoracostomy
circumcision
colectomy
colonoscopy
colostomy
core needle biopsy
coronary artery bypass grafting | CABG
craniotomy
cryoablation
cryotherapy
cystocele repair
cystoscopy
debridement
dermabrasion
dilation and curettage | D&C
embolization
endoscopic retrograde cholangiopancreatography | ERCP
enucleation
epidural anesthesia
esophageal variceal banding | banding, esophageal varices
exploratory surgery
extracorporeal shock wave lithotripsy | ESWL
facelift | face lift
fine needle aspiration | aspiration, fine
fundoplication | fundoplication, gastroesophageal
gastrectomy
gastrostomy
general anesthesia
hemorrhoid banding | ligation, hemorrhoid
hip replacement | replacement, hip
hysterectomy
ileostomy
incision
intubation
IUI | intrauterine insemination
IVF | in vitro fertilization
labor induction | induction of labor
laparoscopy
LASIK | laser-assisted in situ keratomileusis
LEEP | loop electrosurgical excision procedure
ligation
lobectomy
local anesthesia
lumbar puncture | spinal tap
mastectomy
myomectomy
myringostomy
nephrectomy
nephrostomy
organ transplant
pacemaker implantation
paracentesis
partial joint replacement
polypectomy
PRK | photorefractive keratectomy
prostatectomy
pulmonary wedge resection | wedge resection, pulmonary
punch biopsy
rectocele repair
Roux-en-Y gastric bypass | roux-en-y operation
salpingostomy
sclerotherapy
shoulder replacement
shunt placement | shunt creation
splenectomy
stem cell transplant
stereotactic radiosurgery
suture removal
TAVR | transcatheter aortic valve replacement
thoracentesis
thyroidectomy
tonsillectomy
tracheostomy
urethral catheterization
vacuum-assisted delivery | vacuum extraction, obstetric
vaginal delivery
vaginoplasty
vasectomy
venipuncture | blood draw
ventriculostomy
vitrectomy

View File

@ -0,0 +1,272 @@
12-step program
active use disorder | active addiction
addict
addiction
addiction history
addiction recovery | in recovery | recovering addict | recovery from addiction
addiction relapse
addiction treatment
aerosol inhalation
alcohol abstinence | no alcohol use | abstinent from alcohol
alcohol consumption
alcohol craving
alcohol dependence
alcohol detox
alcohol-induced disorder
alcohol intoxication
alcohol misuse | alcohol abuse
alcohol recovery | recovering alcoholic
alcohol relapse
alcohol-related blackout
alcohol use
alcohol use disorder | AUD | alcoholic | alcoholism | alcohol addiction
alcohol use history
alcohol withdrawal
alprazolam misuse
amphetamine dependence
amphetamine misuse | amphetamine abuse
amphetamine use
amphetamine use disorder | amphetamine addiction
anabolic steroid misuse
anabolic steroid use
anxiolytic misuse
ayahuasca use
barbiturate dependence
barbiturate misuse | barbiturate abuse
barbiturate use
barbiturate use disorder | barbiturate addiction
barbiturate withdrawal
benzodiazepine dependence | benzo dependence
benzodiazepine misuse | benzo abuse | benzo misuse | benzodiazepine abuse
benzodiazepine use | benzo use
benzodiazepine use disorder | benzo addiction | benzodiazepine addiction
benzodiazepine withdrawal
binge drinking
blackout drinking
buprenorphine misuse
caffeine dependence
caffeine intoxication
caffeine misuse
caffeine use disorder | caffeine addiction
caffeine withdrawal
cannabis dependence
cannabis-induced disorder
cannabis intoxication | marijuana intoxication
cannabis misuse | cannabis abuse | marijuana abuse | marijuana misuse
cannabis use | pot use | hash use | weed use | hashish use | marijuana use
cannabis use disorder | cannabis addiction | marijuana addiction | marijuana use disorder
cannabis withdrawal | marijuana withdrawal
chewing tobacco use
cigar use | cigar smoking
cigarette dependence
cigarette use | cigarette smoking
clonazepam misuse
cocaine dependence
cocaine-induced disorder
cocaine intoxication
cocaine misuse | cocaine abuse
cocaine use
cocaine use disorder | cocaine addiction
cocaine withdrawal
codeine misuse
crack cocaine use | crack use
crack use disorder | crack addiction
current alcohol use
current drug use
current substance use
daily drinking
delirium tremens | DTs | DT's
delta-8 use
delta-9 use
dextromethorphan misuse
diazepam misuse
DMT use
drug craving | craving for drugs
drug dependence
drug intoxication
drug misuse | drug abuse
drug overdose
drug relapse | drug use relapse
drug use
drug use disorder | drug addiction
drug withdrawal
e-cigarette use | electronic cigarette use
edible cannabis use
energy drink misuse
fentanyl dependence
fentanyl misuse | fentanyl abuse
fentanyl overdose
fentanyl use
fentanyl use disorder | fentanyl addiction
fentanyl withdrawal
former alcohol use
former drug use
former smoker
gabapentin misuse
gasoline inhalation
hallucinogen dependence
hallucinogen-induced disorder
hallucinogen intoxication
hallucinogen misuse | hallucinogen abuse
hallucinogen use
hallucinogen use disorder | hallucinogen addiction
heavy alcohol use
heavy drinking
heroin dependence
heroin misuse | heroin abuse
heroin overdose
heroin use
heroin use disorder | heroin addiction
heroin withdrawal
high-intensity drinking
history of alcohol dependence
history of alcohol misuse | history of alcohol abuse
history of alcohol use
history of drug dependence
history of drug misuse | history of drug abuse
history of drug use
history of IV drug use | history of IVDU | history of intravenous drug use
history of nicotine dependence
history of smoking
history of substance dependence
history of substance misuse | history of substance abuse
history of substance use
history of use disorder | history of addiction
hookah use | waterpipe tobacco use
huffing
hydrocodone misuse
hypnotic misuse
illicit drug use
inhalant dependence
inhalant-induced disorder
inhalant intoxication
inhalant misuse | inhalant abuse
inhalant use
inhalant use disorder | inhalant addiction
injection drug use | injecting drugs | injecting drug use
intranasal drug use
IV drug use | IVDU | intravenous drug use
ketamine misuse
ketamine use
kratom misuse
kratom use
lorazepam misuse
LSD use | acid use
MDMA use | molly use | ecstasy use
medical marijuana use
mescaline use
methadone misuse
methamphetamine dependence | meth dependence
methamphetamine intoxication
methamphetamine misuse | meth abuse | methamphetamine abuse
methamphetamine use | ice use | meth use | crystal meth use
methamphetamine use disorder | meth addiction | methamphetamine addiction
methamphetamine withdrawal | meth withdrawal
morphine misuse
multiple drug use
naloxone-reversed overdose
narcotics anonymous
needle sharing | sharing needles
needle use
never smoker
nicotine dependence
nicotine misuse
nicotine use
nicotine use disorder | nicotine addiction
nicotine withdrawal
nitrous oxide misuse
nonmedical drug use
nonmedical prescription drug use | nonmedical prescription medication use
opioid dependence | opiate dependence
opioid-induced disorder
opioid intoxication
opioid misuse | opiate abuse | opioid abuse | opiate misuse
opioid overdose
opioid use | opiate use
opioid use disorder | opiate addiction | opioid addiction
opioid withdrawal | opiate withdrawal
opium use
otc medication misuse
overdose
oxycodone misuse
pack-year history | pack-years
pain pill misuse
paint thinner inhalation
past alcohol use
past drug use
past substance use
PCP use | phencyclidine use
peyote use
pipe tobacco use | pipe smoking
polysubstance dependence | polydrug dependence
polysubstance misuse | polysubstance abuse | polydrug misuse | polydrug abuse
polysubstance use | polydrug use
polysubstance use disorder | polysubstance addiction
poppers use
prescription drug misuse | prescription drug abuse | prescription medication abuse | prescription medication misuse
prescription opioid misuse
prescription stimulant misuse
problem drinking
psilocybin use | mushroom use | magic mushroom use
psychedelic use
recreational drug use
rehab for substance use
ritalin misuse
salvia use
secondhand smoke exposure
sedative dependence
sedative, hypnotic, or anxiolytic use
sedative misuse | sedative abuse
sedative use
sedative use disorder | sedative addiction
sedative withdrawal
smokeless tobacco use
smoking | smoker | current smoker
smoking cessation | quit smoking
smoking drugs
smoking history
smoking status
sniffing glue
snorting drugs
snuff use
sober living
sobriety | sober | drug-free | clean and sober
social drinking
solvent misuse | solvent abuse
speed use
stimulant dependence
stimulant intoxication
stimulant misuse | stimulant abuse
stimulant overdose
stimulant use
stimulant use disorder | stimulant addiction
stimulant withdrawal
substance craving | craving
substance dependence | chemical dependency
substance intoxication
substance misuse | substance abuse
substance use
substance use disorder | SUD | substance addiction
substance use history
substance use relapse | relapse
substance use treatment
substance withdrawal
synthetic cannabinoid use | k2 use | spice use
synthetic cathinone use | bath salts use
THC use
tianeptine misuse
tobacco dependence
tobacco misuse
tobacco use
tobacco use disorder | tobacco addiction
tobacco use history
tobacco withdrawal
tramadol misuse
tranquilizer misuse
underage drinking
vaping | vape use | nicotine vaping
vaping status
whippet use
xanax misuse
xylazine misuse
xylazine use

View File

@ -0,0 +1,781 @@
abdominal cramping | abdominal cramps | stomach cramps
abdominal discomfort
abdominal distension | distended abdomen
abdominal fullness | early satiety
abdominal pain | bellyache | belly pain | stomach ache | stomach pain | tummy ache | tummy pain
abdominal rigidity
abdominal tenderness
abnormal breathing
abnormal bruising
abnormal heartbeat
abnormal involuntary movement
abnormal posture
abnormal reflex
abnormal sputum
abnormal vaginal bleeding
aching joints | aching joint
acid burning
acid indigestion
acid reflux
all over body pain
altered level of consciousness
altered mental status
amnesia
ankle burning
ankle cramping
ankle numbness
ankle pain | ankle ache | ankle aching
ankle stiffness
ankle swelling
ankle tenderness
ankle tingling
ankle weakness
anuria
aphasia
apnea
arm burning
arm cramping
arm numbness
arm pain | arm ache | arm aching
arm stiffness
arm swelling
arm tenderness
arm tingling
arm weakness
arthralgia
ascites
ataxia
back burning
back cramping
back numbness
back pain | back ache | back aching
back stiffness
back swelling
back tenderness
back tingling
back weakness
bad breath | halitosis
balance problems | balance problem
bedwetting
belching | burping
black stool | black stools | dark stool
blackout | blackouts
bleeding gums | bleeding gum
blind spot
blister | blisters
bloating | abdominal bloating
blood in stool | bloody stool
blood in urine | bloody urine | red urine
blood pressure instability
bloody diarrhea
bloody nose
blurred vision | blurry vision | fuzzy vision
body ache | body aches
bone pain
bowel incontinence
brain fog
breast discharge
breast lump
breast pain
breast redness
breast swelling
bruising
burning eyes | burning eye
burning in chest
burning mouth
burning sensation
burning skin
burning throat
buttock burning
buttock cramping
buttock numbness
buttock pain | buttock ache | buttock aching
buttock stiffness
buttock swelling
buttock tenderness
buttock tingling
buttock weakness
calf burning
calf cramping
calf numbness
calf pain | calf ache | calf aching
calf stiffness
calf swelling
calf tenderness
calf tingling
calf weakness
cardiac murmur
catarrh
cervical lymphadenopathy
change in bowel habits | change in bowel habit
change in skin sensation
chapped lips | chapped lip
cheek swelling
chest burning
chest cramping
chest discomfort
chest heaviness
chest numbness
chest pain | chest ache | chest aching
chest pressure
chest stiffness
chest swelling
chest tenderness
chest tightness
chest tingling
chest wall tenderness
chest weakness
chills | cold chills | feeling chilled
choking
chronic cough
chronic fatigue
clammy skin
clay-colored stool
cloudy urine
clubbing of fingers
cluster headache
cold intolerance
cold skin
coma
confusion | confused
congestion
constipation | can't poop | cannot poop | difficulty passing stool
convulsion | convulsions
cough | coughing
coughing blood
coughing fits | coughing fit
cracked skin
cyanosis
daytime sleepiness
decreased activity
decreased alertness
decreased bowel sounds | decreased bowel sound
decreased hearing
decreased respiratory rate
decreased urine output
decreased vision
delayed growth | reduced growth
dental pain
diarrhea | diarrhoea | the runs
difficulty breathing | trouble breathing | breathing difficulty | breathing problems | shortness of breath | breathlessness | short of breath | out of breath | winded | SOB | can't catch breath | cannot catch breath
difficulty chewing
difficulty falling asleep
difficulty finding words | difficulty finding a word
difficulty speaking
difficulty staying asleep
difficulty swallowing | trouble swallowing | painful swallowing
difficulty urinating
difficulty walking
dilated pupil
disorientation
dizziness | dizzy | feeling dizzy | lightheadedness | feeling lightheaded
double vision
drenching sweats | drenching sweat
dribbling urine
drooling
drowsiness
dry cough
dry eyes | dry eye
dry heaving
dry mouth
dry skin
dry throat
dysarthria
dyspepsia
dysphonia
ear bleeding
ear discharge | ear drainage
ear fullness
ear itching
ear pain | earache
ear pressure
easy bruising
elbow burning
elbow cramping
elbow numbness
elbow pain | elbow ache | elbow aching
elbow stiffness
elbow swelling
elbow tenderness
elbow tingling
elbow weakness
enlarged lymph nodes | enlarged lymph node
epigastric cramping
epigastric discomfort
epigastric pain
epigastric tenderness
erectile difficulty
erectile dysfunction
excess gas
excessive crying
excessive daytime sleepiness
excessive sweating | sweating | diaphoresis
excessive urination
exercise intolerance
eye discharge
eye dryness
eye floaters | eye floater
eye irritation
eye pain
eye redness
eye strain
face burning
face cramping
face numbness
face pain | face ache | face aching
face stiffness
face swelling
face tenderness
face tingling
face weakness | facial weakness
facial droop
facial flushing
falling
falls | fall
fast heart rate | rapid heart rate | racing heartbeat | tachycardia
fatigue | tiredness | exhaustion | extreme tiredness | feeling exhausted | tired all the time | feeling run down
fecal incontinence
fecal urgency
feeding difficulty
feeling faint | near fainting
feeling feverish
feeling hot
fever
finger burning
finger cramping
finger numbness
finger pain | finger ache | finger aching
finger stiffness
finger swelling
finger tenderness
finger tingling
finger weakness
flank burning
flank cramping
flank numbness
flank pain | flank ache | flank aching
flank stiffness
flank swelling
flank tenderness
flank tingling
flank weakness
flashing lights | flashing light
flatulence
flu-like symptoms | flu-like symptom
flushing
fluttering heartbeat
foot burning
foot cramping
foot numbness
foot pain | foot ache | foot aching
foot stiffness
foot swelling
foot tenderness
foot tingling
foot weakness
forearm burning
forearm cramping
forearm numbness
forearm pain | forearm ache | forearm aching
forearm stiffness
forearm swelling
forearm tenderness
forearm tingling
forearm weakness
foreign body sensation
foreign body sensation in eye
foreign body sensation in throat
forgetfulness
foul-smelling urine
frequent urination | urinary frequency | peeing often | urinating often
gait abnormality
gastrointestinal bleeding
general discomfort
generalized body aches | generalized body ache
generalized edema
generalized lymphadenopathy
generalized pain
genital discharge
genital itching
genital pain
genital rash
gi bleeding
globus sensation
groin burning
groin cramping
groin numbness
groin pain | groin ache | groin aching
groin stiffness
groin swelling
groin tenderness
groin tingling
groin weakness
gum pain | sore gums
hair loss
hallucinations | hallucination
halos around lights | halo around lights
hand burning
hand cramping
hand numbness
hand pain | hand ache | hand aching
hand stiffness
hand swelling
hand tenderness
hand tingling
hand weakness
hard stool
head burning
head cramping
head numbness
head pressure
head shaking
head stiffness
head swelling
head tenderness
head tingling
head weakness
headache | head pain | head ache | head aching
headache with nausea
headache with vision changes | headache with vision change
headache with vomiting
hearing loss
heart flutter
heart palpitations | heart palpitation
heart pounding
heart racing
heart skipping beats | heart skipping a beat
heartburn
heat intolerance
heavy menstrual bleeding
heel ache
heel aching
heel burning
heel cramping
heel numbness
heel pain
heel stiffness
heel swelling
heel tenderness
heel tingling
heel weakness
hematemesis
hematochezia
hematuria
hemoptysis
hiccups
high temperature
hip burning
hip cramping
hip numbness
hip pain | hip ache | hip aching
hip stiffness
hip swelling
hip tenderness
hip tingling
hip weakness
hives | urticaria
hoarse voice
hoarseness
hot flashes | hot flash
hot skin
hypersomnia
hyperventilation
hypoesthesia
hypoxemia
incoherent speech
incontinence
incoordination
increased appetite
increased bowel sounds | increased bowel sound
indigestion
insomnia
involuntary movement
irregular heartbeat
irregular menstrual bleeding
irregular periods | irregular period
itchiness
itching
itchy
itchy ears | itchy ear
itchy eyes | itchy eye
itchy nose
itchy skin
itchy throat
jaundice
jaw burning
jaw cramping
jaw numbness
jaw pain | jaw ache | jaw aching
jaw stiffness
jaw swelling
jaw tenderness
jaw tingling
jaw weakness
jerking movements | jerking movement
joint ache
joint pain
joint stiffness
joint swelling
knee burning
knee cramping
knee numbness
knee pain | knee ache | knee aching
knee stiffness
knee swelling
knee tenderness
knee tingling
knee weakness
labored breathing
lack of appetite
leg burning
leg cramping
leg numbness
leg pain | leg ache | leg aching
leg stiffness
leg swelling
leg tenderness
leg tingling
leg weakness
lethargy
light sensitivity
limited mobility
limited range of motion
lip swelling
localized edema
loose stool | loose stools
loose tooth
loss of appetite | appetite loss | poor appetite | decreased appetite | reduced appetite | anorexia
loss of balance
loss of bladder control
loss of bowel control
loss of consciousness
loss of sensation
loss of smell
loss of speech
loss of taste
loss of vision
low oxygen
low urine output
lower back burning
lower back cramping
lower back numbness
lower back pain | lower back ache | lower back aching
lower back stiffness
lower back swelling
lower back tenderness
lower back tingling
lower back weakness
lower quadrant pain
lymph node swelling
malaise | feeling ill
melena
memory loss
menstrual cramps | menstrual cramp
mental status change
mid back ache
mid back aching
mid back burning
mid back cramping
mid back numbness
mid back pain
mid back stiffness
mid back swelling
mid back tenderness
mid back tingling
mid back weakness
migraine-like headache
miosis
missed period
morning headache
motion sickness
mottled skin
mouth breathing
mouth pain | oral pain | sore mouth
mouth sores | mouth ulcers
mucus in stool
muffled hearing
muscle ache | muscle aches
muscle cramp | muscle cramps
muscle pain
muscle spasm | muscle spasms
muscle stiffness
muscle tightness
muscle twitching | fasciculation
muscle weakness
mutism
myalgia
nail changes | nail change
nail discoloration
nasal congestion | blocked nose | stuffy nose | stopped-up nose
nasal discharge
nasal obstruction
nausea | nauseated | feeling nauseous | feeling sick | queasy
neck burning
neck cramping
neck numbness
neck pain | neck ache | neck aching
neck stiffness
neck swelling
neck tenderness
neck tingling
neck weakness
new headache
night blindness
night sweats | night sweat
nightmares | nightmare
nipple discharge
nipple inversion
nipple pain
nipple retraction
nipple tenderness
nocturia
nonrestorative sleep
nosebleed
not thinking clearly
numbness
occipital headache
odynophagia
oliguria
oral bleeding
orthopnea
pain during intercourse
painful bowel movement
painful ejaculation
painful urination | burning urination | burning when peeing | pain when peeing | dysuria
pale skin
pallor
palpitations | palpitation
peeling skin
pelvic pain | pelvis pain | pelvis ache | pelvis aching
pelvis burning
pelvis cramping
pelvis numbness
pelvis stiffness
pelvis swelling
pelvis tenderness
pelvis tingling
pelvis weakness
penile discharge
penile pain
periodic breathing
peripheral edema
periumbilical cramping
periumbilical discomfort
periumbilical pain
periumbilical tenderness
photophobia
photosensitivity
pleuritic chest pain
poor balance
poor coordination
poor digestion
poor feeding
poor posture
poor weight gain
postmenopausal bleeding
postnasal drip
productive cough | wet cough
pruritus
purple skin
rapid breathing | fast breathing | breathing fast | tachypnea
rash
rectal bleeding
rectal discharge
rectal pain
red eyes | red eye
reduced consciousness
reduced range of motion
reduced smell
reduced taste
respiratory distress
restless sleep
restlessness
rhonchi
rib burning
rib cramping
rib numbness
rib pain | rib ache | rib aching
rib stiffness
rib swelling
rib tenderness
rib tingling
rib weakness
rigidity
rigors | rigor
ringing in ear
runny nose | running nose
sciatic pain
scratchy throat
scrotal pain
scrotal swelling
seizure | seizures
shaking
shaking chills | shaking chill
shin burning
shin cramping
shin numbness
shin pain | shin ache | shin aching
shin stiffness
shin swelling
shin tenderness
shin tingling
shin weakness
shooting pain
shoulder burning
shoulder cramping
shoulder numbness
shoulder pain | shoulder ache | shoulder aching
shoulder stiffness
shoulder swelling
shoulder tenderness
shoulder tingling
shoulder weakness
skin breakdown
skin discoloration
skin eruption
skin irritation
skin lesion | skin lesions
skin peeling
skin redness | red skin
skin sensitivity
skin swelling
sleep disturbance
sleep walking
sleepiness
slow heart rate | bradycardia
slowed movement
slurred speech
sneezing
snoring
somnolence
sore joints | sore joint
sore muscles | sore muscle
sore throat | throat pain
speech difficulty
speech disturbance
speech impairment
sputum production
stammering
stool urgency
stridor
stuttering
sudden urge to urinate
suprapubic cramping
suprapubic discomfort
suprapubic pain
suprapubic tenderness
swollen glands | swollen gland
swollen gums | gum swelling
swollen tonsils | swollen tonsil
syncope | fainting | passing out | passed out
tenderness
tenesmus
tension headache
testicular lump
testicular pain
testicular swelling
thigh burning
thigh cramping
thigh numbness
thigh pain | thigh ache | thigh aching
thigh stiffness
thigh swelling
thigh tenderness
thigh tingling
thigh weakness
thirst
throat bleeding
throat clearing
throat tightness
thumb burning
thumb cramping
thumb numbness
thumb pain | thumb ache | thumb aching
thumb stiffness
thumb swelling
thumb tenderness
thumb tingling
thumb weakness
tingling | pins and needles | pins and needles sensation | paresthesia
tinnitus | ringing in ears | ringing ears | buzzing in ears | ear ringing
toe burning
toe cramping
toe numbness
toe pain | toe ache | toe aching
toe stiffness
toe swelling
toe tenderness
toe tingling
toe weakness
tongue pain
tongue swelling
tooth sensitivity
toothache
tremor | tremors
tunnel vision
unresponsiveness
unsteady gait | staggering gait | gait instability
upper arm burning
upper arm cramping
upper arm numbness
upper arm pain | upper arm ache | upper arm aching
upper arm stiffness
upper arm swelling
upper arm tenderness
upper arm tingling
upper arm weakness
upper back burning
upper back cramping
upper back numbness
upper back pain | upper back ache | upper back aching
upper back stiffness
upper back swelling
upper back tenderness
upper back tingling
upper back weakness
upper quadrant pain
upset stomach
urinary hesitancy
urinary incontinence
urinary retention
urinary urgency
vaginal discharge
vaginal dryness
vaginal itching
vaginal odor
vaginal pain
vaginal spotting
vertigo
vision changes | vision change
vision loss
visual disturbance
voice change | voice changes
voice loss
voice weakness
vomiting | being sick | throwing up | retching
vomiting blood
waking frequently
waking gasping
waking up short of breath
watery diarrhea
watery eye
watery eyes | tearing eyes
weak cry
weak grip
weak urine stream
weakness | feeling weak | general weakness | generalized weakness
weight gain | abnormal weight gain | unexplained weight gain
weight loss | abnormal weight loss | unexplained weight loss
wheezing
whole body pain
wrist burning
wrist cramping
wrist numbness
wrist pain | wrist ache | wrist aching
wrist stiffness
wrist swelling
wrist tenderness
wrist tingling
wrist weakness
yellow skin
yellow stool

View File

@ -0,0 +1,536 @@
17-hydroxyprogesterone
A1C test
abdominal CT | abdomen CT | abdomen CT scan | abdominal CT scan
abdominal MRI | abdomen MRI | abdomen MRI scan | abdominal MRI scan
abdominal ultrasound | abdomen ultrasound
abdominal X-ray | abdominal xray
ABG test
ABO blood typing | blood type test
acth stimulation test
ACTH test | adrenocorticotropic hormone test
acute hepatitis panel
ADHD screening
adrenal function test
afb | afb test
AFP | AFP test | alpha fetoprotein | alpha-fetoprotein test
AFP tumor marker | alpha fetoprotein tumor marker test
albumin | albumin test
albumin blood test
albumin/globulin ratio | a/g ratio
alcohol screening | alcohol screen | alcohol use screening
aldosterone renin ratio
aldosterone test
alkaline phosphatase test | ALP test
allergy blood test
allergy panel
allergy skin test
alpha-1 antitrypsin test
ALT test
ambulatory blood pressure monitoring
ambulatory cardiac monitor
ambulatory ECG
ambulatory EEG
ambulatory EKG
ammonia | ammonia test
amphetamine screen
amylase test
ANA | ANA test | ANA screen | antinuclear antibody
ANC | absolute neutrophil count
ANCA | ANCA test | antineutrophil cytoplasmic antibody | antineutrophil cytoplasmic antibodies test
ANCA panel
anion gap test
ankle-brachial index | ankle brachial index test
ankle X-ray | ankle xray
anti-ccp test
anti-dsdna | anti-dsdna test
anti-mullerian hormone | anti-mullerian hormone test
antibody screen
antibody serology test
antigen test
antimitochondrial antibody test
antiphospholipid antibody panel
apgar score
arm X-ray | arm xray
arterial blood gas | ABG | blood gas test | arterial blood gas test
ASO titer | antistreptolysin o test | antistreptolysin o titer
ast | ast test
autism screening | autism spectrum disorder screening
autoantibody test
autonomic function test | autonomic test
bacteria culture test
bacterial vaginosis test
bal | bal test
balance test
bcr-abl1 genetic test
beta-2 microglobulin test | B2M test
beta hCG | bhcg | b-hCG | beta hCG test
beta-hydroxybutyrate test
bicarbonate
bilirubin test
biophysical profile
bladder scan
bladder ultrasound
blood culture | blood culture test
blood differential
blood in urine
blood pressure measurement | blood pressure check | measuring blood pressure
blood smear
blood test
blood urea nitrogen test | BUN
BMP test | BMP | basic metabolic panel
BNP test | BNP
bone age X-ray | bone age xray
bone density scan | DEXA | DEXA scan | bone density test
bone scan
braf genetic test
brain CT | brain CT scan
brain MRI | brain MRI scan
brca genetic test
breast MRI | breast MRI scan
breast ultrasound
breath alcohol test
breath test
bronchial challenge test
bronchodilator response test
c diff | c diff test
c difficile | c difficile test
c difficile stool test
C-peptide | c-peptide test
CA-125 test
CA 19-9 test
calcitonin test
calcium test
calprotectin stool test
carbon dioxide test | CO2 test
cardiac CT | cardiac CT scan
cardiac event monitor
cardiac MRI | cardiac MRI scan
cardiac stress test
carotid doppler
carotid ultrasound
catecholamine test
CBC | CBC test | full blood count | complete blood count
CBC with differential
CCP antibody test | anti-ccp | ccp test
CD4 count
CEA test
celiac disease screening
ceruloplasmin test
cervical cancer screening
cervical culture
cervical spine MRI | cervical spine MRI scan
cervical spine X-ray | cervical spine xray
cervical swab
chest CT | chest CT scan
chest MRI | chest MRI scan
chest X-ray | chest xray
chickenpox and shingles test
chlamydia test
chloride test
cholesterol test | total cholesterol test
chromosome analysis
chymotrypsin in stool
CMP test | CMP | comprehensive metabolic panel
CMV test | CMV
coagulation factor test
coagulation panel
cognitive test
cold stimulation test
cologuard test
colorectal cancer screening
complement blood test
continuous glucose monitoring
continuous pulse oximetry
coombs test
cord blood test
coronary calcium scan | calcium score | cardiac calcium score
cortisol blood test
cortisol test
cortisol urine test
COVID-19 antibody test | covid antibody test
COVID-19 antigen test | covid antigen test
COVID-19 PCR test | covid PCR test
COVID-19 test | covid test
creatine kinase | creatine kinase test
creatinine clearance | creatinine clearance test
creatinine test
CRP | CRP test | c reactive protein | c-reactive protein test
crystals in urine
csf
csf immunoglobulin g index
CT angiography
CT scan | CT
CT urogram
CTA
CTPA
cystic fibrosis carrier screening
cystic fibrosis genetic test
D-dimer | ddimer | d-dimer test
dengue fever test
dental exam
depression screening
developmental and behavioral screening
dhea sulfate test
diabetic foot exam
diagnostic mammogram
digital rectal exam
dipstick urinalysis
dobutamine stress echocardiogram
doppler ultrasound
down syndrome test
drug screen | drug test | drug testing | toxicology screen | drug toxicology screen
drug urine screen
drug use screening
ECG | ECG test | EKG test | electrocardiogram | electrocardiography
echocardiogram
EEG | EEG test | electroencephalography | electroencephalogram
EKG
elastography
elbow X-ray | elbow xray
electrolyte panel | electrolyte test
electromyography and nerve conduction studies | electromyography and nerve conduction study
EMG test | EMG
epithelial cells in urine
esophageal ph test
ESR | ESR test | sedimentation rate | erythrocyte sedimentation rate
estrogen | estrogen test
estrogen receptor and progesterone receptor test
exercise stress test | treadmill stress test
eye exam
fall risk assessment
fasd test
fasting glucose test
fecal calprotectin
fecal immunochemical test | FIT test
fecal occult blood test | FOBT | occult blood
ferritin test
fetal alcohol spectrum disorders screening
flu test
fluoroscopy
FOBT test
folate test
food allergy test
food sensitivity test
foot X-ray | foot xray
free light chains | free light chain
free t3 | free t3 test
free t4 | free t4 test
FSH test | FSH | follicle-stimulating hormone test
fungal culture test
g6pd test
galactosemia test
gallbladder ultrasound
gastric emptying scan | gastric emptying test
GCS score
genetic carrier screening
genetic panel
genetic test
GFR test
GGT | GGT test | gamma glutamyl transferase | gamma-glutamyl transferase test
glasgow coma scale
globulin | globulin test
glomerular filtration rate | GFR | glomerular filtration rate test | eGFR
glucagon blood test
glucose challenge test
glucose in urine test
glucose test | blood glucose test
glucose tolerance test | oral glucose tolerance test
gonorrhea test | gonorrhea screening
gram stain
group b strep test | group b strep screening
growth hormone | growth hormone test
h. pylori | h pylori test | helicobacter pylori | Helicobacter pylori test
h. pylori breath test | Helicobacter pylori breath test
hand X-ray | hand xray
haptoglobin | haptoglobin test
HbA1c
hCG
hCG blood test
hCG urine test
HDL cholesterol | HDL | HDL-c
HDL test
head CT | head CT scan
head MRI | head MRI scan
head X-ray | head xray
hearing test | audiogram | audiometry
heart monitor
heavy metal blood test
Helicobacter pylori stool antigen test | h pylori stool antigen test
hematocrit | hematocrit test
hemoglobin | hemoglobin test
hemoglobin A1C | A1C | HbA1c test | hemoglobin A1C test
hemoglobin electrophoresis
hepatitis A test
hepatitis B test
hepatitis C test
hepatitis panel
hepatitis test | hepatitis screening
her2 tumor marker test
herpes test
high-sensitivity CRP | hs-CRP
hip X-ray | hip xray
HIV antibody test
HIV antigen antibody test
HIV test | HIV screening
HIV viral load
holter monitor
homocysteine test
HPV test | HPV | HPV screening
hs-CRP test
HSV test | HSV
igf-1 | igf-1 test
igg | igg test
immunofixation electrophoresis
immunoglobulins blood test
influenza PCR test
influenza test
INR test | INR
insulin in blood
iron saturation
iron studies | iron panel
iron test
karyotype genetic test
ketones in blood
ketones in urine
kidney function test | renal function test
kidney ultrasound
knee MRI | knee MRI scan
knee X-ray | knee xray
lactate | lactate test
lactate dehydrogenase | lactate dehydrogenase test
lactate dehydrogenase isoenzymes test
lactose tolerance test
LDH test | LDH
LDL cholesterol | LDL | LDL-c
LDL test
lead test
legionella test
lh | lh test
lipase | lipase test
lipid panel | lipid profile | cholesterol panel
lipoprotein a | lipoprotein a test
lipoprotein blood test
liver enzymes | liver enzyme
liver function test | liver panel | hepatic function panel
liver ultrasound
low-dose chest CT
low-dose CT
lp(a)
lumbar spine MRI | lumbar spine MRI scan
lumbar spine X-ray | lumbar spine xray
lung cancer genetic test
lung function test
luteinizing hormone | luteinizing hormone test
lyme disease test
magnesium test
malaria test
mammogram | mammography
maternal serum screening
mch
mchc
mcv
mean platelet volume | MPV
measles and mumps test
meningococcal disease test
mental health screening
metabolic panel
methylmalonic acid test | MMA
microalbumin | microalbumin test
microalbumin creatinine ratio
microsatellite instability
mono | mono test
monospot test
mr angiography | MRA
MRI scan | MRI
MRSA swab
MRSA test | MRSA screen
mthfr gene test
mucus in urine
myocardial perfusion scan
nasal swab
nasopharyngeal swab
neck CT | neck CT scan
neck MRI | neck MRI scan
neck X-ray | neck xray
nerve conduction study | NCS
neurological exam
neutrophil count
newborn blood spot test
newborn hearing screen
newborn metabolic screen
nitrites in urine
nonstress test
NT-proBNP | nt-probnp test
nt scan
nuchal translucency scan
nuclear stress test
obesity screening
obsessive compulsive disorder test
occult blood test
OCD test | OCD screening
opioid test
orthostatic blood pressure test
osmolality test
ova and parasite test
panic disorder test | panic disorder screening
pap smear test
Pap test | pap smear
parainfluenza test
parathyroid hormone | parathyroid hormone test
partial thromboplastin time test
PCR test
pd-l1 immunotherapy test
pelvic CT | pelvic CT scan
pelvic exam
pelvic MRI | pelvic MRI scan
pelvic ultrasound
pelvic X-ray | pelvic xray
pelvis CT | pelvis CT scan
pelvis MRI | pelvis MRI scan
pelvis ultrasound
pelvis X-ray | pelvis xray
PET-CT scan | PET CT
PET scan
pharmacogenetic test | pharmacogenomic test
phenylketonuria screening
phosphorus test | phosphate test
pku | pku test
platelet count | platelet test
pneumococcal disease test
porphyrin test
postpartum depression screening
potassium test
prealbumin blood test
pregnancy test
prenatal cell-free DNA screening
prenatal genetic screening
prenatal panel
procalcitonin | procalcitonin test
progesterone | progesterone test
prolactin | prolactin test
prostate exam
protein c and protein s test
protein electrophoresis by immunofixation blood test
protein in urine
PSA | psa test | prostate specific antigen | prostate-specific antigen test
PT/INR | PT INR test | prothrombin time test and INR
PT test | PT
pten genetic test
pth | pth test
PTT test | PTT
pulmonary function test | spirometry
pulse oximetry | pulse ox
quantiferon test
rapid antigen test
rapid covid test
rapid flu test
rapid strep test
RBC test
rdw
red blood cell antibody screen
red blood cell count | RBC | RBC count | erythrocyte count
red blood cell indices | red blood cell index
renal ultrasound
renin test
respiratory panel
respiratory pathogens panel
reticulocyte count | reticulocyte count test
rheumatoid factor test | RF
rpr test
RSV PCR test
RSV test | RSV
saliva drug test
screening mammogram
semen analysis
semen count
serology test
shbg blood test
shoulder MRI | shoulder MRI scan
shoulder X-ray | shoulder xray
sinus CT | sinus CT scan
skin cancer screening
skin prick test
sleep study | sleep test | polysomnography | sleep apnea test
sma | sma test
smooth muscle antibody test
sodium test
spine CT | spine CT scan
spine MRI | spine MRI scan
spine X-ray | spine xray
sputum culture
STD test | STD screening
STI test | STI | STI screening
stool culture
stool DNA test
stool elastase
stool test
strep a test
strep b test
strep test
stress echocardiogram | stress echo
stress test
suicide risk screening
sweat chloride test
sweat test for cystic fibrosis
syphilis test | syphilis screening
t3 | t3 test
t4 | t4 test
tb blood test
tb skin test
tb test
tca | tca test
testicular ultrasound
testosterone | testosterone test
therapeutic drug monitoring
thoracic spine MRI | thoracic spine MRI scan
thoracic spine X-ray | thoracic spine xray
thyroglobulin
thyroid antibodies | thyroid antibody
thyroid function test | thyroid panel
thyroid ultrasound
thyroxine test
tilt table test
tocopherol | tocopherol test
total protein
total protein and albumin globulin ratio
tp53 genetic test
transesophageal echocardiogram
transferrin
transthoracic echocardiogram
trichomoniasis test
tricyclic antidepressant screen
triglycerides | triglycerides test
troponin test
TSH | TSH test | thyroid stimulating hormone | thyroid-stimulating hormone test
tuberculin skin test
tuberculosis test | tuberculosis screening
tumor marker test
ultrasound
uric acid | uric acid test
urinalysis
urine culture
urine drug screen
urine test
urobilinogen in urine
v q scan
vascular ultrasound
venous blood gas | vbg
videonystagmography | VNG
vision test | vision screening
vitamin b test
vitamin B12 test
vitamin d | vitamin d test
vitamin e | vitamin e test
VNG test
WBC test
wellness blood panel
western blot test
white blood cell count | WBC | WBC count | white blood count
white blood cell in stool
whooping cough test
wound culture
wrist X-ray | wrist xray
x-ray | xray
xylose test
yeast infection test
zika virus test

View File

@ -0,0 +1,444 @@
aba therapy | aba treatment
acceptance and commitment therapy | ACT
acoustic stimulation
act therapy | act treatment
acupressure
acupuncture | acupuncture therapy | acupuncture treatment
adjuvant therapy | adjuvant treatment
aerosol therapy | aerosol treatment
airway clearance
airway management
albumin replacement
alcohol detoxification
allergen immunotherapy
animal-assisted therapy | animal-assisted treatment
anti-inflammatory therapy | anti-inflammatory treatment
antibiotic therapy | antibiotics therapy | antibiotics treatment | antibiotic treatment
anticoagulant therapy | anticoagulation | anticoagulant treatment
anticoagulation bridge
antifungal therapy | antifungal treatment
antimicrobial therapy | antimicrobial treatment
antiparasitic therapy | antiparasitic treatment
antiplatelet therapy | antiplatelet treatment
antiretroviral therapy | antiretroviral treatment
antithrombotic therapy | antithrombotic treatment
antiviral therapy | antiviral treatment
apheresis
aromatherapy
art
assisted ventilation | assisted breathing | artificial ventilation
autoimmune therapy | autoimmune treatment
awake prone positioning
bed rest
behavior modification
behavioral activation
behavioral counseling
behavioral health therapy | behavioral health treatment
behavioral intervention
behavioral therapy | behavior therapy
bibliotherapy
biofeedback
biologic therapy | biological therapy | biological treatment | biologic treatment
BiPAP | BiPAP therapy | bilevel positive airway pressure | bi-level positive airway pressure | bipap treatment
blood component therapy | blood component treatment
blood pressure management
blood product replacement
blood transfusion | transfusion therapy | transfusion treatment
bloodless care
bloodless medicine
bone marrow transplant | bone marrow transplantation | bone marrow transplant therapy | bone marrow transplant treatment
brachytherapy
breathing treatment | breathing therapy
brief intervention
bronchodilator therapy | bronchodilator treatment
burn care
cancer immunotherapy
cancer treatment | cancer therapy | oncologic therapy | antineoplastic therapy
car-t therapy | car t-cell therapy | car-t cell treatment | car-t treatment
cardiac pacing
cardiac rehabilitation | cardiac rehab
cardiopulmonary resuscitation
cardioversion
cell-based therapy | cell-based treatment
cell therapy | cell treatment
chelation therapy | chelating therapy | chelating treatment | chelation treatment
chemoprevention
chemoradiation | chemoradiotherapy | chemoradiation therapy | chemoradiation treatment
chemotherapy | chemo
chest physical therapy | chest physiotherapy | chest physical treatment
chest wall oscillation
chiropractic therapy | chiropractic treatment
chronic disease management
clinical nutrition
cognitive behavioral therapy | CBT | cognitive behaviour therapy
cognitive processing therapy | cognitive processing treatment
cognitive rehab
cognitive rehabilitation
cognitive remediation
cognitive therapy | cognitive treatment
cold therapy | cold treatment
color therapy | color treatment
combination drug therapy | combination drug treatment
combined modality therapy | combined modality treatment
comfort care
compassionate use therapy | compassionate use treatment
complementary therapy | complementary treatment
compression stockings therapy | compression stocking therapy | compression stockings treatment | compression stocking treatment
compression therapy | compression treatment
conservative care
conservative management
conservative therapy | conservative treatment
continuous dialysis
continuous renal replacement therapy | CRRT | cvvhd | cvvhdf | continuous renal replacement | continuous renal replacement treatment
continuous veno-venous hemofiltration
contraceptive therapy | contraceptive treatment
cooling therapy | cooling treatment
couples counseling
couples therapy | couple therapy | couples treatment | couple treatment
cpap | cpap therapy | continuous positive airway pressure | continuous positive airway pressure therapy | continuous positive airway pressure treatment | cpap treatment
crisis counseling
crisis intervention
cryotherapy
cytapheresis
dance movement therapy | dance movement treatment
dance therapy | dance treatment
debridement therapy | debridement treatment
deep brain stimulation
defibrillation | electric countershock
desensitization therapy | desensitization treatment
detoxification | detox | detoxification therapy | medical detoxification | detoxification treatment
dialectical behavior therapy | DBT | dialectical behavioral therapy | dialectical behavioural therapy | dialectical behavior treatment
dialysis | renal dialysis
diet therapy | diet treatment
dietary counseling
dietary therapy | dietary treatment
direct current stimulation
disease management
disease-modifying therapy | disease-modifying treatment
drug-assisted therapy | drug-assisted treatment
drug therapy | drug treatment
dry needling
early ambulation
electric stimulation therapy | electric stimulation treatment
electroacupuncture
electrochemotherapy
electroconvulsive therapy | ECT | electroconvulsive treatment
electrolyte replacement
empiric therapy | empiric treatment
end-of-life care
endocrine therapy | endocrine treatment
enteral nutrition | enteral feeding
enzyme replacement therapy | enzyme replacement treatment
enzyme therapy | enzyme treatment
epidural blood patch
erp therapy | erp treatment
exercise rehab
exercise rehabilitation
exercise therapy | exercise treatment
exposure and response prevention | ERP
exposure therapy | exposure treatment
external beam radiation therapy | external beam radiation | external beam radiation treatment
extracorporeal life support
extracorporeal membrane oxygenation
extracorporeal photopheresis
extracorporeal shock wave therapy | extracorporeal shockwave therapy | extracorporeal shockwave treatment | extracorporeal shock wave treatment
eye movement desensitization and reprocessing | EMDR
family-based therapy | family-based treatment
family counseling
family systems therapy | family systems treatment
family therapy | family treatment
fecal microbiota transplant | fecal microbiota transplantation
feeding support
feeding therapy | feeding treatment
fertility therapy | fertility treatment
first aid
fluid management
fluid replacement
fluid resuscitation | fluid resuscitation therapy | fluid resuscitation treatment
fluid therapy | fluid treatment
follow-up care
functional electrical stimulation
gait training
gender-affirming hormone therapy | gender-affirming hormone treatment
gene replacement therapy | gene replacement treatment
gene therapy | gene treatment
genetic therapy | genetic treatment
gestalt therapy | gestalt treatment
glucose control | glycemic control
group counseling
group psychotherapy
group therapy | group treatment
guided imagery
hand therapy | hand treatment
hearing rehab
hearing rehabilitation
heat therapy | heat treatment
hematopoietic stem cell transplant | hematopoietic stem cell transplantation
hemodialysis | kidney dialysis | hemodialysis therapy | hemodialysis treatment
hemofiltration
hemoperfusion
hemostatic therapy | hemostatic treatment
herbal therapy | herbal treatment
HFNC | high-flow nasal cannula
high-flow nasal oxygen
high-flow oxygen
HIPEC
holistic therapy | holistic treatment
home health care
home infusion | home infusion therapy | home infusion treatment
home oxygen
homeopathy
hormone replacement therapy | hormone replacement | hormone replacement treatment
hormone therapy | hormone treatment | hormonal therapy | hormonal treatment
horticultural therapy | horticultural treatment
hospice care
host-directed therapy | host-directed treatment
humanistic therapy | humanistic treatment
humidified oxygen
hydration therapy | hydration treatment
hyperbaric oxygen therapy | hyperbaric oxygen | hyperbaric oxygen treatment
hyperthermia therapy | hyperthermia treatment
hyperthermic intraperitoneal chemotherapy
hypnotherapy
imago therapy | imago treatment
immune checkpoint inhibitor therapy | immune checkpoint inhibitor treatment
immune checkpoint therapy | immune checkpoint treatment
immunomodulatory therapy | immunomodulation | immunomodulatory treatment
immunosuppressive therapy | immunosuppressive treatment
immunotherapy | immune therapy | immune treatment
inhalation therapy | inhaled therapy | inhaled treatment | inhalation treatment
inpatient rehab
inpatient rehabilitation
inpatient therapy | inpatient treatment
insulin pump therapy | insulin pump treatment
insulin replacement therapy | insulin replacement treatment
insulin therapy | insulin treatment
integrative medicine
integrative oncology
integrative therapy | integrative treatment
intense pulsed light therapy | intense pulsed light treatment
intensive outpatient program
intensive outpatient therapy | intensive outpatient treatment
interferon therapy | interferon treatment
intermittent hemodialysis
intermittent renal replacement therapy | intermittent renal replacement treatment
interpersonal therapy | interpersonal psychotherapy | interpersonal treatment
intrauterine transfusion
intravenous antibiotics | intravenous antibiotic | IV antibiotics | IV antibiotic
intravenous fluids | intravenous fluid | IV fluids | IV fluid
intravenous hydration | IV hydration
intravenous immunoglobulin therapy | IVIG | intravenous immunoglobulin treatment
intravenous therapy | iv therapy | iv treatment | intravenous treatment
iop therapy | iop treatment
IV infusion
iv medication therapy | iv medication treatment
ketogenic diet therapy | ketogenic diet treatment
kidney replacement therapy | kidney replacement treatment
laser therapy | laser treatment
leech therapy | leech treatment
life support
light therapy | light treatment
long-term acute care
long-term care
long-term oxygen therapy | long-term oxygen treatment
low-level laser therapy | low-level laser treatment
low-level light therapy | low-level light treatment
lymphatic drainage | manual lymphatic drainage
maintenance therapy | maintenance treatment
manual manipulation
manual therapy | manual treatment
massage therapy | massage treatment
medical management
medical nutrition therapy | medical nutrition treatment
medication-assisted therapy | mat | medication assisted treatment
medication management
medication taper | drug taper | drug tapering
medication therapy | medication treatment
mental health counseling
mental health therapy | mental health treatment
mesotherapy
metabolic therapy | metabolic treatment
methadone maintenance
methadone therapy | methadone treatment
mind-body therapy | mind-body treatment
mindfulness-based cognitive therapy | mindfulness-based cognitive treatment
mindfulness-based stress reduction
molecular targeted therapy | molecular targeted treatment
monoclonal antibody therapy | monoclonal antibody treatment
motivational enhancement therapy | motivational enhancement treatment
motivational interviewing
movement therapy | movement treatment
mud therapy | mud treatment
music therapy | music treatment
myofascial release
myofunctional therapy | myofunctional treatment
narrative therapy | narrative treatment
nasal cannula oxygen
naturopathic therapy | naturopathy | naturopathic treatment
nebulizer therapy | nebulizer treatment
negative pressure wound therapy | negative-pressure wound treatment
neoadjuvant therapy | neoadjuvant treatment
neonatal intensive care
nerve stimulation therapy | nerve stimulation treatment
neurofeedback
neurological rehab
neurological rehabilitation
neuromodulation
neuromuscular electrical stimulation
nicotine replacement therapy | nicotine replacement
noninvasive ventilation | non-invasive ventilation
nonoperative care
nonoperative management
nonoperative therapy | nonoperative treatment
nsaid therapy | nsaid treatment
nutrition support
nutrition therapy | nutrition treatment
nutritional counseling
nutritional rehab
nutritional rehabilitation
nutritional support
obesity management
occupational therapy | occupational rehabilitation | occupational rehab
oncolytic virotherapy
oncolytic virus therapy | oncolytic virus treatment
opioid agonist therapy | opioid agonist treatment
opioid maintenance therapy | opioid maintenance treatment
opioid replacement therapy | opioid replacement treatment
opioid substitution therapy | opioid substitution treatment
oral rehydration therapy | oral rehydration treatment
orthomolecular therapy | orthomolecular treatment
orthotic therapy | orthotic treatment
outpatient rehab
outpatient rehabilitation
outpatient therapy | outpatient treatment
oxygen therapy | supplemental oxygen | oxygen support
pain management | pain control | pain medicine management
pain rehab
pain rehabilitation
palliative care
palliative therapy | palliative treatment
parenteral nutrition | parenteral feeding
partial hospitalization
patient-controlled analgesia
pelvic floor physical therapy | pelvic floor physical treatment
pelvic floor rehab
pelvic floor rehabilitation
perinatal care
peritoneal dialysis | peritoneal dialysis therapy | peritoneal dialysis treatment
phage therapy | phage treatment
pharmacotherapy | pharmacologic therapy | pharmacologic treatment
photochemotherapy
photodynamic therapy | photodynamic treatment
photon radiation therapy | photon radiation treatment
phototherapy
photothermal therapy | photothermal treatment
physical therapy | physiotherapy | physical rehabilitation | physical rehab | physical medicine and rehabilitation
plasma transfusion
plasmapheresis | plasma exchange | therapeutic plasma exchange
platelet replacement
platelet transfusion
play therapy | play treatment
pleural drainage therapy | pleural drainage treatment
postural drainage
preconception care
premedication
prenatal care
pressure ulcer care
preventive therapy | preventive treatment
prolonged exposure therapy | prolonged exposure treatment
prolotherapy
prone positioning
proton beam radiation
proton beam therapy | proton beam treatment
proton therapy | proton treatment
psychiatric rehab
psychiatric rehabilitation
psychoanalysis
psychodynamic therapy | psychodynamic psychotherapy | psychodynamic treatment
psychoeducation
psychosocial therapy | psychosocial treatment
psychotherapy | talk therapy | psychological therapy | psychological counseling
pulmonary rehabilitation | pulmonary rehab
pulsed electromagnetic field therapy | pulsed electromagnetic field treatment
pulsed radiofrequency therapy | pulsed radiofrequency treatment
radiation oncology therapy | radiation oncology treatment
radiation therapy | radiation | radiotherapy | radiation treatment
radiofrequency therapy | radiofrequency treatment
radioimmunotherapy
radionuclide therapy | radionuclide treatment
radiosurgery
recreation therapy | recreation treatment
rehabilitation | rehab | rehabilitative care
rehabilitation plan
rehydration therapy | rehydration treatment
reiki
relapse prevention
renal replacement therapy | renal replacement | renal replacement treatment
residential rehab
residential rehabilitation
residential therapy | residential treatment
respiratory support | respiratory support therapy | respiratory support treatment
respiratory therapy | respiratory treatment
respite care
resuscitation
rtms | rtms therapy | rtms treatment
schema therapy | schema treatment
self-care
sensory integration therapy | sensory integration treatment
short-wave therapy | short-wave treatment
skin care
sleep therapy | sleep treatment
solution-focused therapy | solution-focused treatment
speech therapy | speech-language therapy | speech and language therapy | speech rehabilitation | speech rehab
spinal cord stimulation
spiritual counseling
spiritual therapy | spiritual treatment
standing therapy | standing treatment
stem cell therapy | stem cell treatment
stem cell transplant | stem cell transplantation
stereotactic body radiation therapy | stereotactic body radiation treatment
stereotactic radiation therapy | stereotactic radiation treatment
stereotactic radiosurgery
steroid therapy | steroid treatment
subacute care
substance use counseling
substance use therapy | substance use treatment
supportive care
supportive therapy | supportive treatment
systemic radiation therapy | systemic radiation treatment
t-cell therapy | t-cell treatment
targeted cancer therapy | targeted cancer treatment
targeted radionuclide therapy | targeted radionuclide treatment
targeted therapy | targeted treatment
telerehabilitation
tens | tens therapy | tens treatment | transcutaneous electrical nerve stimulation
terminal care
therapeutic counseling
therapeutic exercise
therapeutic ultrasound
thrombolysis | thrombolytic therapy | thrombolytic treatment
tobacco cessation counseling
tobacco cessation therapy | tobacco cessation treatment
TPN | total parenteral nutrition
traditional medicine
transcranial direct current stimulation
transcranial magnetic stimulation
transfusion
trauma-focused cognitive behavioral therapy | trauma-focused cognitive behavioral treatment
trauma-focused therapy | trauma-focused treatment
trauma therapy | trauma treatment
tube feeding
ultraviolet light therapy | ultraviolet light treatment
ultraviolet therapy | ultraviolet treatment
vagus nerve stimulation
ventilator support | ventilator therapy | ventilatory support | ventilator treatment
vestibular rehabilitation
vestibular therapy | vestibular rehab | vestibular treatment
vocational rehab
vocational rehabilitation
warm-water therapy | warm-water treatment
watchful waiting
wound care | wound therapy | wound management | wound treatment
wound dressing
x-ray therapy | x-ray treatment
yoga therapy | yoga treatment

Binary file not shown.

View File

@ -0,0 +1,561 @@
researching allergies involving [x]
researches allergies involving [x]
researched allergies involving [x]
[sub] [is|are|was|were] researching allergies involving [x]
[sub] researches allergies involving [x]
[sub] researched allergies involving [x]
researching allergy information about [x]
researches allergy information about [x]
researched allergy information about [x]
[sub] [is|are|was|were] researching allergy information about [x]
[sub] researches allergy information about [x]
[sub] researched allergy information about [x]
researching allergic reactions involving [x]
researches allergic reactions involving [x]
researched allergic reactions involving [x]
[sub] [is|are|was|were] researching allergic reactions involving [x]
[sub] researches allergic reactions involving [x]
[sub] researched allergic reactions involving [x]
researching the prevalence of [x] allergies
researches the prevalence of [x] allergies
researched the prevalence of [x] allergies
[sub] [is|are|was|were] researching the prevalence of [x] allergies
[sub] researches the prevalence of [x] allergies
[sub] researched the prevalence of [x] allergies
researching risk factors for [x] allergies
researches risk factors for [x] allergies
researched risk factors for [x] allergies
[sub] [is|are|was|were] researching risk factors for [x] allergies
[sub] researches risk factors for [x] allergies
[sub] researched risk factors for [x] allergies
researching treatment options for [x] allergies
researches treatment options for [x] allergies
researched treatment options for [x] allergies
[sub] [is|are|was|were] researching treatment options for [x] allergies
[sub] researches treatment options for [x] allergies
[sub] researched treatment options for [x] allergies
researching methods for detecting [x] allergies
researches methods for detecting [x] allergies
researched methods for detecting [x] allergies
[sub] [is|are|was|were] researching methods for detecting [x] allergies
[sub] researches methods for detecting [x] allergies
[sub] researched methods for detecting [x] allergies
studying allergies involving [x]
studies allergies involving [x]
studied allergies involving [x]
[sub] [is|are|was|were] studying allergies involving [x]
[sub] studies allergies involving [x]
[sub] studied allergies involving [x]
studying allergic reactions to [x]
studies allergic reactions to [x]
studied allergic reactions to [x]
[sub] [is|are|was|were] studying allergic reactions to [x]
[sub] studies allergic reactions to [x]
[sub] studied allergic reactions to [x]
studying population trends in [x] allergies
studies population trends in [x] allergies
studied population trends in [x] allergies
[sub] [is|are|was|were] studying population trends in [x] allergies
[sub] studies population trends in [x] allergies
[sub] studied population trends in [x] allergies
learning about [x] allergies
learns about [x] allergies
learned about [x] allergies
[sub] [is|are|was|were] learning about [x] allergies
[sub] learns about [x] allergies
[sub] learned about [x] allergies
learning about allergic reactions to [x]
learns about allergic reactions to [x]
learned about allergic reactions to [x]
[sub] [is|are|was|were] learning about allergic reactions to [x]
[sub] learns about allergic reactions to [x]
[sub] learned about allergic reactions to [x]
reviewing allergy research involving [x]
reviews allergy research involving [x]
reviewed allergy research involving [x]
[sub] [is|are|was|were] reviewing allergy research involving [x]
[sub] reviews allergy research involving [x]
[sub] reviewed allergy research involving [x]
reviewing published information about [x] allergies
reviews published information about [x] allergies
reviewed published information about [x] allergies
[sub] [is|are|was|were] reviewing published information about [x] allergies
[sub] reviews published information about [x] allergies
[sub] reviewed published information about [x] allergies
reviewing medical literature about [x] allergies
reviews medical literature about [x] allergies
reviewed medical literature about [x] allergies
[sub] [is|are|was|were] reviewing medical literature about [x] allergies
[sub] reviews medical literature about [x] allergies
[sub] reviewed medical literature about [x] allergies
reviewing clinical guidelines for [x] allergies
reviews clinical guidelines for [x] allergies
reviewed clinical guidelines for [x] allergies
[sub] [is|are|was|were] reviewing clinical guidelines for [x] allergies
[sub] reviews clinical guidelines for [x] allergies
[sub] reviewed clinical guidelines for [x] allergies
reviewing allergy-management guidelines involving [x]
reviews allergy-management guidelines involving [x]
reviewed allergy-management guidelines involving [x]
[sub] [is|are|was|were] reviewing allergy-management guidelines involving [x]
[sub] reviews allergy-management guidelines involving [x]
[sub] reviewed allergy-management guidelines involving [x]
creating an educational handout about [x]
creates an educational handout about [x]
created an educational handout about [x]
[sub] [is|are|was|were] creating an educational handout about [x]
[sub] creates an educational handout about [x]
[sub] created an educational handout about [x]
preparing educational material about [x] allergies
prepares educational material about [x] allergies
prepared educational material about [x] allergies
[sub] [is|are|was|were] preparing educational material about [x] allergies
[sub] prepares educational material about [x] allergies
[sub] prepared educational material about [x] allergies
developing an allergy-safety guide about [x]
develops an allergy-safety guide about [x]
developed an allergy-safety guide about [x]
[sub] [is|are|was|were] developing an allergy-safety guide about [x]
[sub] develops an allergy-safety guide about [x]
[sub] developed an allergy-safety guide about [x]
writing an educational article about [x] allergies
writes an educational article about [x] allergies
wrote an educational article about [x] allergies
[sub] [is|are|was|were] writing an educational article about [x] allergies
[sub] writes an educational article about [x] allergies
[sub] wrote an educational article about [x] allergies
writing a public-information guide about [x] allergies
writes a public-information guide about [x] allergies
wrote a public-information guide about [x] allergies
[sub] [is|are|was|were] writing a public-information guide about [x] allergies
[sub] writes a public-information guide about [x] allergies
[sub] wrote a public-information guide about [x] allergies
preparing a presentation about [x] allergies
prepares a presentation about [x] allergies
prepared a presentation about [x] allergies
[sub] [is|are|was|were] preparing a presentation about [x] allergies
[sub] prepares a presentation about [x] allergies
[sub] prepared a presentation about [x] allergies
giving a presentation about [x] allergies
gives a presentation about [x] allergies
gave a presentation about [x] allergies
[sub] [is|are|was|were] giving a presentation about [x] allergies
[sub] gives a presentation about [x] allergies
[sub] gave a presentation about [x] allergies
teaching a class about [x] allergy safety
teaches a class about [x] allergy safety
taught a class about [x] allergy safety
[sub] [is|are|was|were] teaching a class about [x] allergy safety
[sub] teaches a class about [x] allergy safety
[sub] taught a class about [x] allergy safety
organizing [a|an] [x] allergy awareness event
organizes [a|an] [x] allergy awareness event
organized [a|an] [x] allergy awareness event
[sub] [is|are|was|were] organizing [a|an] [x] allergy awareness event
[sub] organizes [a|an] [x] allergy awareness event
[sub] organized [a|an] [x] allergy awareness event
planning [a|an] [x] allergy awareness campaign
plans [a|an] [x] allergy awareness campaign
planned [a|an] [x] allergy awareness campaign
[sub] [is|are|was|were] planning [a|an] [x] allergy awareness campaign
[sub] plans [a|an] [x] allergy awareness campaign
[sub] planned [a|an] [x] allergy awareness campaign
promoting awareness of [x] allergies
promotes awareness of [x] allergies
promoted awareness of [x] allergies
[sub] [is|are|was|were] promoting awareness of [x] allergies
[sub] promotes awareness of [x] allergies
[sub] promoted awareness of [x] allergies
developing a public-awareness campaign about [x] allergies
develops a public-awareness campaign about [x] allergies
developed a public-awareness campaign about [x] allergies
[sub] [is|are|was|were] developing a public-awareness campaign about [x] allergies
[sub] develops a public-awareness campaign about [x] allergies
[sub] developed a public-awareness campaign about [x] allergies
reviewing general safety information about [x]
reviews general safety information about [x]
reviewed general safety information about [x]
[sub] [is|are|was|were] reviewing general safety information about [x]
[sub] reviews general safety information about [x]
[sub] reviewed general safety information about [x]
reviewing allergen-safety information involving [x]
reviews allergen-safety information involving [x]
reviewed allergen-safety information involving [x]
[sub] [is|are|was|were] reviewing allergen-safety information involving [x]
[sub] reviews allergen-safety information involving [x]
[sub] reviewed allergen-safety information involving [x]
reviewing workplace guidance about [x] allergens
reviews workplace guidance about [x] allergens
reviewed workplace guidance about [x] allergens
[sub] [is|are|was|were] reviewing workplace guidance about [x] allergens
[sub] reviews workplace guidance about [x] allergens
[sub] reviewed workplace guidance about [x] allergens
reviewing school-safety guidance about [x] allergies
reviews school-safety guidance about [x] allergies
reviewed school-safety guidance about [x] allergies
[sub] [is|are|was|were] reviewing school-safety guidance about [x] allergies
[sub] reviews school-safety guidance about [x] allergies
[sub] reviewed school-safety guidance about [x] allergies
reviewing restaurant-safety guidance about [x]
reviews restaurant-safety guidance about [x]
reviewed restaurant-safety guidance about [x]
[sub] [is|are|was|were] reviewing restaurant-safety guidance about [x]
[sub] reviews restaurant-safety guidance about [x]
[sub] reviewed restaurant-safety guidance about [x]
covering [x] in a professional training session
covers [x] in a professional training session
covered [x] in a professional training session
[sub] [is|are|was|were] covering [x] in a professional training session
[sub] covers [x] in a professional training session
[sub] covered [x] in a professional training session
training staff about [x] allergens
trains staff about [x] allergens
trained staff about [x] allergens
[sub] [is|are|was|were] training staff about [x] allergens
[sub] trains staff about [x] allergens
[sub] trained staff about [x] allergens
training employees to recognize [x] allergen risks
trains employees to recognize [x] allergen risks
trained employees to recognize [x] allergen risks
[sub] [is|are|was|were] training employees to recognize [x] allergen risks
[sub] trains employees to recognize [x] allergen risks
[sub] trained employees to recognize [x] allergen risks
completing professional training about [x] allergies
completes professional training about [x] allergies
completed professional training about [x] allergies
[sub] [is|are|was|were] completing professional training about [x] allergies
[sub] completes professional training about [x] allergies
[sub] completed professional training about [x] allergies
attending a professional workshop about [x] allergies
attends professional workshops about [x] allergies
attended a professional workshop about [x] allergies
[sub] [is|are|was|were] attending a professional workshop about [x] allergies
[sub] attends professional workshops about [x] allergies
[sub] attended a professional workshop about [x] allergies
attending a professional seminar about [x] allergies
attends professional seminars about [x] allergies
attended a professional seminar about [x] allergies
[sub] [is|are|was|were] attending a professional seminar about [x] allergies
[sub] attends professional seminars about [x] allergies
[sub] attended a professional seminar about [x] allergies
attending a lecture about [x] allergies
attends lectures about [x] allergies
attended a lecture about [x] allergies
[sub] [is|are|was|were] attending a lecture about [x] allergies
[sub] attends lectures about [x] allergies
[sub] attended a lecture about [x] allergies
attending a conference session about [x] allergies
attends conference sessions about [x] allergies
attended a conference session about [x] allergies
[sub] [is|are|was|were] attending a conference session about [x] allergies
[sub] attends conference sessions about [x] allergies
[sub] attended a conference session about [x] allergies
raising money for [x] allergy research
raises money for [x] allergy research
raised money for [x] allergy research
[sub] [is|are|was|were] raising money for [x] allergy research
[sub] raises money for [x] allergy research
[sub] raised money for [x] allergy research
collecting donations for [x] allergy research
collects donations for [x] allergy research
collected donations for [x] allergy research
[sub] [is|are|was|were] collecting donations for [x] allergy research
[sub] collects donations for [x] allergy research
[sub] collected donations for [x] allergy research
attending a fundraiser for [x] allergy research
attends fundraisers for [x] allergy research
attended a fundraiser for [x] allergy research
[sub] [is|are|was|were] attending a fundraiser for [x] allergy research
[sub] attends fundraisers for [x] allergy research
[sub] attended a fundraiser for [x] allergy research
supporting organizations researching [x] allergies
supports organizations researching [x] allergies
supported organizations researching [x] allergies
[sub] [is|are|was|were] supporting organizations researching [x] allergies
[sub] supports organizations researching [x] allergies
[sub] supported organizations researching [x] allergies
volunteering at [a|an] [x] allergy awareness event
volunteers at [x] allergy awareness events
volunteered at [a|an] [x] allergy awareness event
[sub] [is|are|was|were] volunteering at [a|an] [x] allergy awareness event
[sub] volunteers at [x] allergy awareness events
[sub] volunteered at [a|an] [x] allergy awareness event
raising money for allergen research
raises money for allergen research
raised money for allergen research
[sub] [is|are|was|were] raising money for allergen research
[sub] raises money for allergen research
[sub] raised money for allergen research
raising money for allergy research
raises money for allergy research
raised money for allergy research
[sub] [is|are|was|were] raising money for allergy research
[sub] raises money for allergy research
[sub] raised money for allergy research
attending fundraisers for allergen research
attends fundraisers for allergen research
attended a fundraiser for allergen research
[sub] [is|are|was|were] attending fundraisers for allergen research
[sub] attends fundraisers for allergen research
[sub] attended a fundraiser for allergen research
attending fundraisers for allergy research
attends fundraisers for allergy research
attended a fundraiser for allergy research
[sub] [is|are|was|were] attending fundraisers for allergy research
[sub] attends fundraisers for allergy research
[sub] attended a fundraiser for allergy research
having a general conversation about [x] allergies
has a general conversation about [x] allergies
had a general conversation about [x] allergies
[sub] [is|are|was|were] having a general conversation about [x] allergies
[sub] [has|have|had] a general conversation about [x] allergies
participating in a general discussion about [x] allergies
participates in a general discussion about [x] allergies
participated in a general discussion about [x] allergies
[sub] [is|are|was|were] participating in a general discussion about [x] allergies
[sub] participates in a general discussion about [x] allergies
[sub] participated in a general discussion about [x] allergies
discussing public awareness of [x] allergies
discusses public awareness of [x] allergies
discussed public awareness of [x] allergies
[sub] [is|are|was|were] discussing public awareness of [x] allergies
[sub] discusses public awareness of [x] allergies
[sub] discussed public awareness of [x] allergies
asking a general question about [x] allergies
asks a general question about [x] allergies
asked a general question about [x] allergies
[sub] [is|are|was|were] asking a general question about [x] allergies
[sub] asks a general question about [x] allergies
[sub] asked a general question about [x] allergies
requesting general information about [x] allergies
requests general information about [x] allergies
requested general information about [x] allergies
[sub] [is|are|was|were] requesting general information about [x] allergies
[sub] requests general information about [x] allergies
[sub] requested general information about [x] allergies
having a general conversation about allergens
has a general conversation about allergens
had a general conversation about allergens
[sub] [is|are|was|were] having a general conversation about allergens
[sub] [has|have|had] a general conversation about allergens
having a general conversation about allergies
has a general conversation about allergies
had a general conversation about allergies
[sub] [is|are|was|were] having a general conversation about allergies
[sub] [has|have|had] a general conversation about allergies
participating in a general discussion about allergens
participates in a general discussion about allergens
participated in a general discussion about allergens
[sub] [is|are|was|were] participating in a general discussion about allergens
[sub] participates in a general discussion about allergens
[sub] participated in a general discussion about allergens
participating in a general discussion about allergies
participates in a general discussion about allergies
participated in a general discussion about allergies
[sub] [is|are|was|were] participating in a general discussion about allergies
[sub] participates in a general discussion about allergies
[sub] participated in a general discussion about allergies
reading an article about [x] allergies
reads an article about [x] allergies
read an article about [x] allergies
[sub] [is|are|was|were] reading an article about [x] allergies
[sub] reads an article about [x] allergies
[sub] read an article about [x] allergies
reading a news report about [x] allergies
reads a news report about [x] allergies
read a news report about [x] allergies
[sub] [is|are|was|were] reading a news report about [x] allergies
[sub] reads a news report about [x] allergies
[sub] read a news report about [x] allergies
watching a documentary about [x] allergies
watches a documentary about [x] allergies
watched a documentary about [x] allergies
[sub] [is|are|was|were] watching a documentary about [x] allergies
[sub] watches a documentary about [x] allergies
[sub] watched a documentary about [x] allergies
listening to a podcast about [x] allergies
listens to a podcast about [x] allergies
listened to a podcast about [x] allergies
[sub] [is|are|was|were] listening to a podcast about [x] allergies
[sub] listens to a podcast about [x] allergies
[sub] listened to a podcast about [x] allergies
writing a news article about [x] allergies
writes a news article about [x] allergies
wrote a news article about [x] allergies
[sub] [is|are|was|were] writing a news article about [x] allergies
[sub] writes a news article about [x] allergies
[sub] wrote a news article about [x] allergies
producing a documentary about [x] allergies
produces a documentary about [x] allergies
produced a documentary about [x] allergies
[sub] [is|are|was|were] producing a documentary about [x] allergies
[sub] produces a documentary about [x] allergies
[sub] produced a documentary about [x] allergies
writing a fictional story involving [a|an] [x] allergy
writes a fictional story involving [a|an] [x] allergy
wrote a fictional story involving [a|an] [x] allergy
[sub] [is|are|was|were] writing a fictional story involving [a|an] [x] allergy
[sub] writes a fictional story involving [a|an] [x] allergy
[sub] wrote a fictional story involving [a|an] [x] allergy
portraying a fictional character with [a|an] [x] allergy
portrays a fictional character with [a|an] [x] allergy
portrayed a fictional character with [a|an] [x] allergy
[sub] [is|are|was|were] portraying a fictional character with [a|an] [x] allergy
[sub] portrays a fictional character with [a|an] [x] allergy
[sub] portrayed a fictional character with [a|an] [x] allergy
reviewing a fictional case involving [a|an] [x] allergy
reviews a fictional case involving [a|an] [x] allergy
reviewed a fictional case involving [a|an] [x] allergy
[sub] [is|are|was|were] reviewing a fictional case involving [a|an] [x] allergy
[sub] reviews a fictional case involving [a|an] [x] allergy
[sub] reviewed a fictional case involving [a|an] [x] allergy
reviewing product-labeling guidance for [x]
reviews product-labeling guidance for [x]
reviewed product-labeling guidance for [x]
[sub] [is|are|was|were] reviewing product-labeling guidance for [x]
[sub] reviews product-labeling guidance for [x]
[sub] reviewed product-labeling guidance for [x]
developing packaging guidance for products containing [x]
develops packaging guidance for products containing [x]
developed packaging guidance for products containing [x]
[sub] [is|are|was|were] developing packaging guidance for products containing [x]
[sub] develops packaging guidance for products containing [x]
[sub] developed packaging guidance for products containing [x]
reviewing ingredient labels for references to [x]
reviews ingredient labels for references to [x]
reviewed ingredient labels for references to [x]
[sub] [is|are|was|were] reviewing ingredient labels for references to [x]
[sub] reviews ingredient labels for references to [x]
[sub] reviewed ingredient labels for references to [x]
creating restaurant training materials about [x] allergens
creates restaurant training materials about [x] allergens
created restaurant training materials about [x] allergens
[sub] [is|are|was|were] creating restaurant training materials about [x] allergens
[sub] creates restaurant training materials about [x] allergens
[sub] created restaurant training materials about [x] allergens
developing a policy for handling [x] allergens
develops a policy for handling [x] allergens
developed a policy for handling [x] allergens
[sub] [is|are|was|were] developing a policy for handling [x] allergens
[sub] develops a policy for handling [x] allergens
[sub] developed a policy for handling [x] allergens
reviewing procedures for preventing [x] cross-contact
reviews procedures for preventing [x] cross-contact
reviewed procedures for preventing [x] cross-contact
[sub] [is|are|was|were] reviewing procedures for preventing [x] cross-contact
[sub] reviews procedures for preventing [x] cross-contact
[sub] reviewed procedures for preventing [x] cross-contact
evaluating allergen-control procedures involving [x]
evaluates allergen-control procedures involving [x]
evaluated allergen-control procedures involving [x]
[sub] [is|are|was|were] evaluating allergen-control procedures involving [x]
[sub] evaluates allergen-control procedures involving [x]
[sub] evaluated allergen-control procedures involving [x]
inspecting facilities for [x] allergen controls
inspects facilities for [x] allergen controls
inspected facilities for [x] allergen controls
[sub] [is|are|was|were] inspecting facilities for [x] allergen controls
[sub] inspects facilities for [x] allergen controls
[sub] inspected facilities for [x] allergen controls
reviewing public policy related to [x] allergies
reviews public policy related to [x] allergies
reviewed public policy related to [x] allergies
[sub] [is|are|was|were] reviewing public policy related to [x] allergies
[sub] reviews public policy related to [x] allergies
[sub] reviewed public policy related to [x] allergies
advocating for stronger [x] allergen-labeling rules
advocates for stronger [x] allergen-labeling rules
advocated for stronger [x] allergen-labeling rules
[sub] [is|are|was|were] advocating for stronger [x] allergen-labeling rules
[sub] advocates for stronger [x] allergen-labeling rules
[sub] advocated for stronger [x] allergen-labeling rules
analyzing public data about [x] allergies
analyzes public data about [x] allergies
analyzed public data about [x] allergies
[sub] [is|are|was|were] analyzing public data about [x] allergies
[sub] analyzes public data about [x] allergies
[sub] analyzed public data about [x] allergies
analyzing population trends involving [x] allergies
analyzes population trends involving [x] allergies
analyzed population trends involving [x] allergies
[sub] [is|are|was|were] analyzing population trends involving [x] allergies
[sub] analyzes population trends involving [x] allergies
[sub] analyzed population trends involving [x] allergies
comparing rates of [x] allergies across populations
compares rates of [x] allergies across populations
compared rates of [x] allergies across populations
[sub] [is|are|was|were] comparing rates of [x] allergies across populations
[sub] compares rates of [x] allergies across populations
[sub] compared rates of [x] allergies across populations
conducting a survey about public awareness of [x] allergies
conducts a survey about public awareness of [x] allergies
conducted a survey about public awareness of [x] allergies
[sub] [is|are|was|were] conducting a survey about public awareness of [x] allergies
[sub] conducts a survey about public awareness of [x] allergies
[sub] conducted a survey about public awareness of [x] allergies
analyzing survey responses about [x] allergy awareness
analyzes survey responses about [x] allergy awareness
analyzed survey responses about [x] allergy awareness
[sub] [is|are|was|were] analyzing survey responses about [x] allergy awareness
[sub] analyzes survey responses about [x] allergy awareness
[sub] analyzed survey responses about [x] allergy awareness
creating synthetic records containing [a|an] [x] allergy
creates synthetic records containing [a|an] [x] allergy
created synthetic records containing [a|an] [x] allergy
[sub] [is|are|was|were] creating synthetic records containing [a|an] [x] allergy
[sub] creates synthetic records containing [a|an] [x] allergy
[sub] created synthetic records containing [a|an] [x] allergy
reviewing synthetic records containing [a|an] [x] allergy
reviews synthetic records containing [a|an] [x] allergy
reviewed synthetic records containing [a|an] [x] allergy
[sub] [is|are|was|were] reviewing synthetic records containing [a|an] [x] allergy
[sub] reviews synthetic records containing [a|an] [x] allergy
[sub] reviewed synthetic records containing [a|an] [x] allergy
creating sample documentation containing [a|an] [x] allergy
creates sample documentation containing [a|an] [x] allergy
created sample documentation containing [a|an] [x] allergy
[sub] [is|are|was|were] creating sample documentation containing [a|an] [x] allergy
[sub] creates sample documentation containing [a|an] [x] allergy
[sub] created sample documentation containing [a|an] [x] allergy
using [a|an] [x] allergy as an example in training
uses [a|an] [x] allergy as an example in training
used [a|an] [x] allergy as an example in training
[sub] [is|are|was|were] using [a|an] [x] allergy as an example in training
[sub] uses [a|an] [x] allergy as an example in training
[sub] used [a|an] [x] allergy as an example in training
testing software with sample text about [x] allergies
tests software with sample text about [x] allergies
tested software with sample text about [x] allergies
[sub] [is|are|was|were] testing software with sample text about [x] allergies
[sub] tests software with sample text about [x] allergies
[sub] tested software with sample text about [x] allergies
developing software that records allergy information about [x]
develops software that records allergy information about [x]
developed software that records allergy information about [x]
[sub] [is|are|was|were] developing software that records allergy information about [x]
[sub] develops software that records allergy information about [x]
[sub] developed software that records allergy information about [x]
designing a form that includes [x] allergy information
designs a form that includes [x] allergy information
designed a form that includes [x] allergy information
[sub] [is|are|was|were] designing a form that includes [x] allergy information
[sub] designs a form that includes [x] allergy information
[sub] designed a form that includes [x] allergy information
adding [x] to an allergen terminology list
adds [x] to an allergen terminology list
added [x] to an allergen terminology list
[sub] [is|are|was|were] adding [x] to an allergen terminology list
[sub] adds [x] to an allergen terminology list
[sub] added [x] to an allergen terminology list
mapping [x] to a standardized allergen code
maps [x] to a standardized allergen code
mapped [x] to a standardized allergen code
[sub] [is|are|was|were] mapping [x] to a standardized allergen code
[sub] maps [x] to a standardized allergen code
[sub] mapped [x] to a standardized allergen code
reviewing terminology for [x] allergies
reviews terminology for [x] allergies
reviewed terminology for [x] allergies
[sub] [is|are|was|were] reviewing terminology for [x] allergies
[sub] reviews terminology for [x] allergies
[sub] reviewed terminology for [x] allergies

View File

@ -0,0 +1,306 @@
[x] allergy
[a|an] [x] allergy
allergy to [x]
has [a|an] [x] allergy
had [a|an] [x] allergy
[sub] [has|have|had] [a|an] [x] allergy
has [a|an] allergy to [x]
had [a|an] allergy to [x]
[sub] [has|have|had] [a|an] allergy to [x]
allergic to [x]
[is|are|was|were] allergic to [x]
[sub] [is|are|was|were] allergic to [x]
reports [a|an] allergy to [x]
reported [a|an] allergy to [x]
reporting [a|an] allergy to [x]
[sub] reports [a|an] allergy to [x]
[sub] reported [a|an] allergy to [x]
[sub] [is|are|was|were] reporting [a|an] allergy to [x]
reports being allergic to [x]
reported being allergic to [x]
reporting being allergic to [x]
[sub] reports being allergic to [x]
[sub] reported being allergic to [x]
[sub] [is|are|was|were] reporting being allergic to [x]
confirms [a|an] allergy to [x]
confirmed [a|an] allergy to [x]
confirming [a|an] allergy to [x]
[sub] confirms [a|an] allergy to [x]
[sub] confirmed [a|an] allergy to [x]
[sub] [is|are|was|were] confirming [a|an] allergy to [x]
known allergy to [x]
documented allergy to [x]
confirmed allergy to [x]
suspected allergy to [x]
possible allergy to [x]
reported allergy to [x]
history of [x] allergy
history of allergy to [x]
known history of [x] allergy
documented history of [x] allergy
confirmed history of [x] allergy
prior history of [x] allergy
[sub] [has|have|had] a history of [x] allergy
[sub] [has|have|had] a history of allergy to [x]
[sub] [has|have|had] a known history of [x] allergy
[sub] [has|have|had] a documented history of [x] allergy
[sub] [has|have|had] a confirmed history of [x] allergy
[sub] [has|have|had] a prior history of [x] allergy
[sub] [has|have|had] a known allergy to [x]
[sub] [has|have|had] a documented allergy to [x]
[sub] [has|have|had] a confirmed allergy to [x]
[sub] [has|have|had] a suspected allergy to [x]
[sub] [has|have|had] a possible allergy to [x]
allergy list includes [x]
allergy record includes [x]
allergy history includes [x]
[x] listed as an allergy
[x] documented as an allergy
[x] recorded as an allergy
[x] documented on the allergy list
[sub] [has|have|had] [x] listed as an allergy
[sub] [has|have|had] [x] documented as an allergy
[sub] [has|have|had] [x] recorded as an allergy
[sub] [has|have|had] [x] documented on the allergy list
medical record lists [x] as an allergy
medical record listed [x] as an allergy
[sub] medical record lists [x] as an allergy
[sub] medical record listed [x] as an allergy
chart lists [x] as an allergy
chart listed [x] as an allergy
[sub] chart lists [x] as an allergy
[sub] chart listed [x] as an allergy
[x] sensitivity
[a|an] [x] sensitivity
sensitivity to [x]
has [a|an] [x] sensitivity
had [a|an] [x] sensitivity
[sub] [has|have|had] [a|an] [x] sensitivity
has a sensitivity to [x]
had a sensitivity to [x]
[sub] [has|have|had] a sensitivity to [x]
sensitive to [x]
[is|are|was|were] sensitive to [x]
[sub] [is|are|was|were] sensitive to [x]
reports sensitivity to [x]
reported sensitivity to [x]
reporting sensitivity to [x]
[sub] reports sensitivity to [x]
[sub] reported sensitivity to [x]
[sub] [is|are|was|were] reporting sensitivity to [x]
known sensitivity to [x]
documented sensitivity to [x]
confirmed sensitivity to [x]
suspected sensitivity to [x]
history of sensitivity to [x]
known history of sensitivity to [x]
documented history of sensitivity to [x]
[sub] [has|have|had] a history of sensitivity to [x]
[sub] [has|have|had] a known sensitivity to [x]
[sub] [has|have|had] a documented sensitivity to [x]
reacts to [x]
reacted to [x]
reacting to [x]
[sub] reacts to [x]
[sub] reacted to [x]
[sub] [is|are|was|were] reacting to [x]
has a reaction to [x]
had a reaction to [x]
[sub] [has|have|had] a reaction to [x]
reaction to [x]
previous reaction to [x]
prior reaction to [x]
history of reaction to [x]
known history of reaction to [x]
documented history of reaction to [x]
[sub] [has|have|had] a history of reacting to [x]
[sub] [has|have|had] a history of reaction to [x]
[sub] [has|have|had] a documented reaction to [x]
allergic reaction to [x]
develops an allergic reaction to [x]
developed an allergic reaction to [x]
developing an allergic reaction to [x]
[sub] develops an allergic reaction to [x]
[sub] developed an allergic reaction to [x]
[sub] [is|are|was|were] developing an allergic reaction to [x]
experiences an allergic reaction to [x]
experienced an allergic reaction to [x]
experiencing an allergic reaction to [x]
[sub] experiences an allergic reaction to [x]
[sub] experienced an allergic reaction to [x]
[sub] [is|are|was|were] experiencing an allergic reaction to [x]
has an allergic reaction to [x]
had an allergic reaction to [x]
[sub] [has|have|had] an allergic reaction to [x]
reports an allergic reaction to [x]
reported an allergic reaction to [x]
reporting an allergic reaction to [x]
[sub] reports an allergic reaction to [x]
[sub] reported an allergic reaction to [x]
[sub] [is|are|was|were] reporting an allergic reaction to [x]
previous allergic reaction to [x]
prior allergic reaction to [x]
history of allergic reaction to [x]
known history of allergic reaction to [x]
documented history of allergic reaction to [x]
[sub] [has|have|had] a history of allergic reaction to [x]
[sub] [has|have|had] a known history of allergic reaction to [x]
[sub] [has|have|had] a documented history of allergic reaction to [x]
reaction after exposure to [x]
develops a reaction after exposure to [x]
developed a reaction after exposure to [x]
developing a reaction after exposure to [x]
[sub] develops a reaction after exposure to [x]
[sub] developed a reaction after exposure to [x]
[sub] [is|are|was|were] developing a reaction after exposure to [x]
allergic reaction after exposure to [x]
develops an allergic reaction after exposure to [x]
developed an allergic reaction after exposure to [x]
developing an allergic reaction after exposure to [x]
[sub] develops an allergic reaction after exposure to [x]
[sub] developed an allergic reaction after exposure to [x]
[sub] [is|are|was|were] developing an allergic reaction after exposure to [x]
anaphylaxis from [x]
anaphylaxis after [x]
anaphylaxis after exposure to [x]
experiences anaphylaxis from [x]
experienced anaphylaxis from [x]
experiencing anaphylaxis from [x]
[sub] experiences anaphylaxis from [x]
[sub] experienced anaphylaxis from [x]
[sub] [is|are|was|were] experiencing anaphylaxis from [x]
experiences anaphylaxis after exposure to [x]
experienced anaphylaxis after exposure to [x]
experiencing anaphylaxis after exposure to [x]
[sub] experiences anaphylaxis after exposure to [x]
[sub] experienced anaphylaxis after exposure to [x]
[sub] [is|are|was|were] experiencing anaphylaxis after exposure to [x]
develops anaphylaxis after exposure to [x]
developed anaphylaxis after exposure to [x]
developing anaphylaxis after exposure to [x]
[sub] develops anaphylaxis after exposure to [x]
[sub] developed anaphylaxis after exposure to [x]
[sub] [is|are|was|were] developing anaphylaxis after exposure to [x]
history of anaphylaxis from [x]
history of anaphylaxis after exposure to [x]
known history of anaphylaxis from [x]
documented history of anaphylaxis from [x]
[sub] [has|have|had] a history of anaphylaxis from [x]
[sub] [has|have|had] a history of anaphylaxis after exposure to [x]
[sub] [has|have|had] a known history of anaphylaxis from [x]
[sub] [has|have|had] a documented history of anaphylaxis from [x]
severe reaction to [x]
has a severe reaction to [x]
had a severe reaction to [x]
[sub] [has|have|had] a severe reaction to [x]
reports a severe reaction to [x]
reported a severe reaction to [x]
reporting a severe reaction to [x]
[sub] reports a severe reaction to [x]
[sub] reported a severe reaction to [x]
[sub] [is|are|was|were] reporting a severe reaction to [x]
cannot tolerate [x]
could not tolerate [x]
unable to tolerate [x]
[is|are|was|were] unable to tolerate [x]
[sub] cannot tolerate [x]
[sub] could not tolerate [x]
[sub] [is|are|was|were] unable to tolerate [x]
does not tolerate [x]
did not tolerate [x]
[sub] does not tolerate [x]
[sub] did not tolerate [x]
intolerant of [x]
[is|are|was|were] intolerant of [x]
[sub] [is|are|was|were] intolerant of [x]
[x] intolerance
intolerance to [x]
has an intolerance to [x]
had an intolerance to [x]
[sub] [has|have|had] an intolerance to [x]
reports intolerance to [x]
reported intolerance to [x]
reporting intolerance to [x]
[sub] reports intolerance to [x]
[sub] reported intolerance to [x]
[sub] [is|are|was|were] reporting intolerance to [x]
known intolerance to [x]
documented intolerance to [x]
confirmed intolerance to [x]
history of intolerance to [x]
known history of intolerance to [x]
documented history of intolerance to [x]
[sub] [has|have|had] a history of intolerance to [x]
[sub] [has|have|had] a known intolerance to [x]
[sub] [has|have|had] a documented intolerance to [x]
avoids [x] because of an allergy
avoided [x] because of an allergy
avoiding [x] because of an allergy
[sub] avoids [x] because of an allergy
[sub] avoided [x] because of an allergy
[sub] [is|are|was|were] avoiding [x] because of an allergy
must avoid [x]
[is|are|was|were] advised to avoid [x]
[sub] must avoid [x]
[sub] [is|are|was|were] advised to avoid [x]
carries epinephrine because of [a|an] [x] allergy
carried epinephrine because of [a|an] [x] allergy
carrying epinephrine because of [a|an] [x] allergy
[sub] carries epinephrine because of [a|an] [x] allergy
[sub] carried epinephrine because of [a|an] [x] allergy
[sub] [is|are|was|were] carrying epinephrine because of [a|an] [x] allergy
uses an epinephrine auto-injector for [a|an] [x] allergy
used an epinephrine auto-injector for [a|an] [x] allergy
using an epinephrine auto-injector for [a|an] [x] allergy
[sub] uses an epinephrine auto-injector for [a|an] [x] allergy
[sub] used an epinephrine auto-injector for [a|an] [x] allergy
[sub] [is|are|was|were] using an epinephrine auto-injector for [a|an] [x] allergy
treated for an allergic reaction to [x]
[is|are|was|were] treated for an allergic reaction to [x]
being treated for an allergic reaction to [x]
[sub] [is|are|was|were] treated for an allergic reaction to [x]
[sub] [is|are|was|were] being treated for an allergic reaction to [x]
received treatment after reacting to [x]
receiving treatment after reacting to [x]
[sub] received treatment after reacting to [x]
[sub] [is|are|was|were] receiving treatment after reacting to [x]
hospitalized after reacting to [x]
[is|are|was|were] hospitalized after reacting to [x]
[sub] [is|are|was|were] hospitalized after reacting to [x]
emergency care after exposure to [x]
received emergency care after exposure to [x]
receiving emergency care after exposure to [x]
[sub] received emergency care after exposure to [x]
[sub] [is|are|was|were] receiving emergency care after exposure to [x]
denies allergy to [x]
denied allergy to [x]
denying allergy to [x]
[sub] denies allergy to [x]
[sub] denied allergy to [x]
[sub] [is|are|was|were] denying allergy to [x]
denies being allergic to [x]
denied being allergic to [x]
denying being allergic to [x]
[sub] denies being allergic to [x]
[sub] denied being allergic to [x]
[sub] [is|are|was|were] denying being allergic to [x]
no allergy to [x]
no known allergy to [x]
no documented allergy to [x]
has no allergy to [x]
had no allergy to [x]
[sub] [has|have|had] no allergy to [x]
[sub] [has|have|had] no known allergy to [x]
[sub] [has|have|had] no documented allergy to [x]
not allergic to [x]
[is|are|was|were] not allergic to [x]
[sub] [is|are|was|were] not allergic to [x]
tolerates [x]
tolerated [x]
tolerating [x]
[sub] tolerates [x]
[sub] tolerated [x]
[sub] [is|are|was|were] tolerating [x]
no reaction to [x]
did not react to [x]
[sub] did not react to [x]

View File

@ -0,0 +1,75 @@
researching [x]
[sub] [is|are|was|were] researching [x]
attends lectures about [x]
[sub] attended a lecture about [x]
[sub] [is|are|was|were] attending a lecture about [x]
organizes [a|an] [x] awareness campaign
[sub] organized [a|an] [x] awareness campaign
[sub] [is|are|was|were] organizing [a|an] [x] awareness campaign
read a news report about [x]
[sub] read a news report about [x]
wrote a fictional story involving [x]
[sub] wrote a fictional story involving [x]
donates to [x] research
[sub] donated to [x] research
[sub] [is|are|was|were] raising money for [x] research
attends fundraisers for [x] research
[sub] attended a fundraiser for [x] research
promotes [x] awareness
[sub] promoted [x] awareness
[sub] [is|are|was|were] promoting [x] awareness
involved with [x] research
[sub] [is|are|was|were] involved with [x] research
studying [x]
[sub] [is|are|was|were] studying [x]
learning about [x]
[sub] [is|are|was|were] learning about [x]
educational material about [x]
[sub] created educational material about [x]
[sub] [is|are|was|were] creating educational material about [x]
professional training about [x]
[sub] attended professional training about [x]
[sub] [is|are|was|were] completing professional training about [x]
presentation about [x]
[sub] gave a presentation about [x]
[sub] [is|are|was|were] preparing a presentation about [x]
discussion about [x]
[sub] participated in a discussion about [x]
[sub] [is|are|was|were] participating in a discussion about [x]
conference session about [x]
[sub] attended a conference session about [x]
documentary about [x]
[sub] watched a documentary about [x]
podcast about [x]
[sub] listened to a podcast about [x]
article about [x]
[sub] wrote an article about [x]
[sub] [is|are|was|were] writing an article about [x]
case study involving [x]
[sub] reviewed a case study involving [x]
fictional character with [x]
[sub] wrote about a fictional character with [x]
supports organizations researching [x]
[sub] supported an organization researching [x]
volunteers for [x] awareness
[sub] volunteered for [x] awareness
advocates for more research into [x]
[sub] advocated for more research into [x]
collecting donations for [x] research
[sub] [is|are|was|were] collecting donations for [x] research
developing training materials about [x]
[sub] [is|are|was|were] developing training materials about [x]
reviewing medical literature about [x]
[sub] [is|are|was|were] reviewing medical literature about [x]
[sub] reviewed medical literature about [x]
teaches a class about [x]
[sub] taught a class about [x]
[sub] [is|are|was|were] teaching a class about [x]
works with researchers studying [x]
[sub] worked with researchers studying [x]
conversation about [x]
[sub] had a conversation about [x]
general information about [x]
[sub] requested general information about [x]
public awareness of [x]
[sub] promoted public awareness of [x]

View File

@ -0,0 +1,46 @@
has [x]
had [x]
[sub] [has|have] [x]
[sub] had [x]
suffers from [x]
suffered from [x]
[sub] [suffers|suffer] from [x]
[sub] suffered from [x]
was diagnosed with [x]
[sub] was diagnosed with [x]
diagnosed with [x]
[sub] diagnosed with [x]
recently diagnosed with [x]
[sub] was recently diagnosed with [x]
newly diagnosed with [x]
[sub] was newly diagnosed with [x]
diagnosis of [x]
[sub] received [a|an] [x] diagnosis
confirmed diagnosis of [x]
[sub] received a confirmed diagnosis of [x]
living with [x]
[sub] [is|are|was|were] living with [x]
being treated for [x]
[sub] [is|are|was|were] being treated for [x]
under treatment for [x]
[sub] [is|are|was|were] under treatment for [x]
history of [x]
[sub] [has|have] a history of [x]
[sub] had a history of [x]
[a|an] [x] survivor
[sub] [is|are|was|were] [a|an] [x] survivor
[sub] was [a|an] [x] survivor
survived [x]
[sub] survived [x]
recovered from [x]
[sub] recovered from [x]
cured of [x]
[sub] [is|are|was|were] cured of [x]
[sub] was cured of [x]
in remission from [x]
[sub] [is|are|was|were] in remission from [x]
[sub] went into remission from [x]
[x] in remission
[x] resolved
resolved [x]
[sub] had resolved [x]

View File

@ -0,0 +1,53 @@
researching family-history documentation for [x]
[sub] [is|are|was|were] researching family-history documentation for [x]
[sub] researches family-history documentation for [x]
[sub] researched family-history documentation for [x]
preparing an educational guide about hereditary [x]
prepared an educational guide about hereditary [x]
[sub] [is|are|was|were] preparing an educational guide about hereditary [x]
[sub] prepares an educational guide about hereditary [x]
[sub] prepared an educational guide about hereditary [x]
attending a lecture about familial [x]
attended a lecture about familial [x]
[sub] [is|are|was|were] attending a lecture about familial [x]
[sub] attends lectures about familial [x]
[sub] attended a lecture about familial [x]
writing a news article about inherited [x]
wrote a news article about inherited [x]
[sub] [is|are|was|were] writing a news article about inherited [x]
[sub] writes a news article about inherited [x]
[sub] wrote a news article about inherited [x]
organizing an awareness campaign concerning [x]
organized an awareness campaign concerning [x]
[sub] [is|are|was|were] organizing an awareness campaign concerning [x]
[sub] organizes an awareness campaign concerning [x]
[sub] organized an awareness campaign concerning [x]
writing a book about [x]
wrote a book about [x]
[sub] [is|are|was|were] writing a book about [x]
[sub] writes a book about [x]
[sub] wrote a book about [x]
studying family-history patterns involving [x]
[sub] [is|are|was|were] studying family-history patterns involving [x]
[sub] studies family-history patterns involving [x]
[sub] studied family-history patterns involving [x]
reviewing family-history information about [x]
[sub] [is|are|was|were] reviewing family-history information about [x]
[sub] reviews family-history information about [x]
[sub] reviewed family-history information about [x]
learning whether [x] runs in families
[sub] [is|are|was|were] learning whether [x] runs in families
[sub] learns whether [x] runs in families
[sub] learned whether [x] runs in families
discussing hereditary risk factors for [x]
[sub] [is|are|was|were] discussing hereditary risk factors for [x]
[sub] discusses hereditary risk factors for [x]
[sub] discussed hereditary risk factors for [x]
developing training materials about family history and [x]
[sub] [is|are|was|were] developing training materials about family history and [x]
[sub] develops training materials about family history and [x]
[sub] developed training materials about family history and [x]
learning about [x]
[sub] [is|are|was|were] learning about [x]
[sub] learns about [x]
[sub] learned about [x]

View File

@ -0,0 +1,62 @@
family history of [x]
[has|have|had] a family history of [x]
[sub] [has|have] a family history of [x]
[sub] had a family history of [x]
reports a family history of [x]
reported a family history of [x]
[sub] reports a family history of [x]
[sub] reported a family history of [x]
reports [x] in the family
reported [x] in the family
[sub] reports [x] in the family
[sub] reported [x] in the family
[x] runs in the family
[sub] reports that [x] runs in the family
[sub] reported that [x] runs in the family
family members affected by [x]
relatives affected by [x]
[has|have|had] relatives affected by [x]
[sub] [has|have] relatives affected by [x]
[sub] had relatives affected by [x]
reports relatives affected by [x]
reported relatives affected by [x]
[sub] reports relatives affected by [x]
[sub] reported relatives affected by [x]
family member diagnosed with [x]
relative diagnosed with [x]
[has|have|had] a family member diagnosed with [x]
[sub] [has|have] a family member diagnosed with [x]
[sub] had a family member diagnosed with [x]
reports a family member with [x]
reported a family member with [x]
[sub] reports a family member with [x]
[sub] reported a family member with [x]
known family history of [x]
documented family history of [x]
confirmed family history of [x]
[sub] [has|have] a known family history of [x]
[sub] had a known family history of [x]
[sub] [has|have] a documented family history of [x]
[sub] had a documented family history of [x]
[sub] [has|have] a confirmed family history of [x]
[sub] had a confirmed family history of [x]
was advised of a family history of [x]
[sub] [is|are|was|were] advised of a family history of [x]
was informed of a family history of [x]
[sub] [is|are|was|were] informed of a family history of [x]
inherited risk related to [x]
has an inherited risk related to [x]
had an inherited risk related to [x]
[sub] [has|have] an inherited risk related to [x]
[sub] had an inherited risk related to [x]
familial risk of [x]
[has|have|had] a familial risk of [x]
[sub] [has|have] a familial risk of [x]
[sub] had a familial risk of [x]
increased risk of [x] due to family history
[sub] [has|have] an increased risk of [x] due to family history
[sub] had an increased risk of [x] due to family history
genetic predisposition to [x]
[has|have|had] a genetic predisposition to [x]
[sub] [has|have] a genetic predisposition to [x]
[sub] had a genetic predisposition to [x]

View File

@ -0,0 +1,174 @@
stocking [x] at the pharmacy
stocks [x] at the pharmacy
stocked [x] at the pharmacy
[sub] [is|are|was|were] stocking [x] at the pharmacy
[sub] stocks [x] at the pharmacy
[sub] stocked [x] at the pharmacy
researching general information about [x]
researches general information about [x]
researched general information about [x]
[sub] [is|are|was|were] researching general information about [x]
[sub] researches general information about [x]
[sub] researched general information about [x]
delivering a sealed package of [x]
delivers a sealed package of [x]
delivered a sealed package of [x]
[sub] [is|are|was|were] delivering a sealed package of [x]
[sub] delivers a sealed package of [x]
[sub] delivered a sealed package of [x]
reviewing the product guide for [x]
reviews the product guide for [x]
reviewed the product guide for [x]
[sub] [is|are|was|were] reviewing the product guide for [x]
[sub] reviews the product guide for [x]
[sub] reviewed the product guide for [x]
attending a professional seminar about [x]
attends a professional seminar about [x]
attended a professional seminar about [x]
[sub] [is|are|was|were] attending a professional seminar about [x]
[sub] attends a professional seminar about [x]
[sub] attended a professional seminar about [x]
inventorying [x] at the pharmacy
inventories [x] at the pharmacy
inventoried [x] at the pharmacy
[sub] [is|are|was|were] inventorying [x] at the pharmacy
[sub] inventories [x] at the pharmacy
[sub] inventoried [x] at the pharmacy
dispensing [x] at the pharmacy
dispenses [x] at the pharmacy
dispensed [x] at the pharmacy
[sub] [is|are|was|were] dispensing [x] at the pharmacy
[sub] dispenses [x] at the pharmacy
[sub] dispensed [x] at the pharmacy
ordering [x] for the pharmacy
orders [x] for the pharmacy
ordered [x] for the pharmacy
[sub] [is|are|was|were] ordering [x] for the pharmacy
[sub] orders [x] for the pharmacy
[sub] ordered [x] for the pharmacy
shipping [x] to a pharmacy
ships [x] to a pharmacy
shipped [x] to a pharmacy
[sub] [is|are|was|were] shipping [x] to a pharmacy
[sub] ships [x] to a pharmacy
[sub] shipped [x] to a pharmacy
transporting a sealed package of [x]
transports a sealed package of [x]
transported a sealed package of [x]
[sub] [is|are|was|were] transporting a sealed package of [x]
[sub] transports a sealed package of [x]
[sub] transported a sealed package of [x]
preparing educational material about [x]
prepares educational material about [x]
prepared educational material about [x]
[sub] [is|are|was|were] preparing educational material about [x]
[sub] prepares educational material about [x]
[sub] prepared educational material about [x]
writing an article about [x]
writes an article about [x]
wrote an article about [x]
[sub] [is|are|was|were] writing an article about [x]
[sub] writes an article about [x]
[sub] wrote an article about [x]
teaching a class about [x]
teaches a class about [x]
taught a class about [x]
[sub] [is|are|was|were] teaching a class about [x]
[sub] teaches a class about [x]
[sub] taught a class about [x]
giving a presentation about [x]
gives a presentation about [x]
gave a presentation about [x]
[sub] [is|are|was|were] giving a presentation about [x]
[sub] gives a presentation about [x]
[sub] gave a presentation about [x]
discussing [x] during professional training
discusses [x] during professional training
discussed [x] during professional training
[sub] [is|are|was|were] discussing [x] during professional training
[sub] discusses [x] during professional training
[sub] discussed [x] during professional training
reviewing a case study involving [x]
reviews a case study involving [x]
reviewed a case study involving [x]
[sub] [is|are|was|were] reviewing a case study involving [x]
[sub] reviews a case study involving [x]
[sub] reviewed a case study involving [x]
comparing product information for [x]
compares product information for [x]
compared product information for [x]
[sub] [is|are|was|were] comparing product information for [x]
[sub] compares product information for [x]
[sub] compared product information for [x]
reading a news report about [x]
reads a news report about [x]
read a news report about [x]
[sub] [is|are|was|were] reading a news report about [x]
[sub] reads a news report about [x]
[sub] read a news report about [x]
developing pharmacy training materials about [x]
develops pharmacy training materials about [x]
developed pharmacy training materials about [x]
[sub] [is|are|was|were] developing pharmacy training materials about [x]
[sub] develops pharmacy training materials about [x]
[sub] developed pharmacy training materials about [x]
conducting research involving [x]
conducts research involving [x]
conducted research involving [x]
[sub] [is|are|was|were] conducting research involving [x]
[sub] conducts research involving [x]
[sub] conducted research involving [x]
raising money for research involving [x]
raises money for research involving [x]
raised money for research involving [x]
[sub] [is|are|was|were] raising money for research involving [x]
[sub] raises money for research involving [x]
[sub] raised money for research involving [x]
organizing a seminar about [x]
organizes a seminar about [x]
organized a seminar about [x]
[sub] [is|are|was|were] organizing a seminar about [x]
[sub] organizes a seminar about [x]
[sub] organized a seminar about [x]
creating an educational guide about [x]
creates an educational guide about [x]
created an educational guide about [x]
[sub] [is|are|was|were] creating an educational guide about [x]
[sub] creates an educational guide about [x]
[sub] created an educational guide about [x]
watching a documentary about [x]
watches a documentary about [x]
watched a documentary about [x]
[sub] [is|are|was|were] watching a documentary about [x]
[sub] watches a documentary about [x]
[sub] watched a documentary about [x]
listening to a podcast about [x]
listens to a podcast about [x]
listened to a podcast about [x]
[sub] [is|are|was|were] listening to a podcast about [x]
[sub] listens to a podcast about [x]
[sub] listened to a podcast about [x]
discussing the manufacturing of [x]
discusses the manufacturing of [x]
discussed the manufacturing of [x]
[sub] [is|are|was|were] discussing the manufacturing of [x]
[sub] discusses the manufacturing of [x]
[sub] discussed the manufacturing of [x]
reviewing packaging information for [x]
reviews packaging information for [x]
reviewed packaging information for [x]
[sub] [is|are|was|were] reviewing packaging information for [x]
[sub] reviews packaging information for [x]
[sub] reviewed packaging information for [x]
checking the inventory status of [x]
checks the inventory status of [x]
checked the inventory status of [x]
[sub] [is|are|was|were] checking the inventory status of [x]
[sub] checks the inventory status of [x]
[sub] checked the inventory status of [x]
processing an order for [x]
processes an order for [x]
processed an order for [x]
[sub] [is|are|was|were] processing an order for [x]
[sub] processes an order for [x]
[sub] processed an order for [x]

View File

@ -0,0 +1,276 @@
takes [x]
taking [x]
took [x]
[sub] takes [x]
[sub] [is|are|was|were] taking [x]
[sub] took [x]
currently taking [x]
[sub] [is|are|was|were] currently taking [x]
uses [x]
using [x]
used [x]
[sub] uses [x]
[sub] [is|are|was|were] using [x]
[sub] used [x]
on [x]
currently on [x]
[sub] [is|are|was|were] on [x]
[sub] [is|are|was|were] currently on [x]
was on [x]
[sub] was on [x]
prescribed [x]
was prescribed [x]
[sub] was prescribed [x]
received a prescription for [x]
[sub] received a prescription for [x]
given a prescription for [x]
[sub] was given a prescription for [x]
new prescription for [x]
[sub] received a new prescription for [x]
newly prescribed [x]
[sub] was newly prescribed [x]
started taking [x]
starts taking [x]
starting [x]
[sub] started taking [x]
[sub] starts taking [x]
[sub] [is|are|was|were] starting [x]
began taking [x]
begins taking [x]
[sub] began taking [x]
[sub] begins taking [x]
initiated [x]
initiating [x]
[sub] initiated [x]
[sub] [is|are|was|were] initiating [x]
added [x] to the medication regimen
adding [x] to the medication regimen
[sub] added [x] to the medication regimen
[sub] [is|are|was|were] adding [x] to the medication regimen
continues taking [x]
continued taking [x]
continuing [x]
[sub] continues taking [x]
[sub] continued taking [x]
[sub] [is|are|was|were] continuing [x]
remains on [x]
remained on [x]
[sub] remains on [x]
[sub] remained on [x]
restarted [x]
restarting [x]
[sub] restarted [x]
[sub] [is|are|was|were] restarting [x]
resumed taking [x]
resumes taking [x]
[sub] resumed taking [x]
[sub] resumes taking [x]
previously took [x]
previously on [x]
[sub] previously took [x]
[sub] was previously on [x]
history of taking [x]
[sub] [has|have] a history of taking [x]
[sub] had a history of taking [x]
formerly took [x]
formerly on [x]
[sub] formerly took [x]
[sub] was formerly on [x]
needs a refill of [x]
needed a refill of [x]
[sub] needs a refill of [x]
[sub] needed a refill of [x]
requesting a refill of [x]
requested a refill of [x]
[sub] [is|are|was|were] requesting a refill of [x]
[sub] requested a refill of [x]
refill requested for [x]
[sub] requested an [x] refill
refill due for [x]
[sub] [has|have] a refill due for [x]
picked up [x] prescription
[sub] picked up an [x] prescription
picking up [x] prescription
[sub] [is|are|was|were] picking up an [x] prescription
ran out of [x]
[sub] ran out of [x]
running low on [x]
[sub] [is|are|was|were] running low on [x]
almost out of [x]
[sub] [is|are|was|were] almost out of [x]
needs more [x]
[sub] needs more [x]
taking [x] as directed
took [x] as directed
[sub] [is|are|was|were] taking [x] as directed
[sub] took [x] as directed
taking [x] regularly
[sub] [is|are|was|were] taking [x] regularly
taking [x] daily
[sub] [is|are|was|were] taking [x] daily
taking [x] as needed
[sub] [is|are|was|were] taking [x] as needed
uses [x] as needed
[sub] uses [x] as needed
compliant with [x]
[sub] [is|are|was|were] compliant with [x]
adherent to [x]
[sub] [is|are|was|were] adherent to [x]
not taking [x] as directed
[sub] [is|are|was|were] not taking [x] as directed
missed a dose of [x]
misses doses of [x]
missing doses of [x]
[sub] missed a dose of [x]
[sub] misses doses of [x]
[sub] [is|are|was|were] missing doses of [x]
skipped a dose of [x]
skips doses of [x]
[sub] skipped a dose of [x]
[sub] skips doses of [x]
forgot to take [x]
forgets to take [x]
[sub] forgot to take [x]
[sub] forgets to take [x]
has not taken [x]
had not taken [x]
[sub] [has|have] not taken [x]
[sub] had not taken [x]
stopped taking [x]
stops taking [x]
stopping [x]
[sub] stopped taking [x]
[sub] stops taking [x]
[sub] [is|are|was|were] stopping [x]
discontinued [x]
discontinuing [x]
[sub] discontinued [x]
[sub] [is|are|was|were] discontinuing [x]
no longer taking [x]
[sub] [is|are|was|were] no longer taking [x]
was advised to stop taking [x]
[sub] was advised to stop taking [x]
was told to discontinue [x]
[sub] was told to discontinue [x]
held [x]
holding [x]
[sub] held [x]
[sub] [is|are|was|were] holding [x]
paused [x]
pausing [x]
[sub] paused [x]
[sub] [is|are|was|were] pausing [x]
refused [x]
refuses [x]
refusing [x]
[sub] refused [x]
[sub] refuses [x]
[sub] [is|are|was|were] refusing [x]
declined [x]
declines [x]
declining [x]
[sub] declined [x]
[sub] declines [x]
[sub] [is|are|was|were] declining [x]
dose of [x] increased
[sub] had the dose of [x] increased
increased [x]
increasing [x]
[sub] increased [x]
[sub] [is|are|was|were] increasing [x]
was advised to increase [x]
[sub] was advised to increase [x]
dose of [x] decreased
[sub] had the dose of [x] decreased
decreased [x]
decreasing [x]
[sub] decreased [x]
[sub] [is|are|was|were] decreasing [x]
was advised to decrease [x]
[sub] was advised to decrease [x]
tapering [x]
tapered [x]
[sub] [is|are|was|were] tapering [x]
[sub] tapered [x]
switched to [x]
switching to [x]
[sub] switched to [x]
[sub] [is|are|was|were] switching to [x]
changed medication to [x]
changing medication to [x]
[sub] changed medication to [x]
[sub] [is|are|was|were] changing medication to [x]
replaced another medication with [x]
[sub] replaced another medication with [x]
received [x]
receiving [x]
[sub] received [x]
[sub] [is|are|was|were] receiving [x]
was given [x]
[sub] was given [x]
administered [x]
was administered [x]
[sub] was administered [x]
given a dose of [x]
[sub] was given a dose of [x]
took a dose of [x]
takes a dose of [x]
[sub] took a dose of [x]
[sub] takes a dose of [x]
scheduled to receive [x]
[sub] [is|are|was|were] scheduled to receive [x]
will start [x]
[sub] will start [x]
plans to start [x]
[sub] plans to start [x]
needs [x]
needed [x]
[sub] needs [x]
[sub] needed [x]
requires [x]
required [x]
[sub] requires [x]
[sub] required [x]
reports taking [x]
reported taking [x]
[sub] reports taking [x]
[sub] reported taking [x]
confirms taking [x]
confirmed taking [x]
[sub] confirms taking [x]
[sub] confirmed taking [x]
denies taking [x]
denied taking [x]
[sub] denies taking [x]
[sub] denied taking [x]
reports not taking [x]
reported not taking [x]
[sub] reports not taking [x]
[sub] reported not taking [x]
reports side effects from [x]
reported side effects from [x]
[sub] reports side effects from [x]
[sub] reported side effects from [x]
experiencing side effects from [x]
experienced side effects from [x]
[sub] [is|are|was|were] experiencing side effects from [x]
[sub] experienced side effects from [x]
responding well to [x]
responded well to [x]
[sub] [is|are|was|were] responding well to [x]
[sub] responded well to [x]
[x] is helping
[x] helped
[sub] reports that [x] is helping
[sub] reported that [x] helped
[x] is not helping
[x] did not help
[sub] reports that [x] is not helping
[sub] reported that [x] did not help
medication list includes [x]
current medications include [x]
home medications include [x]
[x] listed as a current medication
[x] listed in medication history
[sub] [has|have] [x] on the medication list
[sub] had [x] on the medication list

View File

@ -0,0 +1,379 @@
researching community resources for [x]
researched community resources for [x]
[sub] [is|are|was|were] researching community resources for [x]
[sub] researches community resources for [x]
[sub] researched community resources for [x]
creating an educational program about [x]
created an educational program about [x]
[sub] [is|are|was|were] creating an educational program about [x]
[sub] creates an educational program about [x]
[sub] created an educational program about [x]
organizing an awareness event for [x]
organized an awareness event for [x]
[sub] [is|are|was|were] organizing an awareness event for [x]
[sub] organizes an awareness event for [x]
[sub] organized an awareness event for [x]
reading a general article about [x]
read a general article about [x]
[sub] [is|are|was|were] reading a general article about [x]
[sub] reads a general article about [x]
[sub] read a general article about [x]
portraying [x] in a fictional screenplay
portrayed [x] in a fictional screenplay
[sub] [is|are|was|were] portraying [x] in a fictional screenplay
[sub] portrays [x] in a fictional screenplay
[sub] portrayed [x] in a fictional screenplay
researching [x]
researched [x]
[sub] [is|are|was|were] researching [x]
[sub] researches [x]
[sub] researched [x]
attending lectures about [x]
attends lectures about [x]
attended a lecture about [x]
[sub] [is|are|was|were] attending a lecture about [x]
[sub] attends lectures about [x]
[sub] attended a lecture about [x]
organizing [a|an] [x] awareness campaign
organizes [a|an] [x] awareness campaign
organized [a|an] [x] awareness campaign
[sub] [is|are|was|were] organizing [a|an] [x] awareness campaign
[sub] organizes [a|an] [x] awareness campaign
[sub] organized [a|an] [x] awareness campaign
reading a news report about [x]
reads a news report about [x]
read a news report about [x]
[sub] [is|are|was|were] reading a news report about [x]
[sub] reads a news report about [x]
[sub] read a news report about [x]
writing a fictional story involving [x]
writes a fictional story involving [x]
wrote a fictional story involving [x]
[sub] [is|are|was|were] writing a fictional story involving [x]
[sub] writes a fictional story involving [x]
[sub] wrote a fictional story involving [x]
donating to [x] research
donates to [x] research
donated to [x] research
[sub] [is|are|was|were] donating to [x] research
[sub] donates to [x] research
[sub] donated to [x] research
raising money for [x] research
raises money for [x] research
raised money for [x] research
[sub] [is|are|was|were] raising money for [x] research
[sub] raises money for [x] research
[sub] raised money for [x] research
attending fundraisers for [x] research
attends fundraisers for [x] research
attended a fundraiser for [x] research
[sub] [is|are|was|were] attending fundraisers for [x] research
[sub] attends fundraisers for [x] research
[sub] attended a fundraiser for [x] research
promoting [x] awareness
promotes [x] awareness
promoted [x] awareness
[sub] [is|are|was|were] promoting [x] awareness
[sub] promotes [x] awareness
[sub] promoted [x] awareness
involved with [x] research
[sub] [is|are|was|were] involved with [x] research
[sub] was involved with [x] research
studying [x]
studies [x]
studied [x]
[sub] [is|are|was|were] studying [x]
[sub] studies [x]
[sub] studied [x]
learning about [x]
learns about [x]
learned about [x]
[sub] [is|are|was|were] learning about [x]
[sub] learns about [x]
[sub] learned about [x]
creating educational material about [x]
creates educational material about [x]
created educational material about [x]
[sub] [is|are|was|were] creating educational material about [x]
[sub] creates educational material about [x]
[sub] created educational material about [x]
reviewing educational material about [x]
reviews educational material about [x]
reviewed educational material about [x]
[sub] [is|are|was|were] reviewing educational material about [x]
[sub] reviews educational material about [x]
[sub] reviewed educational material about [x]
completing professional training about [x]
completes professional training about [x]
completed professional training about [x]
[sub] [is|are|was|were] completing professional training about [x]
[sub] completes professional training about [x]
[sub] completed professional training about [x]
attending professional training about [x]
attends professional training about [x]
attended professional training about [x]
[sub] [is|are|was|were] attending professional training about [x]
[sub] attends professional training about [x]
[sub] attended professional training about [x]
preparing a presentation about [x]
prepares a presentation about [x]
prepared a presentation about [x]
[sub] [is|are|was|were] preparing a presentation about [x]
[sub] prepares a presentation about [x]
[sub] prepared a presentation about [x]
giving a presentation about [x]
gives a presentation about [x]
gave a presentation about [x]
[sub] [is|are|was|were] giving a presentation about [x]
[sub] gives a presentation about [x]
[sub] gave a presentation about [x]
participating in a discussion about [x]
participates in a discussion about [x]
participated in a discussion about [x]
[sub] [is|are|was|were] participating in a discussion about [x]
[sub] participates in a discussion about [x]
[sub] participated in a discussion about [x]
having a conversation about [x]
has a conversation about [x]
had a conversation about [x]
[sub] [is|are|was|were] having a conversation about [x]
[sub] has a conversation about [x]
[sub] had a conversation about [x]
attending a conference session about [x]
attends a conference session about [x]
attended a conference session about [x]
[sub] [is|are|was|were] attending a conference session about [x]
[sub] attends a conference session about [x]
[sub] attended a conference session about [x]
watching a documentary about [x]
watches a documentary about [x]
watched a documentary about [x]
[sub] [is|are|was|were] watching a documentary about [x]
[sub] watches a documentary about [x]
[sub] watched a documentary about [x]
listening to a podcast about [x]
listens to a podcast about [x]
listened to a podcast about [x]
[sub] [is|are|was|were] listening to a podcast about [x]
[sub] listens to a podcast about [x]
[sub] listened to a podcast about [x]
writing an article about [x]
writes an article about [x]
wrote an article about [x]
[sub] [is|are|was|were] writing an article about [x]
[sub] writes an article about [x]
[sub] wrote an article about [x]
reviewing a case study involving [x]
reviews a case study involving [x]
reviewed a case study involving [x]
[sub] [is|are|was|were] reviewing a case study involving [x]
[sub] reviews a case study involving [x]
[sub] reviewed a case study involving [x]
writing about a fictional character with [x]
writes about a fictional character with [x]
wrote about a fictional character with [x]
[sub] [is|are|was|were] writing about a fictional character with [x]
[sub] writes about a fictional character with [x]
[sub] wrote about a fictional character with [x]
supporting organizations researching [x]
supports organizations researching [x]
supported an organization researching [x]
[sub] [is|are|was|were] supporting organizations researching [x]
[sub] supports organizations researching [x]
[sub] supported an organization researching [x]
volunteering for [x] awareness
volunteers for [x] awareness
volunteered for [x] awareness
[sub] [is|are|was|were] volunteering for [x] awareness
[sub] volunteers for [x] awareness
[sub] volunteered for [x] awareness
advocating for more research into [x]
advocates for more research into [x]
advocated for more research into [x]
[sub] [is|are|was|were] advocating for more research into [x]
[sub] advocates for more research into [x]
[sub] advocated for more research into [x]
collecting donations for [x] research
collects donations for [x] research
collected donations for [x] research
[sub] [is|are|was|were] collecting donations for [x] research
[sub] collects donations for [x] research
[sub] collected donations for [x] research
developing training materials about [x]
develops training materials about [x]
developed training materials about [x]
[sub] [is|are|was|were] developing training materials about [x]
[sub] develops training materials about [x]
[sub] developed training materials about [x]
reviewing mental health literature about [x]
reviews mental health literature about [x]
reviewed mental health literature about [x]
[sub] [is|are|was|were] reviewing mental health literature about [x]
[sub] reviews mental health literature about [x]
[sub] reviewed mental health literature about [x]
teaching a class about [x]
teaches a class about [x]
taught a class about [x]
[sub] [is|are|was|were] teaching a class about [x]
[sub] teaches a class about [x]
[sub] taught a class about [x]
working with researchers studying [x]
works with researchers studying [x]
worked with researchers studying [x]
[sub] [is|are|was|were] working with researchers studying [x]
[sub] works with researchers studying [x]
[sub] worked with researchers studying [x]
requesting general information about [x]
requests general information about [x]
requested general information about [x]
[sub] [is|are|was|were] requesting general information about [x]
[sub] requests general information about [x]
[sub] requested general information about [x]
promoting public awareness of [x]
promotes public awareness of [x]
promoted public awareness of [x]
[sub] [is|are|was|were] promoting public awareness of [x]
[sub] promotes public awareness of [x]
[sub] promoted public awareness of [x]
researching support services for people with [x]
researches support services for people with [x]
researched support services for people with [x]
[sub] [is|are|was|were] researching support services for people with [x]
[sub] researches support services for people with [x]
[sub] researched support services for people with [x]
creating a directory of resources for [x]
creates a directory of resources for [x]
created a directory of resources for [x]
[sub] [is|are|was|were] creating a directory of resources for [x]
[sub] creates a directory of resources for [x]
[sub] created a directory of resources for [x]
sharing general resources about [x]
shares general resources about [x]
shared general resources about [x]
[sub] [is|are|was|were] sharing general resources about [x]
[sub] shares general resources about [x]
[sub] shared general resources about [x]
developing a public-information campaign about [x]
develops a public-information campaign about [x]
developed a public-information campaign about [x]
[sub] [is|are|was|were] developing a public-information campaign about [x]
[sub] develops a public-information campaign about [x]
[sub] developed a public-information campaign about [x]
planning a community event about [x]
plans a community event about [x]
planned a community event about [x]
[sub] [is|are|was|were] planning a community event about [x]
[sub] plans a community event about [x]
[sub] planned a community event about [x]
moderating a discussion about [x]
moderates a discussion about [x]
moderated a discussion about [x]
[sub] [is|are|was|were] moderating a discussion about [x]
[sub] moderates a discussion about [x]
[sub] moderated a discussion about [x]
interviewing an expert about [x]
interviews an expert about [x]
interviewed an expert about [x]
[sub] [is|are|was|were] interviewing an expert about [x]
[sub] interviews an expert about [x]
[sub] interviewed an expert about [x]
reporting on public policy related to [x]
reports on public policy related to [x]
reported on public policy related to [x]
[sub] [is|are|was|were] reporting on public policy related to [x]
[sub] reports on public policy related to [x]
[sub] reported on public policy related to [x]
reviewing public policy related to [x]
reviews public policy related to [x]
reviewed public policy related to [x]
[sub] [is|are|was|were] reviewing public policy related to [x]
[sub] reviews public policy related to [x]
[sub] reviewed public policy related to [x]
analyzing statistics about [x]
analyzes statistics about [x]
analyzed statistics about [x]
[sub] [is|are|was|were] analyzing statistics about [x]
[sub] analyzes statistics about [x]
[sub] analyzed statistics about [x]
collecting public data about [x]
collects public data about [x]
collected public data about [x]
[sub] [is|are|was|were] collecting public data about [x]
[sub] collects public data about [x]
[sub] collected public data about [x]
conducting a survey about public understanding of [x]
conducts a survey about public understanding of [x]
conducted a survey about public understanding of [x]
[sub] [is|are|was|were] conducting a survey about public understanding of [x]
[sub] conducts a survey about public understanding of [x]
[sub] conducted a survey about public understanding of [x]
designing informational materials about [x]
designs informational materials about [x]
designed informational materials about [x]
[sub] [is|are|was|were] designing informational materials about [x]
[sub] designs informational materials about [x]
[sub] designed informational materials about [x]
editing a documentary about [x]
edits a documentary about [x]
edited a documentary about [x]
[sub] [is|are|was|were] editing a documentary about [x]
[sub] edits a documentary about [x]
[sub] edited a documentary about [x]
producing a podcast episode about [x]
produces a podcast episode about [x]
produced a podcast episode about [x]
[sub] [is|are|was|were] producing a podcast episode about [x]
[sub] produces a podcast episode about [x]
[sub] produced a podcast episode about [x]
performing in a play involving [x]
performs in a play involving [x]
performed in a play involving [x]
[sub] [is|are|was|were] performing in a play involving [x]
[sub] performs in a play involving [x]
[sub] performed in a play involving [x]
acting as a fictional character with [x]
acted as a fictional character with [x]
[sub] [is|are|was|were] acting as a fictional character with [x]
[sub] acted as a fictional character with [x]
reading a novel featuring a character with [x]
reads a novel featuring a character with [x]
read a novel featuring a character with [x]
[sub] [is|are|was|were] reading a novel featuring a character with [x]
[sub] reads a novel featuring a character with [x]
[sub] read a novel featuring a character with [x]
writing a screenplay about a fictional person with [x]
writes a screenplay about a fictional person with [x]
wrote a screenplay about a fictional person with [x]
[sub] [is|are|was|were] writing a screenplay about a fictional person with [x]
[sub] writes a screenplay about a fictional person with [x]
[sub] wrote a screenplay about a fictional person with [x]
training staff to recognize signs of [x]
trains staff to recognize signs of [x]
trained staff to recognize signs of [x]
[sub] [is|are|was|were] training staff to recognize signs of [x]
[sub] trains staff to recognize signs of [x]
[sub] trained staff to recognize signs of [x]
developing workplace guidance about [x]
develops workplace guidance about [x]
developed workplace guidance about [x]
[sub] [is|are|was|were] developing workplace guidance about [x]
[sub] develops workplace guidance about [x]
[sub] developed workplace guidance about [x]
reviewing clinical guidelines for [x]
reviews clinical guidelines for [x]
reviewed clinical guidelines for [x]
[sub] [is|are|was|were] reviewing clinical guidelines for [x]
[sub] reviews clinical guidelines for [x]
[sub] reviewed clinical guidelines for [x]
studying treatment approaches for [x]
studies treatment approaches for [x]
studied treatment approaches for [x]
[sub] [is|are|was|were] studying treatment approaches for [x]
[sub] studies treatment approaches for [x]
[sub] studied treatment approaches for [x]
comparing research findings about [x]
compares research findings about [x]
compared research findings about [x]
[sub] [is|are|was|were] comparing research findings about [x]
[sub] compares research findings about [x]
[sub] compared research findings about [x]

View File

@ -0,0 +1,227 @@
[x]
has [x]
had [x]
[sub] [has|have|had] [x]
lives with [x]
living with [x]
lived with [x]
[sub] lives with [x]
[sub] [is|are|was|were] living with [x]
[sub] lived with [x]
diagnosed with [x]
was diagnosed with [x]
previously diagnosed with [x]
recently diagnosed with [x]
[sub] was diagnosed with [x]
[sub] was previously diagnosed with [x]
[sub] was recently diagnosed with [x]
[sub] [has|have] been diagnosed with [x]
received [a|an] [x] diagnosis
receives [a|an] [x] diagnosis
[sub] received [a|an] [x] diagnosis
[sub] receives [a|an] [x] diagnosis
diagnosis of [x]
confirmed diagnosis of [x]
documented diagnosis of [x]
known diagnosis of [x]
[sub] [has|have] a diagnosis of [x]
[sub] had a diagnosis of [x]
[sub] [has|have] a confirmed diagnosis of [x]
[sub] had a confirmed diagnosis of [x]
reports [x]
reported [x]
reporting [x]
[sub] reports [x]
[sub] reported [x]
[sub] [is|are|was|were] reporting [x]
reports symptoms of [x]
reported symptoms of [x]
reporting symptoms of [x]
[sub] reports symptoms of [x]
[sub] reported symptoms of [x]
[sub] [is|are|was|were] reporting symptoms of [x]
experiences [x]
experienced [x]
experiencing [x]
[sub] experiences [x]
[sub] experienced [x]
[sub] [is|are|was|were] experiencing [x]
experiences symptoms of [x]
experienced symptoms of [x]
experiencing symptoms of [x]
[sub] experiences symptoms of [x]
[sub] experienced symptoms of [x]
[sub] [is|are|was|were] experiencing symptoms of [x]
struggles with [x]
struggled with [x]
struggling with [x]
[sub] struggles with [x]
[sub] struggled with [x]
[sub] [is|are|was|were] struggling with [x]
affected by [x]
was affected by [x]
[sub] [is|are|was|were] affected by [x]
[sub] was affected by [x]
receives care for [x]
received care for [x]
receiving care for [x]
[sub] receives care for [x]
[sub] received care for [x]
[sub] [is|are|was|were] receiving care for [x]
receives mental health care for [x]
received mental health care for [x]
receiving mental health care for [x]
[sub] receives mental health care for [x]
[sub] received mental health care for [x]
[sub] [is|are|was|were] receiving mental health care for [x]
receives behavioral health care for [x]
received behavioral health care for [x]
receiving behavioral health care for [x]
[sub] receives behavioral health care for [x]
[sub] received behavioral health care for [x]
[sub] [is|are|was|were] receiving behavioral health care for [x]
under care for [x]
was under care for [x]
[sub] [is|are|was|were] under care for [x]
[sub] was under care for [x]
in treatment for [x]
was in treatment for [x]
[sub] [is|are|was|were] in treatment for [x]
[sub] was in treatment for [x]
receives treatment for [x]
received treatment for [x]
receiving treatment for [x]
[sub] receives treatment for [x]
[sub] received treatment for [x]
[sub] [is|are|was|were] receiving treatment for [x]
started treatment for [x]
starts treatment for [x]
starting treatment for [x]
[sub] started treatment for [x]
[sub] starts treatment for [x]
[sub] [is|are|was|were] starting treatment for [x]
continues treatment for [x]
continued treatment for [x]
continuing treatment for [x]
[sub] continues treatment for [x]
[sub] continued treatment for [x]
[sub] [is|are|was|were] continuing treatment for [x]
seeks treatment for [x]
sought treatment for [x]
seeking treatment for [x]
[sub] seeks treatment for [x]
[sub] sought treatment for [x]
[sub] [is|are|was|were] seeking treatment for [x]
receives therapy for [x]
received therapy for [x]
receiving therapy for [x]
[sub] receives therapy for [x]
[sub] received therapy for [x]
[sub] [is|are|was|were] receiving therapy for [x]
attends therapy for [x]
attended therapy for [x]
attending therapy for [x]
[sub] attends therapy for [x]
[sub] attended therapy for [x]
[sub] [is|are|was|were] attending therapy for [x]
receives counseling for [x]
received counseling for [x]
receiving counseling for [x]
[sub] receives counseling for [x]
[sub] received counseling for [x]
[sub] [is|are|was|were] receiving counseling for [x]
sees a therapist for [x]
saw a therapist for [x]
seeing a therapist for [x]
[sub] sees a therapist for [x]
[sub] saw a therapist for [x]
[sub] [is|are|was|were] seeing a therapist for [x]
sees a psychiatrist for [x]
saw a psychiatrist for [x]
seeing a psychiatrist for [x]
[sub] sees a psychiatrist for [x]
[sub] saw a psychiatrist for [x]
[sub] [is|are|was|were] seeing a psychiatrist for [x]
followed by a mental health provider for [x]
[sub] [is|are|was|were] followed by a mental health provider for [x]
has a history of [x]
had a history of [x]
history of [x]
known history of [x]
documented history of [x]
prior history of [x]
[sub] [has|have|had] a history of [x]
[sub] [has|have|had] a known history of [x]
[sub] [has|have|had] a documented history of [x]
[sub] [has|have|had] a prior history of [x]
previously experienced [x]
[sub] previously experienced [x]
previously treated for [x]
[sub] was previously treated for [x]
manages [x]
managed [x]
managing [x]
[sub] manages [x]
[sub] managed [x]
[sub] [is|are|was|were] managing [x]
coping with [x]
coped with [x]
[sub] [is|are|was|were] coping with [x]
[sub] coped with [x]
working through [x]
worked through [x]
[sub] [is|are|was|were] working through [x]
[sub] worked through [x]
recovering from [x]
recovered from [x]
[sub] [is|are|was|were] recovering from [x]
[sub] recovered from [x]
in recovery from [x]
[sub] [is|are|was|were] in recovery from [x]
symptoms of [x] are improving
[sub] reports improving symptoms of [x]
[sub] reported improving symptoms of [x]
symptoms of [x] have worsened
[sub] reports worsening symptoms of [x]
[sub] reported worsening symptoms of [x]
[x] symptoms remain stable
[sub] reports stable symptoms of [x]
[sub] reported stable symptoms of [x]
[x] is in remission
[sub] reports that [x] is in remission
[sub] reported that [x] was in remission
relapse of [x]
experienced a relapse of [x]
[sub] experienced a relapse of [x]
[sub] [is|are|was|were] experiencing a relapse of [x]
being evaluated for [x]
evaluated for [x]
[sub] [is|are|was|were] being evaluated for [x]
[sub] was evaluated for [x]
undergoing evaluation for [x]
[sub] [is|are|was|were] undergoing evaluation for [x]
referred for evaluation of [x]
[sub] was referred for evaluation of [x]
screened positive for [x]
[sub] screened positive for [x]
monitoring symptoms of [x]
[sub] [is|are|was|were] monitoring symptoms of [x]
hospitalized for [x]
was hospitalized for [x]
[sub] was hospitalized for [x]
admitted for [x]
was admitted for [x]
[sub] was admitted for [x]
discharged after treatment for [x]
[sub] was discharged after treatment for [x]
denies [x]
denied [x]
[sub] denies [x]
[sub] denied [x]
denies current symptoms of [x]
denied current symptoms of [x]
[sub] denies current symptoms of [x]
[sub] denied current symptoms of [x]
no longer experiencing [x]
[sub] [is|are|was|were] no longer experiencing [x]

View File

@ -0,0 +1,379 @@
researching community resources for [x]
researched community resources for [x]
[sub] [is|are|was|were] researching community resources for [x]
[sub] researches community resources for [x]
[sub] researched community resources for [x]
creating an educational program about [x]
created an educational program about [x]
[sub] [is|are|was|were] creating an educational program about [x]
[sub] creates an educational program about [x]
[sub] created an educational program about [x]
organizing an awareness event for [x]
organized an awareness event for [x]
[sub] [is|are|was|were] organizing an awareness event for [x]
[sub] organizes an awareness event for [x]
[sub] organized an awareness event for [x]
reading a general article about [x]
read a general article about [x]
[sub] [is|are|was|were] reading a general article about [x]
[sub] reads a general article about [x]
[sub] read a general article about [x]
portraying [x] in a fictional screenplay
portrayed [x] in a fictional screenplay
[sub] [is|are|was|were] portraying [x] in a fictional screenplay
[sub] portrays [x] in a fictional screenplay
[sub] portrayed [x] in a fictional screenplay
researching [x]
researched [x]
[sub] [is|are|was|were] researching [x]
[sub] researches [x]
[sub] researched [x]
attending lectures about [x]
attends lectures about [x]
attended a lecture about [x]
[sub] [is|are|was|were] attending a lecture about [x]
[sub] attends lectures about [x]
[sub] attended a lecture about [x]
organizing [a|an] [x] awareness campaign
organizes [a|an] [x] awareness campaign
organized [a|an] [x] awareness campaign
[sub] [is|are|was|were] organizing [a|an] [x] awareness campaign
[sub] organizes [a|an] [x] awareness campaign
[sub] organized [a|an] [x] awareness campaign
reading a news report about [x]
reads a news report about [x]
read a news report about [x]
[sub] [is|are|was|were] reading a news report about [x]
[sub] reads a news report about [x]
[sub] read a news report about [x]
writing a fictional story involving [x]
writes a fictional story involving [x]
wrote a fictional story involving [x]
[sub] [is|are|was|were] writing a fictional story involving [x]
[sub] writes a fictional story involving [x]
[sub] wrote a fictional story involving [x]
donating to [x] research
donates to [x] research
donated to [x] research
[sub] [is|are|was|were] donating to [x] research
[sub] donates to [x] research
[sub] donated to [x] research
raising money for [x] research
raises money for [x] research
raised money for [x] research
[sub] [is|are|was|were] raising money for [x] research
[sub] raises money for [x] research
[sub] raised money for [x] research
attending fundraisers for [x] research
attends fundraisers for [x] research
attended a fundraiser for [x] research
[sub] [is|are|was|were] attending fundraisers for [x] research
[sub] attends fundraisers for [x] research
[sub] attended a fundraiser for [x] research
promoting [x] awareness
promotes [x] awareness
promoted [x] awareness
[sub] [is|are|was|were] promoting [x] awareness
[sub] promotes [x] awareness
[sub] promoted [x] awareness
involved with [x] research
[sub] [is|are|was|were] involved with [x] research
[sub] was involved with [x] research
studying [x]
studies [x]
studied [x]
[sub] [is|are|was|were] studying [x]
[sub] studies [x]
[sub] studied [x]
learning about [x]
learns about [x]
learned about [x]
[sub] [is|are|was|were] learning about [x]
[sub] learns about [x]
[sub] learned about [x]
creating educational material about [x]
creates educational material about [x]
created educational material about [x]
[sub] [is|are|was|were] creating educational material about [x]
[sub] creates educational material about [x]
[sub] created educational material about [x]
reviewing educational material about [x]
reviews educational material about [x]
reviewed educational material about [x]
[sub] [is|are|was|were] reviewing educational material about [x]
[sub] reviews educational material about [x]
[sub] reviewed educational material about [x]
completing professional training about [x]
completes professional training about [x]
completed professional training about [x]
[sub] [is|are|was|were] completing professional training about [x]
[sub] completes professional training about [x]
[sub] completed professional training about [x]
attending professional training about [x]
attends professional training about [x]
attended professional training about [x]
[sub] [is|are|was|were] attending professional training about [x]
[sub] attends professional training about [x]
[sub] attended professional training about [x]
preparing a presentation about [x]
prepares a presentation about [x]
prepared a presentation about [x]
[sub] [is|are|was|were] preparing a presentation about [x]
[sub] prepares a presentation about [x]
[sub] prepared a presentation about [x]
giving a presentation about [x]
gives a presentation about [x]
gave a presentation about [x]
[sub] [is|are|was|were] giving a presentation about [x]
[sub] gives a presentation about [x]
[sub] gave a presentation about [x]
participating in a discussion about [x]
participates in a discussion about [x]
participated in a discussion about [x]
[sub] [is|are|was|were] participating in a discussion about [x]
[sub] participates in a discussion about [x]
[sub] participated in a discussion about [x]
having a conversation about [x]
has a conversation about [x]
had a conversation about [x]
[sub] [is|are|was|were] having a conversation about [x]
[sub] has a conversation about [x]
[sub] had a conversation about [x]
attending a conference session about [x]
attends a conference session about [x]
attended a conference session about [x]
[sub] [is|are|was|were] attending a conference session about [x]
[sub] attends a conference session about [x]
[sub] attended a conference session about [x]
watching a documentary about [x]
watches a documentary about [x]
watched a documentary about [x]
[sub] [is|are|was|were] watching a documentary about [x]
[sub] watches a documentary about [x]
[sub] watched a documentary about [x]
listening to a podcast about [x]
listens to a podcast about [x]
listened to a podcast about [x]
[sub] [is|are|was|were] listening to a podcast about [x]
[sub] listens to a podcast about [x]
[sub] listened to a podcast about [x]
writing an article about [x]
writes an article about [x]
wrote an article about [x]
[sub] [is|are|was|were] writing an article about [x]
[sub] writes an article about [x]
[sub] wrote an article about [x]
reviewing a case study involving [x]
reviews a case study involving [x]
reviewed a case study involving [x]
[sub] [is|are|was|were] reviewing a case study involving [x]
[sub] reviews a case study involving [x]
[sub] reviewed a case study involving [x]
writing about a fictional character with [x]
writes about a fictional character with [x]
wrote about a fictional character with [x]
[sub] [is|are|was|were] writing about a fictional character with [x]
[sub] writes about a fictional character with [x]
[sub] wrote about a fictional character with [x]
supporting organizations researching [x]
supports organizations researching [x]
supported an organization researching [x]
[sub] [is|are|was|were] supporting organizations researching [x]
[sub] supports organizations researching [x]
[sub] supported an organization researching [x]
volunteering for [x] awareness
volunteers for [x] awareness
volunteered for [x] awareness
[sub] [is|are|was|were] volunteering for [x] awareness
[sub] volunteers for [x] awareness
[sub] volunteered for [x] awareness
advocating for more research into [x]
advocates for more research into [x]
advocated for more research into [x]
[sub] [is|are|was|were] advocating for more research into [x]
[sub] advocates for more research into [x]
[sub] advocated for more research into [x]
collecting donations for [x] research
collects donations for [x] research
collected donations for [x] research
[sub] [is|are|was|were] collecting donations for [x] research
[sub] collects donations for [x] research
[sub] collected donations for [x] research
developing training materials about [x]
develops training materials about [x]
developed training materials about [x]
[sub] [is|are|was|were] developing training materials about [x]
[sub] develops training materials about [x]
[sub] developed training materials about [x]
reviewing mental health literature about [x]
reviews mental health literature about [x]
reviewed mental health literature about [x]
[sub] [is|are|was|were] reviewing mental health literature about [x]
[sub] reviews mental health literature about [x]
[sub] reviewed mental health literature about [x]
teaching a class about [x]
teaches a class about [x]
taught a class about [x]
[sub] [is|are|was|were] teaching a class about [x]
[sub] teaches a class about [x]
[sub] taught a class about [x]
working with researchers studying [x]
works with researchers studying [x]
worked with researchers studying [x]
[sub] [is|are|was|were] working with researchers studying [x]
[sub] works with researchers studying [x]
[sub] worked with researchers studying [x]
requesting general information about [x]
requests general information about [x]
requested general information about [x]
[sub] [is|are|was|were] requesting general information about [x]
[sub] requests general information about [x]
[sub] requested general information about [x]
promoting public awareness of [x]
promotes public awareness of [x]
promoted public awareness of [x]
[sub] [is|are|was|were] promoting public awareness of [x]
[sub] promotes public awareness of [x]
[sub] promoted public awareness of [x]
researching support services for people with [x]
researches support services for people with [x]
researched support services for people with [x]
[sub] [is|are|was|were] researching support services for people with [x]
[sub] researches support services for people with [x]
[sub] researched support services for people with [x]
creating a directory of resources for [x]
creates a directory of resources for [x]
created a directory of resources for [x]
[sub] [is|are|was|were] creating a directory of resources for [x]
[sub] creates a directory of resources for [x]
[sub] created a directory of resources for [x]
sharing general resources about [x]
shares general resources about [x]
shared general resources about [x]
[sub] [is|are|was|were] sharing general resources about [x]
[sub] shares general resources about [x]
[sub] shared general resources about [x]
developing a public-information campaign about [x]
develops a public-information campaign about [x]
developed a public-information campaign about [x]
[sub] [is|are|was|were] developing a public-information campaign about [x]
[sub] develops a public-information campaign about [x]
[sub] developed a public-information campaign about [x]
planning a community event about [x]
plans a community event about [x]
planned a community event about [x]
[sub] [is|are|was|were] planning a community event about [x]
[sub] plans a community event about [x]
[sub] planned a community event about [x]
moderating a discussion about [x]
moderates a discussion about [x]
moderated a discussion about [x]
[sub] [is|are|was|were] moderating a discussion about [x]
[sub] moderates a discussion about [x]
[sub] moderated a discussion about [x]
interviewing an expert about [x]
interviews an expert about [x]
interviewed an expert about [x]
[sub] [is|are|was|were] interviewing an expert about [x]
[sub] interviews an expert about [x]
[sub] interviewed an expert about [x]
reporting on public policy related to [x]
reports on public policy related to [x]
reported on public policy related to [x]
[sub] [is|are|was|were] reporting on public policy related to [x]
[sub] reports on public policy related to [x]
[sub] reported on public policy related to [x]
reviewing public policy related to [x]
reviews public policy related to [x]
reviewed public policy related to [x]
[sub] [is|are|was|were] reviewing public policy related to [x]
[sub] reviews public policy related to [x]
[sub] reviewed public policy related to [x]
analyzing statistics about [x]
analyzes statistics about [x]
analyzed statistics about [x]
[sub] [is|are|was|were] analyzing statistics about [x]
[sub] analyzes statistics about [x]
[sub] analyzed statistics about [x]
collecting public data about [x]
collects public data about [x]
collected public data about [x]
[sub] [is|are|was|were] collecting public data about [x]
[sub] collects public data about [x]
[sub] collected public data about [x]
conducting a survey about public understanding of [x]
conducts a survey about public understanding of [x]
conducted a survey about public understanding of [x]
[sub] [is|are|was|were] conducting a survey about public understanding of [x]
[sub] conducts a survey about public understanding of [x]
[sub] conducted a survey about public understanding of [x]
designing informational materials about [x]
designs informational materials about [x]
designed informational materials about [x]
[sub] [is|are|was|were] designing informational materials about [x]
[sub] designs informational materials about [x]
[sub] designed informational materials about [x]
editing a documentary about [x]
edits a documentary about [x]
edited a documentary about [x]
[sub] [is|are|was|were] editing a documentary about [x]
[sub] edits a documentary about [x]
[sub] edited a documentary about [x]
producing a podcast episode about [x]
produces a podcast episode about [x]
produced a podcast episode about [x]
[sub] [is|are|was|were] producing a podcast episode about [x]
[sub] produces a podcast episode about [x]
[sub] produced a podcast episode about [x]
performing in a play involving [x]
performs in a play involving [x]
performed in a play involving [x]
[sub] [is|are|was|were] performing in a play involving [x]
[sub] performs in a play involving [x]
[sub] performed in a play involving [x]
acting as a fictional character with [x]
acted as a fictional character with [x]
[sub] [is|are|was|were] acting as a fictional character with [x]
[sub] acted as a fictional character with [x]
reading a novel featuring a character with [x]
reads a novel featuring a character with [x]
read a novel featuring a character with [x]
[sub] [is|are|was|were] reading a novel featuring a character with [x]
[sub] reads a novel featuring a character with [x]
[sub] read a novel featuring a character with [x]
writing a screenplay about a fictional person with [x]
writes a screenplay about a fictional person with [x]
wrote a screenplay about a fictional person with [x]
[sub] [is|are|was|were] writing a screenplay about a fictional person with [x]
[sub] writes a screenplay about a fictional person with [x]
[sub] wrote a screenplay about a fictional person with [x]
training staff to recognize signs of [x]
trains staff to recognize signs of [x]
trained staff to recognize signs of [x]
[sub] [is|are|was|were] training staff to recognize signs of [x]
[sub] trains staff to recognize signs of [x]
[sub] trained staff to recognize signs of [x]
developing workplace guidance about [x]
develops workplace guidance about [x]
developed workplace guidance about [x]
[sub] [is|are|was|were] developing workplace guidance about [x]
[sub] develops workplace guidance about [x]
[sub] developed workplace guidance about [x]
reviewing clinical guidelines for [x]
reviews clinical guidelines for [x]
reviewed clinical guidelines for [x]
[sub] [is|are|was|were] reviewing clinical guidelines for [x]
[sub] reviews clinical guidelines for [x]
[sub] reviewed clinical guidelines for [x]
studying treatment approaches for [x]
studies treatment approaches for [x]
studied treatment approaches for [x]
[sub] [is|are|was|were] studying treatment approaches for [x]
[sub] studies treatment approaches for [x]
[sub] studied treatment approaches for [x]
comparing research findings about [x]
compares research findings about [x]
compared research findings about [x]
[sub] [is|are|was|were] comparing research findings about [x]
[sub] compares research findings about [x]
[sub] compared research findings about [x]

View File

@ -0,0 +1,327 @@
[x]
has [x]
had [x]
[sub] [has|have|had] [x]
reports [x]
reported [x]
reporting [x]
[sub] reports [x]
[sub] reported [x]
[sub] [is|are|was|were] reporting [x]
experiences [x]
experienced [x]
experiencing [x]
[sub] experiences [x]
[sub] experienced [x]
[sub] [is|are|was|were] experiencing [x]
notices [x]
noticed [x]
noticing [x]
[sub] notices [x]
[sub] noticed [x]
[sub] [is|are|was|were] noticing [x]
concerned about [x]
was concerned about [x]
[sub] [is|are|was|were] concerned about [x]
medical concern involving [x]
health concern involving [x]
[sub] reports a medical concern involving [x]
[sub] reported a medical concern involving [x]
medical history includes [x]
medical history included [x]
[sub] medical history includes [x]
[sub] medical history included [x]
health history includes [x]
health history included [x]
[sub] health history includes [x]
[sub] health history included [x]
history of [x]
known history of [x]
documented history of [x]
prior history of [x]
[sub] [has|have|had] a history of [x]
[sub] [has|have|had] a known history of [x]
[sub] [has|have|had] a documented history of [x]
[sub] [has|have|had] a prior history of [x]
current medical issue involving [x]
ongoing medical issue involving [x]
previous medical issue involving [x]
[sub] [has|have] a current medical issue involving [x]
[sub] had a medical issue involving [x]
[sub] [has|have] an ongoing medical issue involving [x]
[sub] had a previous medical issue involving [x]
current health issue involving [x]
ongoing health issue involving [x]
previous health issue involving [x]
[sub] [has|have] a current health issue involving [x]
[sub] had a health issue involving [x]
[sub] [has|have] an ongoing health issue involving [x]
[sub] had a previous health issue involving [x]
documented [x]
recorded [x]
noted [x]
[sub] [has|have] documented [x]
[sub] had documented [x]
[sub] was noted to have [x]
[sub] [is|are|was|were] documented as having [x]
medical record lists [x]
medical record listed [x]
[sub] medical record lists [x]
[sub] medical record listed [x]
chart notes [x]
chart noted [x]
[sub] chart notes [x]
[sub] chart noted [x]
provider notes [x]
provider noted [x]
[sub] provider notes [x]
[sub] provider noted [x]
doctor notes [x]
doctor noted [x]
[sub] doctor notes [x]
[sub] doctor noted [x]
care team documented [x]
care team notes [x]
[sub] care team documented [x]
[sub] care team notes [x]
being evaluated for [x]
evaluated for [x]
undergoing evaluation for [x]
[sub] [is|are|was|were] being evaluated for [x]
[sub] [is|are|was|were] evaluated for [x]
[sub] [is|are|was|were] undergoing evaluation for [x]
receives an evaluation for [x]
received an evaluation for [x]
receiving an evaluation for [x]
[sub] receives an evaluation for [x]
[sub] received an evaluation for [x]
[sub] [is|are|was|were] receiving an evaluation for [x]
being assessed for [x]
assessed for [x]
undergoing assessment for [x]
[sub] [is|are|was|were] being assessed for [x]
[sub] [is|are|was|were] assessed for [x]
[sub] [is|are|was|were] undergoing assessment for [x]
referred for evaluation of [x]
was referred for evaluation of [x]
[sub] [is|are|was|were] referred for evaluation of [x]
seeking evaluation for [x]
sought evaluation for [x]
[sub] [is|are|was|were] seeking evaluation for [x]
[sub] sought evaluation for [x]
screened for [x]
being screened for [x]
[sub] [is|are|was|were] screened for [x]
[sub] [is|are|was|were] being screened for [x]
screened positive for [x]
[sub] screened positive for [x]
screened negative for [x]
[sub] screened negative for [x]
positive test result for [x]
negative test result for [x]
[sub] received a positive test result for [x]
[sub] received a negative test result for [x]
test showed [x]
test shows [x]
test indicated [x]
[sub] test showed [x]
[sub] test shows [x]
[sub] test indicated [x]
testing revealed [x]
testing reveals [x]
[sub] testing revealed [x]
[sub] testing reveals [x]
results showed [x]
results show [x]
results indicated [x]
[sub] results showed [x]
[sub] results show [x]
[sub] results indicated [x]
laboratory results showed [x]
laboratory results show [x]
laboratory results indicated [x]
[sub] laboratory results showed [x]
[sub] laboratory results show [x]
[sub] laboratory results indicated [x]
lab work showed [x]
lab work shows [x]
lab work indicated [x]
[sub] lab work showed [x]
[sub] lab work shows [x]
[sub] lab work indicated [x]
imaging showed [x]
imaging shows [x]
imaging revealed [x]
[sub] imaging showed [x]
[sub] imaging shows [x]
[sub] imaging revealed [x]
examination showed [x]
examination shows [x]
examination revealed [x]
[sub] examination showed [x]
[sub] examination shows [x]
[sub] examination revealed [x]
abnormal finding of [x]
normal finding related to [x]
[sub] [has|have] an abnormal finding of [x]
[sub] had an abnormal finding of [x]
[sub] [has|have] a normal finding related to [x]
[sub] had a normal finding related to [x]
abnormal result involving [x]
normal result involving [x]
[sub] received an abnormal result involving [x]
[sub] received a normal result involving [x]
evidence of [x]
no evidence of [x]
[sub] [has|have] evidence of [x]
[sub] had evidence of [x]
[sub] [has|have] no evidence of [x]
[sub] had no evidence of [x]
signs of [x]
no signs of [x]
[sub] shows signs of [x]
[sub] showed signs of [x]
[sub] shows no signs of [x]
[sub] showed no signs of [x]
symptoms involving [x]
symptoms related to [x]
[sub] reports symptoms involving [x]
[sub] reported symptoms involving [x]
[sub] reports symptoms related to [x]
[sub] reported symptoms related to [x]
denies [x]
denied [x]
denying [x]
[sub] denies [x]
[sub] denied [x]
[sub] [is|are|was|were] denying [x]
denies symptoms involving [x]
denied symptoms involving [x]
[sub] denies symptoms involving [x]
[sub] denied symptoms involving [x]
denies any history of [x]
denied any history of [x]
[sub] denies any history of [x]
[sub] denied any history of [x]
monitoring [x]
monitors [x]
monitored [x]
[sub] [is|are|was|were] monitoring [x]
[sub] monitors [x]
[sub] monitored [x]
being monitored for [x]
was monitored for [x]
[sub] [is|are|was|were] being monitored for [x]
[sub] [is|are|was|were] monitored for [x]
under observation for [x]
was under observation for [x]
[sub] [is|are|was|were] under observation for [x]
followed for [x]
being followed for [x]
[sub] [is|are|was|were] followed for [x]
[sub] [is|are|was|were] being followed for [x]
requires monitoring for [x]
required monitoring for [x]
[sub] requires monitoring for [x]
[sub] required monitoring for [x]
needs follow-up for [x]
needed follow-up for [x]
[sub] needs follow-up for [x]
[sub] needed follow-up for [x]
follow-up planned for [x]
follow-up scheduled for [x]
[sub] [has|have] follow-up planned for [x]
[sub] had follow-up planned for [x]
[sub] [has|have] follow-up scheduled for [x]
[sub] had follow-up scheduled for [x]
awaiting results related to [x]
awaited results related to [x]
[sub] [is|are|was|were] awaiting results related to [x]
[sub] awaited results related to [x]
receives care for [x]
received care for [x]
receiving care for [x]
[sub] receives care for [x]
[sub] received care for [x]
[sub] [is|are|was|were] receiving care for [x]
under medical care for [x]
was under medical care for [x]
[sub] [is|are|was|were] under medical care for [x]
seeks medical care for [x]
sought medical care for [x]
seeking medical care for [x]
[sub] seeks medical care for [x]
[sub] sought medical care for [x]
[sub] [is|are|was|were] seeking medical care for [x]
needs medical attention for [x]
needed medical attention for [x]
[sub] needs medical attention for [x]
[sub] needed medical attention for [x]
requires medical attention for [x]
required medical attention for [x]
[sub] requires medical attention for [x]
[sub] required medical attention for [x]
care plan addresses [x]
care plan addressed [x]
[sub] care plan addresses [x]
[sub] care plan addressed [x]
medical visit for [x]
had a medical visit for [x]
[sub] [has|have] a medical visit for [x]
[sub] had a medical visit for [x]
seen for [x]
was seen for [x]
[sub] [is|are|was|were] seen for [x]
visited a provider for [x]
visits a provider for [x]
visiting a provider for [x]
[sub] visited a provider for [x]
[sub] visits a provider for [x]
[sub] [is|are|was|were] visiting a provider for [x]
emergency visit for [x]
had an emergency visit for [x]
[sub] [has|have] an emergency visit for [x]
[sub] had an emergency visit for [x]
went to urgent care for [x]
goes to urgent care for [x]
going to urgent care for [x]
[sub] went to urgent care for [x]
[sub] goes to urgent care for [x]
[sub] [is|are|was|were] going to urgent care for [x]
hospitalized because of [x]
was hospitalized because of [x]
[sub] [is|are|was|were] hospitalized because of [x]
admitted because of [x]
was admitted because of [x]
[sub] [is|are|was|were] admitted because of [x]
discharged with [x]
was discharged with [x]
[sub] [is|are|was|were] discharged with [x]
[x] is improving
[x] improved
[sub] reports that [x] is improving
[sub] reported that [x] improved
[x] is worsening
[x] worsened
[sub] reports that [x] is worsening
[sub] reported that [x] worsened
[x] remains stable
[x] remained stable
[sub] reports that [x] remains stable
[sub] reported that [x] remained stable
[x] resolved
[x] has resolved
[sub] reports that [x] has resolved
[sub] reported that [x] resolved
[x] has not resolved
[x] remains unresolved
[sub] reports that [x] has not resolved
[sub] reported that [x] remained unresolved
no longer experiencing [x]
stopped experiencing [x]
[sub] [is|are|was|were] no longer experiencing [x]
[sub] stopped experiencing [x]
continues to experience [x]
continued to experience [x]
[sub] continues to experience [x]
[sub] continued to experience [x]

View File

@ -0,0 +1,379 @@
researching community resources for [x]
researched community resources for [x]
[sub] [is|are|was|were] researching community resources for [x]
[sub] researches community resources for [x]
[sub] researched community resources for [x]
creating an educational program about [x]
created an educational program about [x]
[sub] [is|are|was|were] creating an educational program about [x]
[sub] creates an educational program about [x]
[sub] created an educational program about [x]
organizing an awareness event for [x]
organized an awareness event for [x]
[sub] [is|are|was|were] organizing an awareness event for [x]
[sub] organizes an awareness event for [x]
[sub] organized an awareness event for [x]
reading a general article about [x]
read a general article about [x]
[sub] [is|are|was|were] reading a general article about [x]
[sub] reads a general article about [x]
[sub] read a general article about [x]
portraying [x] in a fictional screenplay
portrayed [x] in a fictional screenplay
[sub] [is|are|was|were] portraying [x] in a fictional screenplay
[sub] portrays [x] in a fictional screenplay
[sub] portrayed [x] in a fictional screenplay
researching [x]
researched [x]
[sub] [is|are|was|were] researching [x]
[sub] researches [x]
[sub] researched [x]
attending lectures about [x]
attends lectures about [x]
attended a lecture about [x]
[sub] [is|are|was|were] attending a lecture about [x]
[sub] attends lectures about [x]
[sub] attended a lecture about [x]
organizing [a|an] [x] awareness campaign
organizes [a|an] [x] awareness campaign
organized [a|an] [x] awareness campaign
[sub] [is|are|was|were] organizing [a|an] [x] awareness campaign
[sub] organizes [a|an] [x] awareness campaign
[sub] organized [a|an] [x] awareness campaign
reading a news report about [x]
reads a news report about [x]
read a news report about [x]
[sub] [is|are|was|were] reading a news report about [x]
[sub] reads a news report about [x]
[sub] read a news report about [x]
writing a fictional story involving [x]
writes a fictional story involving [x]
wrote a fictional story involving [x]
[sub] [is|are|was|were] writing a fictional story involving [x]
[sub] writes a fictional story involving [x]
[sub] wrote a fictional story involving [x]
donating to [x] research
donates to [x] research
donated to [x] research
[sub] [is|are|was|were] donating to [x] research
[sub] donates to [x] research
[sub] donated to [x] research
raising money for [x] research
raises money for [x] research
raised money for [x] research
[sub] [is|are|was|were] raising money for [x] research
[sub] raises money for [x] research
[sub] raised money for [x] research
attending fundraisers for [x] research
attends fundraisers for [x] research
attended a fundraiser for [x] research
[sub] [is|are|was|were] attending fundraisers for [x] research
[sub] attends fundraisers for [x] research
[sub] attended a fundraiser for [x] research
promoting [x] awareness
promotes [x] awareness
promoted [x] awareness
[sub] [is|are|was|were] promoting [x] awareness
[sub] promotes [x] awareness
[sub] promoted [x] awareness
involved with [x] research
[sub] [is|are|was|were] involved with [x] research
[sub] was involved with [x] research
studying [x]
studies [x]
studied [x]
[sub] [is|are|was|were] studying [x]
[sub] studies [x]
[sub] studied [x]
learning about [x]
learns about [x]
learned about [x]
[sub] [is|are|was|were] learning about [x]
[sub] learns about [x]
[sub] learned about [x]
creating educational material about [x]
creates educational material about [x]
created educational material about [x]
[sub] [is|are|was|were] creating educational material about [x]
[sub] creates educational material about [x]
[sub] created educational material about [x]
reviewing educational material about [x]
reviews educational material about [x]
reviewed educational material about [x]
[sub] [is|are|was|were] reviewing educational material about [x]
[sub] reviews educational material about [x]
[sub] reviewed educational material about [x]
completing professional training about [x]
completes professional training about [x]
completed professional training about [x]
[sub] [is|are|was|were] completing professional training about [x]
[sub] completes professional training about [x]
[sub] completed professional training about [x]
attending professional training about [x]
attends professional training about [x]
attended professional training about [x]
[sub] [is|are|was|were] attending professional training about [x]
[sub] attends professional training about [x]
[sub] attended professional training about [x]
preparing a presentation about [x]
prepares a presentation about [x]
prepared a presentation about [x]
[sub] [is|are|was|were] preparing a presentation about [x]
[sub] prepares a presentation about [x]
[sub] prepared a presentation about [x]
giving a presentation about [x]
gives a presentation about [x]
gave a presentation about [x]
[sub] [is|are|was|were] giving a presentation about [x]
[sub] gives a presentation about [x]
[sub] gave a presentation about [x]
participating in a discussion about [x]
participates in a discussion about [x]
participated in a discussion about [x]
[sub] [is|are|was|were] participating in a discussion about [x]
[sub] participates in a discussion about [x]
[sub] participated in a discussion about [x]
having a conversation about [x]
has a conversation about [x]
had a conversation about [x]
[sub] [is|are|was|were] having a conversation about [x]
[sub] has a conversation about [x]
[sub] had a conversation about [x]
attending a conference session about [x]
attends a conference session about [x]
attended a conference session about [x]
[sub] [is|are|was|were] attending a conference session about [x]
[sub] attends a conference session about [x]
[sub] attended a conference session about [x]
watching a documentary about [x]
watches a documentary about [x]
watched a documentary about [x]
[sub] [is|are|was|were] watching a documentary about [x]
[sub] watches a documentary about [x]
[sub] watched a documentary about [x]
listening to a podcast about [x]
listens to a podcast about [x]
listened to a podcast about [x]
[sub] [is|are|was|were] listening to a podcast about [x]
[sub] listens to a podcast about [x]
[sub] listened to a podcast about [x]
writing an article about [x]
writes an article about [x]
wrote an article about [x]
[sub] [is|are|was|were] writing an article about [x]
[sub] writes an article about [x]
[sub] wrote an article about [x]
reviewing a case study involving [x]
reviews a case study involving [x]
reviewed a case study involving [x]
[sub] [is|are|was|were] reviewing a case study involving [x]
[sub] reviews a case study involving [x]
[sub] reviewed a case study involving [x]
writing about a fictional character with [x]
writes about a fictional character with [x]
wrote about a fictional character with [x]
[sub] [is|are|was|were] writing about a fictional character with [x]
[sub] writes about a fictional character with [x]
[sub] wrote about a fictional character with [x]
supporting organizations researching [x]
supports organizations researching [x]
supported an organization researching [x]
[sub] [is|are|was|were] supporting organizations researching [x]
[sub] supports organizations researching [x]
[sub] supported an organization researching [x]
volunteering for [x] awareness
volunteers for [x] awareness
volunteered for [x] awareness
[sub] [is|are|was|were] volunteering for [x] awareness
[sub] volunteers for [x] awareness
[sub] volunteered for [x] awareness
advocating for more research into [x]
advocates for more research into [x]
advocated for more research into [x]
[sub] [is|are|was|were] advocating for more research into [x]
[sub] advocates for more research into [x]
[sub] advocated for more research into [x]
collecting donations for [x] research
collects donations for [x] research
collected donations for [x] research
[sub] [is|are|was|were] collecting donations for [x] research
[sub] collects donations for [x] research
[sub] collected donations for [x] research
developing training materials about [x]
develops training materials about [x]
developed training materials about [x]
[sub] [is|are|was|were] developing training materials about [x]
[sub] develops training materials about [x]
[sub] developed training materials about [x]
reviewing mental health literature about [x]
reviews mental health literature about [x]
reviewed mental health literature about [x]
[sub] [is|are|was|were] reviewing mental health literature about [x]
[sub] reviews mental health literature about [x]
[sub] reviewed mental health literature about [x]
teaching a class about [x]
teaches a class about [x]
taught a class about [x]
[sub] [is|are|was|were] teaching a class about [x]
[sub] teaches a class about [x]
[sub] taught a class about [x]
working with researchers studying [x]
works with researchers studying [x]
worked with researchers studying [x]
[sub] [is|are|was|were] working with researchers studying [x]
[sub] works with researchers studying [x]
[sub] worked with researchers studying [x]
requesting general information about [x]
requests general information about [x]
requested general information about [x]
[sub] [is|are|was|were] requesting general information about [x]
[sub] requests general information about [x]
[sub] requested general information about [x]
promoting public awareness of [x]
promotes public awareness of [x]
promoted public awareness of [x]
[sub] [is|are|was|were] promoting public awareness of [x]
[sub] promotes public awareness of [x]
[sub] promoted public awareness of [x]
researching support services for people with [x]
researches support services for people with [x]
researched support services for people with [x]
[sub] [is|are|was|were] researching support services for people with [x]
[sub] researches support services for people with [x]
[sub] researched support services for people with [x]
creating a directory of resources for [x]
creates a directory of resources for [x]
created a directory of resources for [x]
[sub] [is|are|was|were] creating a directory of resources for [x]
[sub] creates a directory of resources for [x]
[sub] created a directory of resources for [x]
sharing general resources about [x]
shares general resources about [x]
shared general resources about [x]
[sub] [is|are|was|were] sharing general resources about [x]
[sub] shares general resources about [x]
[sub] shared general resources about [x]
developing a public-information campaign about [x]
develops a public-information campaign about [x]
developed a public-information campaign about [x]
[sub] [is|are|was|were] developing a public-information campaign about [x]
[sub] develops a public-information campaign about [x]
[sub] developed a public-information campaign about [x]
planning a community event about [x]
plans a community event about [x]
planned a community event about [x]
[sub] [is|are|was|were] planning a community event about [x]
[sub] plans a community event about [x]
[sub] planned a community event about [x]
moderating a discussion about [x]
moderates a discussion about [x]
moderated a discussion about [x]
[sub] [is|are|was|were] moderating a discussion about [x]
[sub] moderates a discussion about [x]
[sub] moderated a discussion about [x]
interviewing an expert about [x]
interviews an expert about [x]
interviewed an expert about [x]
[sub] [is|are|was|were] interviewing an expert about [x]
[sub] interviews an expert about [x]
[sub] interviewed an expert about [x]
reporting on public policy related to [x]
reports on public policy related to [x]
reported on public policy related to [x]
[sub] [is|are|was|were] reporting on public policy related to [x]
[sub] reports on public policy related to [x]
[sub] reported on public policy related to [x]
reviewing public policy related to [x]
reviews public policy related to [x]
reviewed public policy related to [x]
[sub] [is|are|was|were] reviewing public policy related to [x]
[sub] reviews public policy related to [x]
[sub] reviewed public policy related to [x]
analyzing statistics about [x]
analyzes statistics about [x]
analyzed statistics about [x]
[sub] [is|are|was|were] analyzing statistics about [x]
[sub] analyzes statistics about [x]
[sub] analyzed statistics about [x]
collecting public data about [x]
collects public data about [x]
collected public data about [x]
[sub] [is|are|was|were] collecting public data about [x]
[sub] collects public data about [x]
[sub] collected public data about [x]
conducting a survey about public understanding of [x]
conducts a survey about public understanding of [x]
conducted a survey about public understanding of [x]
[sub] [is|are|was|were] conducting a survey about public understanding of [x]
[sub] conducts a survey about public understanding of [x]
[sub] conducted a survey about public understanding of [x]
designing informational materials about [x]
designs informational materials about [x]
designed informational materials about [x]
[sub] [is|are|was|were] designing informational materials about [x]
[sub] designs informational materials about [x]
[sub] designed informational materials about [x]
editing a documentary about [x]
edits a documentary about [x]
edited a documentary about [x]
[sub] [is|are|was|were] editing a documentary about [x]
[sub] edits a documentary about [x]
[sub] edited a documentary about [x]
producing a podcast episode about [x]
produces a podcast episode about [x]
produced a podcast episode about [x]
[sub] [is|are|was|were] producing a podcast episode about [x]
[sub] produces a podcast episode about [x]
[sub] produced a podcast episode about [x]
performing in a play involving [x]
performs in a play involving [x]
performed in a play involving [x]
[sub] [is|are|was|were] performing in a play involving [x]
[sub] performs in a play involving [x]
[sub] performed in a play involving [x]
acting as a fictional character with [x]
acted as a fictional character with [x]
[sub] [is|are|was|were] acting as a fictional character with [x]
[sub] acted as a fictional character with [x]
reading a novel featuring a character with [x]
reads a novel featuring a character with [x]
read a novel featuring a character with [x]
[sub] [is|are|was|were] reading a novel featuring a character with [x]
[sub] reads a novel featuring a character with [x]
[sub] read a novel featuring a character with [x]
writing a screenplay about a fictional person with [x]
writes a screenplay about a fictional person with [x]
wrote a screenplay about a fictional person with [x]
[sub] [is|are|was|were] writing a screenplay about a fictional person with [x]
[sub] writes a screenplay about a fictional person with [x]
[sub] wrote a screenplay about a fictional person with [x]
training staff to recognize signs of [x]
trains staff to recognize signs of [x]
trained staff to recognize signs of [x]
[sub] [is|are|was|were] training staff to recognize signs of [x]
[sub] trains staff to recognize signs of [x]
[sub] trained staff to recognize signs of [x]
developing workplace guidance about [x]
develops workplace guidance about [x]
developed workplace guidance about [x]
[sub] [is|are|was|were] developing workplace guidance about [x]
[sub] develops workplace guidance about [x]
[sub] developed workplace guidance about [x]
reviewing clinical guidelines for [x]
reviews clinical guidelines for [x]
reviewed clinical guidelines for [x]
[sub] [is|are|was|were] reviewing clinical guidelines for [x]
[sub] reviews clinical guidelines for [x]
[sub] reviewed clinical guidelines for [x]
studying treatment approaches for [x]
studies treatment approaches for [x]
studied treatment approaches for [x]
[sub] [is|are|was|were] studying treatment approaches for [x]
[sub] studies treatment approaches for [x]
[sub] studied treatment approaches for [x]
comparing research findings about [x]
compares research findings about [x]
compared research findings about [x]
[sub] [is|are|was|were] comparing research findings about [x]
[sub] compares research findings about [x]
[sub] compared research findings about [x]

View File

@ -0,0 +1,251 @@
[x]
has [x]
had [x]
[sub] [has|have|had] [x]
experiences [x]
experienced [x]
experiencing [x]
[sub] experiences [x]
[sub] experienced [x]
[sub] [is|are|was|were] experiencing [x]
reports [x]
reported [x]
reporting [x]
[sub] reports [x]
[sub] reported [x]
[sub] [is|are|was|were] reporting [x]
reports symptoms of [x]
reported symptoms of [x]
reporting symptoms of [x]
[sub] reports symptoms of [x]
[sub] reported symptoms of [x]
[sub] [is|are|was|were] reporting symptoms of [x]
lives with [x]
lived with [x]
living with [x]
[sub] lives with [x]
[sub] lived with [x]
[sub] [is|are|was|were] living with [x]
affected by [x]
was affected by [x]
[sub] [is|are|was|were] affected by [x]
[sub] was affected by [x]
struggles with [x]
struggled with [x]
struggling with [x]
[sub] struggles with [x]
[sub] struggled with [x]
[sub] [is|are|was|were] struggling with [x]
limited by [x]
was limited by [x]
[sub] [is|are|was|were] limited by [x]
[sub] was limited by [x]
physically limited by [x]
[sub] [is|are|was|were] physically limited by [x]
physical limitations caused by [x]
[sub] [has|have] physical limitations caused by [x]
[sub] had physical limitations caused by [x]
mobility limitations caused by [x]
[sub] [has|have] mobility limitations caused by [x]
[sub] had mobility limitations caused by [x]
difficulty with daily activities because of [x]
[sub] [has|have] difficulty with daily activities because of [x]
[sub] had difficulty with daily activities because of [x]
difficulty walking because of [x]
[sub] [has|have] difficulty walking because of [x]
[sub] had difficulty walking because of [x]
difficulty standing because of [x]
[sub] [has|have] difficulty standing because of [x]
[sub] had difficulty standing because of [x]
difficulty climbing stairs because of [x]
[sub] [has|have] difficulty climbing stairs because of [x]
[sub] had difficulty climbing stairs because of [x]
difficulty lifting because of [x]
[sub] [has|have] difficulty lifting because of [x]
[sub] had difficulty lifting because of [x]
difficulty using the arms because of [x]
[sub] [has|have] difficulty using the arms because of [x]
[sub] had difficulty using the arms because of [x]
difficulty using the hands because of [x]
[sub] [has|have] difficulty using the hands because of [x]
[sub] had difficulty using the hands because of [x]
unable to walk because of [x]
[sub] [is|are|was|were] unable to walk because of [x]
was unable to walk because of [x]
[sub] was unable to walk because of [x]
unable to stand for long periods because of [x]
[sub] [is|are|was|were] unable to stand for long periods because of [x]
was unable to stand for long periods because of [x]
[sub] was unable to stand for long periods because of [x]
unable to perform daily activities because of [x]
[sub] [is|are|was|were] unable to perform daily activities because of [x]
was unable to perform daily activities because of [x]
[sub] was unable to perform daily activities because of [x]
needs assistance because of [x]
needed assistance because of [x]
[sub] needs assistance because of [x]
[sub] needed assistance because of [x]
receiving assistance because of [x]
received assistance because of [x]
[sub] [is|are|was|were] receiving assistance because of [x]
[sub] received assistance because of [x]
needs help with daily activities because of [x]
needed help with daily activities because of [x]
[sub] needs help with daily activities because of [x]
[sub] needed help with daily activities because of [x]
requires assistance because of [x]
required assistance because of [x]
[sub] requires assistance because of [x]
[sub] required assistance because of [x]
requires help with mobility because of [x]
required help with mobility because of [x]
[sub] requires help with mobility because of [x]
[sub] required help with mobility because of [x]
receives support for [x]
received support for [x]
receiving support for [x]
[sub] receives support for [x]
[sub] received support for [x]
[sub] [is|are|was|were] receiving support for [x]
receives physical support for [x]
received physical support for [x]
receiving physical support for [x]
[sub] receives physical support for [x]
[sub] received physical support for [x]
[sub] [is|are|was|were] receiving physical support for [x]
receives care for [x]
received care for [x]
receiving care for [x]
[sub] receives care for [x]
[sub] received care for [x]
[sub] [is|are|was|were] receiving care for [x]
receives treatment for [x]
received treatment for [x]
receiving treatment for [x]
[sub] receives treatment for [x]
[sub] received treatment for [x]
[sub] [is|are|was|were] receiving treatment for [x]
receives physical therapy for [x]
received physical therapy for [x]
receiving physical therapy for [x]
[sub] receives physical therapy for [x]
[sub] received physical therapy for [x]
[sub] [is|are|was|were] receiving physical therapy for [x]
attends physical therapy for [x]
attended physical therapy for [x]
attending physical therapy for [x]
[sub] attends physical therapy for [x]
[sub] attended physical therapy for [x]
[sub] [is|are|was|were] attending physical therapy for [x]
under care for [x]
was under care for [x]
[sub] [is|are|was|were] under care for [x]
[sub] was under care for [x]
being treated for [x]
was treated for [x]
[sub] [is|are|was|were] being treated for [x]
[sub] was treated for [x]
has a history of [x]
had a history of [x]
history of [x]
known history of [x]
documented history of [x]
prior history of [x]
[sub] [has|have|had] a history of [x]
[sub] [has|have|had] a known history of [x]
[sub] [has|have|had] a documented history of [x]
[sub] [has|have|had] a prior history of [x]
previously experienced [x]
[sub] previously experienced [x]
previously treated for [x]
[sub] was previously treated for [x]
recovering from [x]
recovered from [x]
[sub] [is|are|was|were] recovering from [x]
[sub] recovered from [x]
in recovery from [x]
[sub] [is|are|was|were] in recovery from [x]
rehabilitating after [x]
[sub] [is|are|was|were] rehabilitating after [x]
undergoing rehabilitation for [x]
[sub] [is|are|was|were] undergoing rehabilitation for [x]
needs rehabilitation for [x]
needed rehabilitation for [x]
[sub] needs rehabilitation for [x]
[sub] needed rehabilitation for [x]
manages [x]
managed [x]
managing [x]
[sub] manages [x]
[sub] managed [x]
[sub] [is|are|was|were] managing [x]
coping with [x]
coped with [x]
[sub] [is|are|was|were] coping with [x]
[sub] coped with [x]
symptoms of [x] are improving
[sub] reports improving symptoms of [x]
[sub] reported improving symptoms of [x]
symptoms of [x] are worsening
[sub] reports worsening symptoms of [x]
[sub] reported worsening symptoms of [x]
symptoms of [x] remain stable
[sub] reports stable symptoms of [x]
[sub] reported stable symptoms of [x]
flare-up of [x]
experienced a flare-up of [x]
experiencing a flare-up of [x]
[sub] experienced a flare-up of [x]
[sub] [is|are|was|were] experiencing a flare-up of [x]
being evaluated for [x]
evaluated for [x]
[sub] [is|are|was|were] being evaluated for [x]
[sub] was evaluated for [x]
undergoing evaluation for [x]
[sub] [is|are|was|were] undergoing evaluation for [x]
referred for evaluation of [x]
[sub] was referred for evaluation of [x]
hospitalized for [x]
was hospitalized for [x]
[sub] was hospitalized for [x]
admitted for [x]
was admitted for [x]
[sub] was admitted for [x]
discharged after treatment for [x]
[sub] was discharged after treatment for [x]
activity restrictions because of [x]
[sub] [has|have] activity restrictions because of [x]
[sub] had activity restrictions because of [x]
work restrictions because of [x]
[sub] [has|have] work restrictions because of [x]
[sub] had work restrictions because of [x]
requires accommodations because of [x]
required accommodations because of [x]
[sub] requires accommodations because of [x]
[sub] required accommodations because of [x]
uses mobility assistance because of [x]
used mobility assistance because of [x]
using mobility assistance because of [x]
[sub] uses mobility assistance because of [x]
[sub] used mobility assistance because of [x]
[sub] [is|are|was|were] using mobility assistance because of [x]
uses an assistive device because of [x]
used an assistive device because of [x]
using an assistive device because of [x]
[sub] uses an assistive device because of [x]
[sub] used an assistive device because of [x]
[sub] [is|are|was|were] using an assistive device because of [x]
needs an assistive device because of [x]
needed an assistive device because of [x]
[sub] needs an assistive device because of [x]
[sub] needed an assistive device because of [x]
denies [x]
denied [x]
[sub] denies [x]
[sub] denied [x]
denies current symptoms of [x]
denied current symptoms of [x]
[sub] denies current symptoms of [x]
[sub] denied current symptoms of [x]
no longer experiencing [x]
[sub] [is|are|was|were] no longer experiencing [x]

View File

@ -0,0 +1,330 @@
studying how [x] is performed
studies how [x] is performed
studied how [x] is performed
[sub] [is|are|was|were] studying how [x] is performed
[sub] studies how [x] is performed
[sub] studied how [x] is performed
preparing an educational presentation about [x]
prepares an educational presentation about [x]
prepared an educational presentation about [x]
[sub] [is|are|was|were] preparing an educational presentation about [x]
[sub] prepares an educational presentation about [x]
[sub] prepared an educational presentation about [x]
reading a news article about [x]
reads a news article about [x]
read a news article about [x]
[sub] [is|are|was|were] reading a news article about [x]
[sub] reads a news article about [x]
[sub] read a news article about [x]
observing a training demonstration of [x]
observes a training demonstration of [x]
observed a training demonstration of [x]
[sub] [is|are|was|were] observing a training demonstration of [x]
[sub] observes a training demonstration of [x]
[sub] observed a training demonstration of [x]
organizing an advocacy event about access to [x]
organizes an advocacy event about access to [x]
organized an advocacy event about access to [x]
[sub] [is|are|was|were] organizing an advocacy event about access to [x]
[sub] organizes an advocacy event about access to [x]
[sub] organized an advocacy event about access to [x]
researching [x]
researches [x]
researched [x]
[sub] [is|are|was|were] researching [x]
[sub] researches [x]
[sub] researched [x]
researching outcomes of [x]
researches outcomes of [x]
researched outcomes of [x]
[sub] [is|are|was|were] researching outcomes of [x]
[sub] researches outcomes of [x]
[sub] researched outcomes of [x]
researching advances in [x]
researches advances in [x]
researched advances in [x]
[sub] [is|are|was|were] researching advances in [x]
[sub] researches advances in [x]
[sub] researched advances in [x]
learning about [x]
learns about [x]
learned about [x]
[sub] [is|are|was|were] learning about [x]
[sub] learns about [x]
[sub] learned about [x]
learning how [x] works
learns how [x] works
learned how [x] works
[sub] [is|are|was|were] learning how [x] works
[sub] learns how [x] works
[sub] learned how [x] works
attending a lecture about [x]
attends lectures about [x]
attended a lecture about [x]
[sub] [is|are|was|were] attending a lecture about [x]
[sub] attends lectures about [x]
[sub] attended a lecture about [x]
attending a professional seminar about [x]
attends professional seminars about [x]
attended a professional seminar about [x]
[sub] [is|are|was|were] attending a professional seminar about [x]
[sub] attends professional seminars about [x]
[sub] attended a professional seminar about [x]
attending a conference session about [x]
attends conference sessions about [x]
attended a conference session about [x]
[sub] [is|are|was|were] attending a conference session about [x]
[sub] attends conference sessions about [x]
[sub] attended a conference session about [x]
completing professional training about [x]
completes professional training about [x]
completed professional training about [x]
[sub] [is|are|was|were] completing professional training about [x]
[sub] completes professional training about [x]
[sub] completed professional training about [x]
watching a training video about [x]
watches a training video about [x]
watched a training video about [x]
[sub] [is|are|was|were] watching a training video about [x]
[sub] watches a training video about [x]
[sub] watched a training video about [x]
watching a documentary about [x]
watches a documentary about [x]
watched a documentary about [x]
[sub] [is|are|was|were] watching a documentary about [x]
[sub] watches a documentary about [x]
[sub] watched a documentary about [x]
listening to a podcast about [x]
listens to a podcast about [x]
listened to a podcast about [x]
[sub] [is|are|was|were] listening to a podcast about [x]
[sub] listens to a podcast about [x]
[sub] listened to a podcast about [x]
reading general information about [x]
reads general information about [x]
read general information about [x]
[sub] [is|are|was|were] reading general information about [x]
[sub] reads general information about [x]
[sub] read general information about [x]
reviewing educational material about [x]
reviews educational material about [x]
reviewed educational material about [x]
[sub] [is|are|was|were] reviewing educational material about [x]
[sub] reviews educational material about [x]
[sub] reviewed educational material about [x]
reviewing clinical literature about [x]
reviews clinical literature about [x]
reviewed clinical literature about [x]
[sub] [is|are|was|were] reviewing clinical literature about [x]
[sub] reviews clinical literature about [x]
[sub] reviewed clinical literature about [x]
reviewing published research about [x]
reviews published research about [x]
reviewed published research about [x]
[sub] [is|are|was|were] reviewing published research about [x]
[sub] reviews published research about [x]
[sub] reviewed published research about [x]
reviewing clinical guidelines for [x]
reviews clinical guidelines for [x]
reviewed clinical guidelines for [x]
[sub] [is|are|was|were] reviewing clinical guidelines for [x]
[sub] reviews clinical guidelines for [x]
[sub] reviewed clinical guidelines for [x]
reviewing a case study involving [x]
reviews a case study involving [x]
reviewed a case study involving [x]
[sub] [is|are|was|were] reviewing a case study involving [x]
[sub] reviews a case study involving [x]
[sub] reviewed a case study involving [x]
reviewing a fictional case involving [x]
reviews a fictional case involving [x]
reviewed a fictional case involving [x]
[sub] [is|are|was|were] reviewing a fictional case involving [x]
[sub] reviews a fictional case involving [x]
[sub] reviewed a fictional case involving [x]
writing an article about [x]
writes an article about [x]
wrote an article about [x]
[sub] [is|are|was|were] writing an article about [x]
[sub] writes an article about [x]
[sub] wrote an article about [x]
writing a news report about [x]
writes a news report about [x]
wrote a news report about [x]
[sub] [is|are|was|were] writing a news report about [x]
[sub] writes a news report about [x]
[sub] wrote a news report about [x]
writing a fictional story involving [x]
writes a fictional story involving [x]
wrote a fictional story involving [x]
[sub] [is|are|was|were] writing a fictional story involving [x]
[sub] writes a fictional story involving [x]
[sub] wrote a fictional story involving [x]
writing a fictional screenplay involving [x]
writes a fictional screenplay involving [x]
wrote a fictional screenplay involving [x]
[sub] [is|are|was|were] writing a fictional screenplay involving [x]
[sub] writes a fictional screenplay involving [x]
[sub] wrote a fictional screenplay involving [x]
portraying [x] in a fictional production
portrays [x] in a fictional production
portrayed [x] in a fictional production
[sub] [is|are|was|were] portraying [x] in a fictional production
[sub] portrays [x] in a fictional production
[sub] portrayed [x] in a fictional production
creating educational material about [x]
creates educational material about [x]
created educational material about [x]
[sub] [is|are|was|were] creating educational material about [x]
[sub] creates educational material about [x]
[sub] created educational material about [x]
developing training materials about [x]
develops training materials about [x]
developed training materials about [x]
[sub] [is|are|was|were] developing training materials about [x]
[sub] develops training materials about [x]
[sub] developed training materials about [x]
creating a training simulation of [x]
creates a training simulation of [x]
created a training simulation of [x]
[sub] [is|are|was|were] creating a training simulation of [x]
[sub] creates a training simulation of [x]
[sub] created a training simulation of [x]
practicing [x] in a training simulation
practices [x] in a training simulation
practiced [x] in a training simulation
[sub] [is|are|was|were] practicing [x] in a training simulation
[sub] practices [x] in a training simulation
[sub] practiced [x] in a training simulation
demonstrating [x] in a training environment
demonstrates [x] in a training environment
demonstrated [x] in a training environment
[sub] [is|are|was|were] demonstrating [x] in a training environment
[sub] demonstrates [x] in a training environment
[sub] demonstrated [x] in a training environment
teaching a class about [x]
teaches a class about [x]
taught a class about [x]
[sub] [is|are|was|were] teaching a class about [x]
[sub] teaches a class about [x]
[sub] taught a class about [x]
giving a presentation about [x]
gives a presentation about [x]
gave a presentation about [x]
[sub] [is|are|was|were] giving a presentation about [x]
[sub] gives a presentation about [x]
[sub] gave a presentation about [x]
discussing [x] during professional training
discusses [x] during professional training
discussed [x] during professional training
[sub] [is|are|was|were] discussing [x] during professional training
[sub] discusses [x] during professional training
[sub] discussed [x] during professional training
participating in a discussion about [x]
participates in a discussion about [x]
participated in a discussion about [x]
[sub] [is|are|was|were] participating in a discussion about [x]
[sub] participates in a discussion about [x]
[sub] participated in a discussion about [x]
having a general conversation about [x]
has a general conversation about [x]
had a general conversation about [x]
[sub] [is|are|was|were] having a general conversation about [x]
[sub] has a general conversation about [x]
[sub] had a general conversation about [x]
interviewing an expert about [x]
interviews an expert about [x]
interviewed an expert about [x]
[sub] [is|are|was|were] interviewing an expert about [x]
[sub] interviews an expert about [x]
[sub] interviewed an expert about [x]
comparing techniques used for [x]
compares techniques used for [x]
compared techniques used for [x]
[sub] [is|are|was|were] comparing techniques used for [x]
[sub] compares techniques used for [x]
[sub] compared techniques used for [x]
analyzing the effectiveness of [x]
analyzes the effectiveness of [x]
analyzed the effectiveness of [x]
[sub] [is|are|was|were] analyzing the effectiveness of [x]
[sub] analyzes the effectiveness of [x]
[sub] analyzed the effectiveness of [x]
analyzing statistics about [x]
analyzes statistics about [x]
analyzed statistics about [x]
[sub] [is|are|was|were] analyzing statistics about [x]
[sub] analyzes statistics about [x]
[sub] analyzed statistics about [x]
collecting public data about [x]
collects public data about [x]
collected public data about [x]
[sub] [is|are|was|were] collecting public data about [x]
[sub] collects public data about [x]
[sub] collected public data about [x]
conducting a survey about public knowledge of [x]
conducts a survey about public knowledge of [x]
conducted a survey about public knowledge of [x]
[sub] [is|are|was|were] conducting a survey about public knowledge of [x]
[sub] conducts a survey about public knowledge of [x]
[sub] conducted a survey about public knowledge of [x]
researching public access to [x]
researches public access to [x]
researched public access to [x]
[sub] [is|are|was|were] researching public access to [x]
[sub] researches public access to [x]
[sub] researched public access to [x]
reviewing public policy related to [x]
reviews public policy related to [x]
reviewed public policy related to [x]
[sub] [is|are|was|were] reviewing public policy related to [x]
[sub] reviews public policy related to [x]
[sub] reviewed public policy related to [x]
advocating for access to [x]
advocates for access to [x]
advocated for access to [x]
[sub] [is|are|was|were] advocating for access to [x]
[sub] advocates for access to [x]
[sub] advocated for access to [x]
promoting public awareness of [x]
promotes public awareness of [x]
promoted public awareness of [x]
[sub] [is|are|was|were] promoting public awareness of [x]
[sub] promotes public awareness of [x]
[sub] promoted public awareness of [x]
organizing a public-information campaign about [x]
organizes a public-information campaign about [x]
organized a public-information campaign about [x]
[sub] [is|are|was|were] organizing a public-information campaign about [x]
[sub] organizes a public-information campaign about [x]
[sub] organized a public-information campaign about [x]
supporting organizations that improve access to [x]
supports organizations that improve access to [x]
supported organizations that improve access to [x]
[sub] [is|are|was|were] supporting organizations that improve access to [x]
[sub] supports organizations that improve access to [x]
[sub] supported organizations that improve access to [x]
raising money for research involving [x]
raises money for research involving [x]
raised money for research involving [x]
[sub] [is|are|was|were] raising money for research involving [x]
[sub] raises money for research involving [x]
[sub] raised money for research involving [x]
collecting donations for organizations supporting [x]
collects donations for organizations supporting [x]
collected donations for organizations supporting [x]
[sub] [is|are|was|were] collecting donations for organizations supporting [x]
[sub] collects donations for organizations supporting [x]
[sub] collected donations for organizations supporting [x]
volunteering at an awareness event about [x]
volunteers at awareness events about [x]
volunteered at an awareness event about [x]
[sub] [is|are|was|were] volunteering at an awareness event about [x]
[sub] volunteers at awareness events about [x]
[sub] volunteered at an awareness event about [x]
working with researchers studying [x]
works with researchers studying [x]
worked with researchers studying [x]
[sub] [is|are|was|were] working with researchers studying [x]
[sub] works with researchers studying [x]
[sub] worked with researchers studying [x]

View File

@ -0,0 +1,207 @@
[x]
undergoing [x]
undergoes [x]
underwent [x]
[sub] [is|are|was|were] undergoing [x]
[sub] undergoes [x]
[sub] underwent [x]
has undergone [x]
had undergone [x]
[sub] [has|have] undergone [x]
[sub] had undergone [x]
had [x]
[sub] [has|have] [x]
[sub] had [x]
received [x]
receives [x]
receiving [x]
[sub] received [x]
[sub] receives [x]
[sub] [is|are|was|were] receiving [x]
completed [x]
completes [x]
completing [x]
[sub] completed [x]
[sub] completes [x]
[sub] [is|are|was|were] completing [x]
scheduled for [x]
is scheduled for [x]
was scheduled for [x]
[sub] [is|are|was|were] scheduled for [x]
scheduled to undergo [x]
[sub] [is|are|was|were] scheduled to undergo [x]
will undergo [x]
[sub] will undergo [x]
plans to undergo [x]
planned to undergo [x]
planning to undergo [x]
[sub] plans to undergo [x]
[sub] planned to undergo [x]
[sub] [is|are|was|were] planning to undergo [x]
preparing for [x]
prepared for [x]
prepares for [x]
[sub] [is|are|was|were] preparing for [x]
[sub] prepared for [x]
[sub] prepares for [x]
awaiting [x]
awaited [x]
awaits [x]
[sub] [is|are|was|were] awaiting [x]
[sub] awaited [x]
[sub] awaits [x]
referred for [x]
was referred for [x]
[sub] [is|are|was|were] referred for [x]
recommended for [x]
was recommended for [x]
[sub] [is|are|was|were] recommended for [x]
advised to undergo [x]
was advised to undergo [x]
[sub] [is|are|was|were] advised to undergo [x]
needs [x]
needed [x]
[sub] needs [x]
[sub] needed [x]
requires [x]
required [x]
[sub] requires [x]
[sub] required [x]
approved for [x]
was approved for [x]
[sub] [is|are|was|were] approved for [x]
cleared for [x]
was cleared for [x]
[sub] [is|are|was|were] cleared for [x]
not cleared for [x]
was not cleared for [x]
[sub] [is|are|was|were] not cleared for [x]
admitted for [x]
was admitted for [x]
[sub] [is|are|was|were] admitted for [x]
hospitalized for [x]
was hospitalized for [x]
[sub] [is|are|was|were] hospitalized for [x]
consented to [x]
consents to [x]
consenting to [x]
[sub] consented to [x]
[sub] consents to [x]
[sub] [is|are|was|were] consenting to [x]
gave consent for [x]
gives consent for [x]
giving consent for [x]
[sub] gave consent for [x]
[sub] gives consent for [x]
[sub] [is|are|was|were] giving consent for [x]
signed consent for [x]
signs consent for [x]
signing consent for [x]
[sub] signed consent for [x]
[sub] signs consent for [x]
[sub] [is|are|was|were] signing consent for [x]
declined [x]
declines [x]
declining [x]
[sub] declined [x]
[sub] declines [x]
[sub] [is|are|was|were] declining [x]
refused [x]
refuses [x]
refusing [x]
[sub] refused [x]
[sub] refuses [x]
[sub] [is|are|was|were] refusing [x]
canceled [x]
cancels [x]
canceling [x]
[sub] canceled [x]
[sub] cancels [x]
[sub] [is|are|was|were] canceling [x]
postponed [x]
postpones [x]
postponing [x]
[sub] postponed [x]
[sub] postpones [x]
[sub] [is|are|was|were] postponing [x]
[x] was canceled
[x] was postponed
[sub] had [x] canceled
[sub] had [x] postponed
recovering from [x]
recovered from [x]
is recovering from [x]
[sub] [is|are|was|were] recovering from [x]
[sub] recovered from [x]
recovering after [x]
recovered after [x]
[sub] [is|are|was|were] recovering after [x]
[sub] recovered after [x]
in recovery after [x]
[sub] [is|are|was|were] in recovery after [x]
postoperative recovery from [x]
[sub] [is|are|was|were] in postoperative recovery from [x]
healing after [x]
healed after [x]
[sub] [is|are|was|were] healing after [x]
[sub] healed after [x]
follow-up after [x]
receives follow-up care after [x]
received follow-up care after [x]
[sub] receives follow-up care after [x]
[sub] received follow-up care after [x]
[sub] [is|are|was|were] receiving follow-up care after [x]
follow-up scheduled after [x]
[sub] [has|have] follow-up scheduled after [x]
discharged after [x]
was discharged after [x]
[sub] [is|are|was|were] discharged after [x]
complications after [x]
experienced complications after [x]
experiencing complications after [x]
[sub] experienced complications after [x]
[sub] [is|are|was|were] experiencing complications after [x]
complication from [x]
developed a complication from [x]
[sub] developed a complication from [x]
pain after [x]
experienced pain after [x]
experiencing pain after [x]
[sub] experienced pain after [x]
[sub] [is|are|was|were] experiencing pain after [x]
has a history of [x]
had a history of [x]
history of [x]
prior history of [x]
known history of [x]
documented history of [x]
[sub] [has|have] a history of [x]
[sub] had a history of [x]
[sub] [has|have] a prior history of [x]
[sub] had a prior history of [x]
[sub] [has|have] a known history of [x]
[sub] had a known history of [x]
[sub] [has|have] a documented history of [x]
[sub] had a documented history of [x]
previous [x]
prior [x]
previously underwent [x]
[sub] previously underwent [x]
status post [x]
[sub] [is|are|was|were] status post [x]
reports undergoing [x]
reported undergoing [x]
[sub] reports undergoing [x]
[sub] reported undergoing [x]
reports having undergone [x]
reported having undergone [x]
[sub] reports having undergone [x]
[sub] reported having undergone [x]
denies undergoing [x]
denied undergoing [x]
[sub] denies undergoing [x]
[sub] denied undergoing [x]
denies a history of [x]
denied a history of [x]
[sub] denies a history of [x]
[sub] denied a history of [x]

View File

@ -0,0 +1,379 @@
researching community resources for [x]
researched community resources for [x]
[sub] [is|are|was|were] researching community resources for [x]
[sub] researches community resources for [x]
[sub] researched community resources for [x]
creating an educational program about [x]
created an educational program about [x]
[sub] [is|are|was|were] creating an educational program about [x]
[sub] creates an educational program about [x]
[sub] created an educational program about [x]
organizing an awareness event for [x]
organized an awareness event for [x]
[sub] [is|are|was|were] organizing an awareness event for [x]
[sub] organizes an awareness event for [x]
[sub] organized an awareness event for [x]
reading a general article about [x]
read a general article about [x]
[sub] [is|are|was|were] reading a general article about [x]
[sub] reads a general article about [x]
[sub] read a general article about [x]
portraying [x] in a fictional screenplay
portrayed [x] in a fictional screenplay
[sub] [is|are|was|were] portraying [x] in a fictional screenplay
[sub] portrays [x] in a fictional screenplay
[sub] portrayed [x] in a fictional screenplay
researching [x]
researched [x]
[sub] [is|are|was|were] researching [x]
[sub] researches [x]
[sub] researched [x]
attending lectures about [x]
attends lectures about [x]
attended a lecture about [x]
[sub] [is|are|was|were] attending a lecture about [x]
[sub] attends lectures about [x]
[sub] attended a lecture about [x]
organizing [a|an] [x] awareness campaign
organizes [a|an] [x] awareness campaign
organized [a|an] [x] awareness campaign
[sub] [is|are|was|were] organizing [a|an] [x] awareness campaign
[sub] organizes [a|an] [x] awareness campaign
[sub] organized [a|an] [x] awareness campaign
reading a news report about [x]
reads a news report about [x]
read a news report about [x]
[sub] [is|are|was|were] reading a news report about [x]
[sub] reads a news report about [x]
[sub] read a news report about [x]
writing a fictional story involving [x]
writes a fictional story involving [x]
wrote a fictional story involving [x]
[sub] [is|are|was|were] writing a fictional story involving [x]
[sub] writes a fictional story involving [x]
[sub] wrote a fictional story involving [x]
donating to [x] research
donates to [x] research
donated to [x] research
[sub] [is|are|was|were] donating to [x] research
[sub] donates to [x] research
[sub] donated to [x] research
raising money for [x] research
raises money for [x] research
raised money for [x] research
[sub] [is|are|was|were] raising money for [x] research
[sub] raises money for [x] research
[sub] raised money for [x] research
attending fundraisers for [x] research
attends fundraisers for [x] research
attended a fundraiser for [x] research
[sub] [is|are|was|were] attending fundraisers for [x] research
[sub] attends fundraisers for [x] research
[sub] attended a fundraiser for [x] research
promoting [x] awareness
promotes [x] awareness
promoted [x] awareness
[sub] [is|are|was|were] promoting [x] awareness
[sub] promotes [x] awareness
[sub] promoted [x] awareness
involved with [x] research
[sub] [is|are|was|were] involved with [x] research
[sub] was involved with [x] research
studying [x]
studies [x]
studied [x]
[sub] [is|are|was|were] studying [x]
[sub] studies [x]
[sub] studied [x]
learning about [x]
learns about [x]
learned about [x]
[sub] [is|are|was|were] learning about [x]
[sub] learns about [x]
[sub] learned about [x]
creating educational material about [x]
creates educational material about [x]
created educational material about [x]
[sub] [is|are|was|were] creating educational material about [x]
[sub] creates educational material about [x]
[sub] created educational material about [x]
reviewing educational material about [x]
reviews educational material about [x]
reviewed educational material about [x]
[sub] [is|are|was|were] reviewing educational material about [x]
[sub] reviews educational material about [x]
[sub] reviewed educational material about [x]
completing professional training about [x]
completes professional training about [x]
completed professional training about [x]
[sub] [is|are|was|were] completing professional training about [x]
[sub] completes professional training about [x]
[sub] completed professional training about [x]
attending professional training about [x]
attends professional training about [x]
attended professional training about [x]
[sub] [is|are|was|were] attending professional training about [x]
[sub] attends professional training about [x]
[sub] attended professional training about [x]
preparing a presentation about [x]
prepares a presentation about [x]
prepared a presentation about [x]
[sub] [is|are|was|were] preparing a presentation about [x]
[sub] prepares a presentation about [x]
[sub] prepared a presentation about [x]
giving a presentation about [x]
gives a presentation about [x]
gave a presentation about [x]
[sub] [is|are|was|were] giving a presentation about [x]
[sub] gives a presentation about [x]
[sub] gave a presentation about [x]
participating in a discussion about [x]
participates in a discussion about [x]
participated in a discussion about [x]
[sub] [is|are|was|were] participating in a discussion about [x]
[sub] participates in a discussion about [x]
[sub] participated in a discussion about [x]
having a conversation about [x]
has a conversation about [x]
had a conversation about [x]
[sub] [is|are|was|were] having a conversation about [x]
[sub] has a conversation about [x]
[sub] had a conversation about [x]
attending a conference session about [x]
attends a conference session about [x]
attended a conference session about [x]
[sub] [is|are|was|were] attending a conference session about [x]
[sub] attends a conference session about [x]
[sub] attended a conference session about [x]
watching a documentary about [x]
watches a documentary about [x]
watched a documentary about [x]
[sub] [is|are|was|were] watching a documentary about [x]
[sub] watches a documentary about [x]
[sub] watched a documentary about [x]
listening to a podcast about [x]
listens to a podcast about [x]
listened to a podcast about [x]
[sub] [is|are|was|were] listening to a podcast about [x]
[sub] listens to a podcast about [x]
[sub] listened to a podcast about [x]
writing an article about [x]
writes an article about [x]
wrote an article about [x]
[sub] [is|are|was|were] writing an article about [x]
[sub] writes an article about [x]
[sub] wrote an article about [x]
reviewing a case study involving [x]
reviews a case study involving [x]
reviewed a case study involving [x]
[sub] [is|are|was|were] reviewing a case study involving [x]
[sub] reviews a case study involving [x]
[sub] reviewed a case study involving [x]
writing about a fictional character with [x]
writes about a fictional character with [x]
wrote about a fictional character with [x]
[sub] [is|are|was|were] writing about a fictional character with [x]
[sub] writes about a fictional character with [x]
[sub] wrote about a fictional character with [x]
supporting organizations researching [x]
supports organizations researching [x]
supported an organization researching [x]
[sub] [is|are|was|were] supporting organizations researching [x]
[sub] supports organizations researching [x]
[sub] supported an organization researching [x]
volunteering for [x] awareness
volunteers for [x] awareness
volunteered for [x] awareness
[sub] [is|are|was|were] volunteering for [x] awareness
[sub] volunteers for [x] awareness
[sub] volunteered for [x] awareness
advocating for more research into [x]
advocates for more research into [x]
advocated for more research into [x]
[sub] [is|are|was|were] advocating for more research into [x]
[sub] advocates for more research into [x]
[sub] advocated for more research into [x]
collecting donations for [x] research
collects donations for [x] research
collected donations for [x] research
[sub] [is|are|was|were] collecting donations for [x] research
[sub] collects donations for [x] research
[sub] collected donations for [x] research
developing training materials about [x]
develops training materials about [x]
developed training materials about [x]
[sub] [is|are|was|were] developing training materials about [x]
[sub] develops training materials about [x]
[sub] developed training materials about [x]
reviewing mental health literature about [x]
reviews mental health literature about [x]
reviewed mental health literature about [x]
[sub] [is|are|was|were] reviewing mental health literature about [x]
[sub] reviews mental health literature about [x]
[sub] reviewed mental health literature about [x]
teaching a class about [x]
teaches a class about [x]
taught a class about [x]
[sub] [is|are|was|were] teaching a class about [x]
[sub] teaches a class about [x]
[sub] taught a class about [x]
working with researchers studying [x]
works with researchers studying [x]
worked with researchers studying [x]
[sub] [is|are|was|were] working with researchers studying [x]
[sub] works with researchers studying [x]
[sub] worked with researchers studying [x]
requesting general information about [x]
requests general information about [x]
requested general information about [x]
[sub] [is|are|was|were] requesting general information about [x]
[sub] requests general information about [x]
[sub] requested general information about [x]
promoting public awareness of [x]
promotes public awareness of [x]
promoted public awareness of [x]
[sub] [is|are|was|were] promoting public awareness of [x]
[sub] promotes public awareness of [x]
[sub] promoted public awareness of [x]
researching support services for people with [x]
researches support services for people with [x]
researched support services for people with [x]
[sub] [is|are|was|were] researching support services for people with [x]
[sub] researches support services for people with [x]
[sub] researched support services for people with [x]
creating a directory of resources for [x]
creates a directory of resources for [x]
created a directory of resources for [x]
[sub] [is|are|was|were] creating a directory of resources for [x]
[sub] creates a directory of resources for [x]
[sub] created a directory of resources for [x]
sharing general resources about [x]
shares general resources about [x]
shared general resources about [x]
[sub] [is|are|was|were] sharing general resources about [x]
[sub] shares general resources about [x]
[sub] shared general resources about [x]
developing a public-information campaign about [x]
develops a public-information campaign about [x]
developed a public-information campaign about [x]
[sub] [is|are|was|were] developing a public-information campaign about [x]
[sub] develops a public-information campaign about [x]
[sub] developed a public-information campaign about [x]
planning a community event about [x]
plans a community event about [x]
planned a community event about [x]
[sub] [is|are|was|were] planning a community event about [x]
[sub] plans a community event about [x]
[sub] planned a community event about [x]
moderating a discussion about [x]
moderates a discussion about [x]
moderated a discussion about [x]
[sub] [is|are|was|were] moderating a discussion about [x]
[sub] moderates a discussion about [x]
[sub] moderated a discussion about [x]
interviewing an expert about [x]
interviews an expert about [x]
interviewed an expert about [x]
[sub] [is|are|was|were] interviewing an expert about [x]
[sub] interviews an expert about [x]
[sub] interviewed an expert about [x]
reporting on public policy related to [x]
reports on public policy related to [x]
reported on public policy related to [x]
[sub] [is|are|was|were] reporting on public policy related to [x]
[sub] reports on public policy related to [x]
[sub] reported on public policy related to [x]
reviewing public policy related to [x]
reviews public policy related to [x]
reviewed public policy related to [x]
[sub] [is|are|was|were] reviewing public policy related to [x]
[sub] reviews public policy related to [x]
[sub] reviewed public policy related to [x]
analyzing statistics about [x]
analyzes statistics about [x]
analyzed statistics about [x]
[sub] [is|are|was|were] analyzing statistics about [x]
[sub] analyzes statistics about [x]
[sub] analyzed statistics about [x]
collecting public data about [x]
collects public data about [x]
collected public data about [x]
[sub] [is|are|was|were] collecting public data about [x]
[sub] collects public data about [x]
[sub] collected public data about [x]
conducting a survey about public understanding of [x]
conducts a survey about public understanding of [x]
conducted a survey about public understanding of [x]
[sub] [is|are|was|were] conducting a survey about public understanding of [x]
[sub] conducts a survey about public understanding of [x]
[sub] conducted a survey about public understanding of [x]
designing informational materials about [x]
designs informational materials about [x]
designed informational materials about [x]
[sub] [is|are|was|were] designing informational materials about [x]
[sub] designs informational materials about [x]
[sub] designed informational materials about [x]
editing a documentary about [x]
edits a documentary about [x]
edited a documentary about [x]
[sub] [is|are|was|were] editing a documentary about [x]
[sub] edits a documentary about [x]
[sub] edited a documentary about [x]
producing a podcast episode about [x]
produces a podcast episode about [x]
produced a podcast episode about [x]
[sub] [is|are|was|were] producing a podcast episode about [x]
[sub] produces a podcast episode about [x]
[sub] produced a podcast episode about [x]
performing in a play involving [x]
performs in a play involving [x]
performed in a play involving [x]
[sub] [is|are|was|were] performing in a play involving [x]
[sub] performs in a play involving [x]
[sub] performed in a play involving [x]
acting as a fictional character with [x]
acted as a fictional character with [x]
[sub] [is|are|was|were] acting as a fictional character with [x]
[sub] acted as a fictional character with [x]
reading a novel featuring a character with [x]
reads a novel featuring a character with [x]
read a novel featuring a character with [x]
[sub] [is|are|was|were] reading a novel featuring a character with [x]
[sub] reads a novel featuring a character with [x]
[sub] read a novel featuring a character with [x]
writing a screenplay about a fictional person with [x]
writes a screenplay about a fictional person with [x]
wrote a screenplay about a fictional person with [x]
[sub] [is|are|was|were] writing a screenplay about a fictional person with [x]
[sub] writes a screenplay about a fictional person with [x]
[sub] wrote a screenplay about a fictional person with [x]
training staff to recognize signs of [x]
trains staff to recognize signs of [x]
trained staff to recognize signs of [x]
[sub] [is|are|was|were] training staff to recognize signs of [x]
[sub] trains staff to recognize signs of [x]
[sub] trained staff to recognize signs of [x]
developing workplace guidance about [x]
develops workplace guidance about [x]
developed workplace guidance about [x]
[sub] [is|are|was|were] developing workplace guidance about [x]
[sub] develops workplace guidance about [x]
[sub] developed workplace guidance about [x]
reviewing clinical guidelines for [x]
reviews clinical guidelines for [x]
reviewed clinical guidelines for [x]
[sub] [is|are|was|were] reviewing clinical guidelines for [x]
[sub] reviews clinical guidelines for [x]
[sub] reviewed clinical guidelines for [x]
studying treatment approaches for [x]
studies treatment approaches for [x]
studied treatment approaches for [x]
[sub] [is|are|was|were] studying treatment approaches for [x]
[sub] studies treatment approaches for [x]
[sub] studied treatment approaches for [x]
comparing research findings about [x]
compares research findings about [x]
compared research findings about [x]
[sub] [is|are|was|were] comparing research findings about [x]
[sub] compares research findings about [x]
[sub] compared research findings about [x]

View File

@ -0,0 +1,393 @@
uses [x]
used [x]
using [x]
[sub] uses [x]
[sub] used [x]
[sub] [is|are|was|were] using [x]
currently uses [x]
currently using [x]
[sub] currently uses [x]
[sub] [is|are|was|were] currently using [x]
reports using [x]
reported using [x]
reporting use of [x]
[sub] reports using [x]
[sub] reported using [x]
[sub] [is|are|was|were] reporting use of [x]
admits using [x]
admitted using [x]
admitting use of [x]
[sub] admits using [x]
[sub] admitted using [x]
[sub] [is|are|was|were] admitting use of [x]
acknowledges using [x]
acknowledged using [x]
[sub] acknowledges using [x]
[sub] acknowledged using [x]
substance use involving [x]
current use of [x]
recent use of [x]
ongoing use of [x]
previous use of [x]
past use of [x]
[sub] reports current use of [x]
[sub] reported recent use of [x]
[sub] reports ongoing use of [x]
[sub] reported previous use of [x]
has a history of using [x]
had a history of using [x]
history of [x] use
known history of [x] use
documented history of [x] use
prior history of [x] use
[sub] [has|have|had] a history of using [x]
[sub] [has|have|had] a history of [x] use
[sub] [has|have|had] a known history of [x] use
[sub] [has|have|had] a documented history of [x] use
previously used [x]
formerly used [x]
[sub] previously used [x]
[sub] formerly used [x]
tried [x]
has tried [x]
had tried [x]
[sub] tried [x]
[sub] [has|have] tried [x]
[sub] had tried [x]
experimented with [x]
experiments with [x]
experimenting with [x]
[sub] experimented with [x]
[sub] experiments with [x]
[sub] [is|are|was|were] experimenting with [x]
consumes [x]
consumed [x]
consuming [x]
[sub] consumes [x]
[sub] consumed [x]
[sub] [is|are|was|were] consuming [x]
drinks [x]
drank [x]
drinking [x]
[sub] drinks [x]
[sub] drank [x]
[sub] [is|are|was|were] drinking [x]
smokes [x]
smoked [x]
smoking [x]
[sub] smokes [x]
[sub] smoked [x]
[sub] [is|are|was|were] smoking [x]
vapes [x]
vaped [x]
vaping [x]
[sub] vapes [x]
[sub] vaped [x]
[sub] [is|are|was|were] vaping [x]
inhales [x]
inhaled [x]
inhaling [x]
[sub] inhales [x]
[sub] inhaled [x]
[sub] [is|are|was|were] inhaling [x]
injects [x]
injected [x]
injecting [x]
[sub] injects [x]
[sub] injected [x]
[sub] [is|are|was|were] injecting [x]
takes [x] recreationally
took [x] recreationally
taking [x] recreationally
[sub] takes [x] recreationally
[sub] took [x] recreationally
[sub] [is|are|was|were] taking [x] recreationally
uses [x] recreationally
used [x] recreationally
using [x] recreationally
[sub] uses [x] recreationally
[sub] used [x] recreationally
[sub] [is|are|was|were] using [x] recreationally
uses [x] socially
used [x] socially
using [x] socially
[sub] uses [x] socially
[sub] used [x] socially
[sub] [is|are|was|were] using [x] socially
uses [x] occasionally
used [x] occasionally
[sub] uses [x] occasionally
[sub] used [x] occasionally
uses [x] regularly
used [x] regularly
[sub] uses [x] regularly
[sub] used [x] regularly
uses [x] daily
used [x] daily
[sub] uses [x] daily
[sub] used [x] daily
uses [x] weekly
used [x] weekly
[sub] uses [x] weekly
[sub] used [x] weekly
frequent use of [x]
daily use of [x]
weekly use of [x]
occasional use of [x]
regular use of [x]
heavy use of [x]
[sub] reports frequent use of [x]
[sub] reports daily use of [x]
[sub] reported weekly use of [x]
[sub] reports occasional use of [x]
[sub] reported regular use of [x]
[sub] reports heavy use of [x]
increased use of [x]
decreased use of [x]
[sub] increased use of [x]
[sub] decreased use of [x]
using more [x]
using less [x]
[sub] [is|are|was|were] using more [x]
[sub] [is|are|was|were] using less [x]
cutting back on [x]
cut back on [x]
[sub] [is|are|was|were] cutting back on [x]
[sub] cut back on [x]
reduced use of [x]
reducing use of [x]
[sub] reduced use of [x]
[sub] [is|are|was|were] reducing use of [x]
misuses [x]
misused [x]
misusing [x]
[sub] misuses [x]
[sub] misused [x]
[sub] [is|are|was|were] misusing [x]
nonmedical use of [x]
recreational use of [x]
[sub] reports nonmedical use of [x]
[sub] reported recreational use of [x]
uses [x] without a prescription
used [x] without a prescription
[sub] uses [x] without a prescription
[sub] used [x] without a prescription
takes more [x] than directed
took more [x] than directed
[sub] takes more [x] than directed
[sub] took more [x] than directed
has difficulty controlling [x] use
had difficulty controlling [x] use
[sub] [has|have] difficulty controlling [x] use
[sub] had difficulty controlling [x] use
unable to control [x] use
was unable to control [x] use
[sub] [is|are|was|were] unable to control [x] use
problematic use of [x]
harmful use of [x]
compulsive use of [x]
[sub] reports problematic use of [x]
[sub] reported harmful use of [x]
[sub] reports compulsive use of [x]
dependent on [x]
was dependent on [x]
[sub] [is|are|was|were] dependent on [x]
dependence on [x]
history of dependence on [x]
[sub] [has|have|had] a history of dependence on [x]
addicted to [x]
was addicted to [x]
[sub] [is|are|was|were] addicted to [x]
addiction involving [x]
history of addiction involving [x]
[sub] [has|have|had] a history of addiction involving [x]
substance use disorder involving [x]
diagnosed with [x] use disorder
was diagnosed with [x] use disorder
[sub] [has|have] [a|an] [x] use disorder
[sub] had [a|an] [x] use disorder
[sub] was diagnosed with [a|an] [x] use disorder
intoxicated from [x]
was intoxicated from [x]
[sub] [is|are|was|were] intoxicated from [x]
under the influence of [x]
was under the influence of [x]
[sub] [is|are|was|were] under the influence of [x]
impairment from [x]
impaired by [x]
was impaired by [x]
[sub] [is|are|was|were] impaired by [x]
experienced intoxication from [x]
experiencing intoxication from [x]
[sub] experienced intoxication from [x]
[sub] [is|are|was|were] experiencing intoxication from [x]
withdrawal from [x]
experiences withdrawal from [x]
experienced withdrawal from [x]
experiencing withdrawal from [x]
[sub] experiences withdrawal from [x]
[sub] experienced withdrawal from [x]
[sub] [is|are|was|were] experiencing withdrawal from [x]
withdrawal symptoms from [x]
[sub] reports withdrawal symptoms from [x]
[sub] reported withdrawal symptoms from [x]
[sub] [is|are|was|were] experiencing withdrawal symptoms from [x]
cravings for [x]
has cravings for [x]
had cravings for [x]
experiences cravings for [x]
experienced cravings for [x]
[sub] [has|have] cravings for [x]
[sub] had cravings for [x]
[sub] experiences cravings for [x]
[sub] experienced cravings for [x]
[sub] [is|are|was|were] experiencing cravings for [x]
tolerance to [x]
developed tolerance to [x]
[sub] [has|have] a tolerance to [x]
[sub] had a tolerance to [x]
[sub] developed a tolerance to [x]
needs more [x] to get the same effect
needed more [x] to get the same effect
[sub] needs more [x] to get the same effect
[sub] needed more [x] to get the same effect
overdosed on [x]
overdose involving [x]
experienced an overdose involving [x]
[sub] overdosed on [x]
[sub] experienced an overdose involving [x]
recovering from an overdose involving [x]
[sub] [is|are|was|were] recovering from an overdose involving [x]
hospitalized after using [x]
was hospitalized after using [x]
[sub] [is|are|was|were] hospitalized after using [x]
received emergency care after using [x]
[sub] received emergency care after using [x]
tested positive for [x]
[sub] tested positive for [x]
positive screening result for [x]
[sub] received a positive screening result for [x]
screened positive for [x] use
[sub] screened positive for [x] use
tested negative for [x]
[sub] tested negative for [x]
negative screening result for [x]
[sub] received a negative screening result for [x]
screened negative for [x] use
[sub] screened negative for [x] use
denies using [x]
denied using [x]
[sub] denies using [x]
[sub] denied using [x]
denies current use of [x]
denied current use of [x]
[sub] denies current use of [x]
[sub] denied current use of [x]
denies past use of [x]
denied past use of [x]
[sub] denies past use of [x]
[sub] denied past use of [x]
reports no use of [x]
reported no use of [x]
[sub] reports no use of [x]
[sub] reported no use of [x]
has never used [x]
had never used [x]
[sub] [has|have] never used [x]
[sub] had never used [x]
stopped using [x]
stops using [x]
stopping use of [x]
[sub] stopped using [x]
[sub] stops using [x]
[sub] [is|are|was|were] stopping use of [x]
quit using [x]
quits using [x]
quitting [x]
[sub] quit using [x]
[sub] quits using [x]
[sub] [is|are|was|were] quitting [x]
no longer uses [x]
no longer using [x]
[sub] no longer uses [x]
[sub] [is|are|was|were] no longer using [x]
abstains from [x]
abstained from [x]
abstaining from [x]
[sub] abstains from [x]
[sub] abstained from [x]
[sub] [is|are|was|were] abstaining from [x]
avoids [x]
avoided [x]
[sub] avoids [x]
[sub] avoided [x]
sober from [x]
has remained sober from [x]
[sub] [is|are|was|were] sober from [x]
[sub] [has|have] remained sober from [x]
in recovery from [x] use
was in recovery from [x] use
[sub] [is|are|was|were] in recovery from [x] use
recovering from [x] use
recovered from [x] use
[sub] [is|are|was|were] recovering from [x] use
[sub] recovered from [x] use
seeks help for [x] use
sought help for [x] use
seeking help for [x] use
[sub] seeks help for [x] use
[sub] sought help for [x] use
[sub] [is|are|was|were] seeking help for [x] use
receives treatment for [x] use
received treatment for [x] use
receiving treatment for [x] use
[sub] receives treatment for [x] use
[sub] received treatment for [x] use
[sub] [is|are|was|were] receiving treatment for [x] use
in treatment for [x] use
was in treatment for [x] use
[sub] [is|are|was|were] in treatment for [x] use
entered treatment for [x] use
enters treatment for [x] use
[sub] entered treatment for [x] use
[sub] enters treatment for [x] use
completed treatment for [x] use
completes treatment for [x] use
[sub] completed treatment for [x] use
[sub] completes treatment for [x] use
attends counseling for [x] use
attended counseling for [x] use
attending counseling for [x] use
[sub] attends counseling for [x] use
[sub] attended counseling for [x] use
[sub] [is|are|was|were] attending counseling for [x] use
attends a recovery program for [x] use
attended a recovery program for [x] use
[sub] attends a recovery program for [x] use
[sub] attended a recovery program for [x] use
receives support for [x] use
received support for [x] use
receiving support for [x] use
[sub] receives support for [x] use
[sub] received support for [x] use
[sub] [is|are|was|were] receiving support for [x] use
relapsed on [x]
relapse involving [x]
experienced a relapse involving [x]
[sub] relapsed on [x]
[sub] experienced a relapse involving [x]
[sub] [is|are|was|were] experiencing a relapse involving [x]
returned to using [x]
resumed using [x]
[sub] returned to using [x]
[sub] resumed using [x]
at risk of relapse involving [x]
[sub] [is|are|was|were] at risk of relapse involving [x]
maintains abstinence from [x]
maintained abstinence from [x]
[sub] maintains abstinence from [x]
[sub] maintained abstinence from [x]
reports continued abstinence from [x]
reported continued abstinence from [x]
[sub] reports continued abstinence from [x]
[sub] reported continued abstinence from [x]

View File

@ -0,0 +1,432 @@
researching [x]
researches [x]
researched [x]
[sub] [is|are|was|were] researching [x]
[sub] researches [x]
[sub] researched [x]
researching causes of [x]
researches causes of [x]
researched causes of [x]
[sub] [is|are|was|were] researching causes of [x]
[sub] researches causes of [x]
[sub] researched causes of [x]
researching treatments for [x]
researches treatments for [x]
researched treatments for [x]
[sub] [is|are|was|were] researching treatments for [x]
[sub] researches treatments for [x]
[sub] researched treatments for [x]
researching how [x] is evaluated
researches how [x] is evaluated
researched how [x] is evaluated
[sub] [is|are|was|were] researching how [x] is evaluated
[sub] researches how [x] is evaluated
[sub] researched how [x] is evaluated
studying [x]
studies [x]
studied [x]
[sub] [is|are|was|were] studying [x]
[sub] studies [x]
[sub] studied [x]
studying patterns of [x]
studies patterns of [x]
studied patterns of [x]
[sub] [is|are|was|were] studying patterns of [x]
[sub] studies patterns of [x]
[sub] studied patterns of [x]
studying risk factors associated with [x]
studies risk factors associated with [x]
studied risk factors associated with [x]
[sub] [is|are|was|were] studying risk factors associated with [x]
[sub] studies risk factors associated with [x]
[sub] studied risk factors associated with [x]
learning about [x]
learns about [x]
learned about [x]
[sub] [is|are|was|were] learning about [x]
[sub] learns about [x]
[sub] learned about [x]
learning how to recognize [x]
learns how to recognize [x]
learned how to recognize [x]
[sub] [is|are|was|were] learning how to recognize [x]
[sub] learns how to recognize [x]
[sub] learned how to recognize [x]
reading general information about [x]
reads general information about [x]
read general information about [x]
[sub] [is|are|was|were] reading general information about [x]
[sub] reads general information about [x]
[sub] read general information about [x]
reading an article about [x]
reads an article about [x]
read an article about [x]
[sub] [is|are|was|were] reading an article about [x]
[sub] reads an article about [x]
[sub] read an article about [x]
reading a news report about [x]
reads a news report about [x]
read a news report about [x]
[sub] [is|are|was|were] reading a news report about [x]
[sub] reads a news report about [x]
[sub] read a news report about [x]
reviewing educational material about [x]
reviews educational material about [x]
reviewed educational material about [x]
[sub] [is|are|was|were] reviewing educational material about [x]
[sub] reviews educational material about [x]
[sub] reviewed educational material about [x]
reviewing medical literature about [x]
reviews medical literature about [x]
reviewed medical literature about [x]
[sub] [is|are|was|were] reviewing medical literature about [x]
[sub] reviews medical literature about [x]
[sub] reviewed medical literature about [x]
reviewing research findings about [x]
reviews research findings about [x]
reviewed research findings about [x]
[sub] [is|are|was|were] reviewing research findings about [x]
[sub] reviews research findings about [x]
[sub] reviewed research findings about [x]
reviewing clinical guidelines related to [x]
reviews clinical guidelines related to [x]
reviewed clinical guidelines related to [x]
[sub] [is|are|was|were] reviewing clinical guidelines related to [x]
[sub] reviews clinical guidelines related to [x]
[sub] reviewed clinical guidelines related to [x]
reviewing a case study involving [x]
reviews a case study involving [x]
reviewed a case study involving [x]
[sub] [is|are|was|were] reviewing a case study involving [x]
[sub] reviews a case study involving [x]
[sub] reviewed a case study involving [x]
reviewing a fictional case involving [x]
reviews a fictional case involving [x]
reviewed a fictional case involving [x]
[sub] [is|are|was|were] reviewing a fictional case involving [x]
[sub] reviews a fictional case involving [x]
[sub] reviewed a fictional case involving [x]
preparing educational material about [x]
prepares educational material about [x]
prepared educational material about [x]
[sub] [is|are|was|were] preparing educational material about [x]
[sub] prepares educational material about [x]
[sub] prepared educational material about [x]
creating an educational guide about [x]
creates an educational guide about [x]
created an educational guide about [x]
[sub] [is|are|was|were] creating an educational guide about [x]
[sub] creates an educational guide about [x]
[sub] created an educational guide about [x]
developing training materials about [x]
develops training materials about [x]
developed training materials about [x]
[sub] [is|are|was|were] developing training materials about [x]
[sub] develops training materials about [x]
[sub] developed training materials about [x]
creating a presentation about [x]
creates a presentation about [x]
created a presentation about [x]
[sub] [is|are|was|were] creating a presentation about [x]
[sub] creates a presentation about [x]
[sub] created a presentation about [x]
preparing a presentation about [x]
prepares a presentation about [x]
prepared a presentation about [x]
[sub] [is|are|was|were] preparing a presentation about [x]
[sub] prepares a presentation about [x]
[sub] prepared a presentation about [x]
giving a presentation about [x]
gives a presentation about [x]
gave a presentation about [x]
[sub] [is|are|was|were] giving a presentation about [x]
[sub] gives a presentation about [x]
[sub] gave a presentation about [x]
teaching a class about [x]
teaches a class about [x]
taught a class about [x]
[sub] [is|are|was|were] teaching a class about [x]
[sub] teaches a class about [x]
[sub] taught a class about [x]
teaching students how to recognize [x]
teaches students how to recognize [x]
taught students how to recognize [x]
[sub] [is|are|was|were] teaching students how to recognize [x]
[sub] teaches students how to recognize [x]
[sub] taught students how to recognize [x]
training staff to recognize [x]
trains staff to recognize [x]
trained staff to recognize [x]
[sub] [is|are|was|were] training staff to recognize [x]
[sub] trains staff to recognize [x]
[sub] trained staff to recognize [x]
training staff to document [x]
trains staff to document [x]
trained staff to document [x]
[sub] [is|are|was|were] training staff to document [x]
[sub] trains staff to document [x]
[sub] trained staff to document [x]
attending a lecture about [x]
attends lectures about [x]
attended a lecture about [x]
[sub] [is|are|was|were] attending a lecture about [x]
[sub] attends lectures about [x]
[sub] attended a lecture about [x]
attending a professional seminar about [x]
attends professional seminars about [x]
attended a professional seminar about [x]
[sub] [is|are|was|were] attending a professional seminar about [x]
[sub] attends professional seminars about [x]
[sub] attended a professional seminar about [x]
attending a conference session about [x]
attends conference sessions about [x]
attended a conference session about [x]
[sub] [is|are|was|were] attending a conference session about [x]
[sub] attends conference sessions about [x]
[sub] attended a conference session about [x]
completing professional training about [x]
completes professional training about [x]
completed professional training about [x]
[sub] [is|are|was|were] completing professional training about [x]
[sub] completes professional training about [x]
[sub] completed professional training about [x]
observing a training demonstration involving [x]
observes a training demonstration involving [x]
observed a training demonstration involving [x]
[sub] [is|are|was|were] observing a training demonstration involving [x]
[sub] observes a training demonstration involving [x]
[sub] observed a training demonstration involving [x]
watching a training video about [x]
watches a training video about [x]
watched a training video about [x]
[sub] [is|are|was|were] watching a training video about [x]
[sub] watches a training video about [x]
[sub] watched a training video about [x]
watching a documentary about [x]
watches a documentary about [x]
watched a documentary about [x]
[sub] [is|are|was|were] watching a documentary about [x]
[sub] watches a documentary about [x]
[sub] watched a documentary about [x]
listening to a podcast about [x]
listens to a podcast about [x]
listened to a podcast about [x]
[sub] [is|are|was|were] listening to a podcast about [x]
[sub] listens to a podcast about [x]
[sub] listened to a podcast about [x]
writing an article about [x]
writes an article about [x]
wrote an article about [x]
[sub] [is|are|was|were] writing an article about [x]
[sub] writes an article about [x]
[sub] wrote an article about [x]
writing a news report about [x]
writes a news report about [x]
wrote a news report about [x]
[sub] [is|are|was|were] writing a news report about [x]
[sub] writes a news report about [x]
[sub] wrote a news report about [x]
writing a fictional story involving [x]
writes a fictional story involving [x]
wrote a fictional story involving [x]
[sub] [is|are|was|were] writing a fictional story involving [x]
[sub] writes a fictional story involving [x]
[sub] wrote a fictional story involving [x]
writing a fictional screenplay involving [x]
writes a fictional screenplay involving [x]
wrote a fictional screenplay involving [x]
[sub] [is|are|was|were] writing a fictional screenplay involving [x]
[sub] writes a fictional screenplay involving [x]
[sub] wrote a fictional screenplay involving [x]
writing about a fictional character experiencing [x]
writes about a fictional character experiencing [x]
wrote about a fictional character experiencing [x]
[sub] [is|are|was|were] writing about a fictional character experiencing [x]
[sub] writes about a fictional character experiencing [x]
[sub] wrote about a fictional character experiencing [x]
portraying a fictional character with [x]
portrays a fictional character with [x]
portrayed a fictional character with [x]
[sub] [is|are|was|were] portraying a fictional character with [x]
[sub] portrays a fictional character with [x]
[sub] portrayed a fictional character with [x]
performing in a play involving [x]
performs in a play involving [x]
performed in a play involving [x]
[sub] [is|are|was|were] performing in a play involving [x]
[sub] performs in a play involving [x]
[sub] performed in a play involving [x]
discussing [x] during professional training
discusses [x] during professional training
discussed [x] during professional training
[sub] [is|are|was|were] discussing [x] during professional training
[sub] discusses [x] during professional training
[sub] discussed [x] during professional training
participating in a general discussion about [x]
participates in a general discussion about [x]
participated in a general discussion about [x]
[sub] [is|are|was|were] participating in a general discussion about [x]
[sub] participates in a general discussion about [x]
[sub] participated in a general discussion about [x]
having a general conversation about [x]
has a general conversation about [x]
had a general conversation about [x]
[sub] [is|are|was|were] having a general conversation about [x]
[sub] has a general conversation about [x]
[sub] had a general conversation about [x]
interviewing an expert about [x]
interviews an expert about [x]
interviewed an expert about [x]
[sub] [is|are|was|were] interviewing an expert about [x]
[sub] interviews an expert about [x]
[sub] interviewed an expert about [x]
asking a general question about [x]
asks a general question about [x]
asked a general question about [x]
[sub] [is|are|was|were] asking a general question about [x]
[sub] asks a general question about [x]
[sub] asked a general question about [x]
requesting general information about [x]
requests general information about [x]
requested general information about [x]
[sub] [is|are|was|were] requesting general information about [x]
[sub] requests general information about [x]
[sub] requested general information about [x]
researching community resources related to [x]
researches community resources related to [x]
researched community resources related to [x]
[sub] [is|are|was|were] researching community resources related to [x]
[sub] researches community resources related to [x]
[sub] researched community resources related to [x]
creating a directory of resources related to [x]
creates a directory of resources related to [x]
created a directory of resources related to [x]
[sub] [is|are|was|were] creating a directory of resources related to [x]
[sub] creates a directory of resources related to [x]
[sub] created a directory of resources related to [x]
sharing educational resources about [x]
shares educational resources about [x]
shared educational resources about [x]
[sub] [is|are|was|were] sharing educational resources about [x]
[sub] shares educational resources about [x]
[sub] shared educational resources about [x]
organizing an awareness event about [x]
organizes an awareness event about [x]
organized an awareness event about [x]
[sub] [is|are|was|were] organizing an awareness event about [x]
[sub] organizes an awareness event about [x]
[sub] organized an awareness event about [x]
promoting public awareness of [x]
promotes public awareness of [x]
promoted public awareness of [x]
[sub] [is|are|was|were] promoting public awareness of [x]
[sub] promotes public awareness of [x]
[sub] promoted public awareness of [x]
developing a public-information campaign about [x]
develops a public-information campaign about [x]
developed a public-information campaign about [x]
[sub] [is|are|was|were] developing a public-information campaign about [x]
[sub] develops a public-information campaign about [x]
[sub] developed a public-information campaign about [x]
advocating for more research into [x]
advocates for more research into [x]
advocated for more research into [x]
[sub] [is|are|was|were] advocating for more research into [x]
[sub] advocates for more research into [x]
[sub] advocated for more research into [x]
supporting organizations researching [x]
supports organizations researching [x]
supported organizations researching [x]
[sub] [is|are|was|were] supporting organizations researching [x]
[sub] supports organizations researching [x]
[sub] supported organizations researching [x]
raising money for research involving [x]
raises money for research involving [x]
raised money for research involving [x]
[sub] [is|are|was|were] raising money for research involving [x]
[sub] raises money for research involving [x]
[sub] raised money for research involving [x]
collecting donations for [x] research
collects donations for [x] research
collected donations for [x] research
[sub] [is|are|was|were] collecting donations for [x] research
[sub] collects donations for [x] research
[sub] collected donations for [x] research
volunteering at an awareness event about [x]
volunteers at awareness events about [x]
volunteered at an awareness event about [x]
[sub] [is|are|was|were] volunteering at an awareness event about [x]
[sub] volunteers at awareness events about [x]
[sub] volunteered at an awareness event about [x]
working with researchers studying [x]
works with researchers studying [x]
worked with researchers studying [x]
[sub] [is|are|was|were] working with researchers studying [x]
[sub] works with researchers studying [x]
[sub] worked with researchers studying [x]
analyzing statistics about [x]
analyzes statistics about [x]
analyzed statistics about [x]
[sub] [is|are|was|were] analyzing statistics about [x]
[sub] analyzes statistics about [x]
[sub] analyzed statistics about [x]
analyzing population trends involving [x]
analyzes population trends involving [x]
analyzed population trends involving [x]
[sub] [is|are|was|were] analyzing population trends involving [x]
[sub] analyzes population trends involving [x]
[sub] analyzed population trends involving [x]
collecting public data about [x]
collects public data about [x]
collected public data about [x]
[sub] [is|are|was|were] collecting public data about [x]
[sub] collects public data about [x]
[sub] collected public data about [x]
conducting a survey about public awareness of [x]
conducts a survey about public awareness of [x]
conducted a survey about public awareness of [x]
[sub] [is|are|was|were] conducting a survey about public awareness of [x]
[sub] conducts a survey about public awareness of [x]
[sub] conducted a survey about public awareness of [x]
comparing research findings about [x]
compares research findings about [x]
compared research findings about [x]
[sub] [is|are|was|were] comparing research findings about [x]
[sub] compares research findings about [x]
[sub] compared research findings about [x]
developing a symptom-tracking application that includes [x]
develops a symptom-tracking application that includes [x]
developed a symptom-tracking application that includes [x]
[sub] [is|are|was|were] developing a symptom-tracking application that includes [x]
[sub] develops a symptom-tracking application that includes [x]
[sub] developed a symptom-tracking application that includes [x]
designing a questionnaire that asks about [x]
designs a questionnaire that asks about [x]
designed a questionnaire that asks about [x]
[sub] [is|are|was|were] designing a questionnaire that asks about [x]
[sub] designs a questionnaire that asks about [x]
[sub] designed a questionnaire that asks about [x]
testing software that records [x]
tests software that records [x]
tested software that records [x]
[sub] [is|are|was|were] testing software that records [x]
[sub] tests software that records [x]
[sub] tested software that records [x]
creating sample documentation containing [x]
creates sample documentation containing [x]
created sample documentation containing [x]
[sub] [is|are|was|were] creating sample documentation containing [x]
[sub] creates sample documentation containing [x]
[sub] created sample documentation containing [x]
reviewing synthetic records containing [x]
reviews synthetic records containing [x]
reviewed synthetic records containing [x]
[sub] [is|are|was|were] reviewing synthetic records containing [x]
[sub] reviews synthetic records containing [x]
[sub] reviewed synthetic records containing [x]
using [x] as an example in training
uses [x] as an example in training
used [x] as an example in training
[sub] [is|are|was|were] using [x] as an example in training
[sub] uses [x] as an example in training
[sub] used [x] as an example in training

View File

@ -0,0 +1,401 @@
[x]
has [x]
had [x]
[sub] [has|have|had] [x]
experiences [x]
experienced [x]
experiencing [x]
[sub] experiences [x]
[sub] experienced [x]
[sub] [is|are|was|were] experiencing [x]
reports [x]
reported [x]
reporting [x]
[sub] reports [x]
[sub] reported [x]
[sub] [is|are|was|were] reporting [x]
reports having [x]
reported having [x]
[sub] reports having [x]
[sub] reported having [x]
complains of [x]
complained of [x]
complaining of [x]
[sub] complains of [x]
[sub] complained of [x]
[sub] [is|are|was|were] complaining of [x]
presents with [x]
presented with [x]
presenting with [x]
[sub] presents with [x]
[sub] presented with [x]
[sub] [is|are|was|were] presenting with [x]
suffers from [x]
suffered from [x]
suffering from [x]
[sub] suffers from [x]
[sub] suffered from [x]
[sub] [is|are|was|were] suffering from [x]
struggles with [x]
struggled with [x]
struggling with [x]
[sub] struggles with [x]
[sub] struggled with [x]
[sub] [is|are|was|were] struggling with [x]
affected by [x]
was affected by [x]
[sub] [is|are|was|were] affected by [x]
bothered by [x]
was bothered by [x]
[sub] [is|are|was|were] bothered by [x]
notices [x]
noticed [x]
noticing [x]
[sub] notices [x]
[sub] noticed [x]
[sub] [is|are|was|were] noticing [x]
feels [x]
felt [x]
feeling [x]
[sub] feels [x]
[sub] felt [x]
[sub] [is|are|was|were] feeling [x]
describes [x]
described [x]
describing [x]
[sub] describes [x]
[sub] described [x]
[sub] [is|are|was|were] describing [x]
mentions [x]
mentioned [x]
mentioning [x]
[sub] mentions [x]
[sub] mentioned [x]
[sub] [is|are|was|were] mentioning [x]
symptom of [x]
symptoms include [x]
current symptom of [x]
current symptoms include [x]
[sub] reports a symptom of [x]
[sub] reported a symptom of [x]
[sub] reports symptoms including [x]
[sub] reported symptoms including [x]
signs of [x]
showing signs of [x]
showed signs of [x]
[sub] shows signs of [x]
[sub] showed signs of [x]
[sub] [is|are|was|were] showing signs of [x]
develops [x]
developed [x]
developing [x]
[sub] develops [x]
[sub] developed [x]
[sub] [is|are|was|were] developing [x]
started having [x]
starts having [x]
starting to have [x]
[sub] started having [x]
[sub] starts having [x]
[sub] [is|are|was|were] starting to have [x]
began experiencing [x]
begins experiencing [x]
[sub] began experiencing [x]
[sub] begins experiencing [x]
onset of [x]
recent onset of [x]
sudden onset of [x]
gradual onset of [x]
[sub] reports the onset of [x]
[sub] reported the onset of [x]
[sub] reports a recent onset of [x]
[sub] reported a sudden onset of [x]
new [x]
newly developed [x]
recently developed [x]
[sub] [has|have] new [x]
[sub] had new [x]
[sub] recently developed [x]
current [x]
ongoing [x]
active [x]
persistent [x]
chronic [x]
long-standing [x]
[sub] [has|have] current [x]
[sub] had ongoing [x]
[sub] [has|have] persistent [x]
[sub] [has|have] chronic [x]
[sub] had long-standing [x]
recent [x]
recently experienced [x]
[sub] recently experienced [x]
history of [x]
known history of [x]
documented history of [x]
prior history of [x]
[sub] [has|have|had] a history of [x]
[sub] [has|have|had] a known history of [x]
[sub] [has|have|had] a documented history of [x]
[sub] [has|have|had] a prior history of [x]
previously experienced [x]
previously reported [x]
[sub] previously experienced [x]
[sub] previously reported [x]
intermittent [x]
occasional [x]
frequent [x]
recurrent [x]
constant [x]
continuous [x]
[sub] reports intermittent [x]
[sub] reported occasional [x]
[sub] reports frequent [x]
[sub] reported recurrent [x]
[sub] reports constant [x]
episodes of [x]
episode of [x]
repeated episodes of [x]
frequent episodes of [x]
[sub] reports episodes of [x]
[sub] reported an episode of [x]
[sub] reports repeated episodes of [x]
[sub] reported frequent episodes of [x]
experiences episodes of [x]
experienced an episode of [x]
[sub] experiences episodes of [x]
[sub] experienced an episode of [x]
mild [x]
moderate [x]
severe [x]
[sub] reports mild [x]
[sub] reported moderate [x]
[sub] reports severe [x]
[sub] describes [x] as mild
[sub] described [x] as moderate
[sub] describes [x] as severe
worsening [x]
worsened [x]
[x] is worsening
[x] worsened
[sub] reports worsening [x]
[sub] reported worsening [x]
[sub] reports that [x] is worsening
[sub] reported that [x] worsened
increased [x]
increasing [x]
[sub] reports increased [x]
[sub] reported increased [x]
[sub] [is|are|was|were] experiencing increasing [x]
more frequent [x]
more severe [x]
[sub] reports more frequent [x]
[sub] reported more severe [x]
improving [x]
improved [x]
[x] is improving
[x] improved
[sub] reports improving [x]
[sub] reported improving [x]
[sub] reports that [x] is improving
[sub] reported that [x] improved
decreased [x]
decreasing [x]
[sub] reports decreased [x]
[sub] reported decreased [x]
less frequent [x]
less severe [x]
[sub] reports less frequent [x]
[sub] reported less severe [x]
stable [x]
unchanged [x]
[x] remains stable
[x] remained stable
[sub] reports stable [x]
[sub] reported unchanged [x]
[sub] reports that [x] remains stable
[sub] reported that [x] remained stable
resolved [x]
[x] resolved
[x] has resolved
[sub] reports resolved [x]
[sub] reported that [x] resolved
[sub] reports that [x] has resolved
no longer experiencing [x]
stopped experiencing [x]
[sub] [is|are|was|were] no longer experiencing [x]
[sub] stopped experiencing [x]
[x] has not resolved
unresolved [x]
persistent despite care for [x]
[sub] reports that [x] has not resolved
[sub] reported unresolved [x]
[sub] reports persistent [x]
continues to experience [x]
continued to experience [x]
[sub] continues to experience [x]
[sub] continued to experience [x]
[x] returned
return of [x]
recurrent return of [x]
[sub] reports that [x] returned
[sub] reported the return of [x]
[sub] [is|are|was|were] experiencing the return of [x]
[x] comes and goes
[sub] reports that [x] comes and goes
[sub] reported that [x] came and went
daily [x]
nightly [x]
morning [x]
evening [x]
[sub] reports daily [x]
[sub] reported nightly [x]
[sub] experiences [x] in the morning
[sub] experienced [x] in the evening
[x] after eating
[x] after exercise
[x] after activity
[x] at rest
[x] during sleep
[x] upon waking
[sub] experiences [x] after eating
[sub] experienced [x] after exercise
[sub] experiences [x] after activity
[sub] experienced [x] at rest
[sub] experiences [x] during sleep
[sub] experienced [x] upon waking
[x] with activity
[x] during physical activity
[x] during exertion
[sub] experiences [x] with activity
[sub] experienced [x] during physical activity
[sub] experiences [x] during exertion
[x] triggered by activity
[sub] reports [x] triggered by activity
[sub] reported [x] triggered by activity
[x] worsened by activity
[sub] reports [x] worsened by activity
[sub] reported [x] worsened by activity
[x] worsened by movement
[sub] reports [x] worsened by movement
[sub] reported [x] worsened by movement
[x] worsened by eating
[sub] reports [x] worsened by eating
[sub] reported [x] worsened by eating
[x] relieved by rest
[sub] reports [x] relieved by rest
[sub] reported [x] relieved by rest
[x] improves with rest
[sub] reports that [x] improves with rest
[sub] reported that [x] improved with rest
affects daily activities because of [x]
[sub] reports difficulty with daily activities because of [x]
[sub] reported difficulty with daily activities because of [x]
[x] interferes with daily activities
[x] interfered with daily activities
[sub] reports that [x] interferes with daily activities
[sub] reported that [x] interfered with daily activities
[x] affects sleep
[x] affected sleep
[sub] reports that [x] affects sleep
[sub] reported that [x] affected sleep
unable to sleep because of [x]
[sub] [is|are|was|were] unable to sleep because of [x]
[x] affects work
[x] affected work
[sub] reports that [x] affects work
[sub] reported that [x] affected work
missed work because of [x]
[sub] missed work because of [x]
[x] limits activity
[x] limited activity
[sub] reports that [x] limits activity
[sub] reported that [x] limited activity
avoids activity because of [x]
avoided activity because of [x]
[sub] avoids activity because of [x]
[sub] avoided activity because of [x]
seeks care for [x]
sought care for [x]
seeking care for [x]
[sub] seeks care for [x]
[sub] sought care for [x]
[sub] [is|are|was|were] seeking care for [x]
seen for [x]
was seen for [x]
[sub] [is|are|was|were] seen for [x]
evaluated for [x]
being evaluated for [x]
[sub] [is|are|was|were] evaluated for [x]
[sub] [is|are|was|were] being evaluated for [x]
undergoing evaluation for [x]
[sub] [is|are|was|were] undergoing evaluation for [x]
monitoring [x]
monitors [x]
monitored [x]
[sub] [is|are|was|were] monitoring [x]
[sub] monitors [x]
[sub] monitored [x]
being monitored for [x]
was monitored for [x]
[sub] [is|are|was|were] being monitored for [x]
[sub] [is|are|was|were] monitored for [x]
receives care for [x]
received care for [x]
receiving care for [x]
[sub] receives care for [x]
[sub] received care for [x]
[sub] [is|are|was|were] receiving care for [x]
receives treatment for [x]
received treatment for [x]
receiving treatment for [x]
[sub] receives treatment for [x]
[sub] received treatment for [x]
[sub] [is|are|was|were] receiving treatment for [x]
manages [x]
managed [x]
managing [x]
[sub] manages [x]
[sub] managed [x]
[sub] [is|are|was|were] managing [x]
using supportive care for [x]
used supportive care for [x]
[sub] [is|are|was|were] using supportive care for [x]
[sub] used supportive care for [x]
hospitalized because of [x]
was hospitalized because of [x]
[sub] [is|are|was|were] hospitalized because of [x]
went to urgent care for [x]
goes to urgent care for [x]
going to urgent care for [x]
[sub] went to urgent care for [x]
[sub] goes to urgent care for [x]
[sub] [is|are|was|were] going to urgent care for [x]
went to the emergency department for [x]
[sub] went to the emergency department for [x]
denies [x]
denied [x]
denying [x]
[sub] denies [x]
[sub] denied [x]
[sub] [is|are|was|were] denying [x]
denies having [x]
denied having [x]
[sub] denies having [x]
[sub] denied having [x]
denies current [x]
denied current [x]
[sub] denies current [x]
[sub] denied current [x]
denies symptoms of [x]
denied symptoms of [x]
[sub] denies symptoms of [x]
[sub] denied symptoms of [x]
no [x]
without [x]
[sub] reports no [x]
[sub] reported no [x]
[sub] [is|are|was|were] without [x]
negative for [x]
[sub] tested negative for [x]
[sub] screened negative for [x]

View File

@ -0,0 +1,324 @@
researching [x]
researches [x]
researched [x]
[sub] [is|are|was|were] researching [x]
[sub] researches [x]
[sub] researched [x]
learning about [x]
learns about [x]
learned about [x]
[sub] [is|are|was|were] learning about [x]
[sub] learns about [x]
[sub] learned about [x]
studying [x]
studies [x]
studied [x]
[sub] [is|are|was|were] studying [x]
[sub] studies [x]
[sub] studied [x]
reviewing general information about [x]
reviews general information about [x]
reviewed general information about [x]
[sub] [is|are|was|were] reviewing general information about [x]
[sub] reviews general information about [x]
[sub] reviewed general information about [x]
reviewing educational material about [x]
reviews educational material about [x]
reviewed educational material about [x]
[sub] [is|are|was|were] reviewing educational material about [x]
[sub] reviews educational material about [x]
[sub] reviewed educational material about [x]
reviewing medical literature about [x]
reviews medical literature about [x]
reviewed medical literature about [x]
[sub] [is|are|was|were] reviewing medical literature about [x]
[sub] reviews medical literature about [x]
[sub] reviewed medical literature about [x]
reviewing published research about [x]
reviews published research about [x]
reviewed published research about [x]
[sub] [is|are|was|were] reviewing published research about [x]
[sub] reviews published research about [x]
[sub] reviewed published research about [x]
reviewing clinical guidelines related to [x]
reviews clinical guidelines related to [x]
reviewed clinical guidelines related to [x]
[sub] [is|are|was|were] reviewing clinical guidelines related to [x]
[sub] reviews clinical guidelines related to [x]
[sub] reviewed clinical guidelines related to [x]
reviewing how [x] is used in healthcare
reviews how [x] is used in healthcare
reviewed how [x] is used in healthcare
[sub] [is|are|was|were] reviewing how [x] is used in healthcare
[sub] reviews how [x] is used in healthcare
[sub] reviewed how [x] is used in healthcare
reviewing how [x] is interpreted
reviews how [x] is interpreted
reviewed how [x] is interpreted
[sub] [is|are|was|were] reviewing how [x] is interpreted
[sub] reviews how [x] is interpreted
[sub] reviewed how [x] is interpreted
reading an article about [x]
reads an article about [x]
read an article about [x]
[sub] [is|are|was|were] reading an article about [x]
[sub] reads an article about [x]
[sub] read an article about [x]
reading a news report about [x]
reads a news report about [x]
read a news report about [x]
[sub] [is|are|was|were] reading a news report about [x]
[sub] reads a news report about [x]
[sub] read a news report about [x]
watching a presentation about [x]
watches a presentation about [x]
watched a presentation about [x]
[sub] [is|are|was|were] watching a presentation about [x]
[sub] watches a presentation about [x]
[sub] watched a presentation about [x]
watching a documentary about [x]
watches a documentary about [x]
watched a documentary about [x]
[sub] [is|are|was|were] watching a documentary about [x]
[sub] watches a documentary about [x]
[sub] watched a documentary about [x]
listening to a podcast about [x]
listens to a podcast about [x]
listened to a podcast about [x]
[sub] [is|are|was|were] listening to a podcast about [x]
[sub] listens to a podcast about [x]
[sub] listened to a podcast about [x]
attending a lecture about [x]
attends lectures about [x]
attended a lecture about [x]
[sub] [is|are|was|were] attending a lecture about [x]
[sub] attends lectures about [x]
[sub] attended a lecture about [x]
attending a seminar about [x]
attends seminars about [x]
attended a seminar about [x]
[sub] [is|are|was|were] attending a seminar about [x]
[sub] attends seminars about [x]
[sub] attended a seminar about [x]
attending a conference session about [x]
attends conference sessions about [x]
attended a conference session about [x]
[sub] [is|are|was|were] attending a conference session about [x]
[sub] attends conference sessions about [x]
[sub] attended a conference session about [x]
completing professional training about [x]
completes professional training about [x]
completed professional training about [x]
[sub] [is|are|was|were] completing professional training about [x]
[sub] completes professional training about [x]
[sub] completed professional training about [x]
preparing educational material about [x]
prepares educational material about [x]
prepared educational material about [x]
[sub] [is|are|was|were] preparing educational material about [x]
[sub] prepares educational material about [x]
[sub] prepared educational material about [x]
creating an educational guide about [x]
creates an educational guide about [x]
created an educational guide about [x]
[sub] [is|are|was|were] creating an educational guide about [x]
[sub] creates an educational guide about [x]
[sub] created an educational guide about [x]
developing training materials about [x]
develops training materials about [x]
developed training materials about [x]
[sub] [is|are|was|were] developing training materials about [x]
[sub] develops training materials about [x]
[sub] developed training materials about [x]
preparing a presentation about [x]
prepares a presentation about [x]
prepared a presentation about [x]
[sub] [is|are|was|were] preparing a presentation about [x]
[sub] prepares a presentation about [x]
[sub] prepared a presentation about [x]
giving a presentation about [x]
gives a presentation about [x]
gave a presentation about [x]
[sub] [is|are|was|were] giving a presentation about [x]
[sub] gives a presentation about [x]
[sub] gave a presentation about [x]
teaching a class about [x]
teaches a class about [x]
taught a class about [x]
[sub] [is|are|was|were] teaching a class about [x]
[sub] teaches a class about [x]
[sub] taught a class about [x]
training staff about [x]
trains staff about [x]
trained staff about [x]
[sub] [is|are|was|were] training staff about [x]
[sub] trains staff about [x]
[sub] trained staff about [x]
training staff to document [x]
trains staff to document [x]
trained staff to document [x]
[sub] [is|are|was|were] training staff to document [x]
[sub] trains staff to document [x]
[sub] trained staff to document [x]
discussing [x] during professional training
discusses [x] during professional training
discussed [x] during professional training
[sub] [is|are|was|were] discussing [x] during professional training
[sub] discusses [x] during professional training
[sub] discussed [x] during professional training
participating in a general discussion about [x]
participates in a general discussion about [x]
participated in a general discussion about [x]
[sub] [is|are|was|were] participating in a general discussion about [x]
[sub] participates in a general discussion about [x]
[sub] participated in a general discussion about [x]
having a general conversation about [x]
has a general conversation about [x]
had a general conversation about [x]
[sub] [is|are|was|were] having a general conversation about [x]
[sub] has a general conversation about [x]
[sub] had a general conversation about [x]
asking a general question about [x]
asks a general question about [x]
asked a general question about [x]
[sub] [is|are|was|were] asking a general question about [x]
[sub] asks a general question about [x]
[sub] asked a general question about [x]
requesting general information about [x]
requests general information about [x]
requested general information about [x]
[sub] [is|are|was|were] requesting general information about [x]
[sub] requests general information about [x]
[sub] requested general information about [x]
writing an article about [x]
writes an article about [x]
wrote an article about [x]
[sub] [is|are|was|were] writing an article about [x]
[sub] writes an article about [x]
[sub] wrote an article about [x]
writing a news report about [x]
writes a news report about [x]
wrote a news report about [x]
[sub] [is|are|was|were] writing a news report about [x]
[sub] writes a news report about [x]
[sub] wrote a news report about [x]
writing a fictional story involving [x]
writes a fictional story involving [x]
wrote a fictional story involving [x]
[sub] [is|are|was|were] writing a fictional story involving [x]
[sub] writes a fictional story involving [x]
[sub] wrote a fictional story involving [x]
reviewing a fictional case involving [x]
reviews a fictional case involving [x]
reviewed a fictional case involving [x]
[sub] [is|are|was|were] reviewing a fictional case involving [x]
[sub] reviews a fictional case involving [x]
[sub] reviewed a fictional case involving [x]
reviewing a case study involving [x]
reviews a case study involving [x]
reviewed a case study involving [x]
[sub] [is|are|was|were] reviewing a case study involving [x]
[sub] reviews a case study involving [x]
[sub] reviewed a case study involving [x]
analyzing sample data involving [x]
analyzes sample data involving [x]
analyzed sample data involving [x]
[sub] [is|are|was|were] analyzing sample data involving [x]
[sub] analyzes sample data involving [x]
[sub] analyzed sample data involving [x]
analyzing public data involving [x]
analyzes public data involving [x]
analyzed public data involving [x]
[sub] [is|are|was|were] analyzing public data involving [x]
[sub] analyzes public data involving [x]
[sub] analyzed public data involving [x]
comparing research findings about [x]
compares research findings about [x]
compared research findings about [x]
[sub] [is|are|was|were] comparing research findings about [x]
[sub] compares research findings about [x]
[sub] compared research findings about [x]
working with researchers studying [x]
works with researchers studying [x]
worked with researchers studying [x]
[sub] [is|are|was|were] working with researchers studying [x]
[sub] works with researchers studying [x]
[sub] worked with researchers studying [x]
creating synthetic records containing [x]
creates synthetic records containing [x]
created synthetic records containing [x]
[sub] [is|are|was|were] creating synthetic records containing [x]
[sub] creates synthetic records containing [x]
[sub] created synthetic records containing [x]
reviewing synthetic records containing [x]
reviews synthetic records containing [x]
reviewed synthetic records containing [x]
[sub] [is|are|was|were] reviewing synthetic records containing [x]
[sub] reviews synthetic records containing [x]
[sub] reviewed synthetic records containing [x]
creating sample documentation containing [x]
creates sample documentation containing [x]
created sample documentation containing [x]
[sub] [is|are|was|were] creating sample documentation containing [x]
[sub] creates sample documentation containing [x]
[sub] created sample documentation containing [x]
using [x] as an example in training
uses [x] as an example in training
used [x] as an example in training
[sub] [is|are|was|were] using [x] as an example in training
[sub] uses [x] as an example in training
[sub] used [x] as an example in training
testing software with sample text containing [x]
tests software with sample text containing [x]
tested software with sample text containing [x]
[sub] [is|are|was|were] testing software with sample text containing [x]
[sub] tests software with sample text containing [x]
[sub] tested software with sample text containing [x]
developing software that records [x]
develops software that records [x]
developed software that records [x]
[sub] [is|are|was|were] developing software that records [x]
[sub] develops software that records [x]
[sub] developed software that records [x]
designing a form that includes [x]
designs a form that includes [x]
designed a form that includes [x]
[sub] [is|are|was|were] designing a form that includes [x]
[sub] designs a form that includes [x]
[sub] designed a form that includes [x]
adding [x] to a medical terminology list
adds [x] to a medical terminology list
added [x] to a medical terminology list
[sub] [is|are|was|were] adding [x] to a medical terminology list
[sub] adds [x] to a medical terminology list
[sub] added [x] to a medical terminology list
reviewing terminology for [x]
reviews terminology for [x]
reviewed terminology for [x]
[sub] [is|are|was|were] reviewing terminology for [x]
[sub] reviews terminology for [x]
[sub] reviewed terminology for [x]
mapping [x] to a standardized code
maps [x] to a standardized code
mapped [x] to a standardized code
[sub] [is|are|was|were] mapping [x] to a standardized code
[sub] maps [x] to a standardized code
[sub] mapped [x] to a standardized code
updating documentation about [x]
updates documentation about [x]
updated documentation about [x]
[sub] [is|are|was|were] updating documentation about [x]
[sub] updates documentation about [x]
[sub] updated documentation about [x]
auditing documentation related to [x]
audits documentation related to [x]
audited documentation related to [x]
[sub] [is|are|was|were] auditing documentation related to [x]
[sub] audits documentation related to [x]
[sub] audited documentation related to [x]
translating educational content about [x]
translates educational content about [x]
translated educational content about [x]
[sub] [is|are|was|were] translating educational content about [x]
[sub] translates educational content about [x]
[sub] translated educational content about [x]

View File

@ -0,0 +1,37 @@
[x]
[x] ordered
[x] was ordered
repeat [x] ordered
[x] pending
[x] results pending
results pending for [x]
[x] reviewed
[x] was reviewed
[x] results reviewed
results from [x]
[x] came back normal
[x] came back abnormal
[x] was normal
[x] was abnormal
normal [x] result
abnormal [x] result
repeat [x] recommended
[x] needs to be repeated
[x] was repeated
[sub] had [x] done
[sub] [is|are|was|were] having [x] done
[sub] had [x] ordered
[sub] had repeat [x] ordered
[sub] [is|are|was|were] awaiting results from [x]
[sub] [is|are|was|were] waiting on [x] results
[sub] received results from [x]
[sub] reviewed results from [x]
[sub] [is|are|was|were] informed of [x] results
[sub] was told [x] was normal
[sub] was told [x] was abnormal
[sub] had normal [x] results
[sub] had abnormal [x] results
[sub] needs repeat [x]
[sub] needs [x] repeated
[sub] was advised to repeat [x]
[sub] had [x] repeated

View File

@ -0,0 +1,360 @@
researching the use of [x]
researches the use of [x]
researched the use of [x]
[sub] [is|are|was|were] researching the use of [x]
[sub] researches the use of [x]
[sub] researched the use of [x]
researching the effectiveness of [x]
researches the effectiveness of [x]
researched the effectiveness of [x]
[sub] [is|are|was|were] researching the effectiveness of [x]
[sub] researches the effectiveness of [x]
[sub] researched the effectiveness of [x]
researching the risks and benefits of [x]
researches the risks and benefits of [x]
researched the risks and benefits of [x]
[sub] [is|are|was|were] researching the risks and benefits of [x]
[sub] researches the risks and benefits of [x]
[sub] researched the risks and benefits of [x]
researching outcomes associated with [x]
researches outcomes associated with [x]
researched outcomes associated with [x]
[sub] [is|are|was|were] researching outcomes associated with [x]
[sub] researches outcomes associated with [x]
[sub] researched outcomes associated with [x]
researching advances in [x]
researches advances in [x]
researched advances in [x]
[sub] [is|are|was|were] researching advances in [x]
[sub] researches advances in [x]
[sub] researched advances in [x]
studying [x]
studies [x]
studied [x]
[sub] [is|are|was|were] studying [x]
[sub] studies [x]
[sub] studied [x]
studying how [x] works
studies how [x] works
studied how [x] works
[sub] [is|are|was|were] studying how [x] works
[sub] studies how [x] works
[sub] studied how [x] works
learning about [x]
learns about [x]
learned about [x]
[sub] [is|are|was|were] learning about [x]
[sub] learns about [x]
[sub] learned about [x]
learning how [x] is provided
learns how [x] is provided
learned how [x] is provided
[sub] [is|are|was|were] learning how [x] is provided
[sub] learns how [x] is provided
[sub] learned how [x] is provided
attending a professional workshop about [x]
attends professional workshops about [x]
attended a professional workshop about [x]
[sub] [is|are|was|were] attending a professional workshop about [x]
[sub] attends professional workshops about [x]
[sub] attended a professional workshop about [x]
attending a lecture about [x]
attends lectures about [x]
attended a lecture about [x]
[sub] [is|are|was|were] attending a lecture about [x]
[sub] attends lectures about [x]
[sub] attended a lecture about [x]
attending a seminar about [x]
attends seminars about [x]
attended a seminar about [x]
[sub] [is|are|was|were] attending a seminar about [x]
[sub] attends seminars about [x]
[sub] attended a seminar about [x]
attending a conference session about [x]
attends conference sessions about [x]
attended a conference session about [x]
[sub] [is|are|was|were] attending a conference session about [x]
[sub] attends conference sessions about [x]
[sub] attended a conference session about [x]
completing professional training about [x]
completes professional training about [x]
completed professional training about [x]
[sub] [is|are|was|were] completing professional training about [x]
[sub] completes professional training about [x]
[sub] completed professional training about [x]
observing a professional demonstration of [x]
observes professional demonstrations of [x]
observed a professional demonstration of [x]
[sub] [is|are|was|were] observing a professional demonstration of [x]
[sub] observes professional demonstrations of [x]
[sub] observed a professional demonstration of [x]
reviewing general information about [x]
reviews general information about [x]
reviewed general information about [x]
[sub] [is|are|was|were] reviewing general information about [x]
[sub] reviews general information about [x]
[sub] reviewed general information about [x]
reviewing educational material about [x]
reviews educational material about [x]
reviewed educational material about [x]
[sub] [is|are|was|were] reviewing educational material about [x]
[sub] reviews educational material about [x]
[sub] reviewed educational material about [x]
reviewing medical literature about [x]
reviews medical literature about [x]
reviewed medical literature about [x]
[sub] [is|are|was|were] reviewing medical literature about [x]
[sub] reviews medical literature about [x]
[sub] reviewed medical literature about [x]
reviewing published research about [x]
reviews published research about [x]
reviewed published research about [x]
[sub] [is|are|was|were] reviewing published research about [x]
[sub] reviews published research about [x]
[sub] reviewed published research about [x]
reviewing clinical guidelines for [x]
reviews clinical guidelines for [x]
reviewed clinical guidelines for [x]
[sub] [is|are|was|were] reviewing clinical guidelines for [x]
[sub] reviews clinical guidelines for [x]
[sub] reviewed clinical guidelines for [x]
reviewing professional standards for [x]
reviews professional standards for [x]
reviewed professional standards for [x]
[sub] [is|are|was|were] reviewing professional standards for [x]
[sub] reviews professional standards for [x]
[sub] reviewed professional standards for [x]
writing an educational article about [x]
writes an educational article about [x]
wrote an educational article about [x]
[sub] [is|are|was|were] writing an educational article about [x]
[sub] writes an educational article about [x]
[sub] wrote an educational article about [x]
writing a news article about [x]
writes a news article about [x]
wrote a news article about [x]
[sub] [is|are|was|were] writing a news article about [x]
[sub] writes a news article about [x]
[sub] wrote a news article about [x]
writing a report about [x]
writes a report about [x]
wrote a report about [x]
[sub] [is|are|was|were] writing a report about [x]
[sub] writes a report about [x]
[sub] wrote a report about [x]
reading an article about [x]
reads an article about [x]
read an article about [x]
[sub] [is|are|was|were] reading an article about [x]
[sub] reads an article about [x]
[sub] read an article about [x]
reading a news report about [x]
reads a news report about [x]
read a news report about [x]
[sub] [is|are|was|were] reading a news report about [x]
[sub] reads a news report about [x]
[sub] read a news report about [x]
watching a documentary about [x]
watches a documentary about [x]
watched a documentary about [x]
[sub] [is|are|was|were] watching a documentary about [x]
[sub] watches a documentary about [x]
[sub] watched a documentary about [x]
listening to a podcast about [x]
listens to a podcast about [x]
listened to a podcast about [x]
[sub] [is|are|was|were] listening to a podcast about [x]
[sub] listens to a podcast about [x]
[sub] listened to a podcast about [x]
preparing educational material about [x]
prepares educational material about [x]
prepared educational material about [x]
[sub] [is|are|was|were] preparing educational material about [x]
[sub] prepares educational material about [x]
[sub] prepared educational material about [x]
creating an educational guide about [x]
creates an educational guide about [x]
created an educational guide about [x]
[sub] [is|are|was|were] creating an educational guide about [x]
[sub] creates an educational guide about [x]
[sub] created an educational guide about [x]
developing training materials about [x]
develops training materials about [x]
developed training materials about [x]
[sub] [is|are|was|were] developing training materials about [x]
[sub] develops training materials about [x]
[sub] developed training materials about [x]
preparing a presentation about [x]
prepares a presentation about [x]
prepared a presentation about [x]
[sub] [is|are|was|were] preparing a presentation about [x]
[sub] prepares a presentation about [x]
[sub] prepared a presentation about [x]
giving a presentation about [x]
gives a presentation about [x]
gave a presentation about [x]
[sub] [is|are|was|were] giving a presentation about [x]
[sub] gives a presentation about [x]
[sub] gave a presentation about [x]
teaching a class about [x]
teaches a class about [x]
taught a class about [x]
[sub] [is|are|was|were] teaching a class about [x]
[sub] teaches a class about [x]
[sub] taught a class about [x]
training staff about [x]
trains staff about [x]
trained staff about [x]
[sub] [is|are|was|were] training staff about [x]
[sub] trains staff about [x]
[sub] trained staff about [x]
discussing [x] during professional training
discusses [x] during professional training
discussed [x] during professional training
[sub] [is|are|was|were] discussing [x] during professional training
[sub] discusses [x] during professional training
[sub] discussed [x] during professional training
participating in a general discussion about [x]
participates in a general discussion about [x]
participated in a general discussion about [x]
[sub] [is|are|was|were] participating in a general discussion about [x]
[sub] participates in a general discussion about [x]
[sub] participated in a general discussion about [x]
having a general conversation about [x]
has a general conversation about [x]
had a general conversation about [x]
[sub] [is|are|was|were] having a general conversation about [x]
[sub] has a general conversation about [x]
[sub] had a general conversation about [x]
interviewing an expert about [x]
interviews an expert about [x]
interviewed an expert about [x]
[sub] [is|are|was|were] interviewing an expert about [x]
[sub] interviews an expert about [x]
[sub] interviewed an expert about [x]
reviewing a case study involving [x]
reviews a case study involving [x]
reviewed a case study involving [x]
[sub] [is|are|was|were] reviewing a case study involving [x]
[sub] reviews a case study involving [x]
[sub] reviewed a case study involving [x]
reviewing a fictional case involving [x]
reviews a fictional case involving [x]
reviewed a fictional case involving [x]
[sub] [is|are|was|were] reviewing a fictional case involving [x]
[sub] reviews a fictional case involving [x]
[sub] reviewed a fictional case involving [x]
writing a fictional story involving [x]
writes a fictional story involving [x]
wrote a fictional story involving [x]
[sub] [is|are|was|were] writing a fictional story involving [x]
[sub] writes a fictional story involving [x]
[sub] wrote a fictional story involving [x]
organizing a fundraiser supporting access to [x]
organizes fundraisers supporting access to [x]
organized a fundraiser supporting access to [x]
[sub] [is|are|was|were] organizing a fundraiser supporting access to [x]
[sub] organizes fundraisers supporting access to [x]
[sub] organized a fundraiser supporting access to [x]
raising money to improve access to [x]
raises money to improve access to [x]
raised money to improve access to [x]
[sub] [is|are|was|were] raising money to improve access to [x]
[sub] raises money to improve access to [x]
[sub] raised money to improve access to [x]
collecting donations to support access to [x]
collects donations to support access to [x]
collected donations to support access to [x]
[sub] [is|are|was|were] collecting donations to support access to [x]
[sub] collects donations to support access to [x]
[sub] collected donations to support access to [x]
advocating for access to [x]
advocates for access to [x]
advocated for access to [x]
[sub] [is|are|was|were] advocating for access to [x]
[sub] advocates for access to [x]
[sub] advocated for access to [x]
promoting public access to [x]
promotes public access to [x]
promoted public access to [x]
[sub] [is|are|was|were] promoting public access to [x]
[sub] promotes public access to [x]
[sub] promoted public access to [x]
organizing an awareness event about [x]
organizes awareness events about [x]
organized an awareness event about [x]
[sub] [is|are|was|were] organizing an awareness event about [x]
[sub] organizes awareness events about [x]
[sub] organized an awareness event about [x]
promoting public awareness of [x]
promotes public awareness of [x]
promoted public awareness of [x]
[sub] [is|are|was|were] promoting public awareness of [x]
[sub] promotes public awareness of [x]
[sub] promoted public awareness of [x]
reviewing public policy related to [x]
reviews public policy related to [x]
reviewed public policy related to [x]
[sub] [is|are|was|were] reviewing public policy related to [x]
[sub] reviews public policy related to [x]
[sub] reviewed public policy related to [x]
researching barriers to access for [x]
researches barriers to access for [x]
researched barriers to access for [x]
[sub] [is|are|was|were] researching barriers to access for [x]
[sub] researches barriers to access for [x]
[sub] researched barriers to access for [x]
analyzing public access to [x]
analyzes public access to [x]
analyzed public access to [x]
[sub] [is|are|was|were] analyzing public access to [x]
[sub] analyzes public access to [x]
[sub] analyzed public access to [x]
supporting organizations that provide [x]
supports organizations that provide [x]
supported organizations that provide [x]
[sub] [is|are|was|were] supporting organizations that provide [x]
[sub] supports organizations that provide [x]
[sub] supported organizations that provide [x]
volunteering with an organization that provides [x]
volunteers with organizations that provide [x]
volunteered with an organization that provides [x]
[sub] [is|are|was|were] volunteering with an organization that provides [x]
[sub] volunteers with organizations that provide [x]
[sub] volunteered with an organization that provides [x]
analyzing statistics about [x]
analyzes statistics about [x]
analyzed statistics about [x]
[sub] [is|are|was|were] analyzing statistics about [x]
[sub] analyzes statistics about [x]
[sub] analyzed statistics about [x]
comparing research findings about [x]
compares research findings about [x]
compared research findings about [x]
[sub] [is|are|was|were] comparing research findings about [x]
[sub] compares research findings about [x]
[sub] compared research findings about [x]
working with researchers studying [x]
works with researchers studying [x]
worked with researchers studying [x]
[sub] [is|are|was|were] working with researchers studying [x]
[sub] works with researchers studying [x]
[sub] worked with researchers studying [x]
creating synthetic records containing [x]
creates synthetic records containing [x]
created synthetic records containing [x]
[sub] [is|are|was|were] creating synthetic records containing [x]
[sub] creates synthetic records containing [x]
[sub] created synthetic records containing [x]
reviewing synthetic records containing [x]
reviews synthetic records containing [x]
reviewed synthetic records containing [x]
[sub] [is|are|was|were] reviewing synthetic records containing [x]
[sub] reviews synthetic records containing [x]
[sub] reviewed synthetic records containing [x]
using [x] as an example in training
uses [x] as an example in training
used [x] as an example in training
[sub] [is|are|was|were] using [x] as an example in training
[sub] uses [x] as an example in training
[sub] used [x] as an example in training

View File

@ -0,0 +1,367 @@
received [x]
receives [x]
receiving [x]
[sub] received [x]
[sub] receives [x]
[sub] [is|are|was|were] receiving [x]
undergoing [x]
underwent [x]
undergoes [x]
[sub] [is|are|was|were] undergoing [x]
[sub] underwent [x]
[sub] undergoes [x]
being treated with [x]
was treated with [x]
[sub] [is|are|was|were] being treated with [x]
[sub] [is|are|was|were] treated with [x]
treated with [x]
[sub] received treatment with [x]
[sub] receives treatment with [x]
[sub] [is|are|was|were] receiving treatment with [x]
started [x]
starts [x]
starting [x]
[sub] started [x]
[sub] starts [x]
[sub] [is|are|was|were] starting [x]
began [x]
begins [x]
beginning [x]
[sub] began [x]
[sub] begins [x]
[sub] [is|are|was|were] beginning [x]
initiated [x]
initiates [x]
initiating [x]
[sub] initiated [x]
[sub] initiates [x]
[sub] [is|are|was|were] initiating [x]
started treatment with [x]
starts treatment with [x]
starting treatment with [x]
[sub] started treatment with [x]
[sub] starts treatment with [x]
[sub] [is|are|was|were] starting treatment with [x]
began treatment with [x]
begins treatment with [x]
[sub] began treatment with [x]
[sub] begins treatment with [x]
initiated treatment with [x]
initiates treatment with [x]
[sub] initiated treatment with [x]
[sub] initiates treatment with [x]
continues [x]
continued [x]
continuing [x]
[sub] continues [x]
[sub] continued [x]
[sub] [is|are|was|were] continuing [x]
remains on [x]
remained on [x]
[sub] remains on [x]
[sub] remained on [x]
continues treatment with [x]
continued treatment with [x]
continuing treatment with [x]
[sub] continues treatment with [x]
[sub] continued treatment with [x]
[sub] [is|are|was|were] continuing treatment with [x]
completed [x]
completes [x]
completing [x]
[sub] completed [x]
[sub] completes [x]
[sub] [is|are|was|were] completing [x]
completed a course of [x]
completes a course of [x]
completing a course of [x]
[sub] completed a course of [x]
[sub] completes a course of [x]
[sub] [is|are|was|were] completing a course of [x]
finished [x]
finishes [x]
finishing [x]
[sub] finished [x]
[sub] finishes [x]
[sub] [is|are|was|were] finishing [x]
finished a course of [x]
[sub] finished a course of [x]
course of [x] completed
[x] was completed
[sub] [has|have] completed [x]
[sub] had completed [x]
[sub] [has|have] finished [x]
[sub] had finished [x]
scheduled to begin [x]
is scheduled to begin [x]
was scheduled to begin [x]
[sub] [is|are|was|were] scheduled to begin [x]
scheduled to start [x]
is scheduled to start [x]
was scheduled to start [x]
[sub] [is|are|was|were] scheduled to start [x]
scheduled for [x]
is scheduled for [x]
was scheduled for [x]
[sub] [is|are|was|were] scheduled for [x]
will begin [x]
[sub] will begin [x]
will start [x]
[sub] will start [x]
plans to begin [x]
planned to begin [x]
planning to begin [x]
[sub] plans to begin [x]
[sub] planned to begin [x]
[sub] [is|are|was|were] planning to begin [x]
plans to start [x]
planned to start [x]
planning to start [x]
[sub] plans to start [x]
[sub] planned to start [x]
[sub] [is|are|was|were] planning to start [x]
preparing for [x]
prepared for [x]
prepares for [x]
[sub] [is|are|was|were] preparing for [x]
[sub] prepared for [x]
[sub] prepares for [x]
awaiting [x]
awaited [x]
awaits [x]
[sub] [is|are|was|were] awaiting [x]
[sub] awaited [x]
[sub] awaits [x]
approved for [x]
was approved for [x]
[sub] [is|are|was|were] approved for [x]
authorized for [x]
was authorized for [x]
[sub] [is|are|was|were] authorized for [x]
cleared to begin [x]
was cleared to begin [x]
[sub] [is|are|was|were] cleared to begin [x]
referred for [x]
was referred for [x]
[sub] [is|are|was|were] referred for [x]
recommended [x]
was recommended [x]
[sub] [is|are|was|were] recommended [x]
advised to begin [x]
was advised to begin [x]
[sub] [is|are|was|were] advised to begin [x]
needs [x]
needed [x]
[sub] needs [x]
[sub] needed [x]
requires [x]
required [x]
[sub] requires [x]
[sub] required [x]
prescribed [x]
was prescribed [x]
[sub] [is|are|was|were] prescribed [x]
receives regular [x]
received regular [x]
[sub] receives regular [x]
[sub] received regular [x]
receives ongoing [x]
received ongoing [x]
[sub] receives ongoing [x]
[sub] received ongoing [x]
receives maintenance [x]
received maintenance [x]
[sub] receives maintenance [x]
[sub] received maintenance [x]
under maintenance treatment with [x]
[sub] [is|are|was|were] under maintenance treatment with [x]
resumed [x]
resumes [x]
resuming [x]
[sub] resumed [x]
[sub] resumes [x]
[sub] [is|are|was|were] resuming [x]
restarted [x]
restarts [x]
restarting [x]
[sub] restarted [x]
[sub] restarts [x]
[sub] [is|are|was|were] restarting [x]
returned to [x]
returns to [x]
returning to [x]
[sub] returned to [x]
[sub] returns to [x]
[sub] [is|are|was|were] returning to [x]
responded well to [x]
responds well to [x]
responding well to [x]
[sub] responded well to [x]
[sub] responds well to [x]
[sub] [is|are|was|were] responding well to [x]
benefited from [x]
benefits from [x]
benefiting from [x]
[sub] benefited from [x]
[sub] benefits from [x]
[sub] [is|are|was|were] benefiting from [x]
improved with [x]
improves with [x]
improving with [x]
[sub] improved with [x]
[sub] improves with [x]
[sub] [is|are|was|were] improving with [x]
[x] is helping
[x] helped
[sub] reports that [x] is helping
[sub] reported that [x] helped
positive response to [x]
[sub] [has|have] a positive response to [x]
[sub] had a positive response to [x]
good response to [x]
[sub] reports a good response to [x]
[sub] reported a good response to [x]
partial response to [x]
[sub] [has|have] a partial response to [x]
[sub] had a partial response to [x]
limited response to [x]
[sub] [has|have] a limited response to [x]
[sub] had a limited response to [x]
did not respond to [x]
does not respond to [x]
not responding to [x]
[sub] did not respond to [x]
[sub] does not respond to [x]
[sub] [is|are|was|were] not responding to [x]
[x] is not helping
[x] did not help
[sub] reports that [x] is not helping
[sub] reported that [x] did not help
no improvement with [x]
[sub] reports no improvement with [x]
[sub] reported no improvement with [x]
poor response to [x]
[sub] [has|have] a poor response to [x]
[sub] had a poor response to [x]
experienced side effects from [x]
experiences side effects from [x]
experiencing side effects from [x]
[sub] experienced side effects from [x]
[sub] experiences side effects from [x]
[sub] [is|are|was|were] experiencing side effects from [x]
experienced complications from [x]
experiences complications from [x]
experiencing complications from [x]
[sub] experienced complications from [x]
[sub] experiences complications from [x]
[sub] [is|are|was|were] experiencing complications from [x]
tolerates [x]
tolerated [x]
tolerating [x]
[sub] tolerates [x]
[sub] tolerated [x]
[sub] [is|are|was|were] tolerating [x]
tolerates [x] well
tolerated [x] well
[sub] tolerates [x] well
[sub] tolerated [x] well
unable to tolerate [x]
was unable to tolerate [x]
[sub] [is|are|was|were] unable to tolerate [x]
stopped [x]
stops [x]
stopping [x]
[sub] stopped [x]
[sub] stops [x]
[sub] [is|are|was|were] stopping [x]
discontinued [x]
discontinues [x]
discontinuing [x]
[sub] discontinued [x]
[sub] discontinues [x]
[sub] [is|are|was|were] discontinuing [x]
[x] was discontinued
[sub] had [x] discontinued
paused [x]
pauses [x]
pausing [x]
[sub] paused [x]
[sub] pauses [x]
[sub] [is|are|was|were] pausing [x]
held [x]
holding [x]
[sub] held [x]
[sub] [is|are|was|were] holding [x]
postponed [x]
postpones [x]
postponing [x]
[sub] postponed [x]
[sub] postpones [x]
[sub] [is|are|was|were] postponing [x]
canceled [x]
cancels [x]
canceling [x]
[sub] canceled [x]
[sub] cancels [x]
[sub] [is|are|was|were] canceling [x]
declined [x]
declines [x]
declining [x]
[sub] declined [x]
[sub] declines [x]
[sub] [is|are|was|were] declining [x]
refused [x]
refuses [x]
refusing [x]
[sub] refused [x]
[sub] refuses [x]
[sub] [is|are|was|were] refusing [x]
missed [x]
misses [x]
missing [x]
[sub] missed [x]
[sub] misses [x]
[sub] [is|are|was|were] missing [x]
completed part of [x]
[sub] completed part of [x]
did not complete [x]
[sub] did not complete [x]
unable to complete [x]
was unable to complete [x]
[sub] [is|are|was|were] unable to complete [x]
history of [x]
prior [x]
previous [x]
previously received [x]
[sub] [has|have|had] a history of [x]
[sub] previously received [x]
[sub] had previously received [x]
reports receiving [x]
reported receiving [x]
[sub] reports receiving [x]
[sub] reported receiving [x]
denies receiving [x]
denied receiving [x]
[sub] denies receiving [x]
[sub] denied receiving [x]
denies a history of [x]
denied a history of [x]
[sub] denies a history of [x]
[sub] denied a history of [x]
follow-up after [x]
receives follow-up after [x]
received follow-up after [x]
receiving follow-up after [x]
[sub] receives follow-up after [x]
[sub] received follow-up after [x]
[sub] [is|are|was|were] receiving follow-up after [x]
monitoring response to [x]
monitors response to [x]
monitored response to [x]
[sub] [is|are|was|were] monitoring response to [x]
[sub] monitors response to [x]
[sub] monitored response to [x]
evaluated after [x]
being evaluated after [x]
[sub] [is|are|was|were] evaluated after [x]
[sub] [is|are|was|were] being evaluated after [x]

View File

@ -0,0 +1,4 @@
He
She
They
Member

View File

@ -0,0 +1,14 @@
namespace RLHF.Generator.Generation;
public sealed class GenerationOptions
{
public const string SectionName = "Generation";
public int RandomSeed { get; set; }
public int MaxDegreeOfParallelism { get; set; }
public int SaveBatchSize { get; set; } = 10;
public int ProgressLogIntervalSeconds { get; set; } = 5;
}

View File

@ -0,0 +1,9 @@
namespace RLHF.Generator.Generation;
public sealed record GenerationRunResult(
Guid RunId,
string Status,
int RowsCommittedThisRequest,
int TotalCommittedRows,
int TotalExpectedRows,
bool Resumed);

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,115 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Storage;
using RLHF.Generator.Persistence;
using RLHF.Generator.TrainingData;
namespace RLHF.Generator.Keywords;
public sealed record KeywordLoadResult(
int SourceKeywordCount,
int SourceVariantCount,
int ExistingKeywordCount,
int ExistingVariantCount,
int InsertedKeywordCount,
int InsertedVariantCount);
public sealed class KeywordLoadService
{
private readonly RlhfGeneratorDbContext _dbContext;
private readonly TrainingDataReader _trainingDataReader;
public KeywordLoadService(
RlhfGeneratorDbContext dbContext,
TrainingDataReader trainingDataReader)
{
_dbContext = dbContext;
_trainingDataReader = trainingDataReader;
}
public async Task<KeywordLoadResult> LoadAsync(
CancellationToken cancellationToken = default)
{
List<SourceKeyword> sourceKeywords = [];
foreach (TrainingCategoryDefinition category in TrainingCategories.All)
{
IReadOnlyList<TrainingCategoryValue> values =
await _trainingDataReader.ReadCategoryValuesAsync(category, cancellationToken);
sourceKeywords.AddRange(values.Select(value => new SourceKeyword(
category.Id,
value.CanonicalForm,
value.AllowedForms
.Skip(1)
.Where(variant => !string.IsNullOrWhiteSpace(variant)
&& !string.Equals(
variant,
value.CanonicalForm,
StringComparison.OrdinalIgnoreCase))
.ToArray())));
}
List<Keyword> databaseKeywords = await _dbContext.Keywords
.Include(keyword => keyword.Variants)
.ToListAsync(cancellationToken);
int existingKeywordCount = 0;
int existingVariantCount = 0;
int insertedKeywordCount = 0;
int insertedVariantCount = 0;
await using IDbContextTransaction transaction =
await _dbContext.Database.BeginTransactionAsync(cancellationToken);
foreach (SourceKeyword sourceKeyword in sourceKeywords)
{
Keyword? keyword = databaseKeywords.FirstOrDefault(candidate =>
candidate.CategoryId == sourceKeyword.CategoryId
&& string.Equals(
candidate.Value,
sourceKeyword.Value,
StringComparison.OrdinalIgnoreCase));
if (keyword is null)
{
keyword = new Keyword
{
CategoryId = sourceKeyword.CategoryId,
Value = sourceKeyword.Value
};
databaseKeywords.Add(keyword);
_dbContext.Keywords.Add(keyword);
insertedKeywordCount++;
}
else
{
existingKeywordCount++;
}
foreach (string sourceVariant in sourceKeyword.Variants)
{
if (keyword.Variants.Any(variant => string.Equals(
variant.Value,
sourceVariant,
StringComparison.OrdinalIgnoreCase)))
{
existingVariantCount++;
continue;
}
keyword.Variants.Add(new KeywordVariant { Value = sourceVariant });
insertedVariantCount++;
}
}
await _dbContext.SaveChangesAsync(cancellationToken);
await transaction.CommitAsync(cancellationToken);
return new KeywordLoadResult(
sourceKeywords.Count,
sourceKeywords.Sum(keyword => keyword.Variants.Count),
existingKeywordCount,
existingVariantCount,
insertedKeywordCount,
insertedVariantCount);
}
private sealed record SourceKeyword(
int CategoryId,
string Value,
IReadOnlyList<string> Variants);
}

View File

@ -0,0 +1,235 @@
using System.Globalization;
using System.Text;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Storage;
using RLHF.Generator.Persistence;
namespace RLHF.Generator.Keywords;
public sealed record TrainingItemKeywordBackfillResult(
bool DryRun,
int TotalTrainingItemCount,
int AlreadyAssignedCount,
int ProcessedCount,
int UniqueMatchCount,
int UpdatedCount,
int UnmatchedCount,
int AmbiguousCount);
public sealed class KeywordsNotLoadedException : InvalidOperationException
{
public KeywordsNotLoadedException()
: base("No keywords are loaded. Run POST /api/keywords/load before backfilling.")
{
}
}
public sealed class TrainingItemKeywordBackfillService
{
public const int DefaultBatchSize = 500;
public const int MaximumBatchSize = 5000;
private readonly RlhfGeneratorDbContext _dbContext;
public TrainingItemKeywordBackfillService(RlhfGeneratorDbContext dbContext)
{
_dbContext = dbContext;
}
public async Task<TrainingItemKeywordBackfillResult> BackfillAsync(
bool dryRun = true,
int batchSize = DefaultBatchSize,
CancellationToken cancellationToken = default)
{
if (batchSize is < 1 or > MaximumBatchSize)
{
throw new ArgumentOutOfRangeException(
nameof(batchSize),
$"Batch size must be between 1 and {MaximumBatchSize}.");
}
List<Keyword> keywords = await _dbContext.Keywords
.AsNoTracking()
.Include(keyword => keyword.Variants)
.ToListAsync(cancellationToken);
if (keywords.Count == 0)
{
throw new KeywordsNotLoadedException();
}
IReadOnlyDictionary<int, IReadOnlyList<Surface>> catalog = BuildCatalog(keywords);
int totalCount = await _dbContext.TrainingItems.CountAsync(cancellationToken);
int alreadyAssignedCount = await _dbContext.TrainingItems.CountAsync(
item => item.KeywordId != null,
cancellationToken);
int processedCount = 0;
int uniqueMatchCount = 0;
int updatedCount = 0;
int unmatchedCount = 0;
int ambiguousCount = 0;
int lastId = 0;
while (true)
{
IQueryable<TrainingItem> query = _dbContext.TrainingItems
.Where(item => item.KeywordId == null && item.Id > lastId)
.OrderBy(item => item.Id)
.Take(batchSize);
List<TrainingItem> batch = dryRun
? await query.AsNoTracking().ToListAsync(cancellationToken)
: await query.ToListAsync(cancellationToken);
if (batch.Count == 0)
{
break;
}
lastId = batch[^1].Id;
foreach (TrainingItem item in batch)
{
HashSet<int> matches = Match(catalog, item.CategoryId, item.Value);
processedCount++;
switch (matches.Count)
{
case 0:
unmatchedCount++;
break;
case 1:
uniqueMatchCount++;
if (!dryRun)
{
item.KeywordId = matches.Single();
updatedCount++;
}
break;
default:
ambiguousCount++;
break;
}
}
if (!dryRun)
{
await using IDbContextTransaction transaction =
await _dbContext.Database.BeginTransactionAsync(cancellationToken);
await _dbContext.SaveChangesAsync(cancellationToken);
await transaction.CommitAsync(cancellationToken);
_dbContext.ChangeTracker.Clear();
}
}
return new TrainingItemKeywordBackfillResult(
dryRun,
totalCount,
alreadyAssignedCount,
processedCount,
uniqueMatchCount,
updatedCount,
unmatchedCount,
ambiguousCount);
}
private static IReadOnlyDictionary<int, IReadOnlyList<Surface>> BuildCatalog(
IEnumerable<Keyword> keywords) => keywords
.GroupBy(keyword => keyword.CategoryId)
.ToDictionary(
category => category.Key,
category => (IReadOnlyList<Surface>)category
.SelectMany(keyword => keyword.Variants
.Select(variant => new Surface(Normalize(variant.Value), keyword.Id))
.Prepend(new Surface(Normalize(keyword.Value), keyword.Id)))
.Where(surface => surface.Value.Length > 0)
.OrderByDescending(surface => surface.Value.Length)
.ToArray());
private static HashSet<int> Match(
IReadOnlyDictionary<int, IReadOnlyList<Surface>> catalog,
int categoryId,
string value)
{
HashSet<int> keywordIds = [];
if (!catalog.TryGetValue(categoryId, out IReadOnlyList<Surface>? surfaces))
{
return keywordIds;
}
string normalizedValue = Normalize(value);
List<Span> occupiedSpans = [];
foreach (Surface surface in surfaces)
{
int searchIndex = 0;
while (searchIndex <= normalizedValue.Length - surface.Value.Length)
{
int matchIndex = normalizedValue.IndexOf(
surface.Value,
searchIndex,
StringComparison.OrdinalIgnoreCase);
if (matchIndex < 0)
{
break;
}
int matchEnd = matchIndex + surface.Value.Length;
bool hasBoundaries = !IsLetterOrDigitBefore(normalizedValue, matchIndex)
&& !IsLetterOrDigitAt(normalizedValue, matchEnd);
bool overlaps = occupiedSpans.Any(span =>
surface.Value.Length < span.Length
&& matchIndex < span.Start + span.Length
&& matchEnd > span.Start);
if (hasBoundaries && !overlaps)
{
occupiedSpans.Add(new Span(matchIndex, surface.Value.Length));
keywordIds.Add(surface.KeywordId);
}
searchIndex = matchIndex + Math.Max(1, surface.Value.Length);
}
}
return keywordIds;
}
private static string Normalize(string value)
{
string decomposed = value.Normalize(NormalizationForm.FormD);
StringBuilder normalized = new(decomposed.Length);
foreach (Rune rune in decomposed.EnumerateRunes())
{
UnicodeCategory category = Rune.GetUnicodeCategory(rune);
if (category is not UnicodeCategory.NonSpacingMark
and not UnicodeCategory.SpacingCombiningMark
and not UnicodeCategory.EnclosingMark)
{
normalized.Append(rune);
}
}
return normalized.ToString();
}
private static bool IsLetterOrDigitAt(string value, int index) =>
index >= 0
&& index < value.Length
&& Rune.IsLetterOrDigit(Rune.GetRuneAt(value, index));
private static bool IsLetterOrDigitBefore(string value, int index)
{
if (index <= 0 || index > value.Length)
{
return false;
}
int runeStart = index - 1;
if (runeStart > 0
&& char.IsLowSurrogate(value[runeStart])
&& char.IsHighSurrogate(value[runeStart - 1]))
{
runeStart--;
}
return Rune.IsLetterOrDigit(Rune.GetRuneAt(value, runeStart));
}
private sealed record Surface(string Value, int KeywordId);
private sealed record Span(int Start, int Length);
}

View File

@ -0,0 +1,382 @@
using System.Net.Http.Json;
using System.Text;
using System.Text.Json;
using System.Text.Json.Serialization;
namespace RLHF.Generator.LmStudio;
public sealed class LmStudioClient
{
private readonly HttpClient _httpClient;
private readonly LmStudioOptions _options;
public LmStudioClient(HttpClient httpClient, LmStudioOptions options)
{
ArgumentNullException.ThrowIfNull(httpClient);
ArgumentNullException.ThrowIfNull(options);
ValidateOptions(options);
_httpClient = httpClient;
_options = options;
}
public async Task<string> CompleteAsync(
string text,
string? tense,
bool isFragment,
string? protectedSubject = null,
string? protectedMedicalTerm = null,
IReadOnlyList<string>? allowedMedicalForms = null,
CancellationToken cancellationToken = default)
{
if (string.IsNullOrWhiteSpace(text))
{
throw new ArgumentException("Completion text is required.", nameof(text));
}
if (!SentenceTenses.TryNormalize(tense, out string? normalizedTense))
{
throw new ArgumentException(
"Supported tense values are past, present, and future.",
nameof(tense));
}
if (protectedSubject is not null && protectedSubject.Trim().Length == 0)
{
throw new ArgumentException(
"Protected subject cannot be empty or whitespace.",
nameof(protectedSubject));
}
if (protectedMedicalTerm is not null && protectedMedicalTerm.Trim().Length == 0)
{
throw new ArgumentException(
"Protected medical term cannot be empty or whitespace.",
nameof(protectedMedicalTerm));
}
if (allowedMedicalForms is not null
&& (allowedMedicalForms.Count == 0
|| allowedMedicalForms.Any(string.IsNullOrWhiteSpace)))
{
throw new ArgumentException(
"Allowed medical forms cannot be empty or contain empty values.",
nameof(allowedMedicalForms));
}
string resolvedText = ResolveIndefiniteArticles(text);
if (isFragment)
{
resolvedText = ResolveFragmentAuxiliaries(resolvedText, normalizedTense);
}
bool requiresMedicalFormSelection = allowedMedicalForms?.Count > 1;
if (!requiresMedicalFormSelection
&& isFragment
&& normalizedTense is not null
&& resolvedText.IndexOfAny(['[', ']']) < 0
&& !BeginsWithRecognizableVerbPhrase(resolvedText))
{
return resolvedText;
}
if (!requiresMedicalFormSelection
&& isFragment
&& normalizedTense is null
&& resolvedText.IndexOfAny(['[', ']']) < 0)
{
return resolvedText;
}
List<string> userLines = [$"Is fragment: {isFragment.ToString().ToLowerInvariant()}"];
if (protectedSubject is not null)
{
userLines.Add($"Protected subject: {protectedSubject}");
}
if (protectedMedicalTerm is not null)
{
userLines.Add($"Protected medical term: {protectedMedicalTerm}");
}
if (allowedMedicalForms is not null)
{
userLines.Add($"Allowed medical forms: {string.Join(" | ", allowedMedicalForms)}");
}
if (normalizedTense is not null)
{
userLines.Add($"Requested tense: {normalizedTense}");
}
userLines.Add($"Sentence: {resolvedText}");
string userContent = string.Join('\n', userLines);
var payload = new
{
model = _options.ModelName,
messages = new[]
{
new { role = "system", content = _options.SystemPrompt },
new { role = "user", content = userContent }
},
temperature = _options.Temperature,
top_p = _options.TopP,
max_tokens = _options.MaxTokens,
seed = _options.Seed,
reasoning_effort = "none",
stream = false
};
using JsonContent requestContent = JsonContent.Create(payload);
using HttpResponseMessage response = await _httpClient.PostAsync(
_options.ChatCompletionsUrl,
requestContent,
cancellationToken);
string responseBody = await response.Content.ReadAsStringAsync(cancellationToken);
if (!response.IsSuccessStatusCode)
{
throw new HttpRequestException(
$"LM Studio returned HTTP {(int)response.StatusCode} ({response.StatusCode}): {responseBody}",
null,
response.StatusCode);
}
LmStudioResponse? completion = JsonSerializer.Deserialize<LmStudioResponse>(responseBody);
if (completion?.Choices is null || completion.Choices.Count == 0)
{
throw new InvalidDataException("LM Studio response contains no choices.");
}
LmStudioMessage? message = completion.Choices[0].Message;
if (message is null)
{
throw new InvalidDataException("LM Studio response choice contains no message.");
}
if (string.IsNullOrWhiteSpace(message.Content))
{
throw new InvalidDataException("LM Studio response message contains no content.");
}
return message.Content.Trim();
}
private static bool BeginsWithRecognizableVerbPhrase(string text)
{
int wordOffset = 0;
while (wordOffset < text.Length && char.IsWhiteSpace(text[wordOffset]))
{
wordOffset++;
}
while (wordOffset < text.Length && IsOpeningPunctuation(text[wordOffset]))
{
wordOffset++;
while (wordOffset < text.Length && char.IsWhiteSpace(text[wordOffset]))
{
wordOffset++;
}
}
int wordEnd = wordOffset;
while (wordEnd < text.Length && char.IsLetter(text[wordEnd]))
{
wordEnd++;
}
if (wordEnd == wordOffset)
{
return false;
}
string firstWord = text[wordOffset..wordEnd];
return firstWord.EndsWith("ing", StringComparison.OrdinalIgnoreCase)
|| FragmentVerbWords.Contains(firstWord, StringComparer.OrdinalIgnoreCase);
}
private static readonly string[] FragmentVerbWords =
[
"am", "is", "are", "was", "were", "be", "been", "being",
"has", "have", "had", "do", "does", "did", "can", "could",
"may", "might", "must", "shall", "should", "will", "would"
];
private static string ResolveFragmentAuxiliaries(string text, string? normalizedTense)
{
string beReplacement = normalizedTense switch
{
SentenceTenses.Past => "was",
SentenceTenses.Future => "will be",
_ => "is"
};
string haveReplacement = normalizedTense switch
{
SentenceTenses.Past => "had",
SentenceTenses.Future => "will have",
_ => "has"
};
return text
.Replace("[is|are|was|were]", beReplacement, StringComparison.Ordinal)
.Replace("[has|have|had]", haveReplacement, StringComparison.Ordinal);
}
private static string ResolveIndefiniteArticles(string text)
{
const string articleExpression = "[a|an]";
int occurrenceOffset = text.IndexOf(articleExpression, StringComparison.Ordinal);
if (occurrenceOffset < 0)
{
return text;
}
StringBuilder result = new(text.Length);
int sourceOffset = 0;
while (occurrenceOffset >= 0)
{
int followingOffset = occurrenceOffset + articleExpression.Length;
result.Append(text, sourceOffset, occurrenceOffset - sourceOffset);
result.Append(SelectIndefiniteArticle(text, followingOffset));
sourceOffset = followingOffset;
occurrenceOffset = text.IndexOf(
articleExpression,
sourceOffset,
StringComparison.Ordinal);
}
result.Append(text, sourceOffset, text.Length - sourceOffset);
return result.ToString();
}
private static string SelectIndefiniteArticle(string text, int followingOffset)
{
while (followingOffset < text.Length && char.IsWhiteSpace(text[followingOffset]))
{
followingOffset++;
}
while (followingOffset < text.Length && IsOpeningPunctuation(text[followingOffset]))
{
followingOffset++;
while (followingOffset < text.Length && char.IsWhiteSpace(text[followingOffset]))
{
followingOffset++;
}
}
if (followingOffset >= text.Length || !char.IsLetterOrDigit(text[followingOffset]))
{
throw new InvalidDataException(
"An exact [a|an] expression must be followed by a spoken token.");
}
int tokenEnd = followingOffset;
while (tokenEnd < text.Length
&& (char.IsLetterOrDigit(text[tokenEnd]) || text[tokenEnd] is '-' or '\''))
{
tokenEnd++;
}
string token = text[followingOffset..tokenEnd];
if (AppearsToBeginWithLetterName(token))
{
return "AEFHILMNORSX".Contains(token[0], StringComparison.Ordinal) ? "an" : "a";
}
if (StartsWithAny(token, ["heir", "honest", "honor", "hour"]))
{
return "an";
}
if (StartsWithAny(
token,
["one", "once", "euro", "uni", "unique", "unit", "united", "university", "unicorn", "use", "user", "usual", "utility"]))
{
return "a";
}
char firstAlphabeticCharacter = token.First(char.IsLetter);
return "aeiou".Contains(firstAlphabeticCharacter, StringComparison.OrdinalIgnoreCase)
? "an"
: "a";
}
private static bool IsOpeningPunctuation(char character) =>
character is '"' or '\'' or '(' or '[' or '{' or '<';
private static bool AppearsToBeginWithLetterName(string token) =>
char.IsUpper(token[0])
&& (token.Length == 1
|| char.IsUpper(token[1])
|| char.IsDigit(token[1])
|| token[1] == '-');
private static bool StartsWithAny(string token, IReadOnlyList<string> prefixes) =>
prefixes.Any(prefix => token.StartsWith(prefix, StringComparison.OrdinalIgnoreCase));
private static void ValidateOptions(LmStudioOptions options)
{
if (string.IsNullOrWhiteSpace(options.ChatCompletionsUrl))
{
throw new InvalidOperationException("LmStudio ChatCompletionsUrl is required.");
}
if (!Uri.TryCreate(options.ChatCompletionsUrl, UriKind.Absolute, out Uri? uri)
|| (uri.Scheme != Uri.UriSchemeHttp && uri.Scheme != Uri.UriSchemeHttps))
{
throw new InvalidOperationException(
"LmStudio ChatCompletionsUrl must be an absolute HTTP or HTTPS URI.");
}
if (string.IsNullOrWhiteSpace(options.ModelName))
{
throw new InvalidOperationException("LmStudio ModelName is required.");
}
if (string.IsNullOrWhiteSpace(options.SystemPrompt))
{
throw new InvalidOperationException("LmStudio SystemPrompt is required.");
}
if (options.Temperature < 0)
{
throw new InvalidOperationException("LmStudio Temperature must be greater than or equal to zero.");
}
if (options.TopP <= 0 || options.TopP > 1)
{
throw new InvalidOperationException("LmStudio TopP must be greater than zero and at most one.");
}
if (options.MaxTokens <= 0)
{
throw new InvalidOperationException("LmStudio MaxTokens must be greater than zero.");
}
if (options.TimeoutSeconds <= 0)
{
throw new InvalidOperationException("LmStudio TimeoutSeconds must be greater than zero.");
}
}
private sealed class LmStudioResponse
{
[JsonPropertyName("choices")]
public List<LmStudioChoice>? Choices { get; init; }
}
private sealed class LmStudioChoice
{
[JsonPropertyName("message")]
public LmStudioMessage? Message { get; init; }
}
private sealed class LmStudioMessage
{
[JsonPropertyName("content")]
public string? Content { get; init; }
}
}

View File

@ -0,0 +1,22 @@
namespace RLHF.Generator.LmStudio;
public sealed class LmStudioOptions
{
public const string SectionName = "LmStudio";
public string ChatCompletionsUrl { get; set; } = string.Empty;
public string ModelName { get; set; } = string.Empty;
public string SystemPrompt { get; set; } = string.Empty;
public double Temperature { get; set; }
public double TopP { get; set; }
public int MaxTokens { get; set; }
public int Seed { get; set; }
public int TimeoutSeconds { get; set; }
}

View File

@ -0,0 +1,43 @@
namespace RLHF.Generator.LmStudio;
public static class SentenceTenses
{
public const string Past = "past";
public const string Present = "present";
public const string Future = "future";
public static bool TryNormalize(string? value, out string? normalized)
{
normalized = null;
if (value is null)
{
return true;
}
string trimmedValue = value.Trim();
if (trimmedValue.Length == 0)
{
return false;
}
if (string.Equals(trimmedValue, Past, StringComparison.OrdinalIgnoreCase))
{
normalized = Past;
return true;
}
if (string.Equals(trimmedValue, Present, StringComparison.OrdinalIgnoreCase))
{
normalized = Present;
return true;
}
if (string.Equals(trimmedValue, Future, StringComparison.OrdinalIgnoreCase))
{
normalized = Future;
return true;
}
return false;
}
}

View File

@ -0,0 +1,10 @@
namespace RLHF.Generator.Persistence;
public sealed class Category
{
public int Id { get; set; }
public string Name { get; set; } = string.Empty;
public ICollection<Keyword> Keywords { get; set; } = [];
}

View File

@ -0,0 +1,34 @@
namespace RLHF.Generator.Persistence;
public sealed class GenerationRun
{
public Guid Id { get; set; }
public string Status { get; set; } = GenerationRunStatuses.Pending;
public int RandomSeed { get; set; }
public string InputFingerprint { get; set; } = string.Empty;
public string ConfigurationFingerprint { get; set; } = string.Empty;
public int? CurrentCategoryId { get; set; }
public bool? CurrentIsPositive { get; set; }
public long LastCommittedPlanOrdinal { get; set; } = -1;
public int TotalExpectedRowCount { get; set; }
public int TotalCommittedRowCount { get; set; }
public DateTimeOffset StartedAt { get; set; }
public DateTimeOffset LastCheckpointAt { get; set; }
public DateTimeOffset? CompletedAt { get; set; }
public string? FailureType { get; set; }
public string? FailureMessage { get; set; }
}

View File

@ -0,0 +1,18 @@
namespace RLHF.Generator.Persistence;
public static class GenerationRunStatuses
{
public const string Pending = nameof(Pending);
public const string Running = nameof(Running);
public const string Completed = nameof(Completed);
public const string Failed = nameof(Failed);
public const string Cancelled = nameof(Cancelled);
public static readonly string[] Incomplete =
[
Pending,
Running,
Failed,
Cancelled
];
}

View File

@ -0,0 +1,16 @@
namespace RLHF.Generator.Persistence;
public sealed class Keyword
{
public int Id { get; set; }
public int CategoryId { get; set; }
public string Value { get; set; } = string.Empty;
public Category Category { get; set; } = null!;
public ICollection<KeywordVariant> Variants { get; set; } = [];
public ICollection<TrainingItem> TrainingItems { get; set; } = [];
}

View File

@ -0,0 +1,12 @@
namespace RLHF.Generator.Persistence;
public sealed class KeywordVariant
{
public int Id { get; set; }
public int ParentId { get; set; }
public string Value { get; set; } = string.Empty;
public Keyword Parent { get; set; } = null!;
}

View File

@ -0,0 +1,139 @@
// <auto-generated />
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using RLHF.Generator.Persistence;
#nullable disable
namespace RLHF.Generator.Persistence.Migrations
{
[DbContext(typeof(RlhfGeneratorDbContext))]
[Migration("20260724081401_InitialCreate")]
partial class InitialCreate
{
/// <inheritdoc />
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "10.0.8")
.HasAnnotation("Relational:MaxIdentifierLength", 128);
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
modelBuilder.Entity("RLHF.Generator.Persistence.Category", b =>
{
b.Property<int>("Id")
.HasColumnType("int");
b.Property<string>("Name")
.IsRequired()
.HasColumnType("nvarchar(128)");
b.HasKey("Id");
b.ToTable("Category", "dbo");
b.HasData(
new
{
Id = 1,
Name = "MEDICAL_ALLERGY"
},
new
{
Id = 2,
Name = "MEDICAL_DIAGNOSIS"
},
new
{
Id = 3,
Name = "MEDICAL_FAMILY_HISTORY"
},
new
{
Id = 4,
Name = "MEDICAL_MEDICATION"
},
new
{
Id = 5,
Name = "MEDICAL_MENTAL_HEALTH"
},
new
{
Id = 6,
Name = "MEDICAL_OTHER"
},
new
{
Id = 7,
Name = "MEDICAL_PHYSICAL_HEALTH"
},
new
{
Id = 8,
Name = "MEDICAL_PROCEDURE"
},
new
{
Id = 9,
Name = "MEDICAL_SUBSTANCE_USE"
},
new
{
Id = 10,
Name = "MEDICAL_SYMPTOM"
},
new
{
Id = 11,
Name = "MEDICAL_TEST"
},
new
{
Id = 12,
Name = "MEDICAL_TREATMENT"
});
});
modelBuilder.Entity("RLHF.Generator.Persistence.TrainingItem", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
b.Property<int>("CategoryId")
.HasColumnType("int");
b.Property<bool>("IsPositive")
.HasColumnType("bit");
b.Property<string>("Value")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.HasKey("Id");
b.HasIndex("CategoryId");
b.ToTable("TrainingItem", "dbo");
});
modelBuilder.Entity("RLHF.Generator.Persistence.TrainingItem", b =>
{
b.HasOne("RLHF.Generator.Persistence.Category", null)
.WithMany()
.HasForeignKey("CategoryId")
.OnDelete(DeleteBehavior.Restrict)
.IsRequired();
});
#pragma warning restore 612, 618
}
}
}

View File

@ -0,0 +1,93 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
#pragma warning disable CA1814 // Prefer jagged arrays over multidimensional
namespace RLHF.Generator.Persistence.Migrations
{
/// <inheritdoc />
public partial class InitialCreate : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.EnsureSchema(
name: "dbo");
migrationBuilder.CreateTable(
name: "Category",
schema: "dbo",
columns: table => new
{
Id = table.Column<int>(type: "int", nullable: false),
Name = table.Column<string>(type: "nvarchar(128)", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_Category", x => x.Id);
});
migrationBuilder.CreateTable(
name: "TrainingItem",
schema: "dbo",
columns: table => new
{
Id = table.Column<int>(type: "int", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
CategoryId = table.Column<int>(type: "int", nullable: false),
IsPositive = table.Column<bool>(type: "bit", nullable: false),
Value = table.Column<string>(type: "nvarchar(max)", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_TrainingItem", x => x.Id);
table.ForeignKey(
name: "FK_TrainingItem_Category_CategoryId",
column: x => x.CategoryId,
principalSchema: "dbo",
principalTable: "Category",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
});
migrationBuilder.InsertData(
schema: "dbo",
table: "Category",
columns: new[] { "Id", "Name" },
values: new object[,]
{
{ 1, "MEDICAL_ALLERGY" },
{ 2, "MEDICAL_DIAGNOSIS" },
{ 3, "MEDICAL_FAMILY_HISTORY" },
{ 4, "MEDICAL_MEDICATION" },
{ 5, "MEDICAL_MENTAL_HEALTH" },
{ 6, "MEDICAL_OTHER" },
{ 7, "MEDICAL_PHYSICAL_HEALTH" },
{ 8, "MEDICAL_PROCEDURE" },
{ 9, "MEDICAL_SUBSTANCE_USE" },
{ 10, "MEDICAL_SYMPTOM" },
{ 11, "MEDICAL_TEST" },
{ 12, "MEDICAL_TREATMENT" }
});
migrationBuilder.CreateIndex(
name: "IX_TrainingItem_CategoryId",
schema: "dbo",
table: "TrainingItem",
column: "CategoryId");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "TrainingItem",
schema: "dbo");
migrationBuilder.DropTable(
name: "Category",
schema: "dbo");
}
}
}

View File

@ -0,0 +1,229 @@
// <auto-generated />
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using RLHF.Generator.Persistence;
#nullable disable
namespace RLHF.Generator.Persistence.Migrations
{
[DbContext(typeof(RlhfGeneratorDbContext))]
[Migration("20260726045229_DurableGenerationResume")]
partial class DurableGenerationResume
{
/// <inheritdoc />
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "10.0.8")
.HasAnnotation("Relational:MaxIdentifierLength", 128);
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
modelBuilder.Entity("RLHF.Generator.Persistence.Category", b =>
{
b.Property<int>("Id")
.HasColumnType("int");
b.Property<string>("Name")
.IsRequired()
.HasColumnType("nvarchar(128)");
b.HasKey("Id");
b.ToTable("Category", "dbo");
b.HasData(
new
{
Id = 1,
Name = "MEDICAL_ALLERGY"
},
new
{
Id = 2,
Name = "MEDICAL_DIAGNOSIS"
},
new
{
Id = 3,
Name = "MEDICAL_FAMILY_HISTORY"
},
new
{
Id = 4,
Name = "MEDICAL_MEDICATION"
},
new
{
Id = 5,
Name = "MEDICAL_MENTAL_HEALTH"
},
new
{
Id = 6,
Name = "MEDICAL_OTHER"
},
new
{
Id = 7,
Name = "MEDICAL_PHYSICAL_HEALTH"
},
new
{
Id = 8,
Name = "MEDICAL_PROCEDURE"
},
new
{
Id = 9,
Name = "MEDICAL_SUBSTANCE_USE"
},
new
{
Id = 10,
Name = "MEDICAL_SYMPTOM"
},
new
{
Id = 11,
Name = "MEDICAL_TEST"
},
new
{
Id = 12,
Name = "MEDICAL_TREATMENT"
});
});
modelBuilder.Entity("RLHF.Generator.Persistence.GenerationRun", b =>
{
b.Property<Guid>("Id")
.HasColumnType("uniqueidentifier");
b.Property<DateTimeOffset?>("CompletedAt")
.HasColumnType("datetimeoffset");
b.Property<string>("ConfigurationFingerprint")
.IsRequired()
.HasColumnType("char(64)");
b.Property<int?>("CurrentCategoryId")
.HasColumnType("int");
b.Property<bool?>("CurrentIsPositive")
.HasColumnType("bit");
b.Property<string>("FailureMessage")
.HasColumnType("nvarchar(1024)");
b.Property<string>("FailureType")
.HasColumnType("nvarchar(256)");
b.Property<string>("InputFingerprint")
.IsRequired()
.HasColumnType("char(64)");
b.Property<DateTimeOffset>("LastCheckpointAt")
.HasColumnType("datetimeoffset");
b.Property<long>("LastCommittedPlanOrdinal")
.HasColumnType("bigint");
b.Property<int>("RandomSeed")
.HasColumnType("int");
b.Property<DateTimeOffset>("StartedAt")
.HasColumnType("datetimeoffset");
b.Property<string>("Status")
.IsRequired()
.HasColumnType("nvarchar(16)");
b.Property<int>("TotalCommittedRowCount")
.HasColumnType("int");
b.Property<int>("TotalExpectedRowCount")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("CurrentCategoryId");
b.HasIndex("Status");
b.ToTable("GenerationRun", "dbo");
});
modelBuilder.Entity("RLHF.Generator.Persistence.TrainingItem", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
b.Property<int>("CategoryId")
.HasColumnType("int");
b.Property<Guid?>("GenerationRunId")
.HasColumnType("uniqueidentifier");
b.Property<bool>("IsPositive")
.HasColumnType("bit");
b.Property<long?>("PlanOrdinal")
.HasColumnType("bigint");
b.Property<string>("RecordKey")
.HasColumnType("char(64)");
b.Property<string>("Value")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.HasKey("Id");
b.HasIndex("CategoryId");
b.HasIndex("RecordKey")
.IsUnique()
.HasFilter("[RecordKey] IS NOT NULL");
b.HasIndex("GenerationRunId", "PlanOrdinal")
.IsUnique()
.HasFilter("[GenerationRunId] IS NOT NULL AND [PlanOrdinal] IS NOT NULL");
b.ToTable("TrainingItem", "dbo");
});
modelBuilder.Entity("RLHF.Generator.Persistence.GenerationRun", b =>
{
b.HasOne("RLHF.Generator.Persistence.Category", null)
.WithMany()
.HasForeignKey("CurrentCategoryId")
.OnDelete(DeleteBehavior.Restrict);
});
modelBuilder.Entity("RLHF.Generator.Persistence.TrainingItem", b =>
{
b.HasOne("RLHF.Generator.Persistence.Category", null)
.WithMany()
.HasForeignKey("CategoryId")
.OnDelete(DeleteBehavior.Restrict)
.IsRequired();
b.HasOne("RLHF.Generator.Persistence.GenerationRun", null)
.WithMany()
.HasForeignKey("GenerationRunId")
.OnDelete(DeleteBehavior.Restrict);
});
#pragma warning restore 612, 618
}
}
}

View File

@ -0,0 +1,145 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace RLHF.Generator.Persistence.Migrations
{
/// <inheritdoc />
public partial class DurableGenerationResume : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<Guid>(
name: "GenerationRunId",
schema: "dbo",
table: "TrainingItem",
type: "uniqueidentifier",
nullable: true);
migrationBuilder.AddColumn<long>(
name: "PlanOrdinal",
schema: "dbo",
table: "TrainingItem",
type: "bigint",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "RecordKey",
schema: "dbo",
table: "TrainingItem",
type: "char(64)",
nullable: true);
migrationBuilder.CreateTable(
name: "GenerationRun",
schema: "dbo",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
Status = table.Column<string>(type: "nvarchar(16)", nullable: false),
RandomSeed = table.Column<int>(type: "int", nullable: false),
InputFingerprint = table.Column<string>(type: "char(64)", nullable: false),
ConfigurationFingerprint = table.Column<string>(type: "char(64)", nullable: false),
CurrentCategoryId = table.Column<int>(type: "int", nullable: true),
CurrentIsPositive = table.Column<bool>(type: "bit", nullable: true),
LastCommittedPlanOrdinal = table.Column<long>(type: "bigint", nullable: false),
TotalExpectedRowCount = table.Column<int>(type: "int", nullable: false),
TotalCommittedRowCount = table.Column<int>(type: "int", nullable: false),
StartedAt = table.Column<DateTimeOffset>(type: "datetimeoffset", nullable: false),
LastCheckpointAt = table.Column<DateTimeOffset>(type: "datetimeoffset", nullable: false),
CompletedAt = table.Column<DateTimeOffset>(type: "datetimeoffset", nullable: true),
FailureType = table.Column<string>(type: "nvarchar(256)", nullable: true),
FailureMessage = table.Column<string>(type: "nvarchar(1024)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_GenerationRun", x => x.Id);
table.ForeignKey(
name: "FK_GenerationRun_Category_CurrentCategoryId",
column: x => x.CurrentCategoryId,
principalSchema: "dbo",
principalTable: "Category",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
});
migrationBuilder.CreateIndex(
name: "IX_TrainingItem_GenerationRunId_PlanOrdinal",
schema: "dbo",
table: "TrainingItem",
columns: new[] { "GenerationRunId", "PlanOrdinal" },
unique: true,
filter: "[GenerationRunId] IS NOT NULL AND [PlanOrdinal] IS NOT NULL");
migrationBuilder.CreateIndex(
name: "IX_TrainingItem_RecordKey",
schema: "dbo",
table: "TrainingItem",
column: "RecordKey",
unique: true,
filter: "[RecordKey] IS NOT NULL");
migrationBuilder.CreateIndex(
name: "IX_GenerationRun_CurrentCategoryId",
schema: "dbo",
table: "GenerationRun",
column: "CurrentCategoryId");
migrationBuilder.CreateIndex(
name: "IX_GenerationRun_Status",
schema: "dbo",
table: "GenerationRun",
column: "Status");
migrationBuilder.AddForeignKey(
name: "FK_TrainingItem_GenerationRun_GenerationRunId",
schema: "dbo",
table: "TrainingItem",
column: "GenerationRunId",
principalSchema: "dbo",
principalTable: "GenerationRun",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_TrainingItem_GenerationRun_GenerationRunId",
schema: "dbo",
table: "TrainingItem");
migrationBuilder.DropTable(
name: "GenerationRun",
schema: "dbo");
migrationBuilder.DropIndex(
name: "IX_TrainingItem_GenerationRunId_PlanOrdinal",
schema: "dbo",
table: "TrainingItem");
migrationBuilder.DropIndex(
name: "IX_TrainingItem_RecordKey",
schema: "dbo",
table: "TrainingItem");
migrationBuilder.DropColumn(
name: "GenerationRunId",
schema: "dbo",
table: "TrainingItem");
migrationBuilder.DropColumn(
name: "PlanOrdinal",
schema: "dbo",
table: "TrainingItem");
migrationBuilder.DropColumn(
name: "RecordKey",
schema: "dbo",
table: "TrainingItem");
}
}
}

View File

@ -0,0 +1,323 @@
// <auto-generated />
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using RLHF.Generator.Persistence;
#nullable disable
namespace RLHF.Generator.Persistence.Migrations
{
[DbContext(typeof(RlhfGeneratorDbContext))]
[Migration("20260727025048_AddKeywordCatalog")]
partial class AddKeywordCatalog
{
/// <inheritdoc />
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "10.0.8")
.HasAnnotation("Relational:MaxIdentifierLength", 128);
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
modelBuilder.Entity("RLHF.Generator.Persistence.Category", b =>
{
b.Property<int>("Id")
.HasColumnType("int");
b.Property<string>("Name")
.IsRequired()
.HasColumnType("nvarchar(128)");
b.HasKey("Id");
b.ToTable("Category", "dbo");
b.HasData(
new
{
Id = 1,
Name = "MEDICAL_ALLERGY"
},
new
{
Id = 2,
Name = "MEDICAL_DIAGNOSIS"
},
new
{
Id = 3,
Name = "MEDICAL_FAMILY_HISTORY"
},
new
{
Id = 4,
Name = "MEDICAL_MEDICATION"
},
new
{
Id = 5,
Name = "MEDICAL_MENTAL_HEALTH"
},
new
{
Id = 6,
Name = "MEDICAL_OTHER"
},
new
{
Id = 7,
Name = "MEDICAL_PHYSICAL_HEALTH"
},
new
{
Id = 8,
Name = "MEDICAL_PROCEDURE"
},
new
{
Id = 9,
Name = "MEDICAL_SUBSTANCE_USE"
},
new
{
Id = 10,
Name = "MEDICAL_SYMPTOM"
},
new
{
Id = 11,
Name = "MEDICAL_TEST"
},
new
{
Id = 12,
Name = "MEDICAL_TREATMENT"
});
});
modelBuilder.Entity("RLHF.Generator.Persistence.GenerationRun", b =>
{
b.Property<Guid>("Id")
.HasColumnType("uniqueidentifier");
b.Property<DateTimeOffset?>("CompletedAt")
.HasColumnType("datetimeoffset");
b.Property<string>("ConfigurationFingerprint")
.IsRequired()
.HasColumnType("char(64)");
b.Property<int?>("CurrentCategoryId")
.HasColumnType("int");
b.Property<bool?>("CurrentIsPositive")
.HasColumnType("bit");
b.Property<string>("FailureMessage")
.HasColumnType("nvarchar(1024)");
b.Property<string>("FailureType")
.HasColumnType("nvarchar(256)");
b.Property<string>("InputFingerprint")
.IsRequired()
.HasColumnType("char(64)");
b.Property<DateTimeOffset>("LastCheckpointAt")
.HasColumnType("datetimeoffset");
b.Property<long>("LastCommittedPlanOrdinal")
.HasColumnType("bigint");
b.Property<int>("RandomSeed")
.HasColumnType("int");
b.Property<DateTimeOffset>("StartedAt")
.HasColumnType("datetimeoffset");
b.Property<string>("Status")
.IsRequired()
.HasColumnType("nvarchar(16)");
b.Property<int>("TotalCommittedRowCount")
.HasColumnType("int");
b.Property<int>("TotalExpectedRowCount")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("CurrentCategoryId");
b.HasIndex("Status");
b.ToTable("GenerationRun", "dbo");
});
modelBuilder.Entity("RLHF.Generator.Persistence.Keyword", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
b.Property<int>("CategoryId")
.HasColumnType("int");
b.Property<string>("Value")
.IsRequired()
.HasMaxLength(450)
.HasColumnType("nvarchar(450)");
b.HasKey("Id");
b.HasIndex("CategoryId", "Value")
.IsUnique();
b.ToTable("Keyword", "dbo");
});
modelBuilder.Entity("RLHF.Generator.Persistence.KeywordVariant", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
b.Property<int>("ParentId")
.HasColumnType("int");
b.Property<string>("Value")
.IsRequired()
.HasMaxLength(450)
.HasColumnType("nvarchar(450)");
b.HasKey("Id");
b.HasIndex("ParentId", "Value")
.IsUnique();
b.ToTable("KeywordVariant", "dbo");
});
modelBuilder.Entity("RLHF.Generator.Persistence.TrainingItem", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
b.Property<int>("CategoryId")
.HasColumnType("int");
b.Property<Guid?>("GenerationRunId")
.HasColumnType("uniqueidentifier");
b.Property<bool>("IsPositive")
.HasColumnType("bit");
b.Property<int?>("KeywordId")
.HasColumnType("int");
b.Property<long?>("PlanOrdinal")
.HasColumnType("bigint");
b.Property<string>("RecordKey")
.HasColumnType("char(64)");
b.Property<string>("Value")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.HasKey("Id");
b.HasIndex("CategoryId");
b.HasIndex("KeywordId");
b.HasIndex("RecordKey")
.IsUnique()
.HasFilter("[RecordKey] IS NOT NULL");
b.HasIndex("GenerationRunId", "PlanOrdinal")
.IsUnique()
.HasFilter("[GenerationRunId] IS NOT NULL AND [PlanOrdinal] IS NOT NULL");
b.ToTable("TrainingItem", "dbo");
});
modelBuilder.Entity("RLHF.Generator.Persistence.GenerationRun", b =>
{
b.HasOne("RLHF.Generator.Persistence.Category", null)
.WithMany()
.HasForeignKey("CurrentCategoryId")
.OnDelete(DeleteBehavior.Restrict);
});
modelBuilder.Entity("RLHF.Generator.Persistence.Keyword", b =>
{
b.HasOne("RLHF.Generator.Persistence.Category", "Category")
.WithMany("Keywords")
.HasForeignKey("CategoryId")
.OnDelete(DeleteBehavior.Restrict)
.IsRequired();
b.Navigation("Category");
});
modelBuilder.Entity("RLHF.Generator.Persistence.KeywordVariant", b =>
{
b.HasOne("RLHF.Generator.Persistence.Keyword", "Parent")
.WithMany("Variants")
.HasForeignKey("ParentId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Parent");
});
modelBuilder.Entity("RLHF.Generator.Persistence.TrainingItem", b =>
{
b.HasOne("RLHF.Generator.Persistence.Category", null)
.WithMany()
.HasForeignKey("CategoryId")
.OnDelete(DeleteBehavior.Restrict)
.IsRequired();
b.HasOne("RLHF.Generator.Persistence.GenerationRun", null)
.WithMany()
.HasForeignKey("GenerationRunId")
.OnDelete(DeleteBehavior.Restrict);
b.HasOne("RLHF.Generator.Persistence.Keyword", "Keyword")
.WithMany("TrainingItems")
.HasForeignKey("KeywordId")
.OnDelete(DeleteBehavior.Restrict);
b.Navigation("Keyword");
});
modelBuilder.Entity("RLHF.Generator.Persistence.Category", b =>
{
b.Navigation("Keywords");
});
modelBuilder.Entity("RLHF.Generator.Persistence.Keyword", b =>
{
b.Navigation("TrainingItems");
b.Navigation("Variants");
});
#pragma warning restore 612, 618
}
}
}

View File

@ -0,0 +1,122 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace RLHF.Generator.Persistence.Migrations
{
/// <inheritdoc />
public partial class AddKeywordCatalog : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<int>(
name: "KeywordId",
schema: "dbo",
table: "TrainingItem",
type: "int",
nullable: true);
migrationBuilder.CreateTable(
name: "Keyword",
schema: "dbo",
columns: table => new
{
Id = table.Column<int>(type: "int", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
CategoryId = table.Column<int>(type: "int", nullable: false),
Value = table.Column<string>(type: "nvarchar(450)", maxLength: 450, nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_Keyword", x => x.Id);
table.ForeignKey(
name: "FK_Keyword_Category_CategoryId",
column: x => x.CategoryId,
principalSchema: "dbo",
principalTable: "Category",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
});
migrationBuilder.CreateTable(
name: "KeywordVariant",
schema: "dbo",
columns: table => new
{
Id = table.Column<int>(type: "int", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
ParentId = table.Column<int>(type: "int", nullable: false),
Value = table.Column<string>(type: "nvarchar(450)", maxLength: 450, nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_KeywordVariant", x => x.Id);
table.ForeignKey(
name: "FK_KeywordVariant_Keyword_ParentId",
column: x => x.ParentId,
principalSchema: "dbo",
principalTable: "Keyword",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateIndex(
name: "IX_TrainingItem_KeywordId",
schema: "dbo",
table: "TrainingItem",
column: "KeywordId");
migrationBuilder.CreateIndex(
name: "IX_Keyword_CategoryId_Value",
schema: "dbo",
table: "Keyword",
columns: new[] { "CategoryId", "Value" },
unique: true);
migrationBuilder.CreateIndex(
name: "IX_KeywordVariant_ParentId_Value",
schema: "dbo",
table: "KeywordVariant",
columns: new[] { "ParentId", "Value" },
unique: true);
migrationBuilder.AddForeignKey(
name: "FK_TrainingItem_Keyword_KeywordId",
schema: "dbo",
table: "TrainingItem",
column: "KeywordId",
principalSchema: "dbo",
principalTable: "Keyword",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_TrainingItem_Keyword_KeywordId",
schema: "dbo",
table: "TrainingItem");
migrationBuilder.DropTable(
name: "KeywordVariant",
schema: "dbo");
migrationBuilder.DropTable(
name: "Keyword",
schema: "dbo");
migrationBuilder.DropIndex(
name: "IX_TrainingItem_KeywordId",
schema: "dbo",
table: "TrainingItem");
migrationBuilder.DropColumn(
name: "KeywordId",
schema: "dbo",
table: "TrainingItem");
}
}
}

View File

@ -0,0 +1,320 @@
// <auto-generated />
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using RLHF.Generator.Persistence;
#nullable disable
namespace RLHF.Generator.Persistence.Migrations
{
[DbContext(typeof(RlhfGeneratorDbContext))]
partial class RlhfGeneratorDbContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "10.0.8")
.HasAnnotation("Relational:MaxIdentifierLength", 128);
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
modelBuilder.Entity("RLHF.Generator.Persistence.Category", b =>
{
b.Property<int>("Id")
.HasColumnType("int");
b.Property<string>("Name")
.IsRequired()
.HasColumnType("nvarchar(128)");
b.HasKey("Id");
b.ToTable("Category", "dbo");
b.HasData(
new
{
Id = 1,
Name = "MEDICAL_ALLERGY"
},
new
{
Id = 2,
Name = "MEDICAL_DIAGNOSIS"
},
new
{
Id = 3,
Name = "MEDICAL_FAMILY_HISTORY"
},
new
{
Id = 4,
Name = "MEDICAL_MEDICATION"
},
new
{
Id = 5,
Name = "MEDICAL_MENTAL_HEALTH"
},
new
{
Id = 6,
Name = "MEDICAL_OTHER"
},
new
{
Id = 7,
Name = "MEDICAL_PHYSICAL_HEALTH"
},
new
{
Id = 8,
Name = "MEDICAL_PROCEDURE"
},
new
{
Id = 9,
Name = "MEDICAL_SUBSTANCE_USE"
},
new
{
Id = 10,
Name = "MEDICAL_SYMPTOM"
},
new
{
Id = 11,
Name = "MEDICAL_TEST"
},
new
{
Id = 12,
Name = "MEDICAL_TREATMENT"
});
});
modelBuilder.Entity("RLHF.Generator.Persistence.GenerationRun", b =>
{
b.Property<Guid>("Id")
.HasColumnType("uniqueidentifier");
b.Property<DateTimeOffset?>("CompletedAt")
.HasColumnType("datetimeoffset");
b.Property<string>("ConfigurationFingerprint")
.IsRequired()
.HasColumnType("char(64)");
b.Property<int?>("CurrentCategoryId")
.HasColumnType("int");
b.Property<bool?>("CurrentIsPositive")
.HasColumnType("bit");
b.Property<string>("FailureMessage")
.HasColumnType("nvarchar(1024)");
b.Property<string>("FailureType")
.HasColumnType("nvarchar(256)");
b.Property<string>("InputFingerprint")
.IsRequired()
.HasColumnType("char(64)");
b.Property<DateTimeOffset>("LastCheckpointAt")
.HasColumnType("datetimeoffset");
b.Property<long>("LastCommittedPlanOrdinal")
.HasColumnType("bigint");
b.Property<int>("RandomSeed")
.HasColumnType("int");
b.Property<DateTimeOffset>("StartedAt")
.HasColumnType("datetimeoffset");
b.Property<string>("Status")
.IsRequired()
.HasColumnType("nvarchar(16)");
b.Property<int>("TotalCommittedRowCount")
.HasColumnType("int");
b.Property<int>("TotalExpectedRowCount")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("CurrentCategoryId");
b.HasIndex("Status");
b.ToTable("GenerationRun", "dbo");
});
modelBuilder.Entity("RLHF.Generator.Persistence.Keyword", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
b.Property<int>("CategoryId")
.HasColumnType("int");
b.Property<string>("Value")
.IsRequired()
.HasMaxLength(450)
.HasColumnType("nvarchar(450)");
b.HasKey("Id");
b.HasIndex("CategoryId", "Value")
.IsUnique();
b.ToTable("Keyword", "dbo");
});
modelBuilder.Entity("RLHF.Generator.Persistence.KeywordVariant", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
b.Property<int>("ParentId")
.HasColumnType("int");
b.Property<string>("Value")
.IsRequired()
.HasMaxLength(450)
.HasColumnType("nvarchar(450)");
b.HasKey("Id");
b.HasIndex("ParentId", "Value")
.IsUnique();
b.ToTable("KeywordVariant", "dbo");
});
modelBuilder.Entity("RLHF.Generator.Persistence.TrainingItem", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
b.Property<int>("CategoryId")
.HasColumnType("int");
b.Property<Guid?>("GenerationRunId")
.HasColumnType("uniqueidentifier");
b.Property<bool>("IsPositive")
.HasColumnType("bit");
b.Property<int?>("KeywordId")
.HasColumnType("int");
b.Property<long?>("PlanOrdinal")
.HasColumnType("bigint");
b.Property<string>("RecordKey")
.HasColumnType("char(64)");
b.Property<string>("Value")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.HasKey("Id");
b.HasIndex("CategoryId");
b.HasIndex("KeywordId");
b.HasIndex("RecordKey")
.IsUnique()
.HasFilter("[RecordKey] IS NOT NULL");
b.HasIndex("GenerationRunId", "PlanOrdinal")
.IsUnique()
.HasFilter("[GenerationRunId] IS NOT NULL AND [PlanOrdinal] IS NOT NULL");
b.ToTable("TrainingItem", "dbo");
});
modelBuilder.Entity("RLHF.Generator.Persistence.GenerationRun", b =>
{
b.HasOne("RLHF.Generator.Persistence.Category", null)
.WithMany()
.HasForeignKey("CurrentCategoryId")
.OnDelete(DeleteBehavior.Restrict);
});
modelBuilder.Entity("RLHF.Generator.Persistence.Keyword", b =>
{
b.HasOne("RLHF.Generator.Persistence.Category", "Category")
.WithMany("Keywords")
.HasForeignKey("CategoryId")
.OnDelete(DeleteBehavior.Restrict)
.IsRequired();
b.Navigation("Category");
});
modelBuilder.Entity("RLHF.Generator.Persistence.KeywordVariant", b =>
{
b.HasOne("RLHF.Generator.Persistence.Keyword", "Parent")
.WithMany("Variants")
.HasForeignKey("ParentId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Parent");
});
modelBuilder.Entity("RLHF.Generator.Persistence.TrainingItem", b =>
{
b.HasOne("RLHF.Generator.Persistence.Category", null)
.WithMany()
.HasForeignKey("CategoryId")
.OnDelete(DeleteBehavior.Restrict)
.IsRequired();
b.HasOne("RLHF.Generator.Persistence.GenerationRun", null)
.WithMany()
.HasForeignKey("GenerationRunId")
.OnDelete(DeleteBehavior.Restrict);
b.HasOne("RLHF.Generator.Persistence.Keyword", "Keyword")
.WithMany("TrainingItems")
.HasForeignKey("KeywordId")
.OnDelete(DeleteBehavior.Restrict);
b.Navigation("Keyword");
});
modelBuilder.Entity("RLHF.Generator.Persistence.Category", b =>
{
b.Navigation("Keywords");
});
modelBuilder.Entity("RLHF.Generator.Persistence.Keyword", b =>
{
b.Navigation("TrainingItems");
b.Navigation("Variants");
});
#pragma warning restore 612, 618
}
}
}

View File

@ -0,0 +1,117 @@
using Microsoft.EntityFrameworkCore;
using RLHF.Generator.TrainingData;
namespace RLHF.Generator.Persistence;
public sealed class RlhfGeneratorDbContext : DbContext
{
public RlhfGeneratorDbContext(DbContextOptions options)
: base(options)
{
}
public DbSet<Category> Categories => Set<Category>();
public DbSet<GenerationRun> GenerationRuns => Set<GenerationRun>();
public DbSet<Keyword> Keywords => Set<Keyword>();
public DbSet<KeywordVariant> KeywordVariants => Set<KeywordVariant>();
public DbSet<TrainingItem> TrainingItems => Set<TrainingItem>();
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
base.OnModelCreating(modelBuilder);
modelBuilder.Entity<Category>(entity =>
{
entity.ToTable("Category", "dbo");
entity.HasKey(category => category.Id);
entity.Property(category => category.Id).ValueGeneratedNever();
entity.Property(category => category.Name).HasColumnType("nvarchar(128)").IsRequired();
entity.HasData(TrainingCategories.All.Select(category => new Category
{
Id = category.Id,
Name = category.Name
}));
});
modelBuilder.Entity<GenerationRun>(entity =>
{
entity.ToTable("GenerationRun", "dbo");
entity.HasKey(run => run.Id);
entity.Property(run => run.Id).ValueGeneratedNever();
entity.Property(run => run.Status).HasColumnType("nvarchar(16)").IsRequired();
entity.Property(run => run.InputFingerprint).HasColumnType("char(64)").IsRequired();
entity.Property(run => run.ConfigurationFingerprint).HasColumnType("char(64)").IsRequired();
entity.Property(run => run.FailureType).HasColumnType("nvarchar(256)");
entity.Property(run => run.FailureMessage).HasColumnType("nvarchar(1024)");
entity.HasIndex(run => run.Status);
entity.HasOne<Category>()
.WithMany()
.HasForeignKey(run => run.CurrentCategoryId)
.OnDelete(DeleteBehavior.Restrict);
});
modelBuilder.Entity<Keyword>(entity =>
{
entity.ToTable("Keyword", "dbo");
entity.HasKey(keyword => keyword.Id);
entity.Property(keyword => keyword.Id).UseIdentityColumn(1, 1);
entity.Property(keyword => keyword.CategoryId).IsRequired();
entity.Property(keyword => keyword.Value).HasMaxLength(450).IsRequired();
entity.HasIndex(keyword => new { keyword.CategoryId, keyword.Value }).IsUnique();
entity.HasOne(keyword => keyword.Category)
.WithMany(category => category.Keywords)
.HasForeignKey(keyword => keyword.CategoryId)
.OnDelete(DeleteBehavior.Restrict);
});
modelBuilder.Entity<KeywordVariant>(entity =>
{
entity.ToTable("KeywordVariant", "dbo");
entity.HasKey(variant => variant.Id);
entity.Property(variant => variant.Id).UseIdentityColumn(1, 1);
entity.Property(variant => variant.ParentId).IsRequired();
entity.Property(variant => variant.Value).HasMaxLength(450).IsRequired();
entity.HasIndex(variant => new { variant.ParentId, variant.Value }).IsUnique();
entity.HasOne(variant => variant.Parent)
.WithMany(keyword => keyword.Variants)
.HasForeignKey(variant => variant.ParentId)
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity<TrainingItem>(entity =>
{
entity.ToTable("TrainingItem", "dbo");
entity.HasKey(trainingItem => trainingItem.Id);
entity.Property(trainingItem => trainingItem.Id).UseIdentityColumn(1, 1);
entity.Property(trainingItem => trainingItem.RecordKey).HasColumnType("char(64)");
entity.Property(trainingItem => trainingItem.Value).HasColumnType("nvarchar(max)").IsRequired();
entity.HasIndex(trainingItem => trainingItem.KeywordId);
entity.HasIndex(trainingItem => trainingItem.RecordKey)
.IsUnique()
.HasFilter("[RecordKey] IS NOT NULL");
entity.HasIndex(trainingItem => new
{
trainingItem.GenerationRunId,
trainingItem.PlanOrdinal
})
.IsUnique()
.HasFilter("[GenerationRunId] IS NOT NULL AND [PlanOrdinal] IS NOT NULL");
entity.HasOne<GenerationRun>()
.WithMany()
.HasForeignKey(trainingItem => trainingItem.GenerationRunId)
.OnDelete(DeleteBehavior.Restrict);
entity.HasOne<Category>()
.WithMany()
.HasForeignKey(trainingItem => trainingItem.CategoryId)
.OnDelete(DeleteBehavior.Restrict);
entity.HasOne(trainingItem => trainingItem.Keyword)
.WithMany(keyword => keyword.TrainingItems)
.HasForeignKey(trainingItem => trainingItem.KeywordId)
.OnDelete(DeleteBehavior.Restrict);
});
}
}

View File

@ -0,0 +1,47 @@
using Microsoft.Data.SqlClient;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Design;
namespace RLHF.Generator.Persistence;
public sealed class RlhfGeneratorDesignTimeDbContextFactory
: IDesignTimeDbContextFactory<RlhfGeneratorDbContext>
{
public const string DesignTimeDatabaseName = "RLHFGenerator_DesignTime";
private const string DesignTimeConnectionString =
"Data Source=.;Initial Catalog=RLHFGenerator_DesignTime;Integrated Security=True;" +
"Encrypt=True;TrustServerCertificate=True";
public RlhfGeneratorDbContext CreateDbContext(string[] args)
{
SqlConnectionStringBuilder connection = new(DesignTimeConnectionString);
ValidateDatabaseName(connection.InitialCatalog);
DbContextOptions<RlhfGeneratorDbContext> options =
new DbContextOptionsBuilder<RlhfGeneratorDbContext>()
.UseSqlServer(connection.ConnectionString)
.Options;
return new RlhfGeneratorDbContext(options);
}
public static void ValidateDatabaseName(string? databaseName)
{
if (string.Equals(databaseName, "RLHFGenerator", StringComparison.OrdinalIgnoreCase))
{
throw new InvalidOperationException(
"EF design-time tooling is forbidden from using the production " +
"RLHFGenerator database.");
}
if (string.IsNullOrWhiteSpace(databaseName)
|| !string.Equals(
databaseName,
DesignTimeDatabaseName,
StringComparison.OrdinalIgnoreCase))
{
throw new InvalidOperationException(
$"EF design-time database must be '{DesignTimeDatabaseName}'.");
}
}
}

View File

@ -0,0 +1,22 @@
namespace RLHF.Generator.Persistence;
public sealed class TrainingItem
{
public int Id { get; set; }
public Guid? GenerationRunId { get; set; }
public long? PlanOrdinal { get; set; }
public string? RecordKey { get; set; }
public int CategoryId { get; set; }
public int? KeywordId { get; set; }
public bool IsPositive { get; set; }
public string Value { get; set; } = string.Empty;
public Keyword? Keyword { get; set; }
}

View File

@ -0,0 +1,27 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Storage;
namespace RLHF.Generator.Persistence;
public sealed class TrainingItemResetService
{
private readonly RlhfGeneratorDbContext _dbContext;
public TrainingItemResetService(RlhfGeneratorDbContext dbContext)
{
ArgumentNullException.ThrowIfNull(dbContext);
_dbContext = dbContext;
}
public async Task ResetAsync(CancellationToken cancellationToken = default)
{
cancellationToken.ThrowIfCancellationRequested();
await using IDbContextTransaction transaction =
await _dbContext.Database.BeginTransactionAsync(cancellationToken);
await _dbContext.Database.ExecuteSqlRawAsync(
"TRUNCATE TABLE [dbo].[TrainingItem]; DELETE FROM [dbo].[GenerationRun];",
cancellationToken);
await transaction.CommitAsync(cancellationToken);
}
}

View File

@ -0,0 +1,24 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<None Update="Data\**\*.txt">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
</None>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="10.0.8">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="10.0.8" />
</ItemGroup>
</Project>

View File

@ -0,0 +1,54 @@
using System.Collections.ObjectModel;
namespace RLHF.Generator.TrainingData;
public static class TrainingCategories
{
public static TrainingCategoryDefinition MedicalAllergy { get; } = new(1, "MEDICAL_ALLERGY");
public static TrainingCategoryDefinition MedicalDiagnosis { get; } = new(2, "MEDICAL_DIAGNOSIS");
public static TrainingCategoryDefinition MedicalFamilyHistory { get; } = new(3, "MEDICAL_FAMILY_HISTORY");
public static TrainingCategoryDefinition MedicalMedication { get; } = new(4, "MEDICAL_MEDICATION");
public static TrainingCategoryDefinition MedicalMentalHealth { get; } = new(5, "MEDICAL_MENTAL_HEALTH");
public static TrainingCategoryDefinition MedicalOther { get; } = new(6, "MEDICAL_OTHER");
public static TrainingCategoryDefinition MedicalPhysicalHealth { get; } = new(7, "MEDICAL_PHYSICAL_HEALTH");
public static TrainingCategoryDefinition MedicalProcedure { get; } = new(8, "MEDICAL_PROCEDURE");
public static TrainingCategoryDefinition MedicalSubstanceUse { get; } = new(9, "MEDICAL_SUBSTANCE_USE");
public static TrainingCategoryDefinition MedicalSymptom { get; } = new(10, "MEDICAL_SYMPTOM");
public static TrainingCategoryDefinition MedicalTest { get; } = new(11, "MEDICAL_TEST");
public static TrainingCategoryDefinition MedicalTreatment { get; } = new(12, "MEDICAL_TREATMENT");
public static IReadOnlyList<TrainingCategoryDefinition> All { get; } =
new ReadOnlyCollection<TrainingCategoryDefinition>(
[
MedicalAllergy,
MedicalDiagnosis,
MedicalFamilyHistory,
MedicalMedication,
MedicalMentalHealth,
MedicalOther,
MedicalPhysicalHealth,
MedicalProcedure,
MedicalSubstanceUse,
MedicalSymptom,
MedicalTest,
MedicalTreatment
]);
public static TrainingCategoryDefinition GetByName(string name)
{
if (string.IsNullOrWhiteSpace(name))
{
throw new ArgumentException("A category name is required.", nameof(name));
}
foreach (TrainingCategoryDefinition category in All)
{
if (string.Equals(category.Name, name, StringComparison.OrdinalIgnoreCase))
{
return category;
}
}
throw new ArgumentException($"Unsupported category name '{name}'.", nameof(name));
}
}

View File

@ -0,0 +1,3 @@
namespace RLHF.Generator.TrainingData;
public sealed record TrainingCategoryDefinition(int Id, string Name);

View File

@ -0,0 +1,19 @@
using System.Collections.ObjectModel;
namespace RLHF.Generator.TrainingData;
public sealed record TrainingCategoryValue
{
public TrainingCategoryValue(string canonicalForm, IReadOnlyList<string> allowedForms)
{
ArgumentException.ThrowIfNullOrWhiteSpace(canonicalForm);
ArgumentNullException.ThrowIfNull(allowedForms);
CanonicalForm = canonicalForm;
AllowedForms = new ReadOnlyCollection<string>([.. allowedForms]);
}
public string CanonicalForm { get; }
public IReadOnlyList<string> AllowedForms { get; }
}

View File

@ -0,0 +1,225 @@
using System.Collections.ObjectModel;
namespace RLHF.Generator.TrainingData;
public sealed class TrainingDataReader
{
public TrainingDataReader(string dataDirectory)
{
if (string.IsNullOrWhiteSpace(dataDirectory))
{
throw new ArgumentException("A data directory is required.", nameof(dataDirectory));
}
DataDirectory = Path.GetFullPath(dataDirectory);
}
public string DataDirectory { get; }
public async Task ValidateAsync(CancellationToken cancellationToken = default)
{
if (!Directory.Exists(DataDirectory))
{
throw new DirectoryNotFoundException($"Data directory not found: '{DataDirectory}'.");
}
string categoriesDirectory = Path.Combine(DataDirectory, "Categories");
if (!Directory.Exists(categoriesDirectory))
{
throw new DirectoryNotFoundException($"Categories directory not found: '{categoriesDirectory}'.");
}
string patternsDirectory = Path.Combine(DataDirectory, "Patterns");
if (!Directory.Exists(patternsDirectory))
{
throw new DirectoryNotFoundException($"Patterns directory not found: '{patternsDirectory}'.");
}
string subjectsPath = Path.Combine(DataDirectory, "Subjects.txt");
if (!File.Exists(subjectsPath))
{
throw new FileNotFoundException($"Subjects file not found: '{subjectsPath}'.", subjectsPath);
}
HashSet<string> expectedCategoryFiles = TrainingCategories.All
.Select(category => $"{category.Name}.txt")
.ToHashSet(StringComparer.Ordinal);
ValidateFileSet(categoriesDirectory, expectedCategoryFiles, "category");
HashSet<string> expectedPatternFiles = TrainingCategories.All
.SelectMany(category => new[]
{
$"{category.Name}.positive.txt",
$"{category.Name}.negative.txt"
})
.ToHashSet(StringComparer.Ordinal);
ValidateFileSet(patternsDirectory, expectedPatternFiles, "pattern");
foreach (TrainingCategoryDefinition category in TrainingCategories.All)
{
await ReadCategoryValuesAsync(category, cancellationToken);
foreach (bool isPositive in new[] { true, false })
{
string patternPath = GetPatternPath(category, isPositive);
IReadOnlyList<string> patterns = await ReadActiveLinesAsync(patternPath, cancellationToken);
foreach (string pattern in patterns)
{
if (pattern.Contains("[s]", StringComparison.Ordinal))
{
throw new InvalidDataException(
$"Legacy placeholder '[s]' found in pattern file '{patternPath}'.");
}
}
}
}
IReadOnlyList<string> subjects = await ReadActiveLinesAsync(subjectsPath, cancellationToken);
if (!subjects.SequenceEqual(TrainingSubjects.All, StringComparer.Ordinal))
{
throw new InvalidDataException(
$"Active subjects in '{subjectsPath}' do not exactly match the subject catalog. " +
$"Found: '{string.Join("', '", subjects)}'.");
}
}
public async Task<IReadOnlyList<TrainingCategoryValue>> ReadCategoryValuesAsync(
TrainingCategoryDefinition category,
CancellationToken cancellationToken = default)
{
ArgumentNullException.ThrowIfNull(category);
string path = Path.Combine(DataDirectory, "Categories", $"{category.Name}.txt");
if (!File.Exists(path))
{
throw new FileNotFoundException($"Required data file not found: '{path}'.", path);
}
List<TrainingCategoryValue> values = [];
Dictionary<string, int> formLineNumbers = new(StringComparer.OrdinalIgnoreCase);
using StreamReader reader = File.OpenText(path);
int lineNumber = 0;
while (await reader.ReadLineAsync(cancellationToken) is { } line)
{
lineNumber++;
string trimmedLine = line.Trim();
if (trimmedLine.Length == 0 || trimmedLine.StartsWith('#'))
{
continue;
}
string[] forms = trimmedLine
.Split('|')
.Select(form => form.Trim())
.ToArray();
if (forms.Any(form => form.Length == 0))
{
throw new InvalidDataException(
$"Category '{category.Name}' line {lineNumber} contains an empty surface form.");
}
HashSet<string> lineForms = new(StringComparer.OrdinalIgnoreCase);
foreach (string form in forms)
{
if (!lineForms.Add(form))
{
throw new InvalidDataException(
$"Category '{category.Name}' line {lineNumber} contains duplicate surface form '{form}'.");
}
if (formLineNumbers.TryGetValue(form, out int conflictingLineNumber))
{
throw new InvalidDataException(
$"Category '{category.Name}' surface form '{form}' conflicts between lines " +
$"{conflictingLineNumber} and {lineNumber}.");
}
}
foreach (string form in forms)
{
formLineNumbers.Add(form, lineNumber);
}
values.Add(new TrainingCategoryValue(forms[0], forms));
}
if (values.Count == 0)
{
throw new InvalidDataException($"Data file contains no active lines: '{path}'.");
}
return new ReadOnlyCollection<TrainingCategoryValue>(values);
}
public Task<IReadOnlyList<string>> ReadPatternsAsync(
TrainingCategoryDefinition category,
bool isPositive,
CancellationToken cancellationToken = default)
{
ArgumentNullException.ThrowIfNull(category);
return ReadActiveLinesAsync(GetPatternPath(category, isPositive), cancellationToken);
}
private string GetPatternPath(TrainingCategoryDefinition category, bool isPositive)
{
string sentiment = isPositive ? "positive" : "negative";
return Path.Combine(DataDirectory, "Patterns", $"{category.Name}.{sentiment}.txt");
}
private static void ValidateFileSet(
string directory,
IReadOnlySet<string> expectedFiles,
string fileKind)
{
HashSet<string> actualFiles = Directory
.EnumerateFiles(directory, "*.txt", SearchOption.TopDirectoryOnly)
.Select(path => Path.GetFileName(path)!)
.ToHashSet(StringComparer.Ordinal);
string? missingFile = expectedFiles.FirstOrDefault(file => !actualFiles.Contains(file));
if (missingFile is not null)
{
string missingPath = Path.Combine(directory, missingFile);
throw new FileNotFoundException(
$"Expected {fileKind} file not found: '{missingPath}'.",
missingPath);
}
string? unexpectedFile = actualFiles.FirstOrDefault(file => !expectedFiles.Contains(file));
if (unexpectedFile is not null)
{
throw new InvalidDataException(
$"Unexpected {fileKind} file found: '{Path.Combine(directory, unexpectedFile)}'.");
}
}
private static async Task<IReadOnlyList<string>> ReadActiveLinesAsync(
string path,
CancellationToken cancellationToken)
{
if (!File.Exists(path))
{
throw new FileNotFoundException($"Required data file not found: '{path}'.", path);
}
List<string> activeLines = [];
using StreamReader reader = File.OpenText(path);
while (await reader.ReadLineAsync(cancellationToken) is { } line)
{
string trimmedLine = line.Trim();
if (trimmedLine.Length > 0 && !trimmedLine.StartsWith('#'))
{
activeLines.Add(trimmedLine);
}
}
if (activeLines.Count == 0)
{
throw new InvalidDataException($"Data file contains no active lines: '{path}'.");
}
return new ReadOnlyCollection<string>(activeLines);
}
}

View File

@ -0,0 +1,14 @@
using System.Collections.ObjectModel;
namespace RLHF.Generator.TrainingData;
public static class TrainingSubjects
{
public const string He = nameof(He);
public const string She = nameof(She);
public const string They = nameof(They);
public const string Member = nameof(Member);
public static IReadOnlyList<string> All { get; } =
new ReadOnlyCollection<string>([He, She, They, Member]);
}

View File

@ -1,3 +1,3 @@
# OpenBioLLM PHI Supervised Fine-Tuning # Model for flagging and redacting PHI
Simple, repeatable pipeline for exporting labeled SQL Server data, fine-tuning Llama3-OpenBioLLM-8B, evaluating it, and producing an LM Studio-compatible GGUF model. Simple, repeatable pipeline for exporting labeled "Generator" created SQL Server data, fine-tuning / extending Llama3-OpenBioLLM-8B, evaluating it, and producing a GGUF model.