{
  "resourceType": "StructureDefinition",
  "id": "NCDGameDataComposition",
  "url": "https://fhir.inso-world.com/ncd-prevention-games/StructureDefinition/NCDGameDataComposition",
  "name": "NCDGameDataComposition",
  "title": "NCD GameData Composition",
  "status": "draft",
  "description": "The Composition resource representing the game data of the document",
  "fhirVersion": "5.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "Composition",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Composition",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Composition.category",
        "path": "Composition.category",
        "max": "0"
      },
      {
        "id": "Composition.subject",
        "path": "Composition.subject",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.inso-world.com/ncd-prevention-games/StructureDefinition/NCDPatient"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Composition.encounter",
        "path": "Composition.encounter",
        "max": "0"
      },
      {
        "id": "Composition.author",
        "path": "Composition.author",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.inso-world.com/ncd-prevention-games/StructureDefinition/NCDPatient"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Composition.attester",
        "path": "Composition.attester",
        "max": "0"
      },
      {
        "id": "Composition.custodian",
        "path": "Composition.custodian",
        "max": "0"
      },
      {
        "id": "Composition.event",
        "path": "Composition.event",
        "max": "0"
      },
      {
        "id": "Composition.section",
        "path": "Composition.section",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "code"
            }
          ],
          "rules": "closed"
        },
        "min": 1
      },
      {
        "id": "Composition.section:achievements",
        "path": "Composition.section",
        "sliceName": "achievements",
        "min": 0,
        "max": "*"
      },
      {
        "id": "Composition.section:achievements.title",
        "path": "Composition.section.title",
        "min": 1,
        "fixedString": "Achievements",
        "mustSupport": true
      },
      {
        "id": "Composition.section:achievements.author",
        "path": "Composition.section.author",
        "max": "0"
      },
      {
        "id": "Composition.section:achievements.focus",
        "path": "Composition.section.focus",
        "max": "0"
      },
      {
        "id": "Composition.section:achievements.text",
        "path": "Composition.section.text",
        "max": "0"
      },
      {
        "id": "Composition.section:achievements.orderedBy",
        "path": "Composition.section.orderedBy",
        "max": "0"
      },
      {
        "id": "Composition.section:achievements.entry",
        "path": "Composition.section.entry",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.inso-world.com/ncd-prevention-games/StructureDefinition/NCDAchievementObservation"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Composition.section:achievements.entry.reference",
        "path": "Composition.section.entry.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Composition.section:achievements.entry.type",
        "path": "Composition.section.entry.type",
        "max": "0"
      },
      {
        "id": "Composition.section:achievements.entry.identifier",
        "path": "Composition.section.entry.identifier",
        "max": "0"
      },
      {
        "id": "Composition.section:achievements.entry.display",
        "path": "Composition.section.entry.display",
        "max": "0"
      },
      {
        "id": "Composition.section:achievements.emptyReason",
        "path": "Composition.section.emptyReason",
        "max": "0"
      },
      {
        "id": "Composition.section:achievements.section",
        "path": "Composition.section.section",
        "max": "0"
      },
      {
        "id": "Composition.section:highscore",
        "path": "Composition.section",
        "sliceName": "highscore",
        "min": 0,
        "max": "*"
      },
      {
        "id": "Composition.section:highscore.title",
        "path": "Composition.section.title",
        "min": 1,
        "fixedString": "Highscore",
        "mustSupport": true
      },
      {
        "id": "Composition.section:highscore.author",
        "path": "Composition.section.author",
        "max": "0"
      },
      {
        "id": "Composition.section:highscore.focus",
        "path": "Composition.section.focus",
        "max": "0"
      },
      {
        "id": "Composition.section:highscore.text",
        "path": "Composition.section.text",
        "max": "0"
      },
      {
        "id": "Composition.section:highscore.orderedBy",
        "path": "Composition.section.orderedBy",
        "max": "0"
      },
      {
        "id": "Composition.section:highscore.entry",
        "path": "Composition.section.entry",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.inso-world.com/ncd-prevention-games/StructureDefinition/NCDHighscoreObservation"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Composition.section:highscore.entry.reference",
        "path": "Composition.section.entry.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Composition.section:highscore.entry.type",
        "path": "Composition.section.entry.type",
        "max": "0"
      },
      {
        "id": "Composition.section:highscore.entry.identifier",
        "path": "Composition.section.entry.identifier",
        "max": "0"
      },
      {
        "id": "Composition.section:highscore.entry.display",
        "path": "Composition.section.entry.display",
        "max": "0"
      },
      {
        "id": "Composition.section:highscore.emptyReason",
        "path": "Composition.section.emptyReason",
        "max": "0"
      },
      {
        "id": "Composition.section:highscore.section",
        "path": "Composition.section.section",
        "max": "0"
      },
      {
        "id": "Composition.section:avatar",
        "path": "Composition.section",
        "sliceName": "avatar",
        "min": 0,
        "max": "*"
      },
      {
        "id": "Composition.section:avatar.title",
        "path": "Composition.section.title",
        "min": 1,
        "fixedString": "Game character (avatar)",
        "mustSupport": true
      },
      {
        "id": "Composition.section:avatar.author",
        "path": "Composition.section.author",
        "max": "0"
      },
      {
        "id": "Composition.section:avatar.focus",
        "path": "Composition.section.focus",
        "max": "0"
      },
      {
        "id": "Composition.section:avatar.text",
        "path": "Composition.section.text",
        "max": "0"
      },
      {
        "id": "Composition.section:avatar.orderedBy",
        "path": "Composition.section.orderedBy",
        "max": "0"
      },
      {
        "id": "Composition.section:avatar.entry",
        "path": "Composition.section.entry",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.inso-world.com/ncd-prevention-games/StructureDefinition/NCDCharacterObservation"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Composition.section:avatar.entry.reference",
        "path": "Composition.section.entry.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Composition.section:avatar.entry.type",
        "path": "Composition.section.entry.type",
        "max": "0"
      },
      {
        "id": "Composition.section:avatar.entry.identifier",
        "path": "Composition.section.entry.identifier",
        "max": "0"
      },
      {
        "id": "Composition.section:avatar.entry.display",
        "path": "Composition.section.entry.display",
        "max": "0"
      },
      {
        "id": "Composition.section:avatar.emptyReason",
        "path": "Composition.section.emptyReason",
        "max": "0"
      },
      {
        "id": "Composition.section:avatar.section",
        "path": "Composition.section.section",
        "max": "0"
      },
      {
        "id": "Composition.section:engagement",
        "path": "Composition.section",
        "sliceName": "engagement",
        "min": 0,
        "max": "*"
      },
      {
        "id": "Composition.section:engagement.title",
        "path": "Composition.section.title",
        "min": 1,
        "fixedString": "Engagement data",
        "mustSupport": true
      },
      {
        "id": "Composition.section:engagement.author",
        "path": "Composition.section.author",
        "max": "0"
      },
      {
        "id": "Composition.section:engagement.focus",
        "path": "Composition.section.focus",
        "max": "0"
      },
      {
        "id": "Composition.section:engagement.text",
        "path": "Composition.section.text",
        "max": "0"
      },
      {
        "id": "Composition.section:engagement.orderedBy",
        "path": "Composition.section.orderedBy",
        "max": "0"
      },
      {
        "id": "Composition.section:engagement.entry",
        "path": "Composition.section.entry",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.inso-world.com/ncd-prevention-games/StructureDefinition/NCDEngagementObservation"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Composition.section:engagement.entry.reference",
        "path": "Composition.section.entry.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Composition.section:engagement.entry.type",
        "path": "Composition.section.entry.type",
        "max": "0"
      },
      {
        "id": "Composition.section:engagement.entry.identifier",
        "path": "Composition.section.entry.identifier",
        "max": "0"
      },
      {
        "id": "Composition.section:engagement.entry.display",
        "path": "Composition.section.entry.display",
        "max": "0"
      },
      {
        "id": "Composition.section:engagement.emptyReason",
        "path": "Composition.section.emptyReason",
        "max": "0"
      },
      {
        "id": "Composition.section:engagement.section",
        "path": "Composition.section.section",
        "max": "0"
      },
      {
        "id": "Composition.section:progress",
        "path": "Composition.section",
        "sliceName": "progress",
        "min": 1,
        "max": "*",
        "mustSupport": true
      },
      {
        "id": "Composition.section:progress.title",
        "path": "Composition.section.title",
        "min": 1,
        "fixedString": "Game progress data",
        "mustSupport": true
      },
      {
        "id": "Composition.section:progress.author",
        "path": "Composition.section.author",
        "max": "0"
      },
      {
        "id": "Composition.section:progress.focus",
        "path": "Composition.section.focus",
        "max": "0"
      },
      {
        "id": "Composition.section:progress.text",
        "path": "Composition.section.text",
        "max": "0"
      },
      {
        "id": "Composition.section:progress.orderedBy",
        "path": "Composition.section.orderedBy",
        "max": "0"
      },
      {
        "id": "Composition.section:progress.entry",
        "path": "Composition.section.entry",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.inso-world.com/ncd-prevention-games/StructureDefinition/NCDGameprogressObservation"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Composition.section:progress.entry.reference",
        "path": "Composition.section.entry.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Composition.section:progress.entry.type",
        "path": "Composition.section.entry.type",
        "max": "0"
      },
      {
        "id": "Composition.section:progress.entry.identifier",
        "path": "Composition.section.entry.identifier",
        "max": "0"
      },
      {
        "id": "Composition.section:progress.entry.display",
        "path": "Composition.section.entry.display",
        "max": "0"
      },
      {
        "id": "Composition.section:progress.emptyReason",
        "path": "Composition.section.emptyReason",
        "max": "0"
      },
      {
        "id": "Composition.section:progress.section",
        "path": "Composition.section.section",
        "max": "0"
      },
      {
        "id": "Composition.section:inventory",
        "path": "Composition.section",
        "sliceName": "inventory",
        "min": 0,
        "max": "*"
      },
      {
        "id": "Composition.section:inventory.title",
        "path": "Composition.section.title",
        "min": 1,
        "fixedString": "Inventory",
        "mustSupport": true
      },
      {
        "id": "Composition.section:inventory.author",
        "path": "Composition.section.author",
        "max": "0"
      },
      {
        "id": "Composition.section:inventory.focus",
        "path": "Composition.section.focus",
        "max": "0"
      },
      {
        "id": "Composition.section:inventory.text",
        "path": "Composition.section.text",
        "max": "0"
      },
      {
        "id": "Composition.section:inventory.orderedBy",
        "path": "Composition.section.orderedBy",
        "max": "0"
      },
      {
        "id": "Composition.section:inventory.entry",
        "path": "Composition.section.entry",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.inso-world.com/ncd-prevention-games/StructureDefinition/NCDInventoryItem"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Composition.section:inventory.entry.reference",
        "path": "Composition.section.entry.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Composition.section:inventory.entry.type",
        "path": "Composition.section.entry.type",
        "max": "0"
      },
      {
        "id": "Composition.section:inventory.entry.identifier",
        "path": "Composition.section.entry.identifier",
        "max": "0"
      },
      {
        "id": "Composition.section:inventory.entry.display",
        "path": "Composition.section.entry.display",
        "max": "0"
      },
      {
        "id": "Composition.section:inventory.emptyReason",
        "path": "Composition.section.emptyReason",
        "max": "0"
      },
      {
        "id": "Composition.section:inventory.section",
        "path": "Composition.section.section",
        "max": "0"
      },
      {
        "id": "Composition.section:personalization",
        "path": "Composition.section",
        "sliceName": "personalization",
        "min": 0,
        "max": "*"
      },
      {
        "id": "Composition.section:personalization.title",
        "path": "Composition.section.title",
        "min": 1,
        "fixedString": "Personalization",
        "mustSupport": true
      },
      {
        "id": "Composition.section:personalization.author",
        "path": "Composition.section.author",
        "max": "0"
      },
      {
        "id": "Composition.section:personalization.focus",
        "path": "Composition.section.focus",
        "max": "0"
      },
      {
        "id": "Composition.section:personalization.text",
        "path": "Composition.section.text",
        "max": "0"
      },
      {
        "id": "Composition.section:personalization.orderedBy",
        "path": "Composition.section.orderedBy",
        "max": "0"
      },
      {
        "id": "Composition.section:personalization.entry",
        "path": "Composition.section.entry",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.inso-world.com/ncd-prevention-games/StructureDefinition/NCDPersonalizationObservation"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Composition.section:personalization.entry.reference",
        "path": "Composition.section.entry.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Composition.section:personalization.entry.type",
        "path": "Composition.section.entry.type",
        "max": "0"
      },
      {
        "id": "Composition.section:personalization.entry.identifier",
        "path": "Composition.section.entry.identifier",
        "max": "0"
      },
      {
        "id": "Composition.section:personalization.entry.display",
        "path": "Composition.section.entry.display",
        "max": "0"
      },
      {
        "id": "Composition.section:personalization.emptyReason",
        "path": "Composition.section.emptyReason",
        "max": "0"
      },
      {
        "id": "Composition.section:personalization.section",
        "path": "Composition.section.section",
        "max": "0"
      },
      {
        "id": "Composition.section:configuration",
        "path": "Composition.section",
        "sliceName": "configuration",
        "min": 0,
        "max": "*"
      },
      {
        "id": "Composition.section:configuration.title",
        "path": "Composition.section.title",
        "min": 1,
        "fixedString": "Configuration",
        "mustSupport": true
      },
      {
        "id": "Composition.section:configuration.author",
        "path": "Composition.section.author",
        "max": "0"
      },
      {
        "id": "Composition.section:configuration.focus",
        "path": "Composition.section.focus",
        "max": "0"
      },
      {
        "id": "Composition.section:configuration.text",
        "path": "Composition.section.text",
        "max": "0"
      },
      {
        "id": "Composition.section:configuration.orderedBy",
        "path": "Composition.section.orderedBy",
        "max": "0"
      },
      {
        "id": "Composition.section:configuration.entry",
        "path": "Composition.section.entry",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.inso-world.com/ncd-prevention-games/StructureDefinition/NCDConfigurationObservation"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Composition.section:configuration.entry.reference",
        "path": "Composition.section.entry.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Composition.section:configuration.entry.type",
        "path": "Composition.section.entry.type",
        "max": "0"
      },
      {
        "id": "Composition.section:configuration.entry.identifier",
        "path": "Composition.section.entry.identifier",
        "max": "0"
      },
      {
        "id": "Composition.section:configuration.entry.display",
        "path": "Composition.section.entry.display",
        "max": "0"
      },
      {
        "id": "Composition.section:configuration.emptyReason",
        "path": "Composition.section.emptyReason",
        "max": "0"
      },
      {
        "id": "Composition.section:configuration.section",
        "path": "Composition.section.section",
        "max": "0"
      }
    ]
  }
}