Vés al contingut

Mòdul:Infobox medical intervention/prova

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]


Mòdul:Infobox medical intervention/prova/úsColonoscòpia
300x300x
CIM-9-MC45.23 Modifica el valor a Wikidata
CIM-945.23 Modifica el valor a Wikidata
MeSHD003113 Modifica el valor a Wikidata
MedlinePlus003886 Modifica el valor a Wikidata
eMedicine1819350 Modifica el valor a Wikidata
{{#invoke:Infobox medical intervention/prova|infobox
|item=Q840387|
|imatge=Hip replacement Image 3684-PH.jpg
}}
{{#invoke:Infobox medical intervention/prova|infobox|allitems=list}}
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;background:#eeeeee; text-align:starts
10rs_datastyletext-align:starts
11rs_belowstyles
12rs_iconSurgeon icon with eyes.svgs
13rs_icon_at_begintrueb
14rs_icon_hintMòdul:Infobox medical intervention/prova/úss
15rs_def_nameInfobox medical interventions
16rs_image_max_num1i (0-2)
17rs_def_image_size300x300xs
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, Imageimatge, ImatgeWD P18Imatges
GIBT3image_idximage_idximatge_idxi
GIBT4altalts
GIBT5sizesize, widthmida, ampladas
GIBT6captioncaption, Captionpeu, PeuWD 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)
{{#invoke:Infobox medical intervention/prova|infobox|allitems=params}}
M.P.KeyDefault namesLocalized names (i18n)ValuesWD content (ca)T.
IMI1nameName, namenoms
GIBT2imageimage, Imageimatge, ImatgeWD P18Imatges
GIBT3image_idximage_idximatge_idxi
GIBT4altalts
GIBT5sizesize, widthmida, ampladas
GIBT6captioncaption, Captionpeu, PeuWD 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)
{{#invoke:Infobox medical intervention/prova|infobox|allitems=labels}}
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:
{{#invoke:Infobox medical intervention/prova|infobox|allitems=template}}

<templatedata>
{
"params": {
"nom": {
"aliases": [
"Name",
"name"
],
"type": "line"
},
"imatge": {
"aliases": [
"Imatge",
"image",
"Image"
],
"type": "line"
},
"imatge_idx": {
"aliases": [
"image_idx"
],
"type": "number"
},
"alt": {
"type": "line"
},
"mida": {
"aliases": [
"amplada",
"size",
"width"
],
"type": "line"
},
"peu": {
"aliases": [
"Peu",
"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>
{{#invoke:Infobox medical intervention/prova|infobox|allitems=list}}
Mòdul:Infobox medical intervention/prova/úsAltre nom
CIM-10-PCSfalla més
{{#invoke:Infobox medical intervention/prova|infobox
|nom=Altre nom
|ICD10=falla més
}}
Mòdul:Infobox medical intervention/prova/úsDerivació quirúrgica
CIM-10-PCSfalla més
CIM-9-MC{{ICD9proc|123.8}}
OPS-301falla
Altres codiszzz
HCPCS-L2hhh l_altres_codis = Altre!
{{#invoke:Infobox medical intervention/prova|infobox
|item=Q5004192|
Image       = |
Caption     = |
ICD10       = falla més |
ICD9        = 123.8 |
MeshID      = 345 |
OPS301      = falla |
OtherCodes  = zzz |
HCPCSlevel2 = hhh
l_altres_codis = Altre!
}}



--[[
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/prova"
local GIBT	= require "Module:Global infobox tools/prova"
local GIBTi	= require "Module:Global infobox tools/prova/items"
local MII	= require "Module:Medical infobox items/prova"
local MIIi	= require "Module:Medical infobox items/prova/items"
local IMIi	= require "Module:Infobox medical intervention/prova/items"
local GIBTi18n
local IMIi18n

local ModuleName = 'Infobox medical intervention/prova'
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/prova"))
	IMIi18n  = require (SA.I18nName ("Infobox medical intervention/prova"))
	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