{
  "resourceType": "StructureDefinition",
  "url": "http://oda.fi/fhir/StructureDefinition/stu3/Comment",
  "name": "ODA CarePlan comment",
  "title": "ODA CarePlan comment",
  "status": "draft",
  "date": "2019-07-26",
  "description": "Data model for CarePlan comments.",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Communication",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Communication",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Communication.meta.profile",
        "path": "Communication.meta.profile",
        "fixedUri": "http://oda.fi/fhir/StructureDefinition/stu3/Comment"
      },
      {
        "id": "Communication.implicitRules",
        "path": "Communication.implicitRules",
        "max": "0"
      },
      {
        "id": "Communication.contained",
        "path": "Communication.contained",
        "max": "0"
      },
      {
        "id": "Communication.identifier",
        "path": "Communication.identifier",
        "max": "0"
      },
      {
        "id": "Communication.definition",
        "path": "Communication.definition",
        "max": "0"
      },
      {
        "id": "Communication.basedOn",
        "path": "Communication.basedOn",
        "max": "0",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/CarePlan"
          }
        ]
      },
      {
        "id": "Communication.partOf",
        "path": "Communication.partOf",
        "max": "0"
      },
      {
        "id": "Communication.notDone",
        "path": "Communication.notDone",
        "max": "0"
      },
      {
        "id": "Communication.notDoneReason",
        "path": "Communication.notDoneReason",
        "max": "0"
      },
      {
        "id": "Communication.category",
        "path": "Communication.category",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Communication.category.id",
        "path": "Communication.category.id",
        "max": "0"
      },
      {
        "id": "Communication.category.coding",
        "path": "Communication.category.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Communication.category.coding.id",
        "path": "Communication.category.coding.id",
        "max": "0"
      },
      {
        "id": "Communication.category.coding.system",
        "path": "Communication.category.coding.system",
        "min": 1,
        "fixedUri": "http://oda.fi/fhir/CodeSystem/communication-category"
      },
      {
        "id": "Communication.category.coding.version",
        "path": "Communication.category.coding.version",
        "max": "0"
      },
      {
        "id": "Communication.category.coding.code",
        "path": "Communication.category.coding.code",
        "min": 1,
        "fixedCode": "oda-careplan-comment"
      },
      {
        "id": "Communication.category.coding.userSelected",
        "path": "Communication.category.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Communication.category.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Communication.category.text",
        "max": "0"
      },
      {
        "id": "Communication.medium",
        "path": "Communication.medium",
        "max": "0"
      },
      {
        "id": "Communication.subject",
        "path": "Communication.subject",
        "min": 1
      },
      {
        "id": "Communication.recipient",
        "path": "Communication.recipient",
        "max": "0"
      },
      {
        "id": "Communication.topic",
        "path": "Communication.topic",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Communication.topic.id",
        "path": "Communication.topic.id",
        "max": "0"
      },
      {
        "id": "Communication.topic.reference",
        "path": "Communication.topic.reference",
        "min": 1
      },
      {
        "id": "Communication.topic.identifier",
        "path": "Communication.topic.identifier",
        "max": "0"
      },
      {
        "id": "Communication.topic.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Communication.topic.display",
        "max": "0"
      },
      {
        "id": "Communication.context",
        "path": "Communication.context",
        "max": "0"
      },
      {
        "id": "Communication.sent",
        "path": "Communication.sent",
        "min": 1
      },
      {
        "id": "Communication.received",
        "path": "Communication.received",
        "max": "0"
      },
      {
        "id": "Communication.sender",
        "path": "Communication.sender",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner"
          }
        ]
      },
      {
        "id": "Communication.sender.id",
        "path": "Communication.sender.id",
        "max": "0"
      },
      {
        "id": "Communication.sender.reference",
        "path": "Communication.sender.reference",
        "min": 1
      },
      {
        "id": "Communication.sender.identifier",
        "path": "Communication.sender.identifier",
        "max": "0"
      },
      {
        "id": "Communication.reasonCode",
        "path": "Communication.reasonCode",
        "max": "0"
      },
      {
        "id": "Communication.reasonReference",
        "path": "Communication.reasonReference",
        "max": "0"
      },
      {
        "id": "Communication.payload",
        "path": "Communication.payload",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Communication.payload.id",
        "path": "Communication.payload.id",
        "max": "0"
      },
      {
        "id": "Communication.payload.content[x]:contentString",
        "path": "Communication.payload.contentString",
        "sliceName": "contentString",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "Communication.note",
        "path": "Communication.note",
        "max": "0"
      }
    ]
  }
}