{
  "resourceType": "StructureDefinition",
  "id": "gp-EncounterReport",
  "url": "http://nictiz.nl/fhir/StructureDefinition/gp-EncounterReport",
  "version": "2.0.0",
  "name": "gp EncounterReport",
  "title": "gp-EncounterReport",
  "status": "active",
  "contact": [
    {
      "name": "Nictiz",
      "telecom": [
        {
          "system": "email",
          "value": "info@nictiz.nl",
          "use": "work"
        }
      ]
    }
  ],
  "description": "The general practitioner encounter report is an S-O-A-P (Subjective, Objective, Assessment, Plan) structured report of a patient encounter. S-O-A-P is known as S-O-E-P (Subjectief, Objectief, Evaluatie, Plan) in Dutch. Each Composition.section corresponds with a letter from SOAP and may additionally be ICPC coded using the appropriate extension. If the encounter report relates to an episode of care then the association with EpisodeOfCare shall be in Composition.event.detail.",
  "copyright": "CC0",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Composition",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Composition",
  "derivation": "constraint",
  "snapshot": {},
  "differential": {
    "element": [
      {
        "id": "Composition.type.coding.system",
        "path": "Composition.type.coding.system",
        "fixedUri": "http://loinc.org"
      },
      {
        "id": "Composition.type.coding.code",
        "path": "Composition.type.coding.code",
        "fixedCode": "67781-5"
      },
      {
        "id": "Composition.encounter",
        "path": "Composition.encounter",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://nictiz.nl/fhir/StructureDefinition/zib-Encounter"
          }
        ]
      },
      {
        "id": "Composition.author",
        "path": "Composition.author",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-practitioner"
          },
          {
            "code": "Reference",
            "targetProfile": "http://nictiz.nl/fhir/StructureDefinition/zib-MedicalDeviceProduct"
          },
          {
            "code": "Reference",
            "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-patient"
          },
          {
            "code": "Reference",
            "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-relatedperson"
          }
        ]
      },
      {
        "id": "Composition.author.extension",
        "path": "Composition.author.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Composition.author.extension:practitionerRole",
        "path": "Composition.author.extension",
        "sliceName": "practitionerRole",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://nictiz.nl/fhir/StructureDefinition/practitionerrole-reference"
          }
        ]
      },
      {
        "id": "Composition.title",
        "path": "Composition.title",
        "definition": "Official human-readable label for the composition. Suggested value is either episode title, or the ICPC display name on the E-entry"
      },
      {
        "id": "Composition.attester.party",
        "path": "Composition.attester.party",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-patient"
          },
          {
            "code": "Reference",
            "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-practitioner"
          },
          {
            "code": "Reference",
            "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-organization"
          }
        ]
      },
      {
        "id": "Composition.attester.party.extension",
        "path": "Composition.attester.party.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Composition.attester.party.extension:practitionerRole",
        "path": "Composition.attester.party.extension",
        "sliceName": "practitionerRole",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://nictiz.nl/fhir/StructureDefinition/practitionerrole-reference"
          }
        ]
      },
      {
        "id": "Composition.custodian",
        "path": "Composition.custodian",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-organization"
          }
        ]
      },
      {
        "id": "Composition.section.extension",
        "path": "Composition.section.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Composition.section.extension:code_icpc_1_nl",
        "path": "Composition.section.extension",
        "sliceName": "code_icpc_1_nl",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://nictiz.nl/fhir/StructureDefinition/code-icpc-1-nl"
          }
        ]
      },
      {
        "id": "Composition.section.code",
        "path": "Composition.section.code",
        "min": 1,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "CompositionSectionType"
            }
          ],
          "strength": "required",
          "valueSetReference": {
            "reference": "http://decor.nictiz.nl/fhir/ValueSet/2.16.840.1.113883.2.4.3.11.60.103.11.2--20111012000000",
            "display": "JournaalregelType"
          }
        }
      },
      {
        "id": "Composition.section.text",
        "path": "Composition.section.text",
        "min": 1
      },
      {
        "id": "Composition.section.entry",
        "path": "Composition.section.entry",
        "definition": "A reference to data that supports this section. Examples of references could be a diagnostic result on the \"O\" entry, or a medication agreement or a care plan on the \"P\" entry."
      }
    ]
  }
}