<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="https://unicas-fhir.sanidad.gob.es/StructureDefinition/UNICASCarePlan" />
  <name value="UNICASCarePlan" />
  <title value="CarePlan Gestor del Proceso ÚNICAS" />
  <status value="draft" />
  <description value="Este profile define las restricciones del recurso CarePlan representar al gestor del proceso en la red de ÚNICAS." />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="CarePlan" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/CarePlan" />
  <derivation value="constraint" />
  <differential>
    <element id="CarePlan.contained">
      <path value="CarePlan.contained" />
      <type>
        <code value="Resource" />
        <profile value="https://unicas-fhir.sanidad.gob.es/StructureDefinition/UNICASPractitionerRole" />
      </type>
    </element>
    <element id="CarePlan.extension:edadPaciente">
      <path value="CarePlan.extension" />
      <sliceName value="edadPaciente" />
      <type>
        <code value="Extension" />
        <profile value="http://ohbpm.careplan.patient.age" />
      </type>
    </element>
    <element id="CarePlan.identifier">
      <path value="CarePlan.identifier" />
      <short value="Identificador único" />
      <definition value="External Ids for this plan. Business identifiers assigned to this care plan by the performer or other systems which remain constant as the resource is updated and propagates from server to server." />
    </element>
    <element id="CarePlan.identifier.system">
      <path value="CarePlan.identifier.system" />
      <short value="Sistema de identificador" />
      <definition value="The namespace for the identifier value. Establishes the namespace for the value - that is, an absolute URL that describes a set values that are unique." />
    </element>
    <element id="CarePlan.identifier.value">
      <path value="CarePlan.identifier.value" />
      <short value="Valor de identificador" />
      <definition value="The value that is unique. The portion of the identifier typically relevant to the user and which is unique within the context of the system." />
    </element>
    <element id="CarePlan.instantiatesCanonical">
      <path value="CarePlan.instantiatesCanonical" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="canonical" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/PlanDefinition" />
      </type>
    </element>
    <element id="CarePlan.category">
      <path value="CarePlan.category" />
      <short value="Código sugerido: CAT.REGISTRY, CAT.PROCESS, CAT.BUSINESS.RULES, CAT.VARIABLE, CAT.NOTIFICATION, CAT.SUBSCRIPTION con system ohbpm.process.type" />
    </element>
    <element id="CarePlan.category.coding.system">
      <path value="CarePlan.category.coding.system" />
      <short value="URL de system sugerido: ohbpm.process.type" />
    </element>
    <element id="CarePlan.category.coding.code">
      <path value="CarePlan.category.coding.code" />
      <short value="Código sugerido: CAT.REGISTRY, CAT.PROCESS, CAT.BUSINESS.RULES, CAT.VARIABLE, CAT.NOTIFICATION, CAT.SUBSCRIPTION" />
    </element>
    <element id="CarePlan.title">
      <path value="CarePlan.title" />
      <fixedString value="Proceso general UNICAS" />
    </element>
    <element id="CarePlan.subject">
      <path value="CarePlan.subject" />
      <short value="Referencia al paciente" />
      <definition value="Who the care plan is for. Identifies the patient or group whose intended care is described by the plan." />
      <type>
        <code value="Reference" />
        <targetProfile value="https://unicas-fhir.sanidad.gob.es/StructureDefinition/UNICASPatient" />
      </type>
    </element>
    <element id="CarePlan.subject.reference">
      <path value="CarePlan.subject.reference" />
      <short value="Referencia recurso FHIR. Identificador de la referencia del recurso FHIR asociado cuando exista/creamos un recurso en el mismo servidor FHIR" />
      <definition value="Formato: [base]/Patient?identifier=[OID registro de número de CIP-SNS]|[Número CIP-SNS]" />
    </element>
    <element id="CarePlan.subject.type">
      <path value="CarePlan.subject.type" />
      <short value="Tipo de recurso FHIR" />
      <definition value="Type the reference refers to (e.g. &quot;Patient&quot;) - must be a resource in resources. The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.&#xD;&#xA;&#xD;&#xA;The type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. &quot;Patient&quot; is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources)." />
    </element>
    <element id="CarePlan.subject.identifier">
      <path value="CarePlan.subject.identifier" />
      <short value="Identificador de paciente CIP-SNS. Cuando no tengamos recurso Patient, se debera informar el identificador de paciente mediante CIP-SNS" />
      <definition value="Logical reference, when literal reference is not known. An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference." />
    </element>
    <element id="CarePlan.subject.identifier.type">
      <path value="CarePlan.subject.identifier.type" />
      <short value="Tipos de documentos de identificación para persona ÚNICAS" />
      <definition value="Description of identifier. A coded type for the identifier that can be used to determine which identifier to use for a specific purpose." />
      <binding>
        <strength value="extensible" />
        <description value="Value set de Tipos de documentos de identificación para persona ÚNICAS" />
        <valueSet value="https://unicas-fhir.sanidad.gob.es/ValueSet/TiposDocumentosIdentificacionPersona" />
      </binding>
    </element>
    <element id="CarePlan.subject.identifier.type.coding.system">
      <path value="CarePlan.subject.identifier.type.coding.system" />
      <short value="URL del SNOMED CT. Extensión para España del SNS" />
      <definition value="Posible URL de terminología utilizada para indicar el tipo de documentos de identificación y su descripción correspondiente:&#xD;&#xA;&#xD;&#xA;- SNOMED CT. Extensión para España del SNS: http://snomed.info/sct/900000001000122104" />
    </element>
    <element id="CarePlan.subject.identifier.type.coding.code">
      <path value="CarePlan.subject.identifier.type.coding.code" />
      <short value="Código del identificador" />
    </element>
    <element id="CarePlan.subject.identifier.type.coding.display">
      <path value="CarePlan.subject.identifier.type.coding.display" />
      <short value="Decripción del identificador" />
      <definition value="Representation defined by the system. A representation of the meaning of the code in the system, following the rules of the system." />
    </element>
    <element id="CarePlan.subject.identifier.system">
      <path value="CarePlan.subject.identifier.system" />
      <short value="OID registro de número de CIP-SNS" />
      <definition value="The namespace for the identifier value. Establishes the namespace for the value - that is, an absolute URL that describes a set values that are unique." />
    </element>
    <element id="CarePlan.subject.identifier.value">
      <path value="CarePlan.subject.identifier.value" />
      <short value="Número CIP-SNS" />
      <definition value="The namespace for the identifier value. Establishes the namespace for the value - that is, an absolute URL that describes a set values that are unique." />
    </element>
    <element id="CarePlan.subject.display">
      <path value="CarePlan.subject.display" />
      <short value="Nombre completo del paciente" />
      <definition value="Text alternative for the resource. Plain text narrative that identifies the resource in addition to the resource reference." />
    </element>
    <element id="CarePlan.encounter">
      <path value="CarePlan.encounter" />
      <short value="Referencia a la interacción clínica" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://unicas-fhir.sanidad.gob.es/StructureDefinition/UNICASEncounter" />
      </type>
    </element>
    <element id="CarePlan.encounter.reference">
      <path value="CarePlan.encounter.reference" />
      <short value="Referencia recurso FHIR" />
      <definition value="Formato: [base]/Encounter?identifier=urn:regcess:[CódigoREGCESS]|[Id interno del sistema para la interacción clínica]" />
    </element>
    <element id="CarePlan.encounter.type">
      <path value="CarePlan.encounter.type" />
      <short value="Tipo de recurso FHIR" />
      <definition value="Type the reference refers to (e.g. &quot;Patient&quot;) - must be a resource in resources. The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.&#xD;&#xA;&#xD;&#xA;The type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. &quot;Patient&quot; is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources)." />
    </element>
    <element id="CarePlan.encounter.identifier">
      <path value="CarePlan.encounter.identifier" />
      <short value="Identificador del recurso FHIR" />
      <definition value="Logical reference, when literal reference is not known. An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference." />
    </element>
    <element id="CarePlan.encounter.identifier.system">
      <path value="CarePlan.encounter.identifier.system" />
      <short value="Sistema para identificar el origen" />
      <definition value="Formato: urn:regcess:[CódigoREGCESS]&#xD;&#xA;Debe incluir el código REGCESS después de urn:regcess:" />
    </element>
    <element id="CarePlan.encounter.identifier.value">
      <path value="CarePlan.encounter.identifier.value" />
      <short value="Identificador interno del sistema para la interacción clínica" />
      <definition value="Debe indicar el ID interno del sistema de origen utilizado para la interacción clínica." />
    </element>
    <element id="CarePlan.period">
      <path value="CarePlan.period" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="CarePlan.contributor">
      <path value="CarePlan.contributor" />
      <short value="Referencia al profesional sanitario" />
      <definition value="Who provided the content of the care plan. Identifies the individual(s), organization or device who provided the contents of the care plan." />
      <type>
        <code value="Reference" />
        <targetProfile value="https://unicas-fhir.sanidad.gob.es/StructureDefinition/UNICASPractitionerRole" />
        <targetProfile value="https://unicas-fhir.sanidad.gob.es/StructureDefinition/UNICASPractitioner" />
      </type>
    </element>
    <element id="CarePlan.contributor.reference">
      <path value="CarePlan.contributor.reference" />
      <short value="Referencia recurso FHIR. Identificador de la referencia del recurso FHIR asociado cuando exista/creamos un recurso en el mismo servidor FHIR" />
      <definition value="Formato: [base]/Practitioner?identifier=[OID registro de DNI]|[Número DNI]" />
    </element>
    <element id="CarePlan.contributor.type">
      <path value="CarePlan.contributor.type" />
      <short value="Tipo de recurso FHIR" />
      <definition value="Type the reference refers to (e.g. &quot;Patient&quot;) - must be a resource in resources. The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.&#xA;&#xA;The type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. &quot;Patient&quot; is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources)." />
    </element>
    <element id="CarePlan.contributor.identifier">
      <path value="CarePlan.contributor.identifier" />
      <short value="Identificadores del profesional sanitario. Cuando no tengamos recurso Practitioner, se debera informar el identificador del profesional sanitario mediante DNI como dato mínimo. Adicionalmente, se puede informar el número colegiado del profesional sanitario como dato recomendado" />
      <definition value="Logical reference, when literal reference is not known. An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference." />
    </element>
    <element id="CarePlan.contributor.identifier.extension:numeroColegiadoProfesionalSanitario">
      <path value="CarePlan.contributor.identifier.extension" />
      <sliceName value="numeroColegiadoProfesionalSanitario" />
      <type>
        <code value="Extension" />
        <profile value="https://unicas-fhir.sanidad.gob.es/StructureDefinition/NumeroColegiadoProfesionalSanitario" />
      </type>
      <isModifier value="false" />
    </element>
    <element id="CarePlan.contributor.identifier.type">
      <path value="CarePlan.contributor.identifier.type" />
      <short value="Tipos de documentos de identificación para persona ÚNICAS" />
      <definition value="Description of identifier. A coded type for the identifier that can be used to determine which identifier to use for a specific purpose." />
      <binding>
        <strength value="extensible" />
        <description value="Value set de Tipos de documentos de identificación para persona ÚNICAS" />
        <valueSet value="https://unicas-fhir.sanidad.gob.es/ValueSet/TiposDocumentosIdentificacionPersona" />
      </binding>
    </element>
    <element id="CarePlan.contributor.identifier.type.coding.system">
      <path value="CarePlan.contributor.identifier.type.coding.system" />
      <short value="URL del refset Tipos de documento para identificación personal de SNOMED CT. Extensión para España del SNS" />
      <definition value="Posible URL de terminología utilizada para indicar el tipo de documentos de identificación y su descripción correspondiente:&#xD;&#xA;&#xD;&#xA;- Refset Tipos de documento para identificación personal del SNOMED CT. Extensión para España del SNS: http://snomed.info/sct/900000001000122104?fhir_vs-refset/900000251000122107" />
    </element>
    <element id="CarePlan.contributor.identifier.type.coding.code">
      <path value="CarePlan.contributor.identifier.type.coding.code" />
      <short value="Código del identificador" />
    </element>
    <element id="CarePlan.contributor.identifier.type.coding.display">
      <path value="CarePlan.contributor.identifier.type.coding.display" />
      <short value="Decripción del identificador" />
      <definition value="Representation defined by the system. A representation of the meaning of the code in the system, following the rules of the system." />
    </element>
    <element id="CarePlan.contributor.identifier.system">
      <path value="CarePlan.contributor.identifier.system" />
      <short value="OID registro de DNI" />
      <definition value="The namespace for the identifier value. Establishes the namespace for the value - that is, an absolute URL that describes a set values that are unique." />
    </element>
    <element id="CarePlan.contributor.identifier.value">
      <path value="CarePlan.contributor.identifier.value" />
      <short value="Número del DNI" />
      <definition value="The value that is unique. The portion of the identifier typically relevant to the user and which is unique within the context of the system." />
    </element>
    <element id="CarePlan.contributor.display">
      <path value="CarePlan.contributor.display" />
      <short value="Nombre completo del profesional sanitario" />
      <definition value="Text alternative for the resource. Plain text narrative that identifies the resource in addition to the resource reference." />
    </element>
    <element id="CarePlan.addresses">
      <path value="CarePlan.addresses" />
      <min value="0" />
      <max value="0" />
    </element>
    <element id="CarePlan.supportingInfo">
      <path value="CarePlan.supportingInfo" />
      <min value="0" />
      <max value="0" />
    </element>
    <element id="CarePlan.goal">
      <path value="CarePlan.goal" />
      <min value="0" />
      <max value="0" />
    </element>
    <element id="CarePlan.note">
      <path value="CarePlan.note" />
      <short value="Comentario" />
    </element>
    <element id="CarePlan.note.text">
      <path value="CarePlan.note.text" />
      <short value="Comentario" />
      <definition value="The annotation  - text content (as markdown). The text of the annotation in markdown format." />
    </element>
  </differential>
</StructureDefinition>