Extract only the formal disease or condition names in the userʼs input suitable for the “ConditionSearch Area” in Essie expression syntax. Return as valid Essie expressions (e.g. diabetes, (lung OR breast) AND cancer). If in Japanese, translate to English.
sort
必須
Extract sorting preferences and output as a comma- or pipe-separated string of ClinicalTrials.gov field names, with optional :asc or :desc , and without brackets or array syntax. Example: “@relevance” , “EnrollmentCount:desc,NumArmGroups” , “LastUpdatePostDate” . Return as a plain string, not a JSONarray.
pageSize
必須
If the user specifies the number of results desired, extract and return as pageSize(e.g., “一覧で10件” → pageSize: 10). Default to 10 if unspecified.
query.term
任意
Extract other relevant search terms (e.g., symptoms,findings, study context) for “BasicSearch Area” in Essiesyntax. Return as valid Essie expressions (e.g., AREA[LastUpdatePostDate]RANGE[2023-01-01,MAX] ). If in Japanese, translate as needed.
query.locn
任意
Extract location (country, region, city, etc.) relevant for “LocationSearch Area” in Essie syntax. Return as AREA expressions (e.g., AREA[LocationCountry]Japan AND AREA[LocationStatus]Recruiting ). Translate to English.
query.intr
任意
Extract intervention/treatment names, medical devices,or substance keywords from user input for “InterventionSearch Area”. Return as AREA expressions (e.g., AREA[InterventionName]Liraglutide ). Translate toofficial English values.
query.id
任意
Extract study IDs (NCT numbers, aliases), return as IDs or AREA expressions as appropriate. E.g., NCT01234567 or AREA[NCTIdAlias]JP12345
filter.overallStatus
任意
Extract specific recruitment statuses (e.g., “募集中”, “完了” etc.), map to allowed API status codes and return asarray, e.g., RECRUITING, COMPLETED. Use official allowedvalues: ACTIVE_NOT_RECRUITING, COMPLETED, ENROLLING_BY_INVITATION, NOT_YET_RECRUITING, RECRUITING, SUSPENDED, TERMINATED, WITHDRAWN, AVAILABLE, NO_LONGER_AVAILABLE, TEMPORARILY_NOT_AVAILABLE, APPROVED_FOR_MARKETING, WITHHELD, UNKNOWN.
filter.advanced
任意
Extract any advanced area+operator expressions from the user’s input and return as valid Essie expressions for ClinicalTrials.gov API. For any field that uses enumeratedvalues (such as trial phase), always translate user input (e.g., “第3相”) to the enum value from this list: NA, EARLY_PHASE1, PHASE1, PHASE2, PHASE3, PHASE4, output in the format AREA[Phase]PHASE3.
3. Code in JavaScriptノードでクエリを整形
Information Extractorノードの出⼒には、ユーザーが指定しなかった空の検索パラメータも含まれます。このノードは、それらの不要な空のパラメータを削除し、APIリクエスト⽤のクリーンなJSONオブジェクトを作成します。この作業をしないとHTTP RequestノードでAPI検索を⾏う時に、どうしてもエラーが発⽣してしまいます。