{
  "resourceType": "StructureDefinition",
  "meta": {
    "lastUpdated": "2018-02-27T14:32:05.203+00:00"
  },
  "url": "http://trilliumbridge.eu/fhir/StructureDefinition/condition-uv-trillium2",
  "version": "1.0",
  "name": "Condition-uv-trillium2",
  "status": "draft",
  "date": "2018-02-27",
  "description": "Definition of the profile for problems",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Condition",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Condition",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Condition.clinicalStatus",
        "path": "Condition.clinicalStatus",
        "comment": "This element is labeled as a modifier because the status contains codes that mark the condition as not currently valid or of concern.\r\nTRILLIUM II IMPLEMENTATION COMMENTS: In the WIKI there are 3 values. We propose to codify it in SNOMED CT. We propose as default value \"active\"\r\nThere are values other than active/inactive.",
        "min": 1,
        "defaultValueCode": "active"
      },
      {
        "id": "Condition.verificationStatus",
        "path": "Condition.verificationStatus",
        "comment": "verificationStatus is not required.  For example, when a patient has abdominal pain in the ED, there is not likely going to be a verification status.\n\nThis element is labeled as a modifier because the status contains the code refuted and entered-in-error that mark the Condition as not currently valid.\r\n\r\nTRILLIUM II IMPLEMENTATION COMMENTS: We propose to codify it with SNOMED CT."
      },
      {
        "id": "Condition.category",
        "path": "Condition.category",
        "definition": "A category assigned to the condition.\r\nType.",
        "comment": "The categorization is often highly contextual and may appear poorly differentiated or not very useful in other contexts.\r\nThe value set differs from the specification.",
        "max": "1"
      },
      {
        "id": "Condition.category.coding.system",
        "path": "Condition.category.coding.system",
        "fixedUri": "http://snomed.info/sct"
      },
      {
        "id": "Condition.severity",
        "path": "Condition.severity",
        "code": [
          {
            "system": "http://snomed.info/sct",
            "code": "255604002",
            "display": "Mild"
          },
          {
            "system": "http://snomed.info/sct",
            "code": "6736007",
            "display": "moderado"
          },
          {
            "system": "http://snomed.info/sct",
            "code": "24484000",
            "display": "Severe"
          }
        ]
      },
      {
        "id": "Condition.severity.coding.system",
        "path": "Condition.severity.coding.system",
        "fixedUri": "http://snomed.info/sct"
      },
      {
        "id": "Condition.code",
        "path": "Condition.code",
        "min": 1
      },
      {
        "id": "Condition.code.coding.system",
        "path": "Condition.code.coding.system",
        "fixedUri": "http://snomed.info/sct"
      },
      {
        "id": "Condition.bodySite.extension",
        "path": "Condition.bodySite.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Condition.bodySite.extension:laterality",
        "path": "Condition.bodySite.extension",
        "sliceName": "laterality",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "StructureDefinition/bodysite-laterality"
          }
        ]
      },
      {
        "id": "Condition.bodySite.extension:laterality.url",
        "path": "Condition.bodySite.extension.url",
        "fixedUri": "StructureDefinition/bodysite-laterality"
      },
      {
        "id": "Condition.bodySite.coding.system",
        "path": "Condition.bodySite.coding.system",
        "fixedUri": "http://snomed.info/sct"
      },
      {
        "id": "Condition.context",
        "path": "Condition.context",
        "max": "0"
      },
      {
        "id": "Condition.onset[x]",
        "path": "Condition.onset[x]",
        "min": 1,
        "type": [
          {
            "code": "dateTime"
          },
          {
            "code": "Period"
          },
          {
            "code": "Range"
          }
        ]
      },
      {
        "id": "Condition.abatement[x]",
        "path": "Condition.abatement[x]",
        "max": "0"
      },
      {
        "id": "Condition.asserter",
        "path": "Condition.asserter",
        "definition": "Individual who is making the condition statement.\r\nInformation source.",
        "min": 1
      },
      {
        "id": "Condition.stage",
        "path": "Condition.stage",
        "max": "0"
      },
      {
        "id": "Condition.evidence",
        "path": "Condition.evidence",
        "max": "0"
      }
    ]
  }
}