{
  "resourceType": "StructureDefinition",
  "id": "fmc-ecc-clinical-notes-profile",
  "url": "http://fkcfhir.org/fhir/StructureDefinition/fmc-ecc-clinical-notes-profile",
  "name": "ECCClinicalNotes",
  "title": "Fresenius eCC Clinical Notes Profile",
  "status": "active",
  "description": "Fresenius eCC Clinical Notes Profile",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "workflow",
      "uri": "http://hl7.org/fhir/workflow",
      "name": "Workflow Pattern"
    },
    {
      "identity": "fhircomposition",
      "uri": "http://hl7.org/fhir/composition",
      "name": "FHIR Composition"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "cda",
      "uri": "http://hl7.org/v3/cda",
      "name": "CDA (R2)"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "xds",
      "uri": "http://ihe.net/xds",
      "name": "XDS metadata equivalent"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "DocumentReference",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DocumentReference",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "DocumentReference.extension",
        "path": "DocumentReference.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "DocumentReference.extension:noteSourceExten",
        "path": "DocumentReference.extension",
        "sliceName": "noteSourceExten",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://fkcfhir.org/fhir/StructureDefinition/fmc-note-src-extn"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DocumentReference.identifier",
        "path": "DocumentReference.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "DocumentReference.identifier:noteIdentifier",
        "path": "DocumentReference.identifier",
        "sliceName": "noteIdentifier",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "DocumentReference.identifier:noteIdentifier.system",
        "path": "DocumentReference.identifier.system",
        "min": 1,
        "patternUri": "urn:oid:2.16.840.1.113883.3.7418.150.7"
      },
      {
        "id": "DocumentReference.category",
        "path": "DocumentReference.category",
        "binding": {
          "strength": "required",
          "valueSet": "http://hl7.org/fhir/us/core/ValueSet/us-core-documentreference-category"
        }
      },
      {
        "id": "DocumentReference.subject",
        "path": "DocumentReference.subject",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fkcfhir.org/fhir/StructureDefinition/fmc-patient-profile"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DocumentReference.date",
        "path": "DocumentReference.date",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "DocumentReference.author",
        "path": "DocumentReference.author",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fkcfhir.org/fhir/StructureDefinition/fmc-practitioner-profile"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DocumentReference.custodian",
        "path": "DocumentReference.custodian",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fkcfhir.org/fhir/StructureDefinition/fmc-organization-profile"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DocumentReference.context.encounter",
        "path": "DocumentReference.context.encounter",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fkcfhir.org/fhir/StructureDefinition/fmc-episodeOfCare-profile"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DocumentReference.context.period.start",
        "path": "DocumentReference.context.period.start",
        "min": 1,
        "mustSupport": true
      }
    ]
  }
}