The NLP Sandbox Data Node is a repository of data used to benchmark NLP Tools like the NLP Sandbox Date Annotator and Person Name Annotator.
The resources that can be stored in this Data Node and the operations supported are listed below:
Create an annotation
datasetId required | string (DatasetId) [ 3 .. 60 ] characters ^[a-z0-9]+(?:-[a-z0-9]+)*$ Example: awesome-dataset The ID of the dataset |
annotationStoreId required | string (AnnotationStoreId) [ 3 .. 60 ] characters ^[a-z0-9]+(?:-[a-z0-9]+)*$ Example: awesome-annotation-store The ID of the annotation store |
annotationId required | string (AnnotationId) [ 3 .. 60 ] characters ^[a-z0-9]+(?:-[a-z0-9]+)*$ Example: annotationId=awesome-annotation The ID of the annotation that is being created |
required | object (AnnotationSource) The source of an annotation record |
Array of objects (TextDateAnnotation) Date annotations in a text | |
Array of objects (TextPersonNameAnnotation) Person name annotations in a text | |
Array of objects (TextLocationAnnotation) Location annotations in a text | |
Array of objects (TextIdAnnotation) ID annotations in a text | |
Array of objects (TextContactAnnotation) Contact annotations in a text | |
Array of objects (TextCovidSymptomAnnotation) COVID symptom annotations in a text |
{- "annotationSource": {
- "resourceSource": {
- "name": "string"
}
}, - "textDateAnnotations": [
- {
- "start": 42,
- "length": 10,
- "text": "10/26/2020",
- "dateFormat": "MM/DD/YYYY",
- "confidence": 95.5
}
], - "textPersonNameAnnotations": [
- {
- "start": 42,
- "length": 11,
- "text": "Chloe Price",
- "confidence": 95.5
}
], - "textLocationAnnotations": [
- {
- "start": 42,
- "length": 7,
- "text": "Seattle",
- "locationType": "city",
- "confidence": 95.5
}
], - "textIdAnnotations": [
- {
- "start": 42,
- "length": 11,
- "text": "203-11-4535",
- "idType": "ssn",
- "confidence": 95.5
}
], - "textContactAnnotations": [
- {
- "start": 42,
- "length": 11,
- "text": "dave@uw.edu",
- "contactType": "email",
- "confidence": 95.5
}
], - "textCovidSymptomAnnotations": [
- {
- "start": 42,
- "length": 9,
- "text": "dry cough",
- "condition": "cough",
- "certainty": "positive",
- "confidence": 95.5
}
]
}
{- "name": "datasets/awesome-dataset/annotationStores/awesome-annotation-store/annotations/awesome-annotation"
}
Returns the annotations in an annotation store
datasetId required | string (DatasetId) [ 3 .. 60 ] characters ^[a-z0-9]+(?:-[a-z0-9]+)*$ Example: awesome-dataset The ID of the dataset |
annotationStoreId required | string (AnnotationStoreId) [ 3 .. 60 ] characters ^[a-z0-9]+(?:-[a-z0-9]+)*$ Example: awesome-annotation-store The ID of the annotation store |
limit | integer (PageLimit) [ 10 .. 100 ] Default: 10 Maximum number of results returned |
offset | integer (PageOffset) >= 0 Default: 0 Index of the first result that must be returned |
{- "offset": 0,
- "limit": 10,
- "totalResults": 0,
- "annotations": [
- {
- "name": "datasets/awesome-dataset/annotationStores/awesome-annotation-store/annotations/awesome-annotation",
- "annotationSource": {
- "resourceSource": {
- "name": "string"
}
}, - "textDateAnnotations": [
- {
- "start": 42,
- "length": 10,
- "text": "10/26/2020",
- "dateFormat": "MM/DD/YYYY",
- "confidence": 95.5
}
], - "textPersonNameAnnotations": [
- {
- "start": 42,
- "length": 11,
- "text": "Chloe Price",
- "confidence": 95.5
}
], - "textLocationAnnotations": [
- {
- "start": 42,
- "length": 7,
- "text": "Seattle",
- "locationType": "city",
- "confidence": 95.5
}
], - "textIdAnnotations": [
- {
- "start": 42,
- "length": 11,
- "text": "203-11-4535",
- "idType": "ssn",
- "confidence": 95.5
}
], - "textContactAnnotations": [
- {
- "start": 42,
- "length": 11,
- "text": "dave@uw.edu",
- "contactType": "email",
- "confidence": 95.5
}
], - "textCovidSymptomAnnotations": [
- {
- "start": 42,
- "length": 9,
- "text": "dry cough",
- "condition": "cough",
- "certainty": "positive",
- "confidence": 95.5
}
]
}
]
}
Returns the annotation specified
datasetId required | string (DatasetId) [ 3 .. 60 ] characters ^[a-z0-9]+(?:-[a-z0-9]+)*$ Example: awesome-dataset The ID of the dataset |
annotationStoreId required | string (FhirStoreId) [ 3 .. 60 ] characters ^[a-z0-9]+(?:-[a-z0-9]+)*$ Example: awesome-fhir-store The ID of the annotation store |
annotationId required | string (AnnotationId) [ 3 .. 60 ] characters ^[a-z0-9]+(?:-[a-z0-9]+)*$ Example: awesome-annotation The ID of the annotation |
{- "name": "datasets/awesome-dataset/annotationStores/awesome-annotation-store/annotations/awesome-annotation",
- "annotationSource": {
- "resourceSource": {
- "name": "string"
}
}, - "textDateAnnotations": [
- {
- "start": 42,
- "length": 10,
- "text": "10/26/2020",
- "dateFormat": "MM/DD/YYYY",
- "confidence": 95.5
}
], - "textPersonNameAnnotations": [
- {
- "start": 42,
- "length": 11,
- "text": "Chloe Price",
- "confidence": 95.5
}
], - "textLocationAnnotations": [
- {
- "start": 42,
- "length": 7,
- "text": "Seattle",
- "locationType": "city",
- "confidence": 95.5
}
], - "textIdAnnotations": [
- {
- "start": 42,
- "length": 11,
- "text": "203-11-4535",
- "idType": "ssn",
- "confidence": 95.5
}
], - "textContactAnnotations": [
- {
- "start": 42,
- "length": 11,
- "text": "dave@uw.edu",
- "contactType": "email",
- "confidence": 95.5
}
], - "textCovidSymptomAnnotations": [
- {
- "start": 42,
- "length": 9,
- "text": "dry cough",
- "condition": "cough",
- "certainty": "positive",
- "confidence": 95.5
}
]
}
Deletes the annotation specified
datasetId required | string (DatasetId) [ 3 .. 60 ] characters ^[a-z0-9]+(?:-[a-z0-9]+)*$ Example: awesome-dataset The ID of the dataset |
annotationStoreId required | string (FhirStoreId) [ 3 .. 60 ] characters ^[a-z0-9]+(?:-[a-z0-9]+)*$ Example: awesome-fhir-store The ID of the annotation store |
annotationId required | string (AnnotationId) [ 3 .. 60 ] characters ^[a-z0-9]+(?:-[a-z0-9]+)*$ Example: awesome-annotation The ID of the annotation |
{ }
Create an annotation store with the ID specified
datasetId required | string (DatasetId) [ 3 .. 60 ] characters ^[a-z0-9]+(?:-[a-z0-9]+)*$ Example: awesome-dataset The ID of the dataset |
annotationStoreId required | string (AnnotationStoreId) [ 3 .. 60 ] characters ^[a-z0-9]+(?:-[a-z0-9]+)*$ Example: annotationStoreId=awesome-annotation-store The ID of the annotation store that is being created. |
An empty object
{ }
{- "name": "datasets/awesome-dataset/annotationStores/awesome-annotation-store"
}
Returns the annotation stores
datasetId required | string (DatasetId) [ 3 .. 60 ] characters ^[a-z0-9]+(?:-[a-z0-9]+)*$ Example: awesome-dataset The ID of the dataset |
limit | integer (PageLimit) [ 10 .. 100 ] Default: 10 Maximum number of results returned |
offset | integer (PageOffset) >= 0 Default: 0 Index of the first result that must be returned |
{- "offset": 0,
- "limit": 10,
- "totalResults": 0,
- "annotationStores": [
- {
- "name": "datasets/awesome-dataset/annotationStores/awesome-annotation-store"
}
]
}
Returns the annotation store specified
datasetId required | string (DatasetId) [ 3 .. 60 ] characters ^[a-z0-9]+(?:-[a-z0-9]+)*$ Example: awesome-dataset The ID of the dataset |
annotationStoreId required | string (AnnotationStoreId) [ 3 .. 60 ] characters ^[a-z0-9]+(?:-[a-z0-9]+)*$ Example: awesome-annotation-store The ID of the annotation store |
{- "name": "datasets/awesome-dataset/annotationStores/awesome-annotation-store"
}
Deletes the annotation store specified
datasetId required | string (DatasetId) [ 3 .. 60 ] characters ^[a-z0-9]+(?:-[a-z0-9]+)*$ Example: awesome-dataset The ID of the dataset |
annotationStoreId required | string (AnnotationStoreId) [ 3 .. 60 ] characters ^[a-z0-9]+(?:-[a-z0-9]+)*$ Example: awesome-annotation-store The ID of the annotation store |
{ }
Create a dataset with the name specified
datasetId required | string (DatasetId) [ 3 .. 60 ] characters ^[a-z0-9]+(?:-[a-z0-9]+)*$ Example: datasetId=awesome-dataset The ID of the dataset that is being created |
An empty object
{ }
{- "name": "datasets/awesome-dataset"
}
Returns the datasets
limit | integer (PageLimit) [ 10 .. 100 ] Default: 10 Maximum number of results returned |
offset | integer (PageOffset) >= 0 Default: 0 Index of the first result that must be returned |
{- "offset": 0,
- "limit": 10,
- "totalResults": 0,
- "datasets": [
- {
- "name": "datasets/awesome-dataset"
}
]
}
Returns the dataset for a given ID
datasetId required | string (DatasetId) [ 3 .. 60 ] characters ^[a-z0-9]+(?:-[a-z0-9]+)*$ Example: awesome-dataset The ID of the dataset |
{- "name": "datasets/awesome-dataset"
}
Create a FHIR store with the ID specified
datasetId required | string (DatasetId) [ 3 .. 60 ] characters ^[a-z0-9]+(?:-[a-z0-9]+)*$ Example: awesome-dataset The ID of the dataset |
fhirStoreId required | string (FhirStoreId) [ 3 .. 60 ] characters ^[a-z0-9]+(?:-[a-z0-9]+)*$ Example: fhirStoreId=awesome-fhir-store The ID of the FHIR store that is being created. |
An empty object
{ }
{- "name": "datasets/awesome-dataset/fhirStores/awesome-fhir-store"
}
Returns the FHIR stores
datasetId required | string (DatasetId) [ 3 .. 60 ] characters ^[a-z0-9]+(?:-[a-z0-9]+)*$ Example: awesome-dataset The ID of the dataset |
limit | integer (PageLimit) [ 10 .. 100 ] Default: 10 Maximum number of results returned |
offset | integer (PageOffset) >= 0 Default: 0 Index of the first result that must be returned |
{- "offset": 0,
- "limit": 10,
- "totalResults": 0,
- "fhirStores": [
- {
- "name": "datasets/awesome-dataset/fhirStores/awesome-fhir-store"
}
]
}
Returns the FHIR store specified
datasetId required | string (DatasetId) [ 3 .. 60 ] characters ^[a-z0-9]+(?:-[a-z0-9]+)*$ Example: awesome-dataset The ID of the dataset |
fhirStoreId required | string (FhirStoreId) [ 3 .. 60 ] characters ^[a-z0-9]+(?:-[a-z0-9]+)*$ Example: awesome-fhir-store The ID of the FHIR store |
{- "name": "datasets/awesome-dataset/fhirStores/awesome-fhir-store"
}
Deletes the FHIR store specified
datasetId required | string (DatasetId) [ 3 .. 60 ] characters ^[a-z0-9]+(?:-[a-z0-9]+)*$ Example: awesome-dataset The ID of the dataset |
fhirStoreId required | string (FhirStoreId) [ 3 .. 60 ] characters ^[a-z0-9]+(?:-[a-z0-9]+)*$ Example: awesome-fhir-store The ID of the FHIR store |
{ }
Create a note
datasetId required | string (DatasetId) [ 3 .. 60 ] characters ^[a-z0-9]+(?:-[a-z0-9]+)*$ Example: awesome-dataset The ID of the dataset |
fhirStoreId required | string (FhirStoreId) [ 3 .. 60 ] characters ^[a-z0-9]+(?:-[a-z0-9]+)*$ Example: awesome-fhir-store The ID of the FHIR store |
noteId required | string (NoteId) [ 3 .. 60 ] characters ^[a-z0-9]+(?:-[a-z0-9]+)*$ Example: noteId=awesome-note The ID of the note that is being created |
text required | string The content of the clinical note |
type required | string The note type (LOINC concept) |
patientId required | string (PatientId) [ 3 .. 60 ] characters ^[a-z0-9]+(?:-[a-z0-9]+)*$ The ID of the FHIR patient |
{- "text": "On 12/26/2020, Ms. Chloe Price met with Dr. Prescott in Seattle.",
- "type": "loinc:LP29684-5",
- "patientId": "awesome-patient"
}
{- "name": "datasets/awesome-dataset/fhirStores/awesome-fhir-store/Note/awesome-note"
}
Returns the notes in a FHIR store
datasetId required | string (DatasetId) [ 3 .. 60 ] characters ^[a-z0-9]+(?:-[a-z0-9]+)*$ Example: awesome-dataset The ID of the dataset |
fhirStoreId required | string (FhirStoreId) [ 3 .. 60 ] characters ^[a-z0-9]+(?:-[a-z0-9]+)*$ Example: awesome-fhir-store The ID of the FHIR store |
limit | integer (PageLimit) [ 10 .. 100 ] Default: 10 Maximum number of results returned |
offset | integer (PageOffset) >= 0 Default: 0 Index of the first result that must be returned |
{- "offset": 0,
- "limit": 10,
- "totalResults": 0,
- "notes": [
- {
- "identifier": "awesome-note",
- "text": "On 12/26/2020, Ms. Chloe Price met with Dr. Prescott in Seattle.",
- "type": "loinc:LP29684-5",
- "patientId": "awesome-patient"
}
]
}
Returns the note specified
datasetId required | string (DatasetId) [ 3 .. 60 ] characters ^[a-z0-9]+(?:-[a-z0-9]+)*$ Example: awesome-dataset The ID of the dataset |
fhirStoreId required | string (FhirStoreId) [ 3 .. 60 ] characters ^[a-z0-9]+(?:-[a-z0-9]+)*$ Example: awesome-fhir-store The ID of the FHIR store |
noteId required | string (NoteId) [ 3 .. 60 ] characters ^[a-z0-9]+(?:-[a-z0-9]+)*$ Example: awesome-note The ID of the note |
{- "identifier": "awesome-note",
- "text": "On 12/26/2020, Ms. Chloe Price met with Dr. Prescott in Seattle.",
- "type": "loinc:LP29684-5",
- "patientId": "awesome-patient"
}
Deletes the note specified
datasetId required | string (DatasetId) [ 3 .. 60 ] characters ^[a-z0-9]+(?:-[a-z0-9]+)*$ Example: awesome-dataset The ID of the dataset |
fhirStoreId required | string (FhirStoreId) [ 3 .. 60 ] characters ^[a-z0-9]+(?:-[a-z0-9]+)*$ Example: awesome-fhir-store The ID of the FHIR store |
noteId required | string (NoteId) [ 3 .. 60 ] characters ^[a-z0-9]+(?:-[a-z0-9]+)*$ Example: awesome-note The ID of the note |
{ }
Create a FHIR patient
datasetId required | string (DatasetId) [ 3 .. 60 ] characters ^[a-z0-9]+(?:-[a-z0-9]+)*$ Example: awesome-dataset The ID of the dataset |
fhirStoreId required | string (FhirStoreId) [ 3 .. 60 ] characters ^[a-z0-9]+(?:-[a-z0-9]+)*$ Example: awesome-fhir-store The ID of the FHIR store |
patientId required | string (PatientId) [ 3 .. 60 ] characters ^[a-z0-9]+(?:-[a-z0-9]+)*$ Example: patientId=awesome-patient The ID of the patient that is being created |
gender | string Enum: "male" "female" "other" "unknown" Gender of the patient |
{- "gender": "male"
}
{- "name": "datasets/awesome-dataset/fhirStores/awesome-fhir-store/Patient/507f1f77bcf86cd799439011"
}
Returns the Patients in a FHIR store
datasetId required | string (DatasetId) [ 3 .. 60 ] characters ^[a-z0-9]+(?:-[a-z0-9]+)*$ Example: awesome-dataset The ID of the dataset |
fhirStoreId required | string (FhirStoreId) [ 3 .. 60 ] characters ^[a-z0-9]+(?:-[a-z0-9]+)*$ Example: awesome-fhir-store The ID of the FHIR store |
limit | integer (PageLimit) [ 10 .. 100 ] Default: 10 Maximum number of results returned |
offset | integer (PageOffset) >= 0 Default: 0 Index of the first result that must be returned |
{- "offset": 0,
- "limit": 10,
- "totalResults": 0,
- "patients": [
- {
- "identifier": "awesome-patient",
- "gender": "male"
}
]
}
Returns the FHIR patient specified
datasetId required | string (DatasetId) [ 3 .. 60 ] characters ^[a-z0-9]+(?:-[a-z0-9]+)*$ Example: awesome-dataset The ID of the dataset |
fhirStoreId required | string (FhirStoreId) [ 3 .. 60 ] characters ^[a-z0-9]+(?:-[a-z0-9]+)*$ Example: awesome-fhir-store The ID of the FHIR store |
patientId required | string (PatientId) [ 3 .. 60 ] characters ^[a-z0-9]+(?:-[a-z0-9]+)*$ Example: awesome-patient The ID of the FHIR patient |
{- "identifier": "awesome-patient",
- "gender": "male"
}
Deletes the FHIR patient specified
datasetId required | string (DatasetId) [ 3 .. 60 ] characters ^[a-z0-9]+(?:-[a-z0-9]+)*$ Example: awesome-dataset The ID of the dataset |
fhirStoreId required | string (FhirStoreId) [ 3 .. 60 ] characters ^[a-z0-9]+(?:-[a-z0-9]+)*$ Example: awesome-fhir-store The ID of the FHIR store |
patientId required | string (PatientId) [ 3 .. 60 ] characters ^[a-z0-9]+(?:-[a-z0-9]+)*$ Example: awesome-patient The ID of the FHIR patient |
{ }