PackagesCanonicalsLogsProblems
    Packages
    ans.fhir.fr.tddui@2.4.0-ballot
    https://interop.esante.gouv.fr/ig/fhir/tddui/StructureDefinition/tddui-goal-projet-vie
description: Profil de la ressource Goal permettant de représenter le projet de vie de l'usager.
package_name: ans.fhir.fr.tddui
derivation: constraint
name: TDDUIGoalProjetVie
type: Goal
elements:
  meta:
    elements:
      lastUpdated: {index: 0}
  identifier:
    short: Identifiant du projet de vie
    index: 1
    slicing:
      rules: open
      discriminator:
      - {path: type, type: pattern}
      min: 1
      slices:
        idPDV:
          match:
            type:
              coding:
              - {code: PDV, system: 'https://interop.esante.gouv.fr/ig/fhir/tddui/CodeSystem/tddui-goal-identifier'}
          schema:
            constraint:
              GoalProjetVieIdentifierFormat: {human: 'l''identifiant du projet de vie doit respecter le format :  3+FINESS/identifiantLocalUsagerESSMS-PDV-idLocalProjetVie', source: 'https://interop.esante.gouv.fr/ig/fhir/tddui/StructureDefinition/tddui-goal-projet-vie', severity: error, expression: 'value.matches(''^3[0-9]{9}/[A-Za-z0-9]+-PDV-[A-Za-z0-9]+$'')'}
            _required: true
            index: 2
            elements:
              type:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: PDV, system: 'https://interop.esante.gouv.fr/ig/fhir/tddui/CodeSystem/tddui-goal-identifier'}
                index: 3
              system:
                pattern: {type: Uri, value: 'https://identifiant-medicosocial-projetvie.esante.gouv.fr'}
                index: 4
              value: {index: 5}
            required: [value, type, system]
  lifecycleStatus:
    short: 'Correspondance des statuts métier avec les codes FHIR : ENPREPARATION → planned, ENCOURS → active, TERMINE → completed.'
    index: 6
    extensions:
      TDDUIStatusAuthor: {url: 'https://interop.esante.gouv.fr/ig/fhir/tddui/StructureDefinition/tddui-status-author', min: 0, max: 1, type: Extension, index: 8}
    elements:
      extension:
        index: 7
        slicing:
          rules: open
          ordered: false
          discriminator:
          - {path: url, type: value}
          min: null
          slices:
            TDDUIStatusAuthor:
              match: {url: null}
              schema: {type: Extension, url: 'https://interop.esante.gouv.fr/ig/fhir/tddui/StructureDefinition/tddui-status-author', index: 8}
              min: 0
              max: 1
  description:
    elements:
      text: {index: 9}
    required: [text]
  subject:
    type: Reference
    refers: ['https://interop.esante.gouv.fr/ig/fhir/tddui/StructureDefinition/tddui-patient', 'https://interop.esante.gouv.fr/ig/fhir/tddui/StructureDefinition/tddui-patient-ins']
    index: 10
  start:
    choices: []
    index: 12
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: $this, type: type}
      min: null
      slices:
        startDate:
          match: {}
          schema:
            choices: [startDate]
            index: 14
          min: 0
          max: 1
  startDate:
    type: date
    choiceOf: start
    index: 15
    slicing:
      slices:
        startDate:
          match: {}
          schema: {type: date, choiceOf: start, index: 15}
          min: 0
          max: 1
  target:
    elements:
      measure:
        extensions:
          DataAbsentReason: {url: 'http://hl7.org/fhir/StructureDefinition/data-absent-reason', min: 1, max: 1, type: Extension, index: 17}
        elements:
          extension:
            index: 16
            slicing:
              slices:
                DataAbsentReason:
                  match: {}
                  schema: {type: Extension, url: 'http://hl7.org/fhir/StructureDefinition/data-absent-reason', index: 17}
                  min: 1
                  max: 1
        required: [extension]
      detail:
        choices: []
        index: 19
        slicing:
          rules: open
          ordered: false
          discriminator:
          - {path: $this, type: type}
          min: null
          slices:
            detailString:
              match: {}
              schema:
                choices: [detailString]
                index: 21
              min: 0
              max: 1
      detailString:
        type: string
        choiceOf: detail
        index: 22
        slicing:
          slices:
            detailString:
              match: {}
              schema: {type: string, choiceOf: detail, index: 22}
              min: 0
              max: 1
      due:
        choices: []
        index: 24
        slicing:
          rules: open
          ordered: false
          discriminator:
          - {path: $this, type: type}
          min: null
          slices:
            dueDate:
              match: {}
              schema:
                choices: [dueDate]
                index: 26
              min: 0
              max: 1
      dueDate:
        type: date
        choiceOf: due
        index: 27
        slicing:
          slices:
            dueDate:
              match: {}
              schema: {type: date, choiceOf: due, index: 27}
              min: 0
              max: 1
package_version: 2.4.0-ballot
class: profile
kind: resource
url: https://interop.esante.gouv.fr/ig/fhir/tddui/StructureDefinition/tddui-goal-projet-vie
base: http://hl7.org/fhir/StructureDefinition/Goal
version: 2.4.0-ballot
required: [identifier]