ccamCode: CCAM Code Prediction

Description Usage Arguments Value Examples

Description

CCAM code prediction function. It is used by OpenCPU Web service for Web-based prediction and can be used directly from R console.

Usage

1
ccamCode(texte = "", service = "", nbCodes = 10)

Arguments

service

service name, from the list of built-in models : {'urologie', 'chirgen', 'chirplas', 'chirmaxfac'}. This parameter is used to pick the right model for code prediction.

nbCodes

the desired number of returned codes (default 10).

text

medical text to be encoded.

Value

string with JSON data with the ordered list of predicted codes. Each is assigned with code label and probability. If an error occurs, the function returns a string with error description.

Examples

1
ccamCode("Résection de tumeurs de la vessie, par endoscopie", "urologie", 5) # returns a JSON string with predicted codes and probabilities.

IM-APHP/mlcodage documentation built on May 8, 2019, 10:52 a.m.