{
  "resourceType": "StructureDefinition",
  "id": "PhEMANLP",
  "url": "http://projectphema.org/fhir/StructureDefinition/phema_nlp",
  "version": "phema-fhir-v1",
  "name": "PhEMA NLP Extension",
  "status": "draft",
  "date": "2017-11-15T18:22:50+00:00",
  "publisher": "Mayo Clinic Standards and Interoperability Program",
  "contact": [
    {
      "name": "MCSI team"
    }
  ],
  "description": "This is an PhEMA NLP Extension represented as FHIR StructureDefinition",
  "kind": "logical",
  "abstract": false,
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
  "snapshot": {
    "element": [
      {
        "path": "PhEMANLP",
        "short": "PhEMANLP",
        "definition": "The PhEMA_NLP extension will capture NLP components of phenotype algorithms.",
        "min": 0,
        "max": "*"
      },
      {
        "path": "PhEMANLP.document_type",
        "short": "document_type",
        "definition": "SNOMED CT, LOINC",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "mapping": [
          {
            "identity": "ohdsi",
            "map": "Note.note_class_concept_id"
          }
        ]
      },
      {
        "path": "PhEMANLP.document_section",
        "short": "document_section",
        "definition": "SNOMED CT, LOINC, HL7",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "mapping": [
          {
            "identity": "ohdsi",
            "map": "NoteNLP.section_concept_id"
          }
        ]
      },
      {
        "path": "PhEMANLP.negation",
        "short": "negation",
        "definition": "\"affirmed\", \"negated\"",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "mapping": [
          {
            "identity": "ohdsi",
            "map": "NoteNLP.term_modifiers"
          }
        ]
      },
      {
        "path": "PhEMANLP.experiencer",
        "short": "experiencer",
        "definition": "\"patient\", \"family member\", \"other\"",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "mapping": [
          {
            "identity": "ohdsi",
            "map": "NoteNLP.term_modifiers"
          }
        ]
      },
      {
        "path": "PhEMANLP.temporality",
        "short": "temporality",
        "definition": "\"present\", \"past\", \"future\"",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "mapping": [
          {
            "identity": "ohdsi",
            "map": "NoteNLP.term_temporal"
          }
        ]
      },
      {
        "path": "PhEMANLP.certainty",
        "short": "certainty",
        "definition": "range from 0 to 1",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "String"
          }
        ],
        "mapping": [
          {
            "identity": "ohdsi",
            "map": "NoteNLP.term_modifiers"
          }
        ]
      },
      {
        "path": "PhEMANLP.recorder",
        "short": "recorder",
        "definition": "\"provider\", \"patient\", \"other\"",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "mapping": [
          {
            "identity": "ohdsi",
            "map": "Note.provider_id"
          }
        ]
      },
      {
        "path": "PhEMANLP.health_record_field",
        "short": "health_record_field",
        "definition": "health record field",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "String"
          }
        ],
        "mapping": [
          {
            "identity": "ohdsi",
            "map": "NoteNLP.term_modifiers"
          }
        ]
      },
      {
        "path": "PhEMANLP.source",
        "short": "source",
        "definition": "source",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "String"
          }
        ],
        "mapping": [
          {
            "identity": "ohdsi",
            "map": "Note.note_source_value"
          }
        ]
      }
    ]
  }
}