Vés al contingut

Mòdul:Infobox medical intervention

De la Viquipèdia, l'enciclopèdia lliure
Icona de documentació de mòdul Documentació del mòdul [ mostra ] [ modifica el codi ] [ mostra l'historial ] [ refresca ]

Mòdul Infobox medical intervention (codi · ús · discussió · proves · tests · casos prova | subpàgines · enllaços)

A continuació es mostra la documentació transclosa de la subpàgina /ús. [salta a la caixa de codi]


Utilitzat per {{Infotaula intervenció}}

Infotaula de procediment o intervenció.

Consta de:

I utilitza els mòduls compartits amb: Module:Infobox disease:


És una infotaula multilingüe, basada en Module:Global infobox tools, i que llegeix les dades de Wikidata, mitjançant el Module:Wikidades.

Sintaxi

[modifica]

{{#invoke:Infobox medical intervention|infobox}}, si està enllaçada a wikidata.

Vegeu aquí la llista de tots els paràmetres utilitzables si s'introdueix manualment, així com de verificar les traduccions.


Els possibles camps són ({{#invoke:Infobox medical intervention|infobox|demo=true}}):

Mòdul:Infobox medical intervention/úsMòdul:Infobox medical intervention
imatge
peu
CIM-10-PCSCIM10
CIM-9-MCCIM9
CIM-9ICD9unlinked
MeSHMeSH1, MeSH2, MeSH3, MeSH4, MeSH5, MeSH6, MeSH7, MeSH8, MeSH9, MeshName&field=entry#TreeMeshNumber MeshNumber
OPS-301OPS301
LOINCLOINC
Altres codisaltres_codis
MedlinePlusMedlinePlus
eMedicineeMedicineSubj/topiceMedicineTopic.htm eMedicineSubj/eMedicineTopic eMedicine_mult
HCPCS-L2HCPCSlevel2
CPTCPT


Manteniment

[modifica]

Podeu trobar la plantilla prèvia en format wiki a {{Infotaula intervenció/vell}}.

Llista d'arguments i paràmetres

[modifica]

{{#invoke:Infobox medical intervention|infobox|allitems=list}} Dóna:

P.KeyValueWDT.
1rs_colorbox#b0d1ad#b0d1ads
2rs_color_tit_cllps#d5e0d4#d5e0d4s
3rs_bodystyles
4rs_titlestylebackground-color:#b0d1ad;background-color:#b0d1ad;valign=center; padding:1px;s
5rs_headerstylebackground-color:#b0d1ad;background-color:#b0d1ad;s
6rs_subheaderstylebackground-color:#d5e0d4;background-color:#d5e0d4;valign=center; padding:1px;s
7rs_imagestylepadding-bottom:0.1em;line-height:1.35;font-size:98%s
8rs_captionstylepadding-top:0.3em;padding-bottom:0.1em;line-height:1.35;font-size:98%s
9rs_labelstylepadding-right: 1.2em; color: #202122; background-color: #eeeeee; text-align: start;s
10rs_datastyletext-align:starts
11rs_belowstyles
12rs_iconSurgeon icon with eyes.svgs
13rs_icon_at_begintrueb
14rs_icon_hintMòdul:Infobox medical intervention/úss
15rs_def_nameInfobox medical interventions
16rs_image_max_num1i (0-2)
17rs_def_image_size300x300pxs
18rs_send_img_preinfoboxfalseb
19rs_changeable_lblsfalseb
20rs_param_prefix_lbll_s
21rs_def_charnum_cllps180i (1-1000)
22rs_errorErrorQ29485s
23rs_belows
24rs_cat_arg_errorCategoria:Infotaules usades amb paràmetres desconegutsQ56486184s
25rs_cat_arg_dupliCategoria:Pàgines amb arguments duplicats en utilització de plantillesQ89919289s
26rs_cat_wds_untranslats
27rs_cat_no_images
LabelsArguments
M.P.KeyWDWD content (ca)Localization (i18n)Default namesLocalized names (i18n)ValuesWD content (ca)T.
IMI1nameName, namenoms
GIBT2imageimage, ImageimatgeWD P18Imatges
GIBT3image_idximage_idximatge_idxi+
GIBT4altalts
GIBT5sizesize, widthmida, ampladas
GIBT6captioncaption, CaptionpeuWD P18,P2096P18,P2096s
IMI7ICD10Q9006342ICD-10-PCSCIM-10-PCSICD10CIM10WD P1690ICD-10-PCSs
IMI8ICD9Q5737131CIM-9-MCCIM-9-MCICD9CIM9WD P1692CIM-9-CMs
IMI9ICD9uQ14067712CIM-9CIM-9ICD9unlinkedWD P493Codi CIM-9s
MII10MeshNameMeshNameWD P486Identificador MeSHs
MII11MeshNumberMeshNumbers
MII12MeSH1MeshID, MeSH, MeSH1s
MII13MeshYear1MeshYear, MeshYear1i+
MII14MeSH2MeSH2s
MII15MeshYear2MeshYear2i+
MII16MeSH3MeSH3s
MII17MeshYear3MeshYear3i+
MII18MeSH4MeSH4s
MII19MeshYear4MeshYear4i+
MII20MeSH5MeSH5s
MII21MeshYear5MeshYear5i+
IMI22OPSQ2026515OPS-301OPS-301OPS301WD P1691Operacions i procediments clau (OPS)s
IMI23LOINCQ502480LOINCLOINCLOINCWD P4338Identificador LOINCs
IMI24OtherAltres codisother_codes, OtherCodesaltres_codis, AltresCodiss
IMI25MedlineQ557919MedlinePlusMedlinePlusMedlinePlusWD P604Identificador MedlinePlus d'articles
MII26eMedicineeMedicineWD P673Identificador eMedicines
MII27eMedicineSubjeMedicineSubjs
MII28eMedicineTopiceMedicineTopici+
MII29eMedicine_multeMedicine_mults
IMI30HCPCSQ5629114HCPCS Level 2HCPCS-L2HCPCSlevel2s
IMI31CPTQ964984Current Procedural Terminology (en) TradueixCPTCPTWD P7410Healthcare Common Procedure Coding System Identifiers
M.: Abbreviation of the used module/s. P.: Position according to the appearance order in the infobox
You can change the localizated text in:Used argument types: s (string), i+ (positive integer)

Per obtenir una llista de tots els paràmetres possibles a excepció de allitems i item, cal utilitzar el paràmetre allitems=Possib

Vegeu Mòdul:Multilang module tools#Llistes, per a més detalls. I al final per a les Llistes no habituals

Codi TemplateData generat

[modifica]

{{#invoke:Infobox medical intervention|infobox|allitems=template}} Dona la llista que ja es troba, modificada a {{Infotaula intervenció}}


<templatedata>
{
"params": {
"nom": {
"aliases": [
"Name",
"name"
],
"type": "line"
},
"imatge": {
"aliases": [
"image",
"Image"
],
"type": "line"
},
"imatge_idx": {
"aliases": [
"image_idx"
],
"type": "number"
},
"alt": {
"type": "line"
},
"mida": {
"aliases": [
"amplada",
"size",
"width"
],
"type": "line"
},
"peu": {
"aliases": [
"caption",
"Caption"
],
"type": "line"
},
"CIM10": {
"aliases": [
"ICD10"
],
"type": "line"
},
"CIM9": {
"aliases": [
"ICD9"
],
"type": "line"
},
"ICD9unlinked": {
"type": "line"
},
"MeshName": {
"type": "line"
},
"MeshNumber": {
"type": "line"
},
"MeshID": {
"aliases": [
"MeSH",
"MeSH1"
],
"type": "line"
},
"MeshYear": {
"aliases": [
"MeshYear1"
],
"type": "number"
},
"MeSH2": {
"type": "line"
},
"MeshYear2": {
"type": "number"
},
"MeSH3": {
"type": "line"
},
"MeshYear3": {
"type": "number"
},
"MeSH4": {
"type": "line"
},
"MeshYear4": {
"type": "number"
},
"MeSH5": {
"type": "line"
},
"MeshYear5": {
"type": "number"
},
"OPS301": {
"type": "line"
},
"LOINC": {
"type": "line"
},
"altres_codis": {
"aliases": [
"AltresCodis",
"other_codes",
"OtherCodes"
],
"type": "line"
},
"MedlinePlus": {
"type": "line"
},
"eMedicine": {
"type": "line"
},
"eMedicineSubj": {
"type": "line"
},
"eMedicineTopic": {
"type": "number"
},
"eMedicine_mult": {
"type": "line"
},
"HCPCSlevel2": {
"type": "line"
},
"CPT": {
"type": "line"
}
},
"format": "block"
}
</templatedata>

Exemples

[modifica]

Amb paràmetres manuals

[modifica]

Amb paràmetres manuals {{#invoke:Infobox medical intervention|infobox
|name=Procediment
|CIM9=99.99}}
Dóna:

Mòdul:Infobox medical intervention/úsProcediment
CIM-9-MC{{ICD9proc|99.99}}


I amb error (poseu en mode previsualització): {{#invoke:Infobox medical intervention|infobox
|name=Procediment
|CIM9=99.99
|CIMX=9.99
}}
Dóna:

Mòdul:Infobox medical intervention/úsProcediment
CIM-9-MC{{ICD9proc|99.99}}



Enllaçat a wikidata amb item=Q539795 (angioplàstia).

{{#invoke:Infobox medical intervention|infobox|item=Q539795}} Dóna:

Mòdul:Infobox medical intervention/úsAngioplàstia
modifica
CIM-9-MC00.6, 36.0 i 39.50 Modifica el valor a Wikidata
MeSHD017130 Modifica el valor a Wikidata
LOINC36760-7 Modifica el valor a Wikidata


Exemple en un altre idioma

[modifica]

{{#invoke:Infobox medical intervention|infobox|item=Q539795|lang=he}} Dóna:

Mòdul:Infobox medical intervention/úsאנגיופלסטיה
עריכה
CIM-9-MC00.6, 36.0 וגם 39.50 לערוך את הערך באתר Wikidata
MeSHD017130 Modifica el valor a Wikidata
LOINC36760-7 לערוך את הערך באתר Wikidata


Llistes no habituals

[modifica]

Llista de sols arguments

[modifica]

{{#invoke:Infobox medical intervention|infobox|allitems=params}} Dóna:

M.P.KeyDefault namesLocalized names (i18n)ValuesWD content (ca)T.
IMI1nameName, namenoms
GIBT2imageimage, ImageimatgeWD P18Imatges
GIBT3image_idximage_idximatge_idxi+
GIBT4altalts
GIBT5sizesize, widthmida, ampladas
GIBT6captioncaption, CaptionpeuWD P18,P2096P18,P2096s
IMI7ICD10ICD10CIM10WD P1690ICD-10-PCSs
IMI8ICD9ICD9CIM9WD P1692CIM-9-CMs
IMI9ICD9uICD9unlinkedWD P493Codi CIM-9s
MII10MeshNameMeshNameWD P486Identificador MeSHs
MII11MeshNumberMeshNumbers
MII12MeSH1MeshID, MeSH, MeSH1s
MII13MeshYear1MeshYear, MeshYear1i+
MII14MeSH2MeSH2s
MII15MeshYear2MeshYear2i+
MII16MeSH3MeSH3s
MII17MeshYear3MeshYear3i+
MII18MeSH4MeSH4s
MII19MeshYear4MeshYear4i+
MII20MeSH5MeSH5s
MII21MeshYear5MeshYear5i+
IMI22OPSOPS301WD P1691Operacions i procediments clau (OPS)s
IMI23LOINCLOINCWD P4338Identificador LOINCs
IMI24Otherother_codes, OtherCodesaltres_codis, AltresCodiss
IMI25MedlineMedlinePlusWD P604Identificador MedlinePlus d'articles
MII26eMedicineeMedicineWD P673Identificador eMedicines
MII27eMedicineSubjeMedicineSubjs
MII28eMedicineTopiceMedicineTopici+
MII29eMedicine_multeMedicine_mults
IMI30HCPCSHCPCSlevel2s
IMI31CPTCPTWD P7410Healthcare Common Procedure Coding System Identifiers
M.: Abbreviation of the used module/s. P.: Position according to the appearance order in the infobox
You can change the localizated text in:Used argument types: s (string), i+ (positive integer)

Llista de sols etiquetes

[modifica]

{{#invoke:Infobox medical intervention|infobox|allitems=labels}} Dóna:

M.P.KeySource/WD content (en)WDWD content (ca)Localization (i18n)
IMI1ICD10ICD-10 Procedure Coding SystemQ9006342ICD-10-PCSCIM-10-PCS
IMI2ICD9ICD-9-CMQ5737131CIM-9-MCCIM-9-MC
IMI3ICD9uICD-9Q14067712CIM-9CIM-9
IMI4OPSOPS-301Q2026515OPS-301OPS-301
IMI5LOINCLogical Observation Identifiers Names and CodesQ502480LOINCLOINC
IMI6OtherOther codesAltres codis
IMI7MedlineMedlinePlusQ557919MedlinePlusMedlinePlus
IMI8HCPCSHCPCS Level 2Q5629114HCPCS Level 2HCPCS-L2
IMI9CPTCurrent Procedural TerminologyQ964984Current Procedural Terminology (en) TradueixCPT
M.: Abbreviation of the used module/s. P.: Position according to the appearance order in the infobox. WD: Wikidata
You can change the localizated text in:

Vegeu també

[modifica]

--[[
For translation of this module, you must customize:
Module:Infobox medical intervention/i18n
Module:Infotable images/i18n
Module:Medical infotable items/i18n

--]]
local p = {}

local SA	= require "Module:SimpleArgs"
local SD	= require "Module:SimpleDebug"
local WD	= require "Module:Wikidades"
local MLMT	= require "Module:Multilang module tools"
local GIBT	= require "Module:Global infobox tools"
local GIBTi	= require "Module:Global infobox tools/items"
local MII	= require "Module:Medical infobox items"
local MIIi	= require "Module:Medical infobox items/items"
local IMIi	= require "Module:Infobox medical intervention/items"
local GIBTi18n
local IMIi18n

local ModuleName = 'Infobox medical intervention'
local rs = { --reserved keys and their modified values for infobox configuration
	--for default stored values of the other options look at list with allitems=list
}
local cat = { --tracking categories
	[GIBTi.rk.rs_cat_arg_error]	= "_Q56486184", -- specific category: "_Q90499106",
}	
local items = { --used key names 
	[MLMT.k.Args] = { --parameter key, its name/s (as parameter) and optional Wikidata qualifiers/properties
		[GIBTi.rk.name]			= {{"Name",
									"name"},		"",}, --allways required
		[IMIi.k.ICD10]			= {"ICD10",         "_P1690",},
		[IMIi.k.ICD9]			= {"ICD9",          {property="P1692",
													formatting='{{ICD9proc|$1}}',}},
		[IMIi.k.ICD9u]			= {"ICD9unlinked",  "_P493",},
		[IMIi.k.OPS]			= {"OPS301",        "_P1691",},
		[IMIi.k.LOINC]			= {"LOINC",         {property="P4338",
													formatting='{{LOINC|$1}}',}},
		[IMIi.k.Other]			= {{"other_codes",
									"OtherCodes"},	"",},
		[IMIi.k.Medline]		= {"MedlinePlus",   {property="P604",
													 formatting='[https://medlineplus.gov/ency/article/$1.htm $1]'}},
		[IMIi.k.HCPCS]			= {"HCPCSlevel2",   "",},
		[IMIi.k.CPT]			= {"CPT",           "_P7410",},
	},
	[MLMT.k.Labels] = { --label or header (hd_) key, and its value as Wikidata qualifier or property to read (or text)
		[IMIi.k.ICD10]			= "_Q9006342",
		[IMIi.k.ICD9]			= "_Q5737131",
		[IMIi.k.ICD9u]			= "_Q14067712",
		[IMIi.k.OPS]			= "_Q2026515",
		[IMIi.k.LOINC]			= "_Q502480",
		[IMIi.k.Other] 			= "Other [[procedure codes|codes]]",
		[IMIi.k.Medline]		= "_Q557919",
		[IMIi.k.HCPCS] 			= "_Q5629114",
		[IMIi.k.CPT] 			= "_Q964984",
	},	
}

function p.infobox(frame)
	local args, NArgs = SA.GetArgs (frame)
	MLMT.SetLang (args)
	GIBTi18n = require (SA.I18nName ("Global infobox tools"))
	IMIi18n  = require (SA.I18nName ("Infobox medical intervention"))
	GIBT.SetColorsAndIcon (ModuleName,
		GIBTi18n.lcol.science, --group color
		GIBTi18n.licon.medical_intervention)
	items, IMIi18n.items = GIBT.CheckArgLabLua (ModuleName, items, IMIi18n.items, IMIi18n.omit_params)
	IMIi.idx = GIBT.CheckIdx_arglabLua (ModuleName, IMIi.idx, IMIi18n.new_idx)
	args = GIBT.SetRsv_1ToArgs (ModuleName, frame, args, rs, IMIi18n.rs_val, cat)
	local itemsM = GIBT.tableMerge (ModuleName, items, IMIi18n.items)
	GIBT.i_LoadI18n ()
	MII.LoadI18n ()
	MLMT.IniLang (frame, args)
	SA.Error.handle = true
	--END INITIALIZATION
	
	function ArgMMI (option, key)
		return MII.arg_items (option, key)
	end	
	function load_show_key (key)
		GIBT.load_show_key (args, itemsM, key, IMIi.arg_lims)
	end	
	
	--BEGIN--
	local res = GIBT.ItemList_or_TempData (args, 'IMI', ModuleName, items, IMIi18n.items, IMIi.idx, IMIi.arg_lims, 
		{{'', MII.arglab_items},}, {{'', ArgMMI},})
	if res == nil then
		GIBT.IniLua (args, itemsM)
		local n_last_capt = GIBT.i_main (frame, args)
		load_show_key (IMIi.k.ICD10)
		load_show_key (IMIi.k.ICD9)
		load_show_key (IMIi.k.ICD9u)
		MII.mesh (frame, args)
		load_show_key (IMIi.k.OPS)
		load_show_key (IMIi.k.LOINC)
		load_show_key (IMIi.k.Other)
		load_show_key (IMIi.k.Medline) 
		MII.eMedicine (args)
		load_show_key (IMIi.k.HCPCS)
		load_show_key (IMIi.k.CPT)
		GIBT.ExecFuncs_SetHeaders (frame, itemsM, nil, n_last_capt)
		return GIBT.CheckShowParams (
				frame, args, 
				--allowed parameters:
				{itemsM, --current module specific arguments
				GIBT.i_itemsM, --image module specific arguments
				MII.itemsM[MIIi.k.Mesh], MII.itemsM[MIIi.k.eMed]} --Medical infotable items arguments
				)..
		    GIBT.InfoboxWithItsValues() 
	else
		return res
	end	
end --infobox

return p