PackagesCanonicalsLogsProblems
    Packages
    ans.fhir.fr.tddui@2.2.0-ballot
    https://interop.esante.gouv.fr/ig/fhir/tddui/StructureDefinition/tddui-goal-objectif
{
  "description": "Profil de la ressource Goal permettant de représenter les résultats à atteindre dans le cadre du projet personnalisé.",
  "_filename": "StructureDefinition-tddui-goal-objectif.json",
  "package_name": "ans.fhir.fr.tddui",
  "date": "2025-12-19T10:12:34+00:00",
  "derivation": "constraint",
  "publisher": "ANS",
  "fhirVersion": "4.0.1",
  "jurisdiction": [ {
    "coding": [ {
      "code": "FR",
      "system": "urn:iso:std:iso:3166",
      "display": "FRANCE"
    } ]
  } ],
  "name": "TDDUIGoalObjectif",
  "mapping": [ {
    "uri": "https://interop.esante.gouv.fr/ig/fhir/tddui/sfe_modelisation_contenu.html",
    "name": "Modèle de contenu DUI",
    "identity": "specmetier-to-TDDUIGoalObjectif"
  }, {
    "uri": "http://hl7.org/v2",
    "name": "HL7 v2 Mapping",
    "identity": "v2"
  }, {
    "uri": "http://hl7.org/v3",
    "name": "RIM Mapping",
    "identity": "rim"
  }, {
    "uri": "http://hl7.org/fhir/fivews",
    "name": "FiveWs Pattern Mapping",
    "identity": "w5"
  } ],
  "abstract": false,
  "type": "Goal",
  "experimental": null,
  "resourceType": "StructureDefinition",
  "title": "TDDUI Goal Objectif",
  "package_version": "2.2.0-ballot",
  "snapshot": {
    "element": [ {
      "constraint": [ {
        "key": "dom-2",
        "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
        "xpath": "not(parent::f:contained and f:contained)",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1",
        "severity": "error",
        "expression": "contained.contained.empty()"
      }, {
        "key": "dom-3",
        "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
        "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1",
        "severity": "error",
        "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()"
      }, {
        "key": "dom-4",
        "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
        "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1",
        "severity": "error",
        "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"
      }, {
        "key": "dom-5",
        "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
        "xpath": "not(exists(f:contained/*/f:meta/f:security))",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1",
        "severity": "error",
        "expression": "contained.meta.security.empty()"
      }, {
        "key": "dom-6",
        "human": "A resource should have narrative for robust management",
        "xpath": "exists(f:text/h:div)",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1",
        "severity": "warning",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
          "valueBoolean": true
        }, {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
          "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
        } ],
        "expression": "text.`div`.exists()"
      } ],
      "path": "Goal",
      "min": 0,
      "definition": "Describes the intended objective(s) for a patient, group or organization care, for example, weight loss, restoring an activity of daily living, obtaining herd immunity via immunization, meeting a process improvement objective, etc.",
      "isModifier": false,
      "short": "Describes the intended objective(s) for a patient, group or organization",
      "mapping": [ {
        "map": "Objectif",
        "identity": "specmetier-to-TDDUIGoalObjectif"
      }, {
        "map": "Entity. Role, or Act",
        "identity": "rim"
      }, {
        "map": "GOL.1",
        "identity": "v2"
      }, {
        "map": ".outboundRelationship[typeCode<=OBJ].",
        "identity": "rim"
      } ],
      "max": "*",
      "id": "Goal",
      "comment": "Goal can be achieving a particular change or merely maintaining a current state or even slowing a decline.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Goal"
      },
      "isSummary": false
    }, {
      "path": "Goal.id",
      "min": 0,
      "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
      "isModifier": false,
      "short": "Logical id of this artifact",
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "id"
        } ]
      } ],
      "max": "1",
      "id": "Goal.id",
      "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.id"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Goal.meta",
      "min": 0,
      "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
      "isModifier": false,
      "short": "Metadata about the resource",
      "type": [ {
        "code": "Meta"
      } ],
      "max": "1",
      "id": "Goal.meta",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.meta"
      },
      "isSummary": true
    }, {
      "path": "Goal.meta.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Goal.meta.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Goal.meta.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Goal.meta.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Goal.meta.versionId",
      "min": 0,
      "definition": "The version specific identifier, as it appears in the version portion of the URL. This value changes when the resource is created, updated, or deleted.",
      "isModifier": false,
      "short": "Version specific identifier",
      "type": [ {
        "code": "id"
      } ],
      "max": "1",
      "id": "Goal.meta.versionId",
      "comment": "The server assigns this value, and ignores what the client specifies, except in the case that the server is imposing version integrity on updates/deletes.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Meta.versionId"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Goal.meta.lastUpdated",
      "min": 0,
      "definition": "When the resource last changed - e.g. when the version changed.",
      "isModifier": false,
      "short": "When the resource version last changed",
      "mapping": [ {
        "map": "statutObjectif.dateStatut",
        "identity": "specmetier-to-TDDUIGoalObjectif"
      } ],
      "type": [ {
        "code": "instant"
      } ],
      "max": "1",
      "id": "Goal.meta.lastUpdated",
      "comment": "This value is always populated except when the resource is first being created. The server / resource manager sets this value; what a client provides is irrelevant. This is equivalent to the HTTP Last-Modified and SHOULD have the same value on a [read](http://hl7.org/fhir/R4/http.html#read) interaction.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Meta.lastUpdated"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Goal.meta.source",
      "min": 0,
      "definition": "A uri that identifies the source system of the resource. This provides a minimal amount of [Provenance](http://hl7.org/fhir/R4/provenance.html#) information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc.",
      "isModifier": false,
      "short": "Identifies where the resource comes from",
      "type": [ {
        "code": "uri"
      } ],
      "max": "1",
      "id": "Goal.meta.source",
      "comment": "In the provenance resource, this corresponds to Provenance.entity.what[x]. The exact use of the source (and the implied Provenance.entity.role) is left to implementer discretion. Only one nominated source is allowed; for additional provenance details, a full Provenance resource should be used. \n\nThis element can be used to indicate where the current master source of a resource that has a canonical URL if the resource is no longer hosted at the canonical URL.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Meta.source"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Goal.meta.profile",
      "min": 0,
      "definition": "A list of profiles (references to [StructureDefinition](http://hl7.org/fhir/R4/structuredefinition.html#) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](http://hl7.org/fhir/R4/structuredefinition-definitions.html#StructureDefinition.url).",
      "isModifier": false,
      "short": "Profiles this resource claims to conform to",
      "type": [ {
        "code": "canonical",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/StructureDefinition|4.0.1" ]
      } ],
      "max": "*",
      "id": "Goal.meta.profile",
      "comment": "It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time.  The list of profile URLs is a set.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Meta.profile"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Goal.meta.security",
      "min": 0,
      "definition": "Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure.",
      "isModifier": false,
      "short": "Security Labels applied to this resource",
      "type": [ {
        "code": "Coding"
      } ],
      "binding": {
        "strength": "extensible",
        "valueSet": "http://hl7.org/fhir/ValueSet/security-labels|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "SecurityLabels"
        } ],
        "description": "Security Labels from the Healthcare Privacy and Security Classification System."
      },
      "max": "*",
      "id": "Goal.meta.security",
      "comment": "The security labels can be updated without changing the stated version of the resource. The list of security labels is a set. Uniqueness is based the system/code, and version and display are ignored.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Meta.security"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Goal.meta.tag",
      "min": 0,
      "definition": "Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource.",
      "isModifier": false,
      "short": "Tags applied to this resource",
      "type": [ {
        "code": "Coding"
      } ],
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/ValueSet/common-tags|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "Tags"
        } ],
        "description": "Codes that represent various types of tags, commonly workflow-related; e.g. \"Needs review by Dr. Jones\"."
      },
      "max": "*",
      "id": "Goal.meta.tag",
      "comment": "The tags can be updated without changing the stated version of the resource. The list of tags is a set. Uniqueness is based the system/code, and version and display are ignored.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Meta.tag"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Goal.implicitRules",
      "min": 0,
      "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
      "isModifier": true,
      "short": "A set of rules under which this content was created",
      "type": [ {
        "code": "uri"
      } ],
      "max": "1",
      "id": "Goal.implicitRules",
      "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.implicitRules"
      },
      "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Goal.language",
      "min": 0,
      "definition": "The base language in which the resource is written.",
      "isModifier": false,
      "short": "Language of the resource content",
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "preferred",
        "valueSet": "http://hl7.org/fhir/ValueSet/languages|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
          "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages|4.0.1"
        }, {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "Language"
        } ],
        "description": "A human language."
      },
      "max": "1",
      "id": "Goal.language",
      "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.language"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Goal.text",
      "min": 0,
      "definition": "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
      "isModifier": false,
      "short": "Text summary of the resource, for human interpretation",
      "mapping": [ {
        "map": "Act.text?",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Narrative"
      } ],
      "alias": [ "narrative", "html", "xhtml", "display" ],
      "max": "1",
      "id": "Goal.text",
      "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "DomainResource.text"
      },
      "isSummary": false
    }, {
      "path": "Goal.contained",
      "min": 0,
      "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
      "isModifier": false,
      "short": "Contained, inline Resources",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Resource"
      } ],
      "alias": [ "inline resources", "anonymous resources", "contained resources" ],
      "max": "*",
      "id": "Goal.contained",
      "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.contained"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Goal.extension",
      "min": 1,
      "definition": "An Extension",
      "isModifier": false,
      "short": "Extension",
      "slicing": {
        "rules": "open",
        "ordered": false,
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "max": "*",
      "id": "Goal.extension",
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Goal.extension",
      "min": 0,
      "definition": "Liens vers l'évaluation, utilisables dans le profil TDDUIGoalObjectif.",
      "isModifier": false,
      "short": "Lien vers l'évaluation",
      "mapping": [ {
        "map": "evaluationObjectif",
        "identity": "specmetier-to-TDDUIGoalObjectif"
      } ],
      "type": [ {
        "code": "Extension",
        "profile": [ "https://interop.esante.gouv.fr/ig/fhir/tddui/StructureDefinition/tddui-evaluation-reference|2.2.0-ballot" ]
      } ],
      "sliceName": "referenceEvaluation",
      "max": "*",
      "id": "Goal.extension:referenceEvaluation",
      "condition": [ "ele-1" ],
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Goal.extension",
      "min": 1,
      "definition": "Liens vers le projet personnalisé, utilisables dans le profil TDDUIGoalObjectif.",
      "isModifier": false,
      "short": "Lien vers le projet personnalisé",
      "mapping": [ {
        "map": "ProjetPersonnalise",
        "identity": "specmetier-to-TDDUIGoalObjectif"
      } ],
      "type": [ {
        "code": "Extension",
        "profile": [ "https://interop.esante.gouv.fr/ig/fhir/tddui/StructureDefinition/tddui-careplan-reference|2.2.0-ballot" ]
      } ],
      "sliceName": "referenceProjetPerso",
      "max": "1",
      "id": "Goal.extension:referenceProjetPerso",
      "condition": [ "ele-1" ],
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Goal.extension",
      "min": 0,
      "definition": "Extension permettant de véhiculer des pièces jointes que ce soit pour l'évaluation, l'évènement ou le projet personnalisé. L'extension référence le profil PDSm_SimplifiedPublish.",
      "isModifier": false,
      "short": "Pièce jointe",
      "type": [ {
        "code": "Extension",
        "profile": [ "https://interop.esante.gouv.fr/ig/fhir/tddui/StructureDefinition/tddui-attachment|2.2.0-ballot" ]
      } ],
      "sliceName": "pieceJointeObjectif",
      "max": "*",
      "id": "Goal.extension:pieceJointeObjectif",
      "condition": [ "ele-1" ],
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Goal.modifierExtension",
      "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
      "isModifier": true,
      "short": "Extensions that cannot be ignored",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Goal.modifierExtension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.modifierExtension"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Goal.identifier",
      "requirements": "Allows identification of the goal as it is known by various participating systems and in a way that remains consistent across servers.",
      "min": 1,
      "definition": "Business identifiers assigned to this goal by the performer or other systems which remain constant as the resource is updated and propagates from server to server.",
      "isModifier": false,
      "short": "Identifiant de l'objectif",
      "mapping": [ {
        "map": "idObjectif",
        "identity": "specmetier-to-TDDUIGoalObjectif"
      }, {
        "map": "FiveWs.identifier",
        "identity": "w5"
      }, {
        "map": ".id",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Identifier"
      } ],
      "max": "1",
      "id": "Goal.identifier",
      "comment": "This is a business identifier, not a resource identifier (see [discussion](http://hl7.org/fhir/R4/resource.html#identifiers)).  It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types.  For example, multiple Patient and a Person resource instance might share the same social insurance number.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Goal.identifier"
      },
      "isSummary": false
    }, {
      "path": "Goal.identifier.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Goal.identifier.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Goal.identifier.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Goal.identifier.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Goal.identifier.use",
      "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
      "min": 0,
      "definition": "The purpose of this identifier.",
      "isModifier": true,
      "short": "usual | official | temp | secondary | old (If known)",
      "mapping": [ {
        "map": "N/A",
        "identity": "v2"
      }, {
        "map": "Role.code or implied by context",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "IdentifierUse"
        } ],
        "description": "Identifies the purpose for this identifier, if known ."
      },
      "max": "1",
      "id": "Goal.identifier.use",
      "comment": "Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Identifier.use"
      },
      "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Goal.identifier.type",
      "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
      "min": 0,
      "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
      "isModifier": false,
      "short": "Description of identifier",
      "mapping": [ {
        "map": "CX.5",
        "identity": "v2"
      }, {
        "map": "Role.code or implied by context",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "extensible",
        "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "IdentifierType"
        } ],
        "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose."
      },
      "max": "1",
      "id": "Goal.identifier.type",
      "comment": "This element deals only with general categories of identifiers.  It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage.   Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Identifier.type"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Goal.identifier.system",
      "requirements": "There are many sets  of identifiers.  To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
      "min": 1,
      "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
      "isModifier": false,
      "short": "The namespace for the identifier value",
      "mapping": [ {
        "map": "CX.4 / EI-2-4",
        "identity": "v2"
      }, {
        "map": "II.root or Role.id.root",
        "identity": "rim"
      }, {
        "map": "./IdentifierType",
        "identity": "servd"
      } ],
      "type": [ {
        "code": "uri"
      } ],
      "max": "1",
      "id": "Goal.identifier.system",
      "comment": "Identifier.system is always case sensitive.",
      "example": [ {
        "label": "General",
        "valueUri": "http://www.acme.com/identifiers/patient"
      } ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "Identifier.system"
      },
      "patternUri": "https://identifiant-medicosocial-objectif.esante.gouv.fr",
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Goal.identifier.value",
      "min": 1,
      "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system.",
      "isModifier": false,
      "short": "The value that is unique",
      "mapping": [ {
        "map": "CX.1 / EI.1",
        "identity": "v2"
      }, {
        "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)",
        "identity": "rim"
      }, {
        "map": "./Value",
        "identity": "servd"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "max": "1",
      "id": "Goal.identifier.value",
      "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986.  The value's primary purpose is computational mapping.  As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.)  A value formatted for human display can be conveyed using the [Rendered Value extension](http://hl7.org/fhir/R4/extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.",
      "example": [ {
        "label": "General",
        "valueString": "123456"
      }, {
        "label": "du format d'identifiant à respecter : 3+FINESS/identifiantLocalUsagerESSMS-OBJE-numObjectif",
        "valueString": "3480787529/123456789-OBJE-1234"
      } ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "Identifier.value"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Goal.identifier.period",
      "min": 0,
      "definition": "Time period during which identifier is/was valid for use.",
      "isModifier": false,
      "short": "Time period when id is/was valid for use",
      "mapping": [ {
        "map": "CX.7 + CX.8",
        "identity": "v2"
      }, {
        "map": "Role.effectiveTime or implied by context",
        "identity": "rim"
      }, {
        "map": "./StartDate and ./EndDate",
        "identity": "servd"
      } ],
      "type": [ {
        "code": "Period"
      } ],
      "max": "1",
      "id": "Goal.identifier.period",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Identifier.period"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Goal.identifier.assigner",
      "min": 0,
      "definition": "Organization that issued/manages the identifier.",
      "isModifier": false,
      "short": "Organization that issued id (may be just text)",
      "mapping": [ {
        "map": "CX.4 / (CX.4,CX.9,CX.10)",
        "identity": "v2"
      }, {
        "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field.  Also Role.scoper",
        "identity": "rim"
      }, {
        "map": "./IdentifierIssuingAuthority",
        "identity": "servd"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Organization|4.0.1" ]
      } ],
      "max": "1",
      "id": "Goal.identifier.assigner",
      "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Identifier.assigner"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Goal.lifecycleStatus",
      "requirements": "Allows knowing whether goal needs to be further tracked.",
      "min": 1,
      "definition": "The state of the goal throughout its lifecycle.",
      "isModifier": true,
      "short": "Correspondance des statuts métier avec les codes FHIR : ENPREPARATION → planned, ACTIF → active, TERMINE → completed, ANNULE → cancelled.",
      "mapping": [ {
        "map": "statutObjectif.statut",
        "identity": "specmetier-to-TDDUIGoalObjectif"
      }, {
        "map": "FiveWs.status",
        "identity": "w5"
      }, {
        "map": "GOL-18-goal life cycle status",
        "identity": "v2"
      }, {
        "map": ".statusCode in-progress = active (classCode = OBJ) cancelled = aborted",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/goal-status|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "GoalLifecycleStatus"
        } ],
        "description": "Codes that reflect the current state of a goal and whether the goal is still being targeted."
      },
      "max": "1",
      "id": "Goal.lifecycleStatus",
      "comment": "This element is labeled as a modifier because the lifecycleStatus contains codes that mark the resource as not currently valid.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Goal.lifecycleStatus"
      },
      "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
      "isSummary": true
    }, {
      "path": "Goal.lifecycleStatus.id",
      "min": 0,
      "definition": "unique id for the element within a resource (for internal references)",
      "isModifier": false,
      "short": "xml:id (or equivalent in JSON)",
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Goal.lifecycleStatus.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Goal.lifecycleStatus.extension",
      "min": 0,
      "definition": "An Extension",
      "isModifier": false,
      "short": "Extension",
      "slicing": {
        "rules": "open",
        "ordered": false,
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "max": "*",
      "id": "Goal.lifecycleStatus.extension",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Goal.lifecycleStatus.extension",
      "min": 0,
      "definition": "Extension permettant de représenter la profession du professionnel.",
      "isModifier": false,
      "short": "TDDUI Auteur statut",
      "mapping": [ {
        "map": "statutObjectif.auteur",
        "identity": "specmetier-to-TDDUIGoalObjectif"
      } ],
      "type": [ {
        "code": "Extension",
        "profile": [ "https://interop.esante.gouv.fr/ig/fhir/tddui/StructureDefinition/tddui-status-author|2.2.0-ballot" ]
      } ],
      "sliceName": "auteurStatut",
      "max": "1",
      "id": "Goal.lifecycleStatus.extension:auteurStatut",
      "condition": [ "ele-1" ],
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "path": "Goal.lifecycleStatus.value",
      "min": 0,
      "definition": "Primitive value for code",
      "isModifier": false,
      "short": "Primitive value for code",
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        }, {
          "url": "http://hl7.org/fhir/StructureDefinition/regex",
          "valueString": "[^\\s]+(\\s[^\\s]+)*"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Goal.lifecycleStatus.value",
      "base": {
        "max": "1",
        "min": 0,
        "path": "string.value"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Goal.achievementStatus",
      "min": 0,
      "definition": "Describes the progression, or lack thereof, towards the goal against the target.",
      "isModifier": false,
      "short": "in-progress | improving | worsening | no-change | achieved | sustaining | not-achieved | no-progress | not-attainable",
      "mapping": [ {
        "map": ".statusCode achieved = complete sustaining = active",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "preferred",
        "valueSet": "http://hl7.org/fhir/ValueSet/goal-achievement|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "GoalAchievementStatus"
        } ],
        "description": "Indicates the progression, or lack thereof, towards the goal against the target."
      },
      "max": "1",
      "id": "Goal.achievementStatus",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Goal.achievementStatus"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Goal.category",
      "requirements": "Allows goals to be filtered and sorted.",
      "min": 0,
      "definition": "Indicates a category the goal falls within.",
      "isModifier": false,
      "short": "E.g. Treatment, dietary, behavioral, etc.",
      "mapping": [ {
        "map": "domaineObjectif",
        "identity": "specmetier-to-TDDUIGoalObjectif"
      }, {
        "map": "FiveWs.class",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/ValueSet/goal-category|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "GoalCategory"
        } ],
        "description": "Codes for grouping and sorting goals."
      },
      "max": "*",
      "id": "Goal.category",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Goal.category"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Goal.priority",
      "requirements": "Used for sorting and presenting goals.",
      "min": 0,
      "definition": "Identifies the mutually agreed level of importance associated with reaching/sustaining the goal.",
      "isModifier": false,
      "short": "high-priority | medium-priority | low-priority",
      "mapping": [ {
        "map": "FiveWs.grade",
        "identity": "w5"
      }, {
        "map": ".priorityCode",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "preferred",
        "valueSet": "http://hl7.org/fhir/ValueSet/goal-priority|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "GoalPriority"
        } ],
        "description": "The level of importance associated with a goal."
      },
      "max": "1",
      "id": "Goal.priority",
      "comment": "Extensions are available to track priorities as established by each participant (i.e. Priority from the patient's perspective, different practitioners' perspectives, family member's perspectives)\r\rThe ordinal extension on Coding can be used to convey a numerically comparable ranking to priority.  (Keep in mind that different coding systems may use a \"low value=important\".",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Goal.priority"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Goal.description",
      "requirements": "Without a description of what's trying to be achieved, element has no purpose.",
      "min": 1,
      "definition": "Human-readable and/or coded description of a specific desired objective of care, such as \"control blood pressure\" or \"negotiate an obstacle course\" or \"dance with child at wedding\".",
      "isModifier": false,
      "short": "Code or text describing goal",
      "mapping": [ {
        "map": "FiveWs.what[x]",
        "identity": "w5"
      }, {
        "map": "GOL-3.2-goal ID.text",
        "identity": "v2"
      }, {
        "map": ".text",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/ValueSet/clinical-findings|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "GoalDescription"
        } ],
        "description": "Codes providing the details of a particular goal.  This will generally be system or implementation guide-specific.  In many systems, only the text element will be used."
      },
      "max": "1",
      "id": "Goal.description",
      "comment": "If no code is available, use CodeableConcept.text.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Goal.description"
      },
      "isSummary": true
    }, {
      "path": "Goal.description.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Goal.description.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Goal.description.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Goal.description.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Goal.description.coding",
      "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
      "min": 0,
      "definition": "A reference to a code defined by a terminology system.",
      "isModifier": false,
      "short": "Code defined by a terminology system",
      "mapping": [ {
        "map": "C*E.1-8, C*E.10-22",
        "identity": "v2"
      }, {
        "map": "union(., ./translation)",
        "identity": "rim"
      }, {
        "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "Coding"
      } ],
      "max": "*",
      "id": "Goal.description.coding",
      "comment": "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "CodeableConcept.coding"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Goal.description.text",
      "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
      "min": 0,
      "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
      "isModifier": false,
      "short": "Plain text representation of the concept",
      "mapping": [ {
        "map": "descriptionObjectif",
        "identity": "specmetier-to-TDDUIGoalObjectif"
      }, {
        "map": "C*E.9. But note many systems use C*E.2 for this",
        "identity": "v2"
      }, {
        "map": "./originalText[mediaType/code=\"text/plain\"]/data",
        "identity": "rim"
      }, {
        "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
        "valueBoolean": true
      } ],
      "max": "1",
      "id": "Goal.description.text",
      "comment": "Very often the text is the same as a displayName of one of the codings.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "CodeableConcept.text"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Goal.subject",
      "requirements": "Subject is optional to support annonymized reporting.",
      "min": 1,
      "definition": "Identifies the patient, group or organization for whom the goal is being established.",
      "isModifier": false,
      "short": "Who this goal is intended for",
      "mapping": [ {
        "map": "FiveWs.subject[x]",
        "identity": "w5"
      }, {
        "map": "PID-3-patient ID list",
        "identity": "v2"
      }, {
        "map": ".participation[typeCode=PAT].role[classCode=PAT]",
        "identity": "rim"
      }, {
        "map": "FiveWs.subject",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "https://interop.esante.gouv.fr/ig/fhir/tddui/StructureDefinition/tddui-patient|2.2.0-ballot", "https://interop.esante.gouv.fr/ig/fhir/tddui/StructureDefinition/tddui-patient-ins|2.2.0-ballot" ]
      } ],
      "max": "1",
      "id": "Goal.subject",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Goal.subject"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Goal.start[x]",
      "requirements": "Goals can be established prior to there being an intention to start pursuing them; e.g. Goals for post-surgical recovery established prior to surgery.",
      "min": 0,
      "definition": "The date or event after which the goal should begin being pursued.",
      "isModifier": false,
      "short": "When goal pursuit begins",
      "mapping": [ {
        "map": "FiveWs.planned",
        "identity": "w5"
      } ],
      "slicing": {
        "rules": "open",
        "ordered": false,
        "discriminator": [ {
          "path": "$this",
          "type": "type"
        } ]
      },
      "type": [ {
        "code": "date"
      }, {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/ValueSet/goal-start-event|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "GoalStartEvent"
        } ],
        "description": "Codes describing events that can trigger the initiation of a goal."
      },
      "max": "1",
      "id": "Goal.start[x]",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Goal.start[x]"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Goal.start[x]",
      "requirements": "Goals can be established prior to there being an intention to start pursuing them; e.g. Goals for post-surgical recovery established prior to surgery.",
      "min": 0,
      "definition": "The date or event after which the goal should begin being pursued.",
      "isModifier": false,
      "short": "When goal pursuit begins",
      "mapping": [ {
        "map": "dateDebutObjectif",
        "identity": "specmetier-to-TDDUIGoalObjectif"
      }, {
        "map": "FiveWs.planned",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "date"
      } ],
      "sliceName": "startDate",
      "max": "1",
      "id": "Goal.start[x]:startDate",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Goal.start[x]"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "gol-1",
        "human": "Goal.target.measure is required if Goal.target.detail is populated",
        "xpath": "(exists(f:*[starts-with(local-name(.), 'detail')]) and exists(f:measure)) or not(exists(f:*[starts-with(local-name(.), 'detail')]))",
        "source": "http://hl7.org/fhir/StructureDefinition/Goal|4.0.1",
        "severity": "error",
        "expression": "(detail.exists() and measure.exists()) or detail.exists().not()"
      } ],
      "path": "Goal.target",
      "requirements": "Allows the progress of the goal to be monitored against an observation or due date.  Target is 0..* to support Observations with multiple components, such as blood pressure goals with both a systolic and diastolic target.",
      "min": 0,
      "definition": "Indicates what should be done by when.",
      "isModifier": false,
      "short": "Target outcome for the goal",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "max": "*",
      "id": "Goal.target",
      "condition": [ "gol-1" ],
      "comment": "When multiple targets are present for a single goal instance, all targets must be met for the overall goal to be met.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Goal.target"
      },
      "isSummary": false
    }, {
      "path": "Goal.target.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Goal.target.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Goal.target.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Goal.target.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Goal.target.modifierExtension",
      "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
      "isModifier": true,
      "short": "Extensions that cannot be ignored even if unrecognized",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content", "modifiers" ],
      "max": "*",
      "id": "Goal.target.modifierExtension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "BackboneElement.modifierExtension"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Goal.target.measure",
      "min": 0,
      "definition": "The parameter whose value is being tracked, e.g. body weight, blood pressure, or hemoglobin A1c level.",
      "isModifier": false,
      "short": "The parameter whose value is being tracked",
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/ValueSet/observation-codes|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "GoalTargetMeasure"
        } ],
        "description": "Codes to identify the value being tracked, e.g. body weight, blood pressure, or hemoglobin A1c level."
      },
      "max": "1",
      "id": "Goal.target.measure",
      "condition": [ "gol-1" ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "Goal.target.measure"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Goal.target.detail[x]",
      "min": 0,
      "definition": "The target value of the focus to be achieved to signify the fulfillment of the goal, e.g. 150 pounds, 7.0%. Either the high or low or both values of the range can be specified. When a low value is missing, it indicates that the goal is achieved at any focus value at or below the high value. Similarly, if the high value is missing, it indicates that the goal is achieved at any focus value at or above the low value.",
      "isModifier": false,
      "short": "The target value to be achieved",
      "slicing": {
        "rules": "open",
        "ordered": false,
        "discriminator": [ {
          "path": "$this",
          "type": "type"
        } ]
      },
      "type": [ {
        "code": "Quantity"
      }, {
        "code": "Range"
      }, {
        "code": "CodeableConcept"
      }, {
        "code": "string"
      }, {
        "code": "boolean"
      }, {
        "code": "integer"
      }, {
        "code": "Ratio"
      } ],
      "binding": {
        "strength": "example",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "GoalTargetDetail"
        } ],
        "description": "Codes to identify the target value of the focus to be achieved to signify the fulfillment of the goal."
      },
      "max": "1",
      "id": "Goal.target.detail[x]",
      "condition": [ "gol-1" ],
      "comment": "A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Goal.target.measure defines a coded value.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Goal.target.detail[x]"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Goal.target.detail[x]",
      "min": 0,
      "definition": "The target value of the focus to be achieved to signify the fulfillment of the goal, e.g. 150 pounds, 7.0%. Either the high or low or both values of the range can be specified. When a low value is missing, it indicates that the goal is achieved at any focus value at or below the high value. Similarly, if the high value is missing, it indicates that the goal is achieved at any focus value at or above the low value.",
      "isModifier": false,
      "short": "The target value to be achieved",
      "mapping": [ {
        "map": "resultatAttenduObjectif",
        "identity": "specmetier-to-TDDUIGoalObjectif"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "sliceName": "detailString",
      "binding": {
        "strength": "example",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "GoalTargetDetail"
        } ],
        "description": "Codes to identify the target value of the focus to be achieved to signify the fulfillment of the goal."
      },
      "max": "1",
      "id": "Goal.target.detail[x]:detailString",
      "condition": [ "gol-1" ],
      "comment": "A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Goal.target.measure defines a coded value.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Goal.target.detail[x]"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Goal.target.due[x]",
      "requirements": "Identifies when the goal should be evaluated.",
      "min": 0,
      "definition": "Indicates either the date or the duration after start by which the goal should be met.",
      "isModifier": false,
      "short": "Reach goal on or before",
      "mapping": [ {
        "map": "FiveWs.done[x]",
        "identity": "w5"
      } ],
      "slicing": {
        "rules": "open",
        "ordered": false,
        "discriminator": [ {
          "path": "$this",
          "type": "type"
        } ]
      },
      "type": [ {
        "code": "date"
      }, {
        "code": "Duration"
      } ],
      "max": "1",
      "id": "Goal.target.due[x]",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Goal.target.due[x]"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Goal.target.due[x]",
      "requirements": "Identifies when the goal should be evaluated.",
      "min": 0,
      "definition": "Indicates either the date or the duration after start by which the goal should be met.",
      "isModifier": false,
      "short": "Reach goal on or before",
      "mapping": [ {
        "map": "dateFinObjectif",
        "identity": "specmetier-to-TDDUIGoalObjectif"
      }, {
        "map": "FiveWs.done[x]",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "date"
      } ],
      "sliceName": "dueDate",
      "max": "1",
      "id": "Goal.target.due[x]:dueDate",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Goal.target.due[x]"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Goal.statusDate",
      "min": 0,
      "definition": "Identifies when the current status.  I.e. When initially created, when achieved, when cancelled, etc.",
      "isModifier": false,
      "short": "When goal status took effect",
      "mapping": [ {
        "map": "FiveWs.recorded",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "date"
      } ],
      "max": "1",
      "id": "Goal.statusDate",
      "comment": "To see the date for past statuses, query history.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Goal.statusDate"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Goal.statusReason",
      "min": 0,
      "definition": "Captures the reason for the current status.",
      "isModifier": false,
      "short": "Reason for current status",
      "type": [ {
        "code": "string"
      } ],
      "max": "1",
      "id": "Goal.statusReason",
      "comment": "This will typically be captured for statuses such as rejected, on-hold or cancelled, but could be present for others.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Goal.statusReason"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Goal.expressedBy",
      "min": 0,
      "definition": "Indicates whose goal this is - patient goal, practitioner goal, etc.",
      "isModifier": false,
      "short": "Who's responsible for creating Goal?",
      "mapping": [ {
        "map": "referentObjectif",
        "identity": "specmetier-to-TDDUIGoalObjectif"
      }, {
        "map": "FiveWs.source",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "https://interop.esante.gouv.fr/ig/fhir/tddui/StructureDefinition/tddui-practitioner-role|2.2.0-ballot", "https://interop.esante.gouv.fr/ig/fhir/tddui/StructureDefinition/tddui-practitioner|2.2.0-ballot" ]
      } ],
      "max": "1",
      "id": "Goal.expressedBy",
      "comment": "This is the individual responsible for establishing the goal, not necessarily who recorded it.  (For that, use the Provenance resource.).",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Goal.expressedBy"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Goal.addresses",
      "requirements": "Allows specific goals to explicitly linked to the concerns they're dealing with - makes the goal more understandable.",
      "min": 0,
      "definition": "The identified conditions and other health record elements that are intended to be addressed by the goal.",
      "isModifier": false,
      "short": "Issues addressed by this goal",
      "mapping": [ {
        "map": "Besoin",
        "identity": "specmetier-to-TDDUIGoalObjectif"
      }, {
        "map": "FiveWs.why[x]",
        "identity": "w5"
      }, {
        "map": ".outboundRelationship[typeCode=SUBJ].target[classCode=CONC]",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "https://interop.esante.gouv.fr/ig/fhir/tddui/StructureDefinition/tddui-service-request-besoin|2.2.0-ballot" ]
      } ],
      "max": "*",
      "id": "Goal.addresses",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Goal.addresses"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Goal.note",
      "requirements": "There's a need to capture information about the goal that doesn't actually describe the goal.",
      "min": 1,
      "definition": "Any comments related to the goal.",
      "isModifier": false,
      "short": "Comments about the goal",
      "mapping": [ {
        "map": "GOL-16-goal evaluation + NTE?",
        "identity": "v2"
      }, {
        "map": ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"annotation\"].value",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "discriminator": [ {
          "path": "extension('https://interop.esante.gouv.fr/ig/fhir/tddui/StructureDefinition/tddui-discriminator').value",
          "type": "pattern"
        } ]
      },
      "type": [ {
        "code": "Annotation"
      } ],
      "max": "*",
      "id": "Goal.note",
      "comment": "May be used for progress notes, concerns or other related information that doesn't actually describe the goal itself.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Goal.note"
      },
      "isSummary": false
    }, {
      "path": "Goal.note.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Goal.note.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Goal.note.extension",
      "min": 1,
      "definition": "An Extension",
      "isModifier": false,
      "short": "Extension",
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "max": "*",
      "id": "Goal.note.extension",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Goal.note.extension",
      "min": 1,
      "definition": "Extension pour discriminer les éléments CarePlan.supportingInfo et Goal.note.",
      "isModifier": false,
      "short": "TDDUI Discriminator Extension",
      "type": [ {
        "code": "Extension",
        "profile": [ "https://interop.esante.gouv.fr/ig/fhir/tddui/StructureDefinition/tddui-discriminator|2.2.0-ballot" ]
      } ],
      "sliceName": "TDDUIDiscriminator",
      "max": "3",
      "id": "Goal.note.extension:TDDUIDiscriminator",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Goal.note.author[x]",
      "min": 0,
      "definition": "The individual responsible for making the annotation.",
      "isModifier": false,
      "short": "Individual responsible for the annotation",
      "mapping": [ {
        "map": "N/A",
        "identity": "v2"
      }, {
        "map": "Act.participant[typeCode=AUT].role",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1", "http://hl7.org/fhir/StructureDefinition/Patient|4.0.1", "http://hl7.org/fhir/StructureDefinition/RelatedPerson|4.0.1", "http://hl7.org/fhir/StructureDefinition/Organization|4.0.1" ]
      }, {
        "code": "string"
      } ],
      "max": "1",
      "id": "Goal.note.author[x]",
      "comment": "Organization is used when there's no need for specific attribution as to who made the comment.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Annotation.author[x]"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Goal.note.time",
      "min": 0,
      "definition": "Indicates when this particular annotation was made.",
      "isModifier": false,
      "short": "When the annotation was made",
      "mapping": [ {
        "map": "N/A",
        "identity": "v2"
      }, {
        "map": "Act.effectiveTime",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "dateTime"
      } ],
      "max": "1",
      "id": "Goal.note.time",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Annotation.time"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Goal.note.text",
      "min": 1,
      "definition": "The text of the annotation in markdown format.",
      "isModifier": false,
      "short": "The annotation  - text content (as markdown)",
      "mapping": [ {
        "map": "N/A",
        "identity": "v2"
      }, {
        "map": "Act.text",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "markdown"
      } ],
      "max": "1",
      "id": "Goal.note.text",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Annotation.text"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Goal.note",
      "requirements": "There's a need to capture information about the goal that doesn't actually describe the goal.",
      "min": 1,
      "definition": "Any comments related to the goal.",
      "isModifier": false,
      "short": "Titre de l'objectif",
      "mapping": [ {
        "map": "GOL-16-goal evaluation + NTE?",
        "identity": "v2"
      }, {
        "map": ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"annotation\"].value",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Annotation"
      } ],
      "sliceName": "titreObjectif",
      "max": "1",
      "id": "Goal.note:titreObjectif",
      "comment": "May be used for progress notes, concerns or other related information that doesn't actually describe the goal itself.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Goal.note"
      },
      "isSummary": false
    }, {
      "path": "Goal.note.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Goal.note:titreObjectif.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Goal.note.extension",
      "min": 1,
      "definition": "An Extension",
      "isModifier": false,
      "short": "Extension",
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "max": "*",
      "id": "Goal.note:titreObjectif.extension",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Goal.note.extension",
      "min": 1,
      "definition": "Extension pour discriminer les éléments CarePlan.supportingInfo et Goal.note.",
      "isModifier": false,
      "short": "TDDUI Discriminator Extension",
      "type": [ {
        "code": "Extension",
        "profile": [ "https://interop.esante.gouv.fr/ig/fhir/tddui/StructureDefinition/tddui-discriminator|2.2.0-ballot" ]
      } ],
      "sliceName": "TDDUIDiscriminator",
      "max": "1",
      "id": "Goal.note:titreObjectif.extension:TDDUIDiscriminator",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "path": "Goal.note.extension.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Goal.note:titreObjectif.extension:TDDUIDiscriminator.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Goal.note.extension.extension",
      "min": 0,
      "definition": "An Extension",
      "isModifier": false,
      "short": "Extension",
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "max": "0",
      "id": "Goal.note:titreObjectif.extension:TDDUIDiscriminator.extension",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "path": "Goal.note.extension.url",
      "min": 1,
      "definition": "Source of the definition for the extension code - a logical name or a URL.",
      "isModifier": false,
      "short": "identifies the meaning of the extension",
      "fixedUri": "https://interop.esante.gouv.fr/ig/fhir/tddui/StructureDefinition/tddui-discriminator",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "uri"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Goal.note:titreObjectif.extension:TDDUIDiscriminator.url",
      "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Goal.note.extension.value[x]",
      "min": 0,
      "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).",
      "isModifier": false,
      "short": "Value of extension",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "required",
        "valueSet": "https://interop.esante.gouv.fr/ig/fhir/tddui/ValueSet/tddui-goal-objectif-note-vs|2.2.0-ballot"
      },
      "max": "1",
      "id": "Goal.note:titreObjectif.extension:TDDUIDiscriminator.value[x]",
      "patternCodeableConcept": {
        "coding": [ {
          "code": "titreObjectif",
          "system": "https://interop.esante.gouv.fr/ig/fhir/tddui/CodeSystem/tddui-discriminator-cs"
        } ]
      },
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Goal.note.author[x]",
      "min": 0,
      "definition": "The individual responsible for making the annotation.",
      "isModifier": false,
      "short": "Individual responsible for the annotation",
      "mapping": [ {
        "map": "N/A",
        "identity": "v2"
      }, {
        "map": "Act.participant[typeCode=AUT].role",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1", "http://hl7.org/fhir/StructureDefinition/Patient|4.0.1", "http://hl7.org/fhir/StructureDefinition/RelatedPerson|4.0.1", "http://hl7.org/fhir/StructureDefinition/Organization|4.0.1" ]
      }, {
        "code": "string"
      } ],
      "max": "1",
      "id": "Goal.note:titreObjectif.author[x]",
      "comment": "Organization is used when there's no need for specific attribution as to who made the comment.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Annotation.author[x]"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Goal.note.time",
      "min": 0,
      "definition": "Indicates when this particular annotation was made.",
      "isModifier": false,
      "short": "When the annotation was made",
      "mapping": [ {
        "map": "N/A",
        "identity": "v2"
      }, {
        "map": "Act.effectiveTime",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "dateTime"
      } ],
      "max": "1",
      "id": "Goal.note:titreObjectif.time",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Annotation.time"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Goal.note.text",
      "min": 1,
      "definition": "The text of the annotation in markdown format.",
      "isModifier": false,
      "short": "The annotation  - text content (as markdown)",
      "mapping": [ {
        "map": "titreObjectif",
        "identity": "specmetier-to-TDDUIGoalObjectif"
      }, {
        "map": "N/A",
        "identity": "v2"
      }, {
        "map": "Act.text",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "markdown"
      } ],
      "max": "1",
      "id": "Goal.note:titreObjectif.text",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Annotation.text"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Goal.note",
      "requirements": "There's a need to capture information about the goal that doesn't actually describe the goal.",
      "min": 0,
      "definition": "Any comments related to the goal.",
      "isModifier": false,
      "short": "Avis de l'usager sur l'objectif",
      "mapping": [ {
        "map": "GOL-16-goal evaluation + NTE?",
        "identity": "v2"
      }, {
        "map": ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"annotation\"].value",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Annotation"
      } ],
      "sliceName": "avisUsagerObjectif",
      "max": "1",
      "id": "Goal.note:avisUsagerObjectif",
      "comment": "May be used for progress notes, concerns or other related information that doesn't actually describe the goal itself.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Goal.note"
      },
      "isSummary": false
    }, {
      "path": "Goal.note.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Goal.note:avisUsagerObjectif.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Goal.note.extension",
      "min": 1,
      "definition": "An Extension",
      "isModifier": false,
      "short": "Extension",
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "max": "*",
      "id": "Goal.note:avisUsagerObjectif.extension",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Goal.note.extension",
      "min": 1,
      "definition": "Extension pour discriminer les éléments CarePlan.supportingInfo et Goal.note.",
      "isModifier": false,
      "short": "TDDUI Discriminator Extension",
      "type": [ {
        "code": "Extension",
        "profile": [ "https://interop.esante.gouv.fr/ig/fhir/tddui/StructureDefinition/tddui-discriminator|2.2.0-ballot" ]
      } ],
      "sliceName": "TDDUIDiscriminator",
      "max": "1",
      "id": "Goal.note:avisUsagerObjectif.extension:TDDUIDiscriminator",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "path": "Goal.note.extension.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Goal.note:avisUsagerObjectif.extension:TDDUIDiscriminator.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Goal.note.extension.extension",
      "min": 0,
      "definition": "An Extension",
      "isModifier": false,
      "short": "Extension",
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "max": "0",
      "id": "Goal.note:avisUsagerObjectif.extension:TDDUIDiscriminator.extension",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "path": "Goal.note.extension.url",
      "min": 1,
      "definition": "Source of the definition for the extension code - a logical name or a URL.",
      "isModifier": false,
      "short": "identifies the meaning of the extension",
      "fixedUri": "https://interop.esante.gouv.fr/ig/fhir/tddui/StructureDefinition/tddui-discriminator",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "uri"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Goal.note:avisUsagerObjectif.extension:TDDUIDiscriminator.url",
      "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Goal.note.extension.value[x]",
      "min": 0,
      "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).",
      "isModifier": false,
      "short": "Value of extension",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "required",
        "valueSet": "https://interop.esante.gouv.fr/ig/fhir/tddui/ValueSet/tddui-goal-objectif-note-vs|2.2.0-ballot"
      },
      "max": "1",
      "id": "Goal.note:avisUsagerObjectif.extension:TDDUIDiscriminator.value[x]",
      "patternCodeableConcept": {
        "coding": [ {
          "code": "avisUsagerObjectif",
          "system": "https://interop.esante.gouv.fr/ig/fhir/tddui/CodeSystem/tddui-discriminator-cs"
        } ]
      },
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Goal.note.author[x]",
      "min": 0,
      "definition": "The individual responsible for making the annotation.",
      "isModifier": false,
      "short": "Individual responsible for the annotation",
      "mapping": [ {
        "map": "N/A",
        "identity": "v2"
      }, {
        "map": "Act.participant[typeCode=AUT].role",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1", "http://hl7.org/fhir/StructureDefinition/Patient|4.0.1", "http://hl7.org/fhir/StructureDefinition/RelatedPerson|4.0.1", "http://hl7.org/fhir/StructureDefinition/Organization|4.0.1" ]
      }, {
        "code": "string"
      } ],
      "max": "1",
      "id": "Goal.note:avisUsagerObjectif.author[x]",
      "comment": "Organization is used when there's no need for specific attribution as to who made the comment.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Annotation.author[x]"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Goal.note.time",
      "min": 0,
      "definition": "Indicates when this particular annotation was made.",
      "isModifier": false,
      "short": "When the annotation was made",
      "mapping": [ {
        "map": "N/A",
        "identity": "v2"
      }, {
        "map": "Act.effectiveTime",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "dateTime"
      } ],
      "max": "1",
      "id": "Goal.note:avisUsagerObjectif.time",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Annotation.time"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Goal.note.text",
      "min": 1,
      "definition": "The text of the annotation in markdown format.",
      "isModifier": false,
      "short": "The annotation  - text content (as markdown)",
      "mapping": [ {
        "map": "avisUsagerObjectif",
        "identity": "specmetier-to-TDDUIGoalObjectif"
      }, {
        "map": "N/A",
        "identity": "v2"
      }, {
        "map": "Act.text",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "markdown"
      } ],
      "max": "1",
      "id": "Goal.note:avisUsagerObjectif.text",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Annotation.text"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Goal.note",
      "requirements": "There's a need to capture information about the goal that doesn't actually describe the goal.",
      "min": 0,
      "definition": "Any comments related to the goal.",
      "isModifier": false,
      "short": "Stratégie de mise en œuvre de l'objectif",
      "mapping": [ {
        "map": "GOL-16-goal evaluation + NTE?",
        "identity": "v2"
      }, {
        "map": ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"annotation\"].value",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Annotation"
      } ],
      "sliceName": "strategieMiseEnOeuvreObjectif",
      "max": "1",
      "id": "Goal.note:strategieMiseEnOeuvreObjectif",
      "comment": "May be used for progress notes, concerns or other related information that doesn't actually describe the goal itself.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Goal.note"
      },
      "isSummary": false
    }, {
      "path": "Goal.note.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Goal.note:strategieMiseEnOeuvreObjectif.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Goal.note.extension",
      "min": 1,
      "definition": "An Extension",
      "isModifier": false,
      "short": "Extension",
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "max": "*",
      "id": "Goal.note:strategieMiseEnOeuvreObjectif.extension",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Goal.note.extension",
      "min": 1,
      "definition": "Extension pour discriminer les éléments CarePlan.supportingInfo et Goal.note.",
      "isModifier": false,
      "short": "TDDUI Discriminator Extension",
      "type": [ {
        "code": "Extension",
        "profile": [ "https://interop.esante.gouv.fr/ig/fhir/tddui/StructureDefinition/tddui-discriminator|2.2.0-ballot" ]
      } ],
      "sliceName": "TDDUIDiscriminator",
      "max": "1",
      "id": "Goal.note:strategieMiseEnOeuvreObjectif.extension:TDDUIDiscriminator",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "path": "Goal.note.extension.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Goal.note:strategieMiseEnOeuvreObjectif.extension:TDDUIDiscriminator.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Goal.note.extension.extension",
      "min": 0,
      "definition": "An Extension",
      "isModifier": false,
      "short": "Extension",
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "max": "0",
      "id": "Goal.note:strategieMiseEnOeuvreObjectif.extension:TDDUIDiscriminator.extension",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "path": "Goal.note.extension.url",
      "min": 1,
      "definition": "Source of the definition for the extension code - a logical name or a URL.",
      "isModifier": false,
      "short": "identifies the meaning of the extension",
      "fixedUri": "https://interop.esante.gouv.fr/ig/fhir/tddui/StructureDefinition/tddui-discriminator",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "uri"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Goal.note:strategieMiseEnOeuvreObjectif.extension:TDDUIDiscriminator.url",
      "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Goal.note.extension.value[x]",
      "min": 0,
      "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).",
      "isModifier": false,
      "short": "Value of extension",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "required",
        "valueSet": "https://interop.esante.gouv.fr/ig/fhir/tddui/ValueSet/tddui-goal-objectif-note-vs|2.2.0-ballot"
      },
      "max": "1",
      "id": "Goal.note:strategieMiseEnOeuvreObjectif.extension:TDDUIDiscriminator.value[x]",
      "patternCodeableConcept": {
        "coding": [ {
          "code": "strategieMiseEnOeuvreObjectif",
          "system": "https://interop.esante.gouv.fr/ig/fhir/tddui/CodeSystem/tddui-discriminator-cs"
        } ]
      },
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Goal.note.author[x]",
      "min": 0,
      "definition": "The individual responsible for making the annotation.",
      "isModifier": false,
      "short": "Individual responsible for the annotation",
      "mapping": [ {
        "map": "N/A",
        "identity": "v2"
      }, {
        "map": "Act.participant[typeCode=AUT].role",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1", "http://hl7.org/fhir/StructureDefinition/Patient|4.0.1", "http://hl7.org/fhir/StructureDefinition/RelatedPerson|4.0.1", "http://hl7.org/fhir/StructureDefinition/Organization|4.0.1" ]
      }, {
        "code": "string"
      } ],
      "max": "1",
      "id": "Goal.note:strategieMiseEnOeuvreObjectif.author[x]",
      "comment": "Organization is used when there's no need for specific attribution as to who made the comment.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Annotation.author[x]"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Goal.note.time",
      "min": 0,
      "definition": "Indicates when this particular annotation was made.",
      "isModifier": false,
      "short": "When the annotation was made",
      "mapping": [ {
        "map": "N/A",
        "identity": "v2"
      }, {
        "map": "Act.effectiveTime",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "dateTime"
      } ],
      "max": "1",
      "id": "Goal.note:strategieMiseEnOeuvreObjectif.time",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Annotation.time"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Goal.note.text",
      "min": 1,
      "definition": "The text of the annotation in markdown format.",
      "isModifier": false,
      "short": "The annotation  - text content (as markdown)",
      "mapping": [ {
        "map": "strategieMiseEnOeuvreObjectif",
        "identity": "specmetier-to-TDDUIGoalObjectif"
      }, {
        "map": "N/A",
        "identity": "v2"
      }, {
        "map": "Act.text",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "markdown"
      } ],
      "max": "1",
      "id": "Goal.note:strategieMiseEnOeuvreObjectif.text",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Annotation.text"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Goal.outcomeCode",
      "requirements": "Outcome tracking is a key aspect of care planning.",
      "min": 0,
      "definition": "Identifies the change (or lack of change) at the point when the status of the goal is assessed.",
      "isModifier": false,
      "short": "What result was achieved regarding the goal?",
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/ValueSet/clinical-findings|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "GoalOutcome"
        } ],
        "description": "The result of the goal; e.g. \"25% increase in shoulder mobility\", \"Anxiety reduced to moderate levels\".  \"15 kg weight loss sustained over 6 months\"."
      },
      "max": "*",
      "id": "Goal.outcomeCode",
      "comment": "Note that this should not duplicate the goal status.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Goal.outcomeCode"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Goal.outcomeReference",
      "requirements": "Outcome tracking is a key aspect of care planning.",
      "min": 0,
      "definition": "Details of what's changed (or not changed).",
      "isModifier": false,
      "short": "Observation that resulted from goal",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Observation|4.0.1" ]
      } ],
      "max": "*",
      "id": "Goal.outcomeReference",
      "comment": "The goal outcome is independent of the outcome of the related activities.  For example, if the Goal is to achieve a target body weight of 150 lb and a care plan activity is defined to diet, then the care plan’s activity outcome could be calories consumed whereas goal outcome is an observation for the actual body weight measured.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Goal.outcomeReference"
      },
      "isSummary": false
    } ],
    "extension": [ {
      "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version",
      "valueString": "4.0.1"
    } ]
  },
  "status": "active",
  "id": "d519e428-9032-4c27-a7e6-d9447298d7e4",
  "kind": "resource",
  "url": "https://interop.esante.gouv.fr/ig/fhir/tddui/StructureDefinition/tddui-goal-objectif",
  "version": "2.2.0-ballot",
  "differential": {
    "element": [ {
      "id": "Goal",
      "path": "Goal",
      "mapping": [ {
        "map": "Objectif",
        "identity": "specmetier-to-TDDUIGoalObjectif"
      } ]
    }, {
      "id": "Goal.meta.lastUpdated",
      "path": "Goal.meta.lastUpdated",
      "mapping": [ {
        "map": "statutObjectif.dateStatut",
        "identity": "specmetier-to-TDDUIGoalObjectif"
      } ]
    }, {
      "id": "Goal.extension",
      "min": 1,
      "path": "Goal.extension",
      "slicing": {
        "rules": "open",
        "ordered": false,
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      }
    }, {
      "id": "Goal.extension:referenceEvaluation",
      "max": "*",
      "min": 0,
      "path": "Goal.extension",
      "type": [ {
        "code": "Extension",
        "profile": [ "https://interop.esante.gouv.fr/ig/fhir/tddui/StructureDefinition/tddui-evaluation-reference|2.2.0-ballot" ]
      } ],
      "mapping": [ {
        "map": "evaluationObjectif",
        "identity": "specmetier-to-TDDUIGoalObjectif"
      } ],
      "sliceName": "referenceEvaluation"
    }, {
      "id": "Goal.extension:referenceProjetPerso",
      "max": "1",
      "min": 1,
      "path": "Goal.extension",
      "type": [ {
        "code": "Extension",
        "profile": [ "https://interop.esante.gouv.fr/ig/fhir/tddui/StructureDefinition/tddui-careplan-reference|2.2.0-ballot" ]
      } ],
      "mapping": [ {
        "map": "ProjetPersonnalise",
        "identity": "specmetier-to-TDDUIGoalObjectif"
      } ],
      "sliceName": "referenceProjetPerso"
    }, {
      "id": "Goal.extension:pieceJointeObjectif",
      "max": "*",
      "min": 0,
      "path": "Goal.extension",
      "type": [ {
        "code": "Extension",
        "profile": [ "https://interop.esante.gouv.fr/ig/fhir/tddui/StructureDefinition/tddui-attachment|2.2.0-ballot" ]
      } ],
      "sliceName": "pieceJointeObjectif"
    }, {
      "id": "Goal.identifier",
      "max": "1",
      "min": 1,
      "path": "Goal.identifier",
      "short": "Identifiant de l'objectif",
      "mapping": [ {
        "map": "idObjectif",
        "identity": "specmetier-to-TDDUIGoalObjectif"
      } ]
    }, {
      "id": "Goal.identifier.system",
      "min": 1,
      "path": "Goal.identifier.system",
      "patternUri": "https://identifiant-medicosocial-objectif.esante.gouv.fr"
    }, {
      "id": "Goal.identifier.value",
      "min": 1,
      "path": "Goal.identifier.value",
      "example": [ {
        "label": "du format d'identifiant à respecter : 3+FINESS/identifiantLocalUsagerESSMS-OBJE-numObjectif",
        "valueString": "3480787529/123456789-OBJE-1234"
      } ]
    }, {
      "id": "Goal.lifecycleStatus",
      "path": "Goal.lifecycleStatus",
      "short": "Correspondance des statuts métier avec les codes FHIR : ENPREPARATION → planned, ACTIF → active, TERMINE → completed, ANNULE → cancelled.",
      "mapping": [ {
        "map": "statutObjectif.statut",
        "identity": "specmetier-to-TDDUIGoalObjectif"
      } ]
    }, {
      "id": "Goal.lifecycleStatus.extension",
      "path": "Goal.lifecycleStatus.extension",
      "slicing": {
        "rules": "open",
        "ordered": false,
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      }
    }, {
      "id": "Goal.lifecycleStatus.extension:auteurStatut",
      "max": "1",
      "min": 0,
      "path": "Goal.lifecycleStatus.extension",
      "type": [ {
        "code": "Extension",
        "profile": [ "https://interop.esante.gouv.fr/ig/fhir/tddui/StructureDefinition/tddui-status-author|2.2.0-ballot" ]
      } ],
      "mapping": [ {
        "map": "statutObjectif.auteur",
        "identity": "specmetier-to-TDDUIGoalObjectif"
      } ],
      "sliceName": "auteurStatut"
    }, {
      "id": "Goal.category",
      "path": "Goal.category",
      "mapping": [ {
        "map": "domaineObjectif",
        "identity": "specmetier-to-TDDUIGoalObjectif"
      } ]
    }, {
      "id": "Goal.description.text",
      "path": "Goal.description.text",
      "mapping": [ {
        "map": "descriptionObjectif",
        "identity": "specmetier-to-TDDUIGoalObjectif"
      } ]
    }, {
      "id": "Goal.subject",
      "path": "Goal.subject",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "https://interop.esante.gouv.fr/ig/fhir/tddui/StructureDefinition/tddui-patient|2.2.0-ballot", "https://interop.esante.gouv.fr/ig/fhir/tddui/StructureDefinition/tddui-patient-ins|2.2.0-ballot" ]
      } ]
    }, {
      "id": "Goal.start[x]",
      "path": "Goal.start[x]",
      "slicing": {
        "rules": "open",
        "ordered": false,
        "discriminator": [ {
          "path": "$this",
          "type": "type"
        } ]
      }
    }, {
      "id": "Goal.start[x]:startDate",
      "max": "1",
      "min": 0,
      "path": "Goal.start[x]",
      "type": [ {
        "code": "date"
      } ],
      "mapping": [ {
        "map": "dateDebutObjectif",
        "identity": "specmetier-to-TDDUIGoalObjectif"
      } ],
      "sliceName": "startDate"
    }, {
      "id": "Goal.target.detail[x]",
      "path": "Goal.target.detail[x]",
      "slicing": {
        "rules": "open",
        "ordered": false,
        "discriminator": [ {
          "path": "$this",
          "type": "type"
        } ]
      }
    }, {
      "id": "Goal.target.detail[x]:detailString",
      "max": "1",
      "min": 0,
      "path": "Goal.target.detail[x]",
      "type": [ {
        "code": "string"
      } ],
      "mapping": [ {
        "map": "resultatAttenduObjectif",
        "identity": "specmetier-to-TDDUIGoalObjectif"
      } ],
      "sliceName": "detailString"
    }, {
      "id": "Goal.target.due[x]",
      "path": "Goal.target.due[x]",
      "slicing": {
        "rules": "open",
        "ordered": false,
        "discriminator": [ {
          "path": "$this",
          "type": "type"
        } ]
      }
    }, {
      "id": "Goal.target.due[x]:dueDate",
      "max": "1",
      "min": 0,
      "path": "Goal.target.due[x]",
      "type": [ {
        "code": "date"
      } ],
      "mapping": [ {
        "map": "dateFinObjectif",
        "identity": "specmetier-to-TDDUIGoalObjectif"
      } ],
      "sliceName": "dueDate"
    }, {
      "id": "Goal.expressedBy",
      "path": "Goal.expressedBy",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "https://interop.esante.gouv.fr/ig/fhir/tddui/StructureDefinition/tddui-practitioner-role|2.2.0-ballot", "https://interop.esante.gouv.fr/ig/fhir/tddui/StructureDefinition/tddui-practitioner|2.2.0-ballot" ]
      } ],
      "mapping": [ {
        "map": "referentObjectif",
        "identity": "specmetier-to-TDDUIGoalObjectif"
      } ]
    }, {
      "id": "Goal.addresses",
      "path": "Goal.addresses",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "https://interop.esante.gouv.fr/ig/fhir/tddui/StructureDefinition/tddui-service-request-besoin|2.2.0-ballot" ]
      } ],
      "mapping": [ {
        "map": "Besoin",
        "identity": "specmetier-to-TDDUIGoalObjectif"
      } ]
    }, {
      "id": "Goal.note",
      "min": 1,
      "path": "Goal.note",
      "slicing": {
        "rules": "open",
        "discriminator": [ {
          "path": "extension('https://interop.esante.gouv.fr/ig/fhir/tddui/StructureDefinition/tddui-discriminator').value",
          "type": "pattern"
        } ]
      }
    }, {
      "id": "Goal.note.extension",
      "min": 1,
      "path": "Goal.note.extension"
    }, {
      "id": "Goal.note.extension:TDDUIDiscriminator",
      "max": "3",
      "min": 1,
      "path": "Goal.note.extension",
      "type": [ {
        "code": "Extension",
        "profile": [ "https://interop.esante.gouv.fr/ig/fhir/tddui/StructureDefinition/tddui-discriminator|2.2.0-ballot" ]
      } ],
      "sliceName": "TDDUIDiscriminator"
    }, {
      "id": "Goal.note:titreObjectif",
      "max": "1",
      "min": 1,
      "path": "Goal.note",
      "short": "Titre de l'objectif",
      "sliceName": "titreObjectif"
    }, {
      "id": "Goal.note:titreObjectif.extension:TDDUIDiscriminator",
      "max": "1",
      "min": 1,
      "path": "Goal.note.extension",
      "type": [ {
        "code": "Extension",
        "profile": [ "https://interop.esante.gouv.fr/ig/fhir/tddui/StructureDefinition/tddui-discriminator|2.2.0-ballot" ]
      } ],
      "sliceName": "TDDUIDiscriminator"
    }, {
      "id": "Goal.note:titreObjectif.extension:TDDUIDiscriminator.value[x]",
      "path": "Goal.note.extension.value[x]",
      "binding": {
        "strength": "required",
        "valueSet": "https://interop.esante.gouv.fr/ig/fhir/tddui/ValueSet/tddui-goal-objectif-note-vs|2.2.0-ballot"
      },
      "patternCodeableConcept": {
        "coding": [ {
          "code": "titreObjectif",
          "system": "https://interop.esante.gouv.fr/ig/fhir/tddui/CodeSystem/tddui-discriminator-cs"
        } ]
      }
    }, {
      "id": "Goal.note:titreObjectif.text",
      "path": "Goal.note.text",
      "mapping": [ {
        "map": "titreObjectif",
        "identity": "specmetier-to-TDDUIGoalObjectif"
      } ]
    }, {
      "id": "Goal.note:avisUsagerObjectif",
      "max": "1",
      "min": 0,
      "path": "Goal.note",
      "short": "Avis de l'usager sur l'objectif",
      "sliceName": "avisUsagerObjectif"
    }, {
      "id": "Goal.note:avisUsagerObjectif.extension:TDDUIDiscriminator",
      "max": "1",
      "min": 1,
      "path": "Goal.note.extension",
      "type": [ {
        "code": "Extension",
        "profile": [ "https://interop.esante.gouv.fr/ig/fhir/tddui/StructureDefinition/tddui-discriminator|2.2.0-ballot" ]
      } ],
      "sliceName": "TDDUIDiscriminator"
    }, {
      "id": "Goal.note:avisUsagerObjectif.extension:TDDUIDiscriminator.value[x]",
      "path": "Goal.note.extension.value[x]",
      "binding": {
        "strength": "required",
        "valueSet": "https://interop.esante.gouv.fr/ig/fhir/tddui/ValueSet/tddui-goal-objectif-note-vs|2.2.0-ballot"
      },
      "patternCodeableConcept": {
        "coding": [ {
          "code": "avisUsagerObjectif",
          "system": "https://interop.esante.gouv.fr/ig/fhir/tddui/CodeSystem/tddui-discriminator-cs"
        } ]
      }
    }, {
      "id": "Goal.note:avisUsagerObjectif.text",
      "path": "Goal.note.text",
      "mapping": [ {
        "map": "avisUsagerObjectif",
        "identity": "specmetier-to-TDDUIGoalObjectif"
      } ]
    }, {
      "id": "Goal.note:strategieMiseEnOeuvreObjectif",
      "max": "1",
      "min": 0,
      "path": "Goal.note",
      "short": "Stratégie de mise en œuvre de l'objectif",
      "sliceName": "strategieMiseEnOeuvreObjectif"
    }, {
      "id": "Goal.note:strategieMiseEnOeuvreObjectif.extension:TDDUIDiscriminator",
      "max": "1",
      "min": 1,
      "path": "Goal.note.extension",
      "type": [ {
        "code": "Extension",
        "profile": [ "https://interop.esante.gouv.fr/ig/fhir/tddui/StructureDefinition/tddui-discriminator|2.2.0-ballot" ]
      } ],
      "sliceName": "TDDUIDiscriminator"
    }, {
      "id": "Goal.note:strategieMiseEnOeuvreObjectif.extension:TDDUIDiscriminator.value[x]",
      "path": "Goal.note.extension.value[x]",
      "binding": {
        "strength": "required",
        "valueSet": "https://interop.esante.gouv.fr/ig/fhir/tddui/ValueSet/tddui-goal-objectif-note-vs|2.2.0-ballot"
      },
      "patternCodeableConcept": {
        "coding": [ {
          "code": "strategieMiseEnOeuvreObjectif",
          "system": "https://interop.esante.gouv.fr/ig/fhir/tddui/CodeSystem/tddui-discriminator-cs"
        } ]
      }
    }, {
      "id": "Goal.note:strategieMiseEnOeuvreObjectif.text",
      "path": "Goal.note.text",
      "mapping": [ {
        "map": "strategieMiseEnOeuvreObjectif",
        "identity": "specmetier-to-TDDUIGoalObjectif"
      } ]
    } ]
  },
  "contact": [ {
    "name": "ANS",
    "telecom": [ {
      "value": "https://esante.gouv.fr",
      "system": "url"
    } ]
  } ],
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Goal|4.0.1"
}